takefood.vue 18 KB

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