order-details.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <template>
  2. <view class="container details clearfix" :style="{ paddingBottom: isIphoneX ? 130 + 68 + 'rpx' : '130rpx' }">
  3. <!-- 自定义返回 -->
  4. <header-back
  5. :systeminfo="systeminfo"
  6. :navbar-data="nvabarData"
  7. :headerBtnPosi="headerBtnPosi"
  8. :isShare="isOrderShare"
  9. ></header-back>
  10. <view class="container-details" :style="{ paddingTop: navbarHeight + 'px' }">
  11. <view class="status-text">
  12. <view class="view-type">{{ information.status | TextFormat }}</view>
  13. <view class="status-visible"> {{ information.orderSeen == 2 ? '订单对机构不可见' : '订单对机构可见' }} </view>
  14. <view class="Rebate " v-if="information.rebateFlag == 1">返佣</view>
  15. <text class="bage-name">【高琳琳】</text>
  16. <text class="bage-buss btn" v-if="information.orderSubmitType == 3 || information.orderSubmitType == 4"
  17. >协销</text
  18. >
  19. <text
  20. class="bage-auto btn"
  21. v-if="
  22. information.orderSubmitType == 0 ||
  23. information.orderSubmitType == 1 ||
  24. information.orderSubmitType == 2
  25. "
  26. >自主</text
  27. >
  28. </view>
  29. <!-- 地址选择 -->
  30. <order-address
  31. ref="orderAddress"
  32. v-if="isRequest && !rechargeGoods"
  33. :addressData="addressData"
  34. ></order-address>
  35. <!-- 商品 -->
  36. <goods-list
  37. ref="goods"
  38. v-if="isRequest"
  39. :shopOrderData="shopOrderData"
  40. :information="information"
  41. @popupClick="hanldePopupFn"
  42. ></goods-list>
  43. <!-- 订单信息 -->
  44. <order-information ref="information" v-if="isRequest" :information="information"></order-information>
  45. <!-- 发票信息 -->
  46. <invoice-tent ref="invoice" v-if="isRequest" :orderInvoice="orderInvoice"></invoice-tent>
  47. <!-- 支付记录 -->
  48. <payment-record
  49. ref="payment"
  50. v-if="isRequest"
  51. :discernReceiptList="discernReceiptList"
  52. :receiptAmount="receiptAmount"
  53. ></payment-record>
  54. <!-- 退款记录 -->
  55. <refund-record
  56. ref="refund"
  57. v-if="isRequest"
  58. :returnedPurchaseList="returnedPurchaseList"
  59. :returnedPurchaseFee="returnedPurchaseFee"
  60. ></refund-record>
  61. <view
  62. class="clause"
  63. v-if="information.secondHandOrderFlag != 1"
  64. @click="openclauseConten(clauseData.id)"
  65. :class="clauseData.name == '无条款' ? 'noclick' : ''"
  66. >
  67. 售后条款:<label class="text" :class="clauseData.name == '无条款' ? 'color-bg' : ''">{{
  68. clauseData.name
  69. }}</label>
  70. </view>
  71. <!-- 底部button -->
  72. <order-button
  73. ref="orderButton"
  74. v-if="isRequest"
  75. :status="btnStatus"
  76. :order="information"
  77. :rechargeGoods="rechargeGoods"
  78. :ableUserMoney="ableUserMoney"
  79. :shareCode="shareCode"
  80. :serviceProviderId="serviceProviderId"
  81. :secondHandOrderFlag="information.secondHandOrderFlag"
  82. @buttonConfirm="handButtonConfirm"
  83. >
  84. </order-button>
  85. </view>
  86. <!-- 付款弹窗 -->
  87. <order-model
  88. v-if="isPayModel"
  89. :payModelData="payModelData"
  90. :modelType="modelType"
  91. @paymentConfirm="hanldPaymentConfirm"
  92. />
  93. <!-- 分享弹窗 -->
  94. <share-alert :orderId="orderId"
  95. :shareType="isShareType"
  96. v-if="isShareModal"
  97. @shareConfirm="onShareAppMessage">
  98. </share-alert>
  99. <!-- 促销活动弹窗 -->
  100. <activi-popup :Promotion="handlerPros" :popupShow="popupShow"></activi-popup>
  101. <!-- 再来一单 -->
  102. <view class="aganBj" v-show="showAgan">
  103. <view class="alertAgan">
  104. <text class="title">{{ promptitle }}</text>
  105. <view class="goods">
  106. <view class="list" v-for="(item, index) in failList" :key="index">
  107. <image class="image-left" :src="item.image"></image>
  108. <view class="name-right">{{ item.name }}</view>
  109. </view>
  110. </view>
  111. <view class="BtnAll">
  112. <view class="closebtn btn" @click="closeBtn">取消</view>
  113. <view class="cancel btn" @click="cancelBtn">确定</view>
  114. </view>
  115. </view>
  116. </view>
  117. </view>
  118. </template>
  119. <script>
  120. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
  121. import orderAddress from '@/components/cm-module/orderDetails/orderAddress' //地址信息
  122. import goodsList from '@/components/cm-module/orderDetails/goodsList' //商品列表
  123. import invoiceTent from '@/components/cm-module/orderDetails/invoiceTent' //发票信息
  124. import orderInformation from '@/components/cm-module/orderDetails/orderInformation' //订单信息
  125. import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord' //支付记录
  126. import refundRecord from '@/components/cm-module/orderDetails/refundRecord' //退款记录
  127. import orderButton from './components/sellerDetaileButton' //底部按钮
  128. import shareAlert from '@/components/cm-module/modelAlert/sellerShareAlert.vue' //分享弹窗
  129. import orderModel from '@/components/cm-module/modelAlert/order-alert' //付款弹窗
  130. import activiPopup from '@/components/cm-module/orderDetails/activipopu' //促销活动弹窗
  131. export default {
  132. components: {
  133. headerBack,
  134. orderInformation,
  135. orderAddress,
  136. invoiceTent,
  137. goodsList,
  138. paymentRecord,
  139. refundRecord,
  140. orderButton,
  141. shareAlert,
  142. orderModel,
  143. activiPopup
  144. },
  145. data() {
  146. return {
  147. nvabarData: {
  148. //顶部自定义导航
  149. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  150. title: '订单详情' // 导航栏 中间的标题
  151. },
  152. state: 0,
  153. userId: '',
  154. orderId: '',
  155. clubUserId: 0,
  156. serviceProviderId: '', //协销ID
  157. shareCode: '', //分享码
  158. shareType: '', //分享登录页过来记录的状态
  159. cellPhone: '', //客服电话
  160. payStatus: 0,
  161. btnStatus: 0, //按钮组件状态
  162. isRequest: false, //是否加载完成渲染子组件
  163. isOrderShare: false,
  164. isShareModal: false,
  165. isShareType:2,
  166. isPayModel: false,
  167. modelType: 0,
  168. ableUserMoney: '', //机构余额
  169. payModelData: {},
  170. addressData: {}, //地址信息初始化
  171. information: {}, //订单信息初始化
  172. shopOrderData: {}, //商品信息初始化
  173. orderInvoice: {}, //发票信息初始化
  174. returnedPurchaseList: {}, //退款信息初始化
  175. discernReceiptList: {}, //支付信息初始化
  176. receiptAmount: 0, //支付金额
  177. returnedPurchaseFee: 0, //退款金额
  178. navbarHeight: '',
  179. rechargeGoods: false,
  180. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  181. systeminfo: this.setSysteminfo(), //获取设备信息
  182. isIphoneX: this.$store.state.isIphoneX,
  183. CustomBar: this.CustomBar, // 顶部导航栏高度
  184. popupShow: false,
  185. handlerPros: {},
  186. clauseData: {},
  187. showAgan: false,
  188. failList: [], // 再来一单可购买商品
  189. promptitle: '',
  190. aganOrderId: 0 // 再来一单商品id
  191. }
  192. },
  193. onLoad(option) {
  194. console.log(option)
  195. this.shareType = option.type
  196. this.orderId = option.orderId
  197. this.clubUserId = option.userId
  198. if (this.shareType === 'share') {
  199. this.listType = 0
  200. this.isOrderShare = true
  201. } else if (option.type === 'confim' || option.type === 'search' || option.type === 'cash') {
  202. this.listType = 0
  203. } else {
  204. this.listType = option.listType
  205. }
  206. this.getHeaderTopHeight()
  207. this.initOrderDetaileData()
  208. },
  209. filters: {
  210. NumFormat(value) {
  211. //处理金额
  212. return Number(value).toFixed(2)
  213. },
  214. TextFormat(status) {
  215. //处理金额
  216. let HtmlText,
  217. typeTextObject = {
  218. 0: '待确认',
  219. 4: '交易完成',
  220. 5: '订单完成',
  221. 6: '已关闭',
  222. 7: '交易全退',
  223. 77: '交易全退',
  224. 11: '待付款待发货',
  225. 12: '待付款部分发货',
  226. 13: '待付款已发货',
  227. 21: '部分付款待发货',
  228. 22: '部分付款部分发货',
  229. 23: '部分付款已发货',
  230. 31: '已付款待发货',
  231. 32: '已付款部分发货',
  232. 33: '已付款已发货',
  233. 111: '待付款待发货'
  234. }
  235. Object.keys(typeTextObject).forEach(key => {
  236. if (key == status) {
  237. HtmlText = typeTextObject[key]
  238. }
  239. })
  240. return HtmlText
  241. }
  242. },
  243. methods: {
  244. openclauseConten(id) {
  245. this.$api.navigateTo(`/pages/service/sellconten?clauseId=${id}`)
  246. },
  247. initOrderDetaileData() {
  248. //初始化页面数据@参数:订单ID
  249. this.OrderService.QueryOrderDetails({
  250. orderId: this.orderId,
  251. userId: this.clubUserId
  252. })
  253. .then(response => {
  254. let data = response.data
  255. this.isRequest = true
  256. this.userId = data.order.userId
  257. this.shareCode = data.shareCode
  258. this.addressData = data.userInfo
  259. this.information = data.order
  260. this.rechargeGoods = data.order.rechargeGoods
  261. this.btnStatus = data.order.status
  262. this.payStatus = data.order.payStatus
  263. this.shopOrderData = data.shopOrderList
  264. this.orderInvoice = data.orderInvoice
  265. this.returnedPurchaseList = data.returnedPurchaseList
  266. this.discernReceiptList = data.discernReceiptList
  267. this.receiptAmount = data.order.receiptAmount
  268. this.returnedPurchaseFee = data.order.returnedPurchaseFee
  269. this.ableUserMoney = data.ableUserMoney
  270. this.clauseData = data.clause
  271. if (this.clauseData && this.clauseData.name.length > 10) {
  272. this.clauseData.name = this.clauseData.name.substr(0, 10) + '...'
  273. }
  274. })
  275. .catch(error => {
  276. this.$util.modal('提示', '订单查询失败,请稍后重试~', '确定', '', false, () => {
  277. this.$api.switchTabTo('/pages/seller/index/index')
  278. })
  279. })
  280. },
  281. handButtonConfirm(data) {
  282. //监听点击时间的按钮类型并执行...
  283. this.handShowAlert(data)
  284. },
  285. handShowAlert(data) {
  286. //判断点击的按钮类型并执行...
  287. switch (data.type) {
  288. case 'query':
  289. this.isModalLayer = true
  290. this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + data.orderId)
  291. break
  292. case 'delete':
  293. this.handOrderDetele()
  294. break
  295. case 'cancel':
  296. this.handCenceConfirm()
  297. break
  298. case 'confirm':
  299. this.handOrderConfirm(data)
  300. break
  301. case 'balance':
  302. this.getOrderPaymentValidation(data)
  303. break
  304. case 'again':
  305. this.handOrderAgain(data.orderId)
  306. break
  307. }
  308. },
  309. handOrderAgain(orderId) {
  310. this.aganOrderId = orderId
  311. this.SellerService.SellerCreateOrderAgain({
  312. confirmFlag: 0,
  313. orderId: this.aganOrderId,
  314. serviceProviderId: this.serviceProviderId
  315. })
  316. .then(res => {
  317. if (res.code == 0) {
  318. this.$api.setStorage('orderUserInfo', {
  319. clubId: res.data.clubId,
  320. againBuyProductIds: res.data.productIds,
  321. userId: res.data.userId
  322. })
  323. this.$api.navigateTo('/pages/seller/cart/cart')
  324. }
  325. })
  326. .catch(error => {
  327. if (error.code == -3) {
  328. this.showAgan = true
  329. this.promptitle = error.msg
  330. this.failList = error.data
  331. } else if (error.code == -2) {
  332. this.$util.modal('', error.msg, '确定', '', false, () => {})
  333. } else {
  334. this.$util.msg(error.msg, 2000)
  335. }
  336. })
  337. },
  338. closeBtn() {
  339. //
  340. this.showAgan = false
  341. },
  342. cancelBtn() {
  343. // 再来一单弹窗
  344. this.SellerService.SellerCreateOrderAgain({
  345. serviceProviderId: this.serviceProviderId,
  346. orderId: this.aganOrderId,
  347. confirmFlag: 1
  348. }).then(res => {
  349. if (res.code == 0) {
  350. this.$api.navigateTo('/pages/seller/cart/cart')
  351. this.showAgan = false
  352. }
  353. })
  354. },
  355. handOrderConfirm(data) {
  356. //确认订单
  357. this.$util.modal('提示', '确认此订单?', '确定', '取消', true, () => {
  358. this.OrderService.AffirmOrder({ orderId: this.orderId })
  359. .then(response => {
  360. this.$util.msg(response.msg, 2000, true, 'success')
  361. this.initOrderDetaileData()
  362. })
  363. .catch(error => {
  364. this.$util.msg(error.msg, 2000)
  365. })
  366. })
  367. },
  368. hanldPaymentConfirm(data) {
  369. //监听余额抵扣按钮
  370. switch (data.type) {
  371. case 3:
  372. this.OrderService.OrderBalanceDeduction({ orderId: this.orderId })
  373. .then(response => {
  374. this.$util.msg('余额抵扣成功', 2000)
  375. this.initOrderDetaileData()
  376. })
  377. .catch(error => {
  378. this.$util.msg(error.msg, 2000)
  379. })
  380. break
  381. }
  382. },
  383. getOrderPaymentValidation(data) {
  384. //监听根据付款状态做操作
  385. this.OrderService.OrderPaymentValidation({ orderId: data.orderId })
  386. .then(response => {
  387. let data = this.payModelData = response.data
  388. if(data.balanceFlag == 0){// 0可以走余额抵扣,1不能走余额抵扣
  389. if (data.code == -1) {
  390. this.$util.modal('', '订单已申请全部退款,无需再付款!', '确定', '', false, () => {})
  391. } else {
  392. this.isPayModel = true
  393. this.modelType = 3
  394. }
  395. }else{
  396. this.$util.modal('', '该订单已走线上支付流程,不能进行余额抵扣。', '确定', '', false, () => {})
  397. }
  398. })
  399. .catch(error => {
  400. this.$util.msg(error.msg, 2000)
  401. })
  402. },
  403. handOrderDetele() {
  404. //删除订单
  405. this.$util.modal('提示', '确认删除该订单吗?', '确定', '取消', true, () => {
  406. this.OrderService.DeleteOrder({ orderId: this.orderId })
  407. .then(response => {
  408. this.$util.msg(response.msg, 2000, true, 'success')
  409. setTimeout(() => {
  410. if (this.shareType === 'share') {
  411. this.$api.navigateTo('/pages/seller/index/index')
  412. } else {
  413. this.$api.navigateTo(
  414. `/pages/seller/order/order-list?type=detele&listType=${this.listType}`
  415. )
  416. }
  417. }, 500)
  418. })
  419. .catch(error => {
  420. this.$util.msg(error.msg, 2000)
  421. })
  422. })
  423. },
  424. handCenceConfirm() {
  425. //取消订单
  426. this.$util.modal('提示', '确认取消该订单吗?', '确定', '取消', true, () => {
  427. this.OrderService.CancelOrder({ orderId: this.orderId })
  428. .then(response => {
  429. this.$util.msg(response.msg, 2000, true, 'success')
  430. this.initOrderDetaileData()
  431. })
  432. .catch(error => {
  433. this.$util.msg(error.msg, 2000)
  434. })
  435. })
  436. },
  437. hanldePopupFn(data) {
  438. //监听活动内容
  439. this.popupShow = true
  440. this.handlerPros = data
  441. },
  442. onShareAppMessage(res) {
  443. //分享转发
  444. this.isShareModal = false
  445. if (res.from === 'button') {
  446. // 来自页面内转发按钮
  447. }
  448. return {
  449. title: '您有新的订单,请点击查看~',
  450. path: `/pages/user/order/order-sharelogin?orderId=${this.orderId}&userId=${
  451. this.userId
  452. }&serviceProviderId=${this.serviceProviderId}`,
  453. imageUrl: 'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  454. }
  455. },
  456. getHeaderTopHeight() {
  457. let statusBarHeight = this.systeminfo.statusBarHeight // 状态栏高度
  458. let headerPosi = this.headerBtnPosi
  459. let btnPosi = {
  460. // 胶囊实际位置,坐标信息不是左上角原点
  461. height: headerPosi.height,
  462. width: headerPosi.width,
  463. // 胶囊top - 状态栏高度
  464. top: headerPosi.top - statusBarHeight,
  465. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  466. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  467. // 屏幕宽度 - 胶囊right
  468. right: this.systeminfo.screenWidth - headerPosi.right
  469. }
  470. this.navbarHeight = headerPosi.bottom + btnPosi.bottom // 原胶囊bottom + 现胶囊bottom
  471. },
  472. setHeaderBtnPosi() {
  473. // 获得胶囊按钮位置信息
  474. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  475. return headerBtnPosi
  476. },
  477. setSysteminfo() {
  478. let systeminfo
  479. uni.getSystemInfo({
  480. // 获取设备信息
  481. success: res => {
  482. systeminfo = res
  483. }
  484. })
  485. return systeminfo
  486. }
  487. },
  488. onShow() {
  489. this.$api.getStorage().then(resolve => {
  490. this.serviceProviderId = resolve.serviceProviderId ? resolve.serviceProviderId : 0
  491. })
  492. }
  493. }
  494. </script>
  495. <style lang="scss">
  496. page {
  497. height: auto;
  498. background: #f7f7f7;
  499. }
  500. .btn-hover {
  501. background: #ffffff;
  502. }
  503. .animation {
  504. /* transition: transform 0.3s ease;*/
  505. transition-property: transform;
  506. transition-duration: 0.3s;
  507. transition-timing-function: ease;
  508. }
  509. .invoice-balance {
  510. width: 702rpx;
  511. height: auto;
  512. padding: 0 24rpx;
  513. background: #ffffff;
  514. float: left;
  515. margin-top: 24rpx;
  516. margin-bottom: 24rpx;
  517. .balabce-t {
  518. width: 100%;
  519. height: 86rpx;
  520. line-height: 86rpx;
  521. font-size: $font-size-28;
  522. color: $text-color;
  523. float: left;
  524. .balabce-t-le {
  525. float: left;
  526. font-weight: bold;
  527. }
  528. .balabce-t-ri {
  529. float: right;
  530. display: flex;
  531. align-items: center;
  532. .money {
  533. display: flex;
  534. float: left;
  535. }
  536. .checkbox-box {
  537. display: flex;
  538. width: 60rpx;
  539. float: left;
  540. height: 100%;
  541. font-size: $font-size-24;
  542. .checkbox {
  543. width: 40rpx;
  544. text-align: right;
  545. box-sizing: border-box;
  546. text-align: center;
  547. text-decoration: none;
  548. border-radius: 0;
  549. -webkit-tap-highlight-color: transparent;
  550. overflow: hidden;
  551. }
  552. }
  553. }
  554. }
  555. .balabce-b {
  556. width: 100%;
  557. float: left;
  558. overflow: hidden;
  559. .balabce-b-text {
  560. width: 100%;
  561. line-height: 58rpx;
  562. font-size: $font-size-24;
  563. color: #ff2a2a;
  564. text-align: right;
  565. float: right;
  566. }
  567. &.balabce-b--hide {
  568. padding: 0 0;
  569. height: 0px;
  570. line-height: 0px;
  571. }
  572. }
  573. }
  574. .clause {
  575. float: right;
  576. font-size: 24rpx;
  577. color: #999999;
  578. margin-top: 60rpx;
  579. margin-right: 24rpx;
  580. &.noclick {
  581. pointer-events: none;
  582. }
  583. .text {
  584. color: #1890f9;
  585. &.color-bg {
  586. color: #333333;
  587. }
  588. }
  589. }
  590. .status-text {
  591. overflow: hidden;
  592. padding: 24rpx;
  593. background: #fff;
  594. font-size: $font-size-26;
  595. .view-type {
  596. float: left;
  597. color: #ff2a2a;
  598. }
  599. .status-visible{
  600. float: left;
  601. color: #999999;
  602. margin-left: 20rpx;
  603. }
  604. .bage-buss {
  605. display: inline-block;
  606. width: 72rpx;
  607. height: 32rpx;
  608. background: radial-gradient(circle, rgba(255, 39, 180, 1) 0%, rgba(193, 77, 245, 1) 100%);
  609. border-radius: 6rpx;
  610. line-height: 32rpx;
  611. text-align: center;
  612. color: #ffffff;
  613. float: right;
  614. font-size: $font-size-24;
  615. }
  616. .bage-auto {
  617. display: inline-block;
  618. width: 72rpx;
  619. height: 32rpx;
  620. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  621. border-radius: 6rpx;
  622. line-height: 32rpx;
  623. text-align: center;
  624. color: #ffffff;
  625. float: right;
  626. font-size: $font-size-24;
  627. }
  628. .bage-name{
  629. line-height: 32rpx;
  630. display: inline-block;
  631. color: #999999;
  632. float: right;
  633. font-size: $font-size-24;
  634. }
  635. .Rebate {
  636. display: inline-block;
  637. width: 72rpx;
  638. height: 32rpx;
  639. background: #ff7a51;
  640. border-radius: 6rpx;
  641. line-height: 32rpx;
  642. text-align: center;
  643. color: #ffffff;
  644. float: right;
  645. font-size: $font-size-24;
  646. margin-left: 20rpx;
  647. }
  648. }
  649. .aganBj {
  650. position: fixed;
  651. left: 0;
  652. top: 0;
  653. bottom: 0;
  654. width: 100%;
  655. height: 100%;
  656. background-color: rgba(0, 0, 0, 0.5);
  657. z-index: 999999;
  658. .alertAgan {
  659. position: absolute;
  660. top: 50%;
  661. left: 50%;
  662. transform: translate(-50%, -50%);
  663. width: 580rpx;
  664. background-color: #fff;
  665. border-radius: 16rpx;
  666. .title {
  667. font-size: 30rpx;
  668. color: #333333;
  669. line-height: 42rpx;
  670. padding: 30rpx;
  671. display: block;
  672. }
  673. .goods {
  674. padding: 0 30rpx;
  675. .list {
  676. padding: 10px 0;
  677. border-bottom: 1rpx solid #e1e1e1;
  678. margin: 10rpx 0;
  679. .image-left {
  680. width: 86rpx;
  681. height: 86rpx;
  682. border: 2rpx solid #e1e1e1;
  683. border-radius: 6rpx;
  684. display: inline-block;
  685. vertical-align: middle;
  686. }
  687. .name-right {
  688. display: inline-block;
  689. width: 416rpx;
  690. margin-left: 15rpx;
  691. font-size: 26rpx;
  692. color: #666666;
  693. vertical-align: middle;
  694. word-break: break-all;
  695. overflow: hidden;
  696. text-overflow: ellipsis;
  697. display: -webkit-inline-box;
  698. -webkit-line-clamp: 2;
  699. -webkit-box-orient: vertical;
  700. }
  701. }
  702. }
  703. .BtnAll {
  704. margin-top: 30rpx;
  705. .btn {
  706. display: inline-block;
  707. width: 290rpx;
  708. height: 90rpx;
  709. line-height: 90rpx;
  710. text-align: center;
  711. &.closebtn {
  712. border-radius: 0px 0px 0px 10px;
  713. color: #999999;
  714. background: #efefef;
  715. }
  716. &.cancel {
  717. border-radius: 0px 0px 8px 0px;
  718. background: $btn-confirm;
  719. color: #fff;
  720. }
  721. }
  722. }
  723. }
  724. }
  725. </style>