order-details.vue 21 KB

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