order-details.vue 20 KB

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