order-details.vue 20 KB

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