takefood.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649
  1. <template>
  2. <view class="pages" v-if="XCXIsSelect=='是'">
  3. <!-- 余额 -->
  4. <view class="tosend" v-if="dataDet">
  5. <view class="tosend_text" v-if="dataDet.status == 3&&dataDet.orderType==1">待取餐</view>
  6. <view class="tosend_text" v-if="dataDet.status == 3&&dataDet.orderType==2">配送中</view>
  7. <view class="tosend_text" v-if="dataDet.status == 4">已完成</view>
  8. <view class="tosend_text" v-if="dataDet.status == 5">已取消</view>
  9. <view class="tosend_text" v-if="dataDet.status == 6">制作中</view>
  10. <view class="tosend_text" v-if="dataDet.status == 7">待接单</view>
  11. <view class="tosend_text" v-if="dataDet.status == 8">已取消</view>
  12. <view style="padding:0 30rpx;font-size: 20px;" v-if="dataDet.orderSequence">#{{dataDet.orderSequence}}</view>
  13. <view style="padding:0 30rpx;font-size: 20px;">{{dataDet.orderType==1?'商家配送':'骑手配送'}}</view>
  14. <view class="flex justify-center" v-if="dataDet.orderType==1" style="width: 100%;height: 140rpx;margin-bottom: 30rpx;">
  15. <view class="flex justify-center" style="width: 94%;height: 100%;border-radius: 18rpx;background-color: #ffffff;padding: 3%;">
  16. <view class="flex justify-between align-center" style="width: 100%;height: 100%;">
  17. <image :src="shopInfo.shopCover?shopInfo.shopCover:'../../static/logo.png'" style="width: 110rpx;height: 110rpx;border-radius: 8rpx;" mode=""></image>
  18. <view class="flex flex-wrap align-center" style="width: 80%;height: 100%;">
  19. <view class="" style="width: 100%;font-size: 30rpx;" @click="call">
  20. <text style="font-weight: bold;">{{shopInfo.shopName?shopInfo.shopName:''}}</text>
  21. <text style="margin-left: 10rpx;font-weight: bold;">{{shopInfo.phones?shopInfo.phones:''}}</text>
  22. <u-icon name="phone" size="30" color="#999999" style=""></u-icon>
  23. </view>
  24. <view class="flex align-center" style="width: 100%;color: #999999;font-size: 24rpx;" @click="goMaps">
  25. <u-icon name="map" size="30" color="#999999" style="margin-right: 10rpx;"></u-icon>
  26. {{shopInfo.detailedAddress?shopInfo.detailedAddress:''}}
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="tosend_header">
  33. <!-- 排序 -->
  34. <view class="cont_two_top" v-if="dataDet.status == 3&&dataDet.orderType==1">
  35. <view class="cont_two_top_le">取餐号码</view>
  36. <!-- <view class="cont_two_top_ri">制作中</view> -->
  37. </view>
  38. <view v-if="dataDet.status == 3&&dataDet.orderType==1" class="cont_two_text">{{dataDet.orderCode}}
  39. </view>
  40. <view v-if="dataDet.status == 3&&dataDet.orderType==1" class="cont_two_text2">
  41. 前面还有<text>{{dataDet.countOrder}}</text>个订单</view>
  42. <!-- 商品列表 -->
  43. <view v-if="dataDet" class="tosend_header_food" v-for="(item,index) in dataDet.orderGoodsList"
  44. :key='index'>
  45. <view class="tosend_header_food_le">
  46. <image :src="item.goodsPicture[0]" style="border-radius: 10rpx;" mode=""></image>
  47. </view>
  48. <view class="flex-sub margin-left-sm">
  49. <view class="flex justify-between align-center">
  50. <view class="text-lg text-bold text-black">{{item.goodsName}}</view>
  51. <view class="text-lg text-bold text-black"><text class="text-sm">¥</text>{{item.goodsPrice}}
  52. </view>
  53. </view>
  54. <view class="flex justify-between align-center text-gray">
  55. <view v-if="item.skuMessage">{{item.skuMessage}}</view>
  56. <view>X{{item.goodsNum}}</view>
  57. </view>
  58. <view class="flex justify-between align-center text-gray" v-if="item.goodsPack">
  59. <view>打包费</view>
  60. <view>¥{{item.goodsPack}} / 份</view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="tosend_header_do " v-if="dataDet.couponMoney>0">
  65. <view>优惠券</view>
  66. <view class="tosend_header_do_ri">-¥{{dataDet.couponMoney}}</view>
  67. </view>
  68. <view class="tosend_header_do do_bot" v-if="dataDet.errandMoney>0&&dataDet.orderType==2 && dataDet.errandMoneyIsShop=='本单未达到商家满减金额,跑腿费由用户承担'">
  69. <view>跑腿费</view>
  70. <view class="tosend_header_do_ri">¥{{dataDet.errandMoney}}</view>
  71. </view>
  72. <view class="tosend_header_do do_bot" v-if="dataDet.errandMoney>0&&dataDet.orderType==2 && dataDet.errandMoneyIsShop=='商家未开启配送费满减,跑腿费由用户承担'">
  73. <view>跑腿费</view>
  74. <view class="tosend_header_do_ri">¥{{dataDet.errandMoney}}</view>
  75. </view>
  76. <view class="tosend_header_do">
  77. <view class="tosend_header_do_le2">实付</view>
  78. <view class="tosend_header_do_ri2"><text>¥</text>{{dataDet.payMoney}}</view>
  79. </view>
  80. </view>
  81. <view class="text-center" v-if="dataDet">
  82. <map v-if="dataDet.status == 3 && latitude && longitude" id="map" @tap="goMap"
  83. style="width: 95%; height: 300rpx;margin: 20rpx auto 0;" :markers="markers" :latitude="latitude"
  84. :longitude="longitude"></map>
  85. </view>
  86. <!-- 骑手信息 -->
  87. <view class="rider_box" v-if="dataDet&&(dataDet.status == 3||dataDet.status == 4)&&dataDet.riderUserId">
  88. <view class="flex justify-between align-center padding">
  89. <view style="font-size: 31rpx;color: black;">联系骑手</view>
  90. <image @click="complaint" src="../../static/images/order/tousu.png"
  91. style="width: 43rpx;height: 39rpx;" mode=""></image>
  92. </view>
  93. <view>
  94. <u-line color="#F2F2F2" />
  95. </view>
  96. <view style="padding: 20rpx 25rpx;display: flex;justify-content: space-between;align-items: center;">
  97. <view style="display: flex;">
  98. <view class="rider_left">
  99. <image :src="dataDet.riderAvatar"></image>
  100. </view>
  101. <view style="margin-left: 10rpx;color: #333333;">
  102. <view>{{dataDet.riderUserName}}</view>
  103. <view>{{dataDet.riderPhone1}}</view>
  104. </view>
  105. </view>
  106. <view class="phone" @click="bindphone(dataDet.riderPhone)">联系TA</view>
  107. </view>
  108. </view>
  109. <!-- 商家信息 -->
  110. <view class="rider_box" v-if="dataDet&&(dataDet.status == 3||dataDet.status == 4) && dataDet.orderType==1">
  111. <view class="flex justify-between align-center padding">
  112. <view style="font-size: 31rpx;color: black;">联系商家</view>
  113. </view>
  114. <view>
  115. <u-line color="#F2F2F2" />
  116. </view>
  117. <view style="padding: 20rpx 25rpx;display: flex;justify-content: space-between;align-items: center;">
  118. <view style="display: flex;">
  119. <view style="margin-left: 10rpx;color: #333333;">
  120. <view>{{dataDet.shopName}}</view>
  121. <view>{{dataDet.shopPhone}}</view>
  122. </view>
  123. </view>
  124. <view class="phone" @click="bindphone(dataDet.riderPhone)">联系TA</view>
  125. </view>
  126. </view>
  127. <!-- 其他信息 -->
  128. <view class="tosend_cont" v-if="dataDet">
  129. <view class="tosend_header_text">
  130. <text>订单信息</text>
  131. </view>
  132. <view class="tosend_cont_infor" v-if="dataDet.orderType==1">
  133. <view class="tosend_cont_infor_le">取餐号码</view>
  134. <view class="tosend_cont_infor_ri">{{dataDet.orderCode}}</view>
  135. </view>
  136. <view class="tosend_cont_infor">
  137. <view class="tosend_cont_infor_le">订单编号</view>
  138. <view class="tosend_cont_infor_le">订单编号</view>
  139. <view class="tosend_cont_infor_ri">{{dataDet.orderNumber}}
  140. <u-icon @click="copy(dataDet.orderNumber)" name="order" style="margin-left: 6rpx;" size="32">
  141. </u-icon>
  142. </view>
  143. </view>
  144. <view class="tosend_cont_infor">
  145. <view class="tosend_cont_infor_le">下单时间</view>
  146. <view class="tosend_cont_infor_ri">{{dataDet.payTime}}</view>
  147. </view>
  148. <view class="tosend_cont_infor">
  149. <view class="tosend_cont_infor_le">支付方式</view>
  150. <view class="tosend_cont_infor_ri" v-if="dataDet.payType==1">微信支付</view>
  151. <view class="tosend_cont_infor_ri" v-if="dataDet.payType==2">余额支付</view>
  152. </view>
  153. <view class="tosend_cont_infor" v-if="dataDet.orderType==2">
  154. <view class="tosend_cont_infor_le">联系人</view>
  155. <view class="tosend_cont_infor_ri">{{dataDet.address.userName}}</view>
  156. </view>
  157. <view class="tosend_cont_infor" v-if="dataDet.orderType==2">
  158. <view class="tosend_cont_infor_le">联系方式</view>
  159. <view class="tosend_cont_infor_ri">{{dataDet.address.userPhone}}</view>
  160. </view>
  161. <view class="tosend_cont_infor" v-if="dataDet.orderType==2">
  162. <view class="tosend_cont_infor_le">详细地址</view>
  163. <view class="tosend_cont_infor_ri">
  164. {{dataDet.address.province}}{{dataDet.address.city}}{{dataDet.address.district}}{{dataDet.address.addressDetail}}
  165. </view>
  166. </view>
  167. <view class="tosend_cont_infor" v-if="dataDet.remark">
  168. <view class="tosend_cont_infor_le">订单备注</view>
  169. <view class="tosend_cont_infor_ri">
  170. {{dataDet.remark}}
  171. </view>
  172. </view>
  173. </view>
  174. </view>
  175. <view style="width: 100rpx;height: 100rpx;position: fixed;bottom: 100rpx;right: 70rpx;" v-if="dataDet">
  176. <image src="../../static/images/order/kefu.png" style="width: 100%;height: 100%;" @click="goChat()" mode="">
  177. </image>
  178. <view class="shopxiaoix" v-if="RiderUnreadCount>0">{{RiderUnreadCount}}</view>
  179. </view>
  180. </view>
  181. </template>
  182. <script>
  183. export default {
  184. data() {
  185. return {
  186. orderId: '',
  187. dataDet: '',
  188. markers: [], //标记点
  189. latitude: '',
  190. longitude: '',
  191. RiderUnreadCount: 0,
  192. XCXIsSelect: '是',
  193. shopId:'',
  194. shopInfo:{},
  195. }
  196. },
  197. onLoad(option) {
  198. this.XCXIsSelect = this.$queue.getData('XCXIsSelect');
  199. if (this.XCXIsSelect == '否') {
  200. uni.setNavigationBarTitle({
  201. title: '隐私政策'
  202. });
  203. } else {
  204. uni.setNavigationBarTitle({
  205. title: '订单详情'
  206. });
  207. }
  208. let that = this
  209. uni.showLoading({
  210. title: '加载中...',
  211. mask: true, // 是否显示透明蒙层,防止触摸穿透
  212. })
  213. that.orderId = option.orderId
  214. that.shopId = option.shopId
  215. uni.getLocation({
  216. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  217. success: function(res) {
  218. that.lat = res.latitude;
  219. that.lng = res.longitude;
  220. that.getDataDet()
  221. },fail(e) {
  222. uni.hideLoading();
  223. uni.showModal({
  224. title: '温馨提示',
  225. content: '您的定位权限未开启,请开启后再来操作吧!',
  226. showCancel: true,
  227. cancelText: '取消',
  228. confirmText: '确认',
  229. success: res => {
  230. if(res.confirm){
  231. uni.openSetting({ // 打开设置页
  232. success(rea) {
  233. console.log(rea.authSetting)
  234. }
  235. });
  236. }
  237. }
  238. });
  239. }
  240. });
  241. this.getRiderUnreadCount()
  242. this.getShopInfo()
  243. },
  244. created() {
  245. this.RiderUnreadCount = setInterval(() => {
  246. this.getRiderUnreadCount()
  247. }, 5000)
  248. },
  249. methods: {
  250. // 点击调起地图查看位置
  251. goMaps() {
  252. let that = this;
  253. let lati = parseFloat(that.shopInfo.shopLat);
  254. let longi = parseFloat(that.shopInfo.shopLng);
  255. uni.authorize({
  256. scope: 'scope.userLocation',
  257. success(res) {
  258. uni.openLocation({
  259. name: that.shopInfo.shopName,
  260. latitude: lati,
  261. longitude: longi,
  262. success: function() {}
  263. });
  264. },
  265. fail(err) {}
  266. });
  267. },
  268. // 打电话
  269. call() {
  270. uni.makePhoneCall({
  271. phoneNumber: this.shopInfo.phone
  272. });
  273. },
  274. //获取店铺信息
  275. getShopInfo(){
  276. let data ={
  277. shopId:this.shopId
  278. }
  279. this.$Request.get("/app/shop/selectShopMessage", data).then(res => {
  280. if(res.code == 0 && res.data){
  281. this.shopInfo = res.data
  282. let phoneNumber = this.shopInfo.phone.toString() //先强制转换成字符串类型
  283. this.shopInfo.phones = phoneNumber.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
  284. }
  285. })
  286. },
  287. getDataDet() {
  288. let data = {
  289. orderId: this.orderId
  290. }
  291. this.$Request.get("/app/order/selectOrderById", data).then(res => {
  292. uni.hideLoading()
  293. if (res.code == 0) {
  294. this.dataDet = res.data
  295. console.log(this.dataDet,'ll')
  296. // this.dataDet.goodsMessage = JSON.parse(this.dataDet.goodsMessage)
  297. this.dataDet.orderCode = this.dataDet.orderCode.substring(this.dataDet.orderCode.length -
  298. 3, this.dataDet.orderCode.length)
  299. this.dataDet.orderGoodsList.forEach(res => {
  300. res.goodsPicture = res.goodsPicture.split(',')
  301. })
  302. if (this.dataDet.riderPhone) {
  303. this.dataDet.riderPhone1 = this.dataDet.riderPhone.substring(0, 3) + "****" + this
  304. .dataDet.riderPhone.substring(7, 11);
  305. }
  306. this.dataDet.address = this.dataDet.address ? JSON.parse(this.dataDet.address) : ''
  307. console.log(this.dataDet.address)
  308. if (this.dataDet.riderUserId) {
  309. this.getLocation(this.dataDet.riderUserId)
  310. }
  311. }
  312. });
  313. },
  314. goChat() {
  315. uni.navigateTo({
  316. url: '/pages/index/shop/im?ordersId=' + this.orderId
  317. })
  318. },
  319. getLocation(e) {
  320. let data = {
  321. riderUserId: e,
  322. lat: this.lat,
  323. lng: this.lng
  324. }
  325. this.$Request.getT('/timedtask/selectRiderLocation', data).then(res => {
  326. if (res.code === 0) {
  327. console.log(res.data, '经纬度')
  328. this.latitude = res.data.riderLocation.lat;
  329. this.longitude = res.data.riderLocation.lng;
  330. this.markers = [{
  331. id: 1,
  332. latitude: res.data.riderLocation.lat,
  333. longitude: res.data.riderLocation.lng,
  334. iconPath: '../../static/images/order/rider.png',
  335. width: '40',
  336. height: '40'
  337. }]
  338. }
  339. });
  340. },
  341. goMap() {
  342. uni.navigateTo({
  343. url: '/pages/order/waimaiMap?orderId=' + this.orderId
  344. })
  345. },
  346. // 拨打电话
  347. bindphone(e) {
  348. console.log(e)
  349. uni.makePhoneCall({
  350. phoneNumber: e
  351. });
  352. },
  353. complaint() {
  354. uni.navigateTo({
  355. url: '/pages/order/complaint/complaint?indentNumber=' + this.dataDet.indentNumber +
  356. '&indentType=5'
  357. })
  358. },
  359. copy(e) {
  360. uni.setClipboardData({
  361. data: e,
  362. success: () => {
  363. uni.showToast({
  364. title: '复制成功'
  365. })
  366. }
  367. })
  368. },
  369. getRiderUnreadCount() {
  370. let that = this
  371. let data = {
  372. ordersId: that.orderId
  373. }
  374. that.$Request.getT("/app/ordersChat/selectUserUnreadCount", data).then(res => {
  375. if (res.code == 0) {
  376. if (res.data > 0) {
  377. if (that.RiderUnreadCount != res.data) {
  378. that.aplayAudio()
  379. that.RiderUnreadCount = res.data
  380. }
  381. } else {
  382. that.RiderUnreadCount = 0
  383. }
  384. }
  385. });
  386. },
  387. // 语音播报
  388. aplayAudio() {
  389. // const audio = document.getElementById('audio')
  390. // audio.play()
  391. // console.log('语音提示')
  392. const innerAudioContext = uni.createInnerAudioContext();
  393. innerAudioContext.autoplay = true;
  394. innerAudioContext.src =
  395. 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/0753211f78d718d44ee6372e33eae9ee.mp3';
  396. innerAudioContext.onPlay(() => {
  397. console.log('开始播放');
  398. });
  399. innerAudioContext.onError((res) => {
  400. console.log(res.errMsg);
  401. console.log(res.errCode);
  402. });
  403. },
  404. }
  405. }
  406. </script>
  407. <style scoped>
  408. /* 余额 */
  409. .tosend {
  410. width: 100%;
  411. height: 280rpx;
  412. background: -webkit-linear-gradient(top, #FCD202, #F5F5F5);
  413. }
  414. .tosend_text {
  415. padding: 3% 3% 4%;
  416. font-size: 48rpx;
  417. font-weight: 800;
  418. color: #333333;
  419. }
  420. .tosend_header {
  421. width: 94%;
  422. background-color: #FFFFFF;
  423. margin: 0 auto;
  424. border-radius: 18rpx;
  425. padding: 3%;
  426. }
  427. /* 排序 */
  428. .cont_two_top {
  429. width: 100%;
  430. display: flex;
  431. justify-content: space-between;
  432. }
  433. .cont_two_top_le {
  434. font-size: 30rpx;
  435. font-weight: 500;
  436. color: #333333;
  437. }
  438. .cont_two_top_ri {
  439. padding: 6rpx 10rpx;
  440. text-align: center;
  441. background: rgba(255, 19, 10, 0.2);
  442. font-size: 24rpx;
  443. border: 2rpx solid #FF130A;
  444. color: #FF130A;
  445. opacity: 0.6;
  446. border-radius: 8rpx;
  447. }
  448. .cont_two_text {
  449. font-size: 56rpx;
  450. text-align: center;
  451. font-weight: bold;
  452. color: #333333;
  453. margin: 5% 0;
  454. line-height: 32rpx;
  455. }
  456. .cont_two_text2 {
  457. font-size: 30rpx;
  458. width: 100%;
  459. font-weight: 500;
  460. color: #333333;
  461. text-align: center;
  462. padding-bottom: 4%;
  463. line-height: 32rpx;
  464. border-bottom: 1rpx solid #E6E6E6;
  465. }
  466. .cont_two_text2 text {
  467. color: #FF130A;
  468. }
  469. /* 商品列表 */
  470. .tosend_header_text {
  471. font-weight: 800;
  472. color: #333333;
  473. line-height: 2;
  474. font-size: 30rpx;
  475. display: flex;
  476. justify-content: space-between;
  477. }
  478. .tosend_header_food {
  479. width: 100%;
  480. display: flex;
  481. margin-top: 3%;
  482. }
  483. .tosend_header_food_le {
  484. width: 15%;
  485. }
  486. .tosend_header_food_le image {
  487. width: 110rpx;
  488. height: 110rpx;
  489. }
  490. .tosend_header_food_ce {
  491. margin: 0 0 0 4%;
  492. width: 57%;
  493. }
  494. .tosend_header_food_ri {
  495. text-align: right;
  496. width: 25%;
  497. }
  498. .tosend_header_food_text {
  499. font-size: 34rpx;
  500. font-weight: 500;
  501. color: #333333;
  502. line-height: 1.8;
  503. }
  504. .tosend_header_food_text text {
  505. font-size: 25rpx;
  506. }
  507. .tosend_header_food_text2 {
  508. font-size: 30rpx;
  509. font-weight: 500;
  510. color: #999999;
  511. }
  512. .do_top {
  513. padding-top: 3%;
  514. }
  515. .do_bot {
  516. padding-bottom: 3%;
  517. border-bottom: 2rpx solid #E6E6E6;
  518. }
  519. .tosend_header_do {
  520. width: 100%;
  521. color: #333333;
  522. font-size: 30rpx;
  523. display: flex;
  524. line-height: 1.5;
  525. }
  526. .tosend_header_do view {
  527. flex: 1;
  528. }
  529. .tosend_header_do_ri {
  530. text-align: right;
  531. }
  532. .tosend_header_do_le2 {
  533. font-family: PingFang SC;
  534. font-weight: 500;
  535. color: #999999;
  536. padding-top: 1.5%;
  537. }
  538. .tosend_header_do_ri2 {
  539. text-align: right;
  540. color: #EA0000;
  541. font-size: 40rpx;
  542. }
  543. .tosend_header_do_ri2 text {
  544. font-size: 30rpx;
  545. }
  546. /* 其他信息 */
  547. .tosend_cont {
  548. width: 94%;
  549. background-color: #FFFFFF;
  550. margin: 3% auto;
  551. border-radius: 18rpx;
  552. padding: 3%;
  553. }
  554. .tosend_cont_infor {
  555. display: flex;
  556. margin-top: 3%;
  557. }
  558. .tosend_cont_infor_le {
  559. flex: 1;
  560. color: #999999;
  561. }
  562. .tosend_cont_infor_ri {
  563. flex: 2;
  564. text-align: right;
  565. color: #333333;
  566. }
  567. .tosend_cont_text {
  568. text-align: right;
  569. }
  570. /* 联系骑手 */
  571. .rider_box {
  572. width: 95%;
  573. margin: 0 auto;
  574. background: #ffffff;
  575. margin-top: 20rpx;
  576. border-radius: 10rpx;
  577. }
  578. .rider_left image {
  579. width: 80rpx;
  580. height: 85rpx;
  581. border-radius: 60%;
  582. }
  583. .phone {
  584. background: #FD6416;
  585. color: #ffffff;
  586. padding: 8rpx 15rpx;
  587. border-radius: 13rpx;
  588. font-size: 24rpx;
  589. }
  590. .shopxiaoix {
  591. background: red;
  592. color: #ffffff;
  593. width: auto;
  594. padding: 5rpx 12rpx;
  595. height: auto;
  596. text-align: center;
  597. border-radius: 30rpx;
  598. position: absolute;
  599. top: -4rpx;
  600. right: -4rpx;
  601. }
  602. </style>