takefood.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693
  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. console.log(data)
  328. this.$Request.get('/app/order/selectOrderById', data).then((res) => {
  329. console.log(res)
  330. uni.hideLoading()
  331. if (res.code == 0) {
  332. this.dataDet = res.data
  333. console.log(this.dataDet, 'll')
  334. // this.dataDet.goodsMessage = JSON.parse(this.dataDet.goodsMessage)
  335. if (this.dataDet.orderCode) {
  336. this.dataDet.orderCode = this.dataDet.orderCode.substring(this.dataDet.orderCode.length - 3, this.dataDet.orderCode.length)
  337. }
  338. this.dataDet.orderGoodsList.forEach((res) => {
  339. res.goodsPicture = res.goodsPicture.split(',')
  340. })
  341. if (this.dataDet.riderPhone) {
  342. this.dataDet.riderPhone1 = this.dataDet.riderPhone.substring(0, 3) + '****' + this.dataDet.riderPhone.substring(7, 11)
  343. }
  344. this.dataDet.address = this.dataDet.address ? JSON.parse(this.dataDet.address) : ''
  345. console.log(this.dataDet.address)
  346. if (this.dataDet.riderUserId) {
  347. this.getLocation(this.dataDet.riderUserId)
  348. }
  349. }
  350. })
  351. },
  352. goChat() {
  353. uni.navigateTo({
  354. url: '/pages/index/shop/im?ordersId=' + this.orderId
  355. })
  356. },
  357. getLocation(e) {
  358. let data = {
  359. riderUserId: e,
  360. lat: this.lat,
  361. lng: this.lng
  362. }
  363. this.$Request.getT('/timedtask/selectRiderLocation', data).then((res) => {
  364. if (res.code === 0) {
  365. console.log(res.data, '经纬度')
  366. this.latitude = res.data.riderLocation.lat
  367. this.longitude = res.data.riderLocation.lng
  368. this.markers = [
  369. {
  370. id: 1,
  371. latitude: res.data.riderLocation.lat,
  372. longitude: res.data.riderLocation.lng,
  373. iconPath: '../../static/images/order/rider.png',
  374. width: '40',
  375. height: '40'
  376. }
  377. ]
  378. }
  379. })
  380. },
  381. goMap() {
  382. uni.navigateTo({
  383. url: '/pages/order/waimaiMap?orderId=' + this.orderId
  384. })
  385. },
  386. // 拨打电话
  387. bindphone(e) {
  388. console.log(e)
  389. uni.makePhoneCall({
  390. phoneNumber: e
  391. })
  392. },
  393. complaint() {
  394. uni.navigateTo({
  395. url: '/pages/order/complaint/complaint?indentNumber=' + this.dataDet.indentNumber + '&indentType=5'
  396. })
  397. },
  398. copy(e) {
  399. uni.setClipboardData({
  400. data: e,
  401. success: () => {
  402. uni.showToast({
  403. title: '复制成功'
  404. })
  405. }
  406. })
  407. },
  408. getRiderUnreadCount() {
  409. let that = this
  410. let data = {
  411. ordersId: that.orderId
  412. }
  413. that.$Request.getT('/app/ordersChat/selectUserUnreadCount', data).then((res) => {
  414. if (res.code == 0) {
  415. if (res.data > 0) {
  416. if (that.RiderUnreadCount != res.data) {
  417. that.aplayAudio()
  418. that.RiderUnreadCount = res.data
  419. }
  420. } else {
  421. that.RiderUnreadCount = 0
  422. }
  423. }
  424. })
  425. },
  426. // 语音播报
  427. aplayAudio() {
  428. // const audio = document.getElementById('audio')
  429. // audio.play()
  430. // console.log('语音提示')
  431. const innerAudioContext = uni.createInnerAudioContext()
  432. innerAudioContext.autoplay = true
  433. innerAudioContext.src = 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/0753211f78d718d44ee6372e33eae9ee.mp3'
  434. innerAudioContext.onPlay(() => {
  435. console.log('开始播放')
  436. })
  437. innerAudioContext.onError((res) => {
  438. console.log(res.errMsg)
  439. console.log(res.errCode)
  440. })
  441. },
  442. handleViewImg(index, list) {
  443. uni.previewImage({
  444. urls: list.split(','),
  445. current: index
  446. })
  447. }
  448. }
  449. }
  450. </script>
  451. <style scoped>
  452. /* 余额 */
  453. .tosend {
  454. width: 100%;
  455. height: 280rpx;
  456. background: -webkit-linear-gradient(top, #fcd202, #f5f5f5);
  457. }
  458. .tosend_text {
  459. padding: 3% 3% 4%;
  460. font-size: 48rpx;
  461. font-weight: 800;
  462. color: #333333;
  463. }
  464. .tosend_header {
  465. width: 94%;
  466. background-color: #ffffff;
  467. margin: 0 auto;
  468. border-radius: 18rpx;
  469. padding: 3%;
  470. }
  471. /* 排序 */
  472. .cont_two_top {
  473. width: 100%;
  474. display: flex;
  475. justify-content: space-between;
  476. }
  477. .cont_two_top_le {
  478. font-size: 30rpx;
  479. font-weight: 500;
  480. color: #333333;
  481. }
  482. .cont_two_top_ri {
  483. padding: 6rpx 10rpx;
  484. text-align: center;
  485. background: rgba(255, 19, 10, 0.2);
  486. font-size: 24rpx;
  487. border: 2rpx solid #ff130a;
  488. color: #ff130a;
  489. opacity: 0.6;
  490. border-radius: 8rpx;
  491. }
  492. .cont_two_text {
  493. font-size: 56rpx;
  494. text-align: center;
  495. font-weight: bold;
  496. color: #333333;
  497. margin: 5% 0;
  498. line-height: 32rpx;
  499. }
  500. .cont_two_text2 {
  501. font-size: 30rpx;
  502. width: 100%;
  503. font-weight: 500;
  504. color: #333333;
  505. text-align: center;
  506. padding-bottom: 4%;
  507. line-height: 32rpx;
  508. border-bottom: 1rpx solid #e6e6e6;
  509. }
  510. .cont_two_text2 text {
  511. color: #ff130a;
  512. }
  513. /* 商品列表 */
  514. .tosend_header_text {
  515. font-weight: 800;
  516. color: #333333;
  517. line-height: 2;
  518. font-size: 30rpx;
  519. display: flex;
  520. justify-content: space-between;
  521. }
  522. .tosend_header_food {
  523. width: 100%;
  524. display: flex;
  525. margin-top: 3%;
  526. }
  527. .tosend_header_food_le {
  528. width: 15%;
  529. }
  530. .tosend_header_food_le image {
  531. width: 110rpx;
  532. height: 110rpx;
  533. }
  534. .tosend_header_food_ce {
  535. margin: 0 0 0 4%;
  536. width: 57%;
  537. }
  538. .tosend_header_food_ri {
  539. text-align: right;
  540. width: 25%;
  541. }
  542. .tosend_header_food_text {
  543. font-size: 34rpx;
  544. font-weight: 500;
  545. color: #333333;
  546. line-height: 1.8;
  547. }
  548. .tosend_header_food_text text {
  549. font-size: 25rpx;
  550. }
  551. .tosend_header_food_text2 {
  552. font-size: 30rpx;
  553. font-weight: 500;
  554. color: #999999;
  555. }
  556. .do_top {
  557. padding-top: 3%;
  558. }
  559. .do_bot {
  560. padding-bottom: 3%;
  561. border-bottom: 2rpx solid #e6e6e6;
  562. }
  563. .tosend_header_do {
  564. width: 100%;
  565. color: #333333;
  566. font-size: 30rpx;
  567. display: flex;
  568. line-height: 1.5;
  569. }
  570. .tosend_header_do view {
  571. flex: 1;
  572. }
  573. .tosend_header_do_ri {
  574. text-align: right;
  575. }
  576. .tosend_header_do_le2 {
  577. font-family: PingFang SC;
  578. font-weight: 500;
  579. color: #999999;
  580. padding-top: 1.5%;
  581. }
  582. .tosend_header_do_ri2 {
  583. text-align: right;
  584. color: #ea0000;
  585. font-size: 40rpx;
  586. }
  587. .tosend_header_do_ri2 text {
  588. font-size: 30rpx;
  589. }
  590. /* 其他信息 */
  591. .tosend_cont {
  592. width: 94%;
  593. background-color: #ffffff;
  594. margin: 3% auto;
  595. border-radius: 18rpx;
  596. padding: 3%;
  597. }
  598. .tosend_cont_infor {
  599. display: flex;
  600. margin-top: 3%;
  601. }
  602. .tosend_cont_infor_le {
  603. flex: 1;
  604. color: #999999;
  605. }
  606. .tosend_cont_infor_ri {
  607. flex: 2;
  608. text-align: right;
  609. color: #333333;
  610. }
  611. .tosend_cont_text {
  612. text-align: right;
  613. }
  614. /* 联系骑手 */
  615. .rider_box {
  616. width: 95%;
  617. margin: 0 auto;
  618. background: #ffffff;
  619. margin-top: 20rpx;
  620. border-radius: 10rpx;
  621. }
  622. .rider_left image {
  623. width: 80rpx;
  624. height: 85rpx;
  625. border-radius: 60%;
  626. }
  627. .phone {
  628. background: #fd6416;
  629. color: #ffffff;
  630. padding: 8rpx 15rpx;
  631. border-radius: 13rpx;
  632. font-size: 24rpx;
  633. }
  634. .shopxiaoix {
  635. background: red;
  636. color: #ffffff;
  637. width: auto;
  638. padding: 5rpx 12rpx;
  639. height: auto;
  640. text-align: center;
  641. border-radius: 30rpx;
  642. position: absolute;
  643. top: -4rpx;
  644. right: -4rpx;
  645. }
  646. </style>