takefood.vue 18 KB

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