order-team-details.vue 20 KB

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