order-details.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671
  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. <text class="bage-buss" v-if="information.orderSubmitType == 3 || information.orderSubmitType == 4"
  14. >协销</text
  15. >
  16. <text
  17. class="bage-auto"
  18. v-if="
  19. information.orderSubmitType == 0 ||
  20. information.orderSubmitType == 1 ||
  21. information.orderSubmitType == 2
  22. "
  23. >自主</text
  24. >
  25. </view>
  26. <!-- 地址选择 -->
  27. <order-address
  28. ref="orderAddress"
  29. v-if="isRequest && !rechargeGoods"
  30. :addressData="addressData"
  31. ></order-address>
  32. <!-- 特殊商品退货须知 -->
  33. <view class="return-instructions" v-if="returnGoodsStutas" v-html="helpContent"></view>
  34. <!-- 商品 -->
  35. <goods-list
  36. ref="goods"
  37. v-if="isRequest"
  38. :shopOrderData="shopOrderData"
  39. :information="information"
  40. @popupClick="hanldePopupFn"
  41. ></goods-list>
  42. <!-- 订单信息 -->
  43. <order-information ref="information" v-if="isRequest" :information="information"></order-information>
  44. <!-- 发票信息 -->
  45. <invoice-tent ref="invoice" v-if="isRequest" :orderInvoice="orderInvoice"></invoice-tent>
  46. <!-- 支付记录 -->
  47. <payment-record
  48. ref="payment"
  49. v-if="isRequest"
  50. :discernReceiptList="discernReceiptList"
  51. :receiptAmount="receiptAmount"
  52. ></payment-record>
  53. <!-- 退款记录 -->
  54. <refund-record
  55. ref="refund"
  56. v-if="isRequest"
  57. :returnedPurchaseList="returnedPurchaseList"
  58. :returnedPurchaseFee="returnedPurchaseFee"
  59. ></refund-record>
  60. <view
  61. class="clause"
  62. v-if="information.secondHandOrderFlag != 1 && !orderSubmitType"
  63. @tap.stop="openclauseConten(clauseData.id)"
  64. :class="clauseData.name == '无条款' ? 'noclick' : ''"
  65. >
  66. 售后条款:<label class="text" :class="clauseData.name == '无条款' ? 'color-bg' : ''">{{
  67. clauseData.name
  68. }}</label>
  69. </view>
  70. <!-- 底部button -->
  71. <order-button
  72. ref="orderButton"
  73. v-if="isRequest"
  74. :status="btnStatus"
  75. :shareCode="shareCode"
  76. :order="orderInfo"
  77. @buttonConfirm="handButtonConfirm"
  78. >
  79. </order-button>
  80. </view>
  81. <!-- 付款弹窗 -->
  82. <order-model
  83. v-if="isPayModel"
  84. :payModelData="payModelData"
  85. :modelType="modelType"
  86. @cancelConfirm="hanldCancelConfirm"
  87. @paymentConfirm="hanldPaymentConfirm"
  88. />
  89. <!-- 分享弹窗 -->
  90. <share-alert :orderId="orderId" v-if="isShareModal" @btnConfirm="onShareAppMessage"> </share-alert>
  91. <!-- 促销活动弹窗 -->
  92. <activi-popup :Promotion="handlerPros" :popupShow="popupShow"></activi-popup>
  93. <!-- 采美豆提示弹窗 -->
  94. <activityBean
  95. v-if="isActivityBean"
  96. :show="isActivityBean"
  97. :beansType="beansType"
  98. :beanNumber="beanNumber"
  99. @cancel="handleBeanlClick"
  100. ></activityBean>
  101. <!-- 提示弹窗 -->
  102. <tui-modal
  103. :show="modal"
  104. @click="handleClick"
  105. :content="contentModalText"
  106. :button="modalButton"
  107. color="#333"
  108. :size="32"
  109. shape="circle"
  110. :maskClosable="false"
  111. >
  112. </tui-modal>
  113. </view>
  114. </template>
  115. <script>
  116. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
  117. import orderAddress from '@/components/cm-module/orderDetails/orderAddress' //地址信息
  118. import goodsList from '@/components/cm-module/orderDetails/goodsList' //商品列表
  119. import invoiceTent from '@/components/cm-module/orderDetails/invoiceTent' //发票信息
  120. import orderInformation from '@/components/cm-module/orderDetails/orderInformation' //订单信息
  121. import paymentRecord from '@/components/cm-module/orderDetails/paymentRecord' //支付记录
  122. import refundRecord from '@/components/cm-module/orderDetails/refundRecord' //退款记录
  123. import orderButton from '@/components/cm-module/orderDetails/orderButton' //底部按钮
  124. import shareAlert from '@/components/cm-module/modelAlert/shareAlert.vue' //分享弹窗
  125. import orderModel from '@/components/cm-module/modelAlert/order-alert' //付款弹窗
  126. import activiPopup from '@/components/cm-module/orderDetails/activipopu' //促销活动弹窗
  127. import activityBean from '@/components/cm-module/activity/activityBean.vue'
  128. export default {
  129. components: {
  130. headerBack,
  131. orderInformation,
  132. orderAddress,
  133. invoiceTent,
  134. goodsList,
  135. paymentRecord,
  136. refundRecord,
  137. orderButton,
  138. shareAlert,
  139. orderModel,
  140. activiPopup,
  141. activityBean
  142. },
  143. data() {
  144. return {
  145. state: 0,
  146. userId: '',
  147. orderId: '',
  148. shareCode: '', //分享码
  149. shareType: '', //分享登录页过来记录的状态
  150. cellPhone: '', //客服电话
  151. payStatus: 0,
  152. btnStatus: 0, //按钮组件状态
  153. onlinePayFlag: '',
  154. isRequest: false, //是否加载完成渲染子组件
  155. isOrderShare: false,
  156. isShareModal: false,
  157. isPayModel: false,
  158. modelType: 0,
  159. orderInfo: {},
  160. alertOrderInfo: {},
  161. payModelData: {},
  162. addressData: {}, //地址信息初始化
  163. information: {}, //订单信息初始化
  164. shopOrderData: {}, //商品信息初始化
  165. orderInvoice: {}, //发票信息初始化
  166. returnedPurchaseList: {}, //退款信息初始化
  167. discernReceiptList: {}, //支付信息初始化
  168. receiptAmount: 0, //支付金额
  169. returnedPurchaseFee: 0, //退款金额
  170. rechargeGoods: false,
  171. navbarHeight: '',
  172. headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
  173. systeminfo: this.setSysteminfo(), //获取设备信息
  174. isIphoneX: this.$store.state.isIphoneX,
  175. CustomBar: this.CustomBar, // 顶部导航栏高度
  176. popupShow: false,
  177. handlerPros: {},
  178. nvabarData: {
  179. //顶部自定义导航
  180. showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示
  181. title: '订单详情' // 导航栏 中间的标题
  182. },
  183. clauseData: {},
  184. orderSubmitType: false, //自主订单
  185. beansType: 1,
  186. beanNumber: 0,
  187. isActivityBean: false,
  188. modal:false,
  189. contentModalText: '订单查询失败,请稍候重试~', //操作文字提示语句
  190. modalButton: [
  191. {
  192. text: '确定',
  193. customStyle: {
  194. color: '#fff',
  195. bgColor: 'linear-gradient(90deg, #F28F31 0%, #F3B574 100%)'
  196. },
  197. plain: false
  198. }
  199. ],
  200. returnGoodsStutas: false,
  201. helpContent: '',
  202. }
  203. },
  204. onLoad(option) {
  205. console.log(option)
  206. this.shareType = option.type
  207. this.orderId = option.orderId
  208. if (this.shareType === 'share') {
  209. this.state = 0
  210. this.isOrderShare = true
  211. } else if (option.type === 'confim' || option.type === 'search') {
  212. this.state = 0
  213. } else {
  214. this.state = option.state
  215. }
  216. this.getHeaderTopHeight()
  217. this.initOrderDetaileData()
  218. },
  219. filters: {
  220. TextFormat(status) {
  221. //处理金额
  222. let HtmlText,
  223. typeTextObject = {
  224. 0: '待确认',
  225. 4: '交易完成',
  226. 5: '订单完成',
  227. 6: '已关闭',
  228. 7: '交易全退',
  229. 77: '交易全退',
  230. 11: '待付款待发货',
  231. 12: '待付款部分发货',
  232. 13: '待付款已发货',
  233. 21: '部分付款待发货',
  234. 22: '部分付款部分发货',
  235. 23: '部分付款已发货',
  236. 31: '已付款待发货',
  237. 32: '已付款部分发货',
  238. 33: '已付款已发货',
  239. 111: '待付款待发货'
  240. }
  241. Object.keys(typeTextObject).forEach(key => {
  242. if (key == status) {
  243. HtmlText = typeTextObject[key]
  244. }
  245. })
  246. return HtmlText
  247. }
  248. },
  249. methods: {
  250. openclauseConten(id) {
  251. this.$api.navigateTo(`/pages/service/sellconten?clauseId=${id}`)
  252. },
  253. async initOrderDetaileData() {
  254. const userInfo = await this.$api.getStorage()
  255. this.userId = userInfo.userId ? userInfo.userId : 0
  256. //初始化页面数据@参数:订单ID
  257. this.OrderService.QueryOrderDetails({ orderId: this.orderId, userId: this.userId })
  258. .then(response => {
  259. let data = response.data
  260. this.isRequest = true
  261. this.orderInfo = data.order
  262. this.shareCode = data.shareCode
  263. this.addressData = data.userInfo
  264. this.information = data.order
  265. this.rechargeGoods = data.order.rechargeGoods
  266. this.btnStatus = data.order.status
  267. this.payStatus = data.order.payStatus
  268. this.payableAmount = data.order.payableAmount
  269. this.shopOrderData = data.shopOrderList
  270. this.orderInvoice = data.orderInvoice
  271. this.onlinePayFlag = data.order.onlinePayFlag
  272. this.returnedPurchaseList = data.returnedPurchaseList
  273. this.discernReceiptList = data.discernReceiptList
  274. this.receiptAmount = data.order.receiptAmount
  275. this.returnedPurchaseFee = data.order.returnedPurchaseFee
  276. this.clauseData = data.clause
  277. // 特殊商品退货须知
  278. this.returnGoodsStutas = data.returnGoodsStutas && data.returnGoodsStutas === 2 // 1:可以 2:不可以
  279. this.helpContent = data.helpContent
  280. if (
  281. this.information.orderSubmitType == 0 ||
  282. this.information.orderSubmitType == 1 ||
  283. this.information.orderSubmitType == 2
  284. ) {
  285. this.orderSubmitType = true
  286. } else {
  287. this.orderSubmitType = false
  288. }
  289. })
  290. .catch(error => {
  291. this.modal = true
  292. })
  293. },
  294. handleClick(){
  295. this.modal = false
  296. this.$api.switchTabTo('/pages/tabBar/home/index')
  297. },
  298. handButtonConfirm(data) {
  299. //监听点击时间的按钮类型并执行...
  300. this.handShowAlert(data)
  301. },
  302. handShowAlert(data) {
  303. //判断点击的按钮类型并执行...
  304. switch (data.type) {
  305. case 'delete':
  306. this.handOrderDetele()
  307. break
  308. case 'cancel':
  309. this.handCenceConfirm()
  310. break
  311. case 'query':
  312. this.$api.navigateTo('/pages/user/order/order-logistics?orderId=' + this.orderId)
  313. break
  314. case 'confirm':
  315. this.handOrderConfirm()
  316. break
  317. case 'pay':
  318. this.getOrderPaymentValidation(data)
  319. break
  320. case 'confirmation':
  321. this.handOrderConfirmation()
  322. break
  323. case 'payment':
  324. this.hanldConfirmFn(data.orderId)
  325. break
  326. }
  327. },
  328. getOrderPaymentValidation(data) {
  329. //监听根据付款状态做操作
  330. this.OrderService.OrderPaymentValidation({ orderId: data.orderId }).then(response => {
  331. let data = response.data
  332. this.payModelData = data
  333. if(data.balanceFlag == 1){// 0可以走余额抵扣,1不能走余额抵扣
  334. this.$api.navigateTo(`/pages/user/order/order-pay-list?orderId=${data.orderId}`)
  335. }else{
  336. switch (data.code) {
  337. case 1:
  338. this.isPayModel = true
  339. this.modelType = 1
  340. break
  341. case 2:
  342. this.isPayModel = true
  343. this.modelType = 2
  344. break
  345. case -1:
  346. this.$util.modal('', '订单已申请全部退款,无需再付款!', '确定', '', false, () => {})
  347. break
  348. default:
  349. if (data.onlinePayFlag == 1) {// 只能线下
  350. this.$api.navigateTo(`/pages/user/pay/card-under?orderId=${data.orderId}`)
  351. } else {
  352. this.$api.navigateTo(`/pages/user/order/order-pay-list?orderId=${data.orderId}`)
  353. }
  354. }
  355. }
  356. })
  357. .catch(error => {
  358. this.$util.msg(error.msg, 2000)
  359. })
  360. },
  361. hanldPaymentConfirm(data) {
  362. //余额抵扣跳转
  363. this.OrderService.OrderBalanceDeduction({ orderId: data.order.orderId })
  364. .then(response => {
  365. if (data.type === 2) {
  366. let _data = { orderId: data.order.orderId }
  367. this.$api.navigateTo(
  368. `/pages/user/order/success?type=deduction&data=${JSON.stringify({ data: _data })}`
  369. )
  370. } else {
  371. this.$api.navigateTo(`/pages/user/pay/card-under?orderId=${data.order.orderId}`)
  372. }
  373. })
  374. .catch(error => {
  375. this.$util.msg(error.msg, 2000)
  376. })
  377. },
  378. hanldCancelConfirm(data) {
  379. //不使用余额抵扣直接跳转收银台
  380. if (data.onlinePayFlag == 1) {// 只能线下
  381. this.$api.navigateTo(`/pages/user/pay/card-under?orderId=${data.orderId}`)
  382. } else {
  383. this.$api.navigateTo(`/pages/user/order/order-pay-list?orderId=${data.orderId}`)
  384. }
  385. },
  386. hanldConfirmFn(orderId) {
  387. //确认打款供应商
  388. this.$util.modal(
  389. '提示',
  390. '确定委托采美平台打款给供应商吗?确定之前请务必确保货品完好?',
  391. '确定',
  392. '取消',
  393. true,
  394. () => {
  395. this.OrderService.confirmpayment({ orderId: orderId, userId: this.userId })
  396. .then(response => {
  397. this.$util.msg('确认成功', 2000, true, 'success')
  398. setTimeout(() => {
  399. this.getOrderDatainit(this.currentTab)
  400. }, 2000)
  401. })
  402. .catch(error => {
  403. this.$util.msg(error.msg, 2000)
  404. })
  405. }
  406. )
  407. },
  408. handOrderConfirm() {
  409. //确认收货
  410. this.$util.modal('提示', '是否确认收货', '确定', '取消', true, () => {
  411. this.OrderService.ConfirmReceipt({ orderId: this.orderId })
  412. .then(response => {
  413. this.beansType = 7
  414. this.beanNumber = 100
  415. this.isActivityBean = true
  416. })
  417. .catch(error => {
  418. this.$util.msg(error.msg, 2000)
  419. })
  420. })
  421. },
  422. handOrderConfirmation() {
  423. //确认订单
  424. this.$util.modal('提示', '确认此订单?', '确定', '取消', true, () => {
  425. this.OrderService.AffirmOrder({ orderId: this.orderId })
  426. .then(response => {
  427. this.$util.msg(response.msg, 2000, true, 'success')
  428. setTimeout(() => {
  429. this.initOrderDetaileData()
  430. }, 2000)
  431. })
  432. .catch(error => {
  433. this.$util.msg(error.msg, 2000)
  434. })
  435. })
  436. },
  437. handOrderDetele() {
  438. //删除订单
  439. this.$util.modal('提示', '确认删除该订单吗?', '确定', '取消', true, () => {
  440. this.OrderService.DeleteOrder({ orderId: this.orderId })
  441. .then(response => {
  442. this.$util.msg(response.msg, 2000, true, 'success')
  443. setTimeout(() => {
  444. if (this.shareType === 'share') {
  445. this.$api.switchTabTo('/pages/tabBar/home/index')
  446. } else {
  447. this.$api.redirectTo(`/pages/user/order/order-list?type=detele&state=${this.state}`)
  448. }
  449. }, 500)
  450. })
  451. .catch(error => {
  452. this.$util.msg(error.msg, 2000)
  453. })
  454. })
  455. },
  456. handCenceConfirm() {
  457. //取消订单
  458. this.$util.modal('提示', '确认取消该订单吗?', '确定', '取消', true, () => {
  459. this.OrderService.CancelOrder({ orderId: this.orderId , userIdentity : 0})
  460. .then(response => {
  461. this.$util.msg(response.msg, 2000, true, 'success')
  462. setTimeout(() => {
  463. this.initOrderDetaileData()
  464. }, 2000)
  465. })
  466. .catch(error => {
  467. this.$util.msg(error.msg, 2000)
  468. })
  469. })
  470. },
  471. onShareAppMessage(res) {
  472. //分享转发
  473. this.isShareModal = false
  474. if (res.from === 'button') {
  475. // 来自页面内转发按钮
  476. }
  477. return {
  478. title: '您有新的分享订单,快来查看吧~',
  479. path: `/pages/user/order/order-sharelogin?orderId=${this.orderId}&userId=${this.userId}`,
  480. imageUrl: 'https://img.caimei365.com/group1/M00/03/95/Cmis216Sk_SABnOFABZCgCzFV_g063.png'
  481. }
  482. },
  483. hanldePopupFn(data) {
  484. //监听活动内容
  485. this.popupShow = true
  486. this.handlerPros = data
  487. },
  488. getHeaderTopHeight() {
  489. let statusBarHeight = this.systeminfo.statusBarHeight // 状态栏高度
  490. let headerPosi = this.headerBtnPosi
  491. let btnPosi = {
  492. // 胶囊实际位置,坐标信息不是左上角原点
  493. height: headerPosi.height,
  494. width: headerPosi.width,
  495. // 胶囊top - 状态栏高度
  496. top: headerPosi.top - statusBarHeight,
  497. // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
  498. bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
  499. // 屏幕宽度 - 胶囊right
  500. right: this.systeminfo.screenWidth - headerPosi.right
  501. }
  502. this.navbarHeight = headerPosi.bottom + btnPosi.bottom // 原胶囊bottom + 现胶囊bottom
  503. },
  504. setHeaderBtnPosi() {
  505. // 获得胶囊按钮位置信息
  506. let headerBtnPosi = uni.getMenuButtonBoundingClientRect()
  507. return headerBtnPosi
  508. },
  509. setSysteminfo() {
  510. let systeminfo
  511. uni.getSystemInfo({
  512. // 获取设备信息
  513. success: res => {
  514. systeminfo = res
  515. }
  516. })
  517. return systeminfo
  518. },
  519. handleBeanlClick() {
  520. //关闭采美豆弹窗
  521. this.isActivityBean = false
  522. this.initOrderDetaileData()
  523. }
  524. },
  525. onShow() {}
  526. }
  527. </script>
  528. <style lang="scss">
  529. page {
  530. height: auto;
  531. background: #f7f7f7;
  532. }
  533. .details {
  534. padding-bottom: 130rpx;
  535. }
  536. .return-instructions{
  537. font-size: 26rpx;
  538. color: #F3B574;
  539. line-height: 42rpx;
  540. padding: 32rpx 50rpx;
  541. background-color: #FFFAF8;
  542. text-align: justify;
  543. }
  544. .btn-hover {
  545. background: #ffffff;
  546. }
  547. .animation {
  548. /* transition: transform 0.3s ease;*/
  549. transition-property: transform;
  550. transition-duration: 0.3s;
  551. transition-timing-function: ease;
  552. }
  553. .invoice-balance {
  554. width: 702rpx;
  555. height: auto;
  556. padding: 0 24rpx;
  557. background: #ffffff;
  558. float: left;
  559. margin-top: 24rpx;
  560. margin-bottom: 24rpx;
  561. .balabce-t {
  562. width: 100%;
  563. height: 86rpx;
  564. line-height: 86rpx;
  565. font-size: $font-size-28;
  566. color: $text-color;
  567. float: left;
  568. .balabce-t-le {
  569. float: left;
  570. font-weight: bold;
  571. }
  572. .balabce-t-ri {
  573. float: right;
  574. display: flex;
  575. align-items: center;
  576. .money {
  577. display: flex;
  578. float: left;
  579. }
  580. .checkbox-box {
  581. display: flex;
  582. width: 60rpx;
  583. float: left;
  584. height: 100%;
  585. font-size: $font-size-24;
  586. .checkbox {
  587. width: 40rpx;
  588. text-align: right;
  589. box-sizing: border-box;
  590. text-align: center;
  591. text-decoration: none;
  592. border-radius: 0;
  593. -webkit-tap-highlight-color: transparent;
  594. overflow: hidden;
  595. }
  596. }
  597. }
  598. }
  599. .balabce-b {
  600. width: 100%;
  601. float: left;
  602. overflow: hidden;
  603. .balabce-b-text {
  604. width: 100%;
  605. line-height: 58rpx;
  606. font-size: $font-size-24;
  607. color: #ff2a2a;
  608. text-align: right;
  609. float: right;
  610. }
  611. &.balabce-b--hide {
  612. padding: 0 0;
  613. height: 0px;
  614. line-height: 0px;
  615. }
  616. }
  617. }
  618. .clause {
  619. float: right;
  620. font-size: 24rpx;
  621. color: #999999;
  622. margin-top: 60rpx;
  623. margin-right: 24rpx;
  624. &.noclick {
  625. pointer-events: none;
  626. }
  627. .text {
  628. color: #1890f9;
  629. &.color-bg {
  630. color: #333333;
  631. }
  632. }
  633. }
  634. .status-text {
  635. overflow: hidden;
  636. padding: 24rpx;
  637. background: #fff;
  638. font-size: $font-size-26;
  639. .view-type {
  640. float: left;
  641. color: #ff2a2a;
  642. }
  643. .bage-buss {
  644. display: inline-block;
  645. width: 72rpx;
  646. height: 32rpx;
  647. background: radial-gradient(circle, rgba(255, 39, 180, 1) 0%, rgba(193, 77, 245, 1) 100%);
  648. border-radius: 6rpx;
  649. line-height: 32rpx;
  650. text-align: center;
  651. color: #ffffff;
  652. margin-top: 10rpx;
  653. float: right;
  654. }
  655. .bage-auto {
  656. display: inline-block;
  657. width: 72rpx;
  658. height: 32rpx;
  659. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  660. border-radius: 6rpx;
  661. line-height: 32rpx;
  662. text-align: center;
  663. color: #ffffff;
  664. margin-top: 10rpx;
  665. float: right;
  666. }
  667. }
  668. </style>