takefood.vue 18 KB

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