order-details.vue 19 KB

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