takefood.vue 19 KB

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