order-details.vue 18 KB

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