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"> {{ information.orderSeen == 2 ? '订单对机构不可见' : '订单对机构可见' }} </view>
  14. <view class="Rebate " v-if="information.rebateFlag == 1">返佣</view>
  15. <text class="bage-buss btn" v-if="information.orderSubmitType == 3 || information.orderSubmitType == 4"
  16. >协销</text
  17. >
  18. <text
  19. class="bage-auto btn"
  20. v-if="
  21. information.orderSubmitType == 0 ||
  22. information.orderSubmitType == 1 ||
  23. information.orderSubmitType == 2
  24. "
  25. >自主</text
  26. >
  27. </view>
  28. <!-- 地址选择 -->
  29. <order-address
  30. ref="orderAddress"
  31. v-if="isRequest && !rechargeGoods"
  32. :addressData="addressData"
  33. ></order-address>
  34. <!-- 商品 -->
  35. <goods-list
  36. ref="goods"
  37. v-if="isRequest"
  38. :shopOrderData="shopOrderData"
  39. :information="information"
  40. @popupClick="hanldePopupFn"
  41. ></goods-list>
  42. <!-- 订单信息 -->
  43. <order-information ref="information" v-if="isRequest" :information="information"></order-information>
  44. <!-- 发票信息 -->
  45. <invoice-tent ref="invoice" v-if="isRequest" :orderInvoice="orderInvoice"></invoice-tent>
  46. <!-- 支付记录 -->
  47. <payment-record
  48. ref="payment"
  49. v-if="isRequest"
  50. :discernReceiptList="discernReceiptList"
  51. :receiptAmount="receiptAmount"
  52. ></payment-record>
  53. <!-- 退款记录 -->
  54. <refund-record
  55. ref="refund"
  56. v-if="isRequest"
  57. :returnedPurchaseList="returnedPurchaseList"
  58. :returnedPurchaseFee="returnedPurchaseFee"
  59. ></refund-record>
  60. <view
  61. class="clause"
  62. v-if="information.secondHandOrderFlag != 1"
  63. @click="openclauseConten(clauseData.id)"
  64. :class="clauseData.name == '无条款' ? 'noclick' : ''"
  65. >
  66. 售后条款:<label class="text" :class="clauseData.name == '无条款' ? 'color-bg' : ''">{{
  67. clauseData.name
  68. }}</label>
  69. </view>
  70. <!-- 底部button -->
  71. <order-button
  72. ref="orderButton"
  73. v-if="isRequest"
  74. :status="btnStatus"
  75. :order="information"
  76. :rechargeGoods="rechargeGoods"
  77. :ableUserMoney="ableUserMoney"
  78. :shareCode="shareCode"
  79. :serviceProviderId="serviceProviderId"
  80. :secondHandOrderFlag="information.secondHandOrderFlag"
  81. @buttonConfirm="handButtonConfirm"
  82. >
  83. </order-button>
  84. </view>
  85. <!-- 付款弹窗 -->
  86. <order-model
  87. v-if="isPayModel"
  88. :payModelData="payModelData"
  89. :modelType="modelType"
  90. @paymentConfirm="hanldPaymentConfirm"
  91. />
  92. <!-- 分享弹窗 -->
  93. <share-alert :orderId="orderId"
  94. :shareType="isShareType"
  95. v-if="isShareModal"
  96. @shareConfirm="onShareAppMessage">
  97. </share-alert>
  98. <!-- 促销活动弹窗 -->
  99. <activi-popup :Promotion="handlerPros" :popupShow="popupShow"></activi-popup>
  100. <!-- 再来一单 -->
  101. <view class="aganBj" v-show="showAgan">
  102. <view class="alertAgan">
  103. <text class="title">{{ promptitle }}</text>
  104. <view class="goods">
  105. <view class="list" v-for="(item, index) in failList" :key="index">
  106. <image class="image-left" :src="item.image"></image>
  107. <view class="name-right">{{ item.name }}</view>
  108. </view>
  109. </view>
  110. <view class="BtnAll">
  111. <view class="closebtn btn" @click="closeBtn">取消</view>
  112. <view class="cancel btn" @click="cancelBtn">确定</view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. </template>
  118. <script>
  119. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
  120. import orderAddress from '@/components/cm-module/orderDetails/orderAddress' //地址信息
  121. import goodsList from '@/components/cm-module/orderDetails/goodsList' //商品列表
  122. import invoiceTent from '@/components/cm-module/orderDetails/invoiceTent' //发票信息
  123. import orderInformation from '@/components/cm-module/orderDetails/orderInformation' //订单信息
  124. import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord' //支付记录
  125. import refundRecord from '@/components/cm-module/orderDetails/refundRecord' //退款记录
  126. import orderButton from './components/sellerDetaileButton' //底部按钮
  127. import shareAlert from '@/components/cm-module/modelAlert/sellerShareAlert.vue' //分享弹窗
  128. import orderModel from '@/components/cm-module/modelAlert/order-alert' //付款弹窗
  129. import activiPopup from '@/components/cm-module/orderDetails/activipopu' //促销活动弹窗
  130. export default {
  131. components: {
  132. headerBack,
  133. orderInformation,
  134. orderAddress,
  135. invoiceTent,
  136. goodsList,
  137. paymentRecord,
  138. refundRecord,
  139. orderButton,
  140. shareAlert,
  141. orderModel,
  142. activiPopup
  143. },
  144. data() {
  145. return {
  146. nvabarData: {
  147. //顶部自定义导航
  148. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  149. title: '订单详情' // 导航栏 中间的标题
  150. },
  151. state: 0,
  152. userId: '',
  153. orderId: '',
  154. clubUserId: 0,
  155. serviceProviderId: '', //协销ID
  156. shareCode: '', //分享码
  157. shareType: '', //分享登录页过来记录的状态
  158. cellPhone: '', //客服电话
  159. payStatus: 0,
  160. btnStatus: 0, //按钮组件状态
  161. isRequest: false, //是否加载完成渲染子组件
  162. isOrderShare: false,
  163. isShareModal: false,
  164. isShareType:2,
  165. isPayModel: false,
  166. modelType: 0,
  167. ableUserMoney: '', //机构余额
  168. payModelData: {},
  169. addressData: {}, //地址信息初始化
  170. information: {}, //订单信息初始化
  171. shopOrderData: {}, //商品信息初始化
  172. orderInvoice: {}, //发票信息初始化
  173. returnedPurchaseList: {}, //退款信息初始化
  174. discernReceiptList: {}, //支付信息初始化
  175. receiptAmount: 0, //支付金额
  176. returnedPurchaseFee: 0, //退款金额
  177. navbarHeight: '',
  178. rechargeGoods: false,
  179. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  180. systeminfo: this.setSysteminfo(), //获取设备信息
  181. isIphoneX: this.$store.state.isIphoneX,
  182. CustomBar: this.CustomBar, // 顶部导航栏高度
  183. popupShow: false,
  184. handlerPros: {},
  185. clauseData: {},
  186. showAgan: false,
  187. failList: [], // 再来一单可购买商品
  188. promptitle: '',
  189. aganOrderId: 0 // 再来一单商品id
  190. }
  191. },
  192. onLoad(option) {
  193. console.log(option)
  194. this.shareType = option.type
  195. this.orderId = option.orderId
  196. this.clubUserId = option.userId
  197. if (this.shareType === 'share') {
  198. this.listType = 0
  199. this.isOrderShare = true
  200. } else if (option.type === 'confim' || option.type === 'search' || option.type === 'cash') {
  201. this.listType = 0
  202. } else {
  203. this.listType = option.listType
  204. }
  205. this.getHeaderTopHeight()
  206. this.initOrderDetaileData()
  207. },
  208. filters: {
  209. NumFormat(value) {
  210. //处理金额
  211. return Number(value).toFixed(2)
  212. },
  213. TextFormat(status) {
  214. //处理金额
  215. let HtmlText,
  216. typeTextObject = {
  217. 0: '待确认',
  218. 4: '交易完成',
  219. 5: '订单完成',
  220. 6: '已关闭',
  221. 7: '交易全退',
  222. 77: '交易全退',
  223. 11: '待付款待发货',
  224. 12: '待付款部分发货',
  225. 13: '待付款已发货',
  226. 21: '部分付款待发货',
  227. 22: '部分付款部分发货',
  228. 23: '部分付款已发货',
  229. 31: '已付款待发货',
  230. 32: '已付款部分发货',
  231. 33: '已付款已发货',
  232. 111: '待付款待发货'
  233. }
  234. Object.keys(typeTextObject).forEach(key => {
  235. if (key == status) {
  236. HtmlText = typeTextObject[key]
  237. }
  238. })
  239. return HtmlText
  240. }
  241. },
  242. methods: {
  243. openclauseConten(id) {
  244. this.$api.navigateTo(`/pages/service/sellconten?clauseId=${id}`)
  245. },
  246. initOrderDetaileData() {
  247. //初始化页面数据@参数:订单ID
  248. this.OrderService.QueryOrderDetails({
  249. orderId: this.orderId,
  250. userId: this.clubUserId
  251. })
  252. .then(response => {
  253. let data = response.data
  254. this.isRequest = true
  255. this.userId = data.order.userId
  256. this.shareCode = data.shareCode
  257. this.addressData = data.userInfo
  258. this.information = data.order
  259. this.rechargeGoods = data.order.rechargeGoods
  260. this.btnStatus = data.order.status
  261. this.payStatus = data.order.payStatus
  262. this.shopOrderData = data.shopOrderList
  263. this.orderInvoice = data.orderInvoice
  264. this.returnedPurchaseList = data.returnedPurchaseList
  265. this.discernReceiptList = data.discernReceiptList
  266. this.receiptAmount = data.order.receiptAmount
  267. this.returnedPurchaseFee = data.order.returnedPurchaseFee
  268. this.ableUserMoney = data.ableUserMoney
  269. this.clauseData = data.clause
  270. if (this.clauseData && this.clauseData.name.length > 10) {
  271. this.clauseData.name = this.clauseData.name.substr(0, 10) + '...'
  272. }
  273. })
  274. .catch(error => {
  275. this.$util.modal('提示', '订单查询失败,请稍后重试~', '确定', '', false, () => {
  276. this.$api.switchTabTo('/pages/seller/index/index')
  277. })
  278. })
  279. },
  280. handButtonConfirm(data) {
  281. //监听点击时间的按钮类型并执行...
  282. this.handShowAlert(data)
  283. },
  284. handShowAlert(data) {
  285. //判断点击的按钮类型并执行...
  286. switch (data.type) {
  287. case 'query':
  288. this.isModalLayer = true
  289. this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + data.orderId)
  290. break
  291. case 'delete':
  292. this.handOrderDetele()
  293. break
  294. case 'cancel':
  295. this.handCenceConfirm()
  296. break
  297. case 'confirm':
  298. this.handOrderConfirm(data)
  299. break
  300. case 'balance':
  301. this.getOrderPaymentValidation(data)
  302. break
  303. case 'again':
  304. this.handOrderAgain(data.orderId)
  305. break
  306. }
  307. },
  308. handOrderAgain(orderId) {
  309. this.aganOrderId = orderId
  310. this.SellerService.SellerCreateOrderAgain({
  311. confirmFlag: 0,
  312. orderId: this.aganOrderId,
  313. serviceProviderId: this.serviceProviderId
  314. })
  315. .then(res => {
  316. if (res.code == 0) {
  317. this.$api.setStorage('orderUserInfo', {
  318. clubId: res.data.clubId,
  319. againBuyProductIds: res.data.productIds,
  320. userId: res.data.userId
  321. })
  322. this.$api.navigateTo('/pages/seller/cart/cart')
  323. }
  324. })
  325. .catch(error => {
  326. if (error.code == -3) {
  327. this.showAgan = true
  328. this.promptitle = error.msg
  329. this.failList = error.data
  330. } else if (error.code == -2) {
  331. this.$util.modal('', error.msg, '确定', '', false, () => {})
  332. } else {
  333. this.$util.msg(error.msg, 2000)
  334. }
  335. })
  336. },
  337. closeBtn() {
  338. //
  339. this.showAgan = false
  340. },
  341. cancelBtn() {
  342. // 再来一单弹窗
  343. this.SellerService.SellerCreateOrderAgain({
  344. serviceProviderId: this.serviceProviderId,
  345. orderId: this.aganOrderId,
  346. confirmFlag: 1
  347. }).then(res => {
  348. if (res.code == 0) {
  349. this.$api.navigateTo('/pages/seller/cart/cart')
  350. this.showAgan = false
  351. }
  352. })
  353. },
  354. handOrderConfirm(data) {
  355. //确认订单
  356. this.$util.modal('提示', '确认此订单?', '确定', '取消', true, () => {
  357. this.OrderService.AffirmOrder({ orderId: this.orderId })
  358. .then(response => {
  359. this.$util.msg(response.msg, 2000, true, 'success')
  360. this.initOrderDetaileData()
  361. })
  362. .catch(error => {
  363. this.$util.msg(error.msg, 2000)
  364. })
  365. })
  366. },
  367. hanldPaymentConfirm(data) {
  368. //监听余额抵扣按钮
  369. switch (data.type) {
  370. case 3:
  371. this.OrderService.OrderBalanceDeduction({ orderId: this.orderId })
  372. .then(response => {
  373. this.$util.msg('余额抵扣成功', 2000)
  374. this.initOrderDetaileData()
  375. })
  376. .catch(error => {
  377. this.$util.msg(error.msg, 2000)
  378. })
  379. break
  380. }
  381. },
  382. getOrderPaymentValidation(data) {
  383. //监听根据付款状态做操作
  384. this.OrderService.OrderPaymentValidation({ orderId: data.orderId })
  385. .then(response => {
  386. let data = this.payModelData = response.data
  387. if(data.balanceFlag == 0){// 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>