order-club-details.vue 19 KB

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