takefood.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  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 : 'https://mxys.chuanghai-tech.com/wmfile/20250814/fff4dc5d02ea4af881db9685f2e1e61d.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 class="tosend_cont_infor" v-if="dataDet.orderType == 2 && dataDet.receivingTime">
  197. <view class="tosend_cont_infor_le">骑手取餐时间</view>
  198. <view class="tosend_cont_infor_ri">{{ dataDet.receivingTime }}</view>
  199. </view>
  200. <view class="tosend_cont_infor" v-if="dataDet.finishTime">
  201. <view class="tosend_cont_infor_le">订单送达时间</view>
  202. <view class="tosend_cont_infor_ri">{{ dataDet.finishTime }}</view>
  203. </view>
  204. <view v-if="dataDet.deliveryImgs">
  205. <view class="tosend_cont_infor_le" style="margin-bottom: 20rpx">配送图片</view>
  206. <img
  207. v-for="(item, index) in dataDet.deliveryImgs.split(',')"
  208. :key="item"
  209. style="width: 200rpx; height: 200rpx; margin: 0 10rpx 10rpx 0"
  210. :src="item"
  211. mode="aspectFill"
  212. @click="handleViewImg(index, dataDet.deliveryImgs)"
  213. />
  214. </view>
  215. </view>
  216. </view>
  217. <view style="width: 100rpx; height: 100rpx; position: fixed; bottom: 100rpx; right: 70rpx" v-if="dataDet">
  218. <image src="../../static/images/order/kefu.png" style="width: 100%; height: 100%" @click="goChat()" mode=""></image>
  219. <view class="shopxiaoix" v-if="RiderUnreadCount > 0">{{ RiderUnreadCount }}</view>
  220. </view>
  221. </view>
  222. </template>
  223. <script>
  224. export default {
  225. data() {
  226. return {
  227. orderId: '',
  228. dataDet: '',
  229. markers: [], //标记点
  230. latitude: '',
  231. longitude: '',
  232. RiderUnreadCount: 0,
  233. XCXIsSelect: '是',
  234. shopId: '',
  235. shopInfo: {}
  236. }
  237. },
  238. onLoad(option) {
  239. this.XCXIsSelect = this.$queue.getData('XCXIsSelect')
  240. if (this.XCXIsSelect == '否') {
  241. uni.setNavigationBarTitle({
  242. title: '隐私政策'
  243. })
  244. } else {
  245. uni.setNavigationBarTitle({
  246. title: '订单详情'
  247. })
  248. }
  249. let that = this
  250. uni.showLoading({
  251. title: '加载中...',
  252. mask: true // 是否显示透明蒙层,防止触摸穿透
  253. })
  254. that.orderId = option.orderId
  255. that.shopId = option.shopId
  256. uni.getLocation({
  257. type: 'gcj02', //返回可以用于uni.openLocation的经纬度
  258. success: function (res) {
  259. that.lat = res.latitude
  260. that.lng = res.longitude
  261. that.getDataDet()
  262. },
  263. fail(e) {
  264. uni.hideLoading()
  265. uni.showModal({
  266. title: '温馨提示',
  267. content: '您的定位权限未开启,请开启后再来操作吧!',
  268. showCancel: true,
  269. cancelText: '取消',
  270. confirmText: '确认',
  271. success: (res) => {
  272. if (res.confirm) {
  273. uni.openSetting({
  274. // 打开设置页
  275. success(rea) {
  276. console.log(rea.authSetting)
  277. }
  278. })
  279. }
  280. }
  281. })
  282. }
  283. })
  284. this.getRiderUnreadCount()
  285. this.getShopInfo()
  286. },
  287. created() {
  288. this.RiderUnreadCount = setInterval(() => {
  289. this.getRiderUnreadCount()
  290. }, 5000)
  291. },
  292. methods: {
  293. // 点击调起地图查看位置
  294. goMaps() {
  295. let that = this
  296. let lati = parseFloat(that.shopInfo.shopLat)
  297. let longi = parseFloat(that.shopInfo.shopLng)
  298. uni.authorize({
  299. scope: 'scope.userLocation',
  300. success(res) {
  301. uni.openLocation({
  302. name: that.shopInfo.shopName,
  303. latitude: lati,
  304. longitude: longi,
  305. success: function () {}
  306. })
  307. },
  308. fail(err) {}
  309. })
  310. },
  311. // 打电话
  312. call() {
  313. uni.makePhoneCall({
  314. phoneNumber: this.shopInfo.phone
  315. })
  316. },
  317. //获取店铺信息
  318. getShopInfo() {
  319. let data = {
  320. shopId: this.shopId
  321. }
  322. this.$Request.get('/app/shop/selectShopMessage', data).then((res) => {
  323. if (res.code == 0 && res.data) {
  324. this.shopInfo = res.data
  325. console.log(this.shopInfo, 999)
  326. let phoneNumber = this.shopInfo.phone.toString() //先强制转换成字符串类型
  327. this.shopInfo.phones = phoneNumber.replace(/^(\d{3})\d{4}(\d{4})$/, '$1****$2')
  328. }
  329. })
  330. },
  331. getDataDet() {
  332. let data = {
  333. orderId: this.orderId
  334. }
  335. console.log(data)
  336. this.$Request.get('/app/order/selectOrderById', data).then((res) => {
  337. console.log(res)
  338. uni.hideLoading()
  339. if (res.code == 0) {
  340. this.dataDet = res.data
  341. console.log(this.dataDet, 'll')
  342. // this.dataDet.goodsMessage = JSON.parse(this.dataDet.goodsMessage)
  343. if (this.dataDet.orderCode) {
  344. this.dataDet.orderCode = this.dataDet.orderCode.substring(this.dataDet.orderCode.length - 3, this.dataDet.orderCode.length)
  345. }
  346. this.dataDet.orderGoodsList.forEach((res) => {
  347. res.goodsPicture = res.goodsPicture.split(',')
  348. })
  349. if (this.dataDet.riderPhone) {
  350. this.dataDet.riderPhone1 = this.dataDet.riderPhone.substring(0, 3) + '****' + this.dataDet.riderPhone.substring(7, 11)
  351. }
  352. this.dataDet.address = this.dataDet.address ? JSON.parse(this.dataDet.address) : ''
  353. console.log(this.dataDet.address)
  354. if (this.dataDet.riderUserId) {
  355. this.getLocation(this.dataDet.riderUserId)
  356. }
  357. }
  358. })
  359. },
  360. goChat() {
  361. uni.navigateTo({
  362. url: '/pages/index/shop/im?ordersId=' + this.orderId
  363. })
  364. },
  365. getLocation(e) {
  366. let data = {
  367. riderUserId: e,
  368. lat: this.lat,
  369. lng: this.lng
  370. }
  371. this.$Request.getT('/timedtask/selectRiderLocation', data).then((res) => {
  372. if (res.code === 0) {
  373. console.log(res.data, '经纬度')
  374. this.latitude = res.data.riderLocation.lat
  375. this.longitude = res.data.riderLocation.lng
  376. this.markers = [
  377. {
  378. id: 1,
  379. latitude: res.data.riderLocation.lat,
  380. longitude: res.data.riderLocation.lng,
  381. iconPath: '../../static/images/order/rider.png',
  382. width: '40',
  383. height: '40'
  384. }
  385. ]
  386. }
  387. })
  388. },
  389. goMap() {
  390. uni.navigateTo({
  391. url: '/pages/order/waimaiMap?orderId=' + this.orderId
  392. })
  393. },
  394. // 拨打电话
  395. bindphone(e) {
  396. console.log(e)
  397. uni.makePhoneCall({
  398. phoneNumber: e
  399. })
  400. },
  401. complaint() {
  402. uni.navigateTo({
  403. url: '/pages/order/complaint/complaint?indentNumber=' + this.dataDet.indentNumber + '&indentType=5'
  404. })
  405. },
  406. copy(e) {
  407. uni.setClipboardData({
  408. data: e,
  409. success: () => {
  410. uni.showToast({
  411. title: '复制成功'
  412. })
  413. }
  414. })
  415. },
  416. getRiderUnreadCount() {
  417. let that = this
  418. let data = {
  419. ordersId: that.orderId
  420. }
  421. that.$Request.getT('/app/ordersChat/selectUserUnreadCount', data).then((res) => {
  422. if (res.code == 0) {
  423. if (res.data > 0) {
  424. if (that.RiderUnreadCount != res.data) {
  425. that.aplayAudio()
  426. that.RiderUnreadCount = res.data
  427. }
  428. } else {
  429. that.RiderUnreadCount = 0
  430. }
  431. }
  432. })
  433. },
  434. // 语音播报
  435. aplayAudio() {
  436. // const audio = document.getElementById('audio')
  437. // audio.play()
  438. // console.log('语音提示')
  439. const innerAudioContext = uni.createInnerAudioContext()
  440. innerAudioContext.autoplay = true
  441. innerAudioContext.src = 'https://pw.xianmxkj.com/file/uploadPath/2022/01/19/0753211f78d718d44ee6372e33eae9ee.mp3'
  442. innerAudioContext.onPlay(() => {
  443. console.log('开始播放')
  444. })
  445. innerAudioContext.onError((res) => {
  446. console.log(res.errMsg)
  447. console.log(res.errCode)
  448. })
  449. },
  450. handleViewImg(index, list) {
  451. uni.previewImage({
  452. urls: list.split(','),
  453. current: index
  454. })
  455. }
  456. }
  457. }
  458. </script>
  459. <style scoped>
  460. /* 余额 */
  461. .tosend {
  462. width: 100%;
  463. height: 280rpx;
  464. background: -webkit-linear-gradient(top, #fcd202, #f5f5f5);
  465. }
  466. .tosend_text {
  467. padding: 3% 3% 4%;
  468. font-size: 48rpx;
  469. font-weight: 800;
  470. color: #333333;
  471. }
  472. .tosend_header {
  473. width: 94%;
  474. background-color: #ffffff;
  475. margin: 0 auto;
  476. border-radius: 18rpx;
  477. padding: 3%;
  478. }
  479. /* 排序 */
  480. .cont_two_top {
  481. width: 100%;
  482. display: flex;
  483. justify-content: space-between;
  484. }
  485. .cont_two_top_le {
  486. font-size: 30rpx;
  487. font-weight: 500;
  488. color: #333333;
  489. }
  490. .cont_two_top_ri {
  491. padding: 6rpx 10rpx;
  492. text-align: center;
  493. background: rgba(255, 19, 10, 0.2);
  494. font-size: 24rpx;
  495. border: 2rpx solid #ff130a;
  496. color: #ff130a;
  497. opacity: 0.6;
  498. border-radius: 8rpx;
  499. }
  500. .cont_two_text {
  501. font-size: 56rpx;
  502. text-align: center;
  503. font-weight: bold;
  504. color: #333333;
  505. margin: 5% 0;
  506. line-height: 32rpx;
  507. }
  508. .cont_two_text2 {
  509. font-size: 30rpx;
  510. width: 100%;
  511. font-weight: 500;
  512. color: #333333;
  513. text-align: center;
  514. padding-bottom: 4%;
  515. line-height: 32rpx;
  516. border-bottom: 1rpx solid #e6e6e6;
  517. }
  518. .cont_two_text2 text {
  519. color: #ff130a;
  520. }
  521. /* 商品列表 */
  522. .tosend_header_text {
  523. font-weight: 800;
  524. color: #333333;
  525. line-height: 2;
  526. font-size: 30rpx;
  527. display: flex;
  528. justify-content: space-between;
  529. }
  530. .tosend_header_food {
  531. width: 100%;
  532. display: flex;
  533. margin-top: 3%;
  534. }
  535. .tosend_header_food_le {
  536. width: 15%;
  537. }
  538. .tosend_header_food_le image {
  539. width: 110rpx;
  540. height: 110rpx;
  541. }
  542. .tosend_header_food_ce {
  543. margin: 0 0 0 4%;
  544. width: 57%;
  545. }
  546. .tosend_header_food_ri {
  547. text-align: right;
  548. width: 25%;
  549. }
  550. .tosend_header_food_text {
  551. font-size: 34rpx;
  552. font-weight: 500;
  553. color: #333333;
  554. line-height: 1.8;
  555. }
  556. .tosend_header_food_text text {
  557. font-size: 25rpx;
  558. }
  559. .tosend_header_food_text2 {
  560. font-size: 30rpx;
  561. font-weight: 500;
  562. color: #999999;
  563. }
  564. .do_top {
  565. padding-top: 3%;
  566. }
  567. .do_bot {
  568. padding-bottom: 3%;
  569. border-bottom: 2rpx solid #e6e6e6;
  570. }
  571. .tosend_header_do {
  572. width: 100%;
  573. color: #333333;
  574. font-size: 30rpx;
  575. display: flex;
  576. line-height: 1.5;
  577. }
  578. .tosend_header_do view {
  579. flex: 1;
  580. }
  581. .tosend_header_do_ri {
  582. text-align: right;
  583. }
  584. .tosend_header_do_le2 {
  585. font-family: PingFang SC;
  586. font-weight: 500;
  587. color: #999999;
  588. padding-top: 1.5%;
  589. }
  590. .tosend_header_do_ri2 {
  591. text-align: right;
  592. color: #ea0000;
  593. font-size: 40rpx;
  594. }
  595. .tosend_header_do_ri2 text {
  596. font-size: 30rpx;
  597. }
  598. /* 其他信息 */
  599. .tosend_cont {
  600. width: 94%;
  601. background-color: #ffffff;
  602. margin: 3% auto;
  603. border-radius: 18rpx;
  604. padding: 3%;
  605. }
  606. .tosend_cont_infor {
  607. display: flex;
  608. margin-top: 3%;
  609. }
  610. .tosend_cont_infor_le {
  611. flex: 1;
  612. color: #999999;
  613. }
  614. .tosend_cont_infor_ri {
  615. flex: 2;
  616. text-align: right;
  617. color: #333333;
  618. }
  619. .tosend_cont_text {
  620. text-align: right;
  621. }
  622. /* 联系骑手 */
  623. .rider_box {
  624. width: 95%;
  625. margin: 0 auto;
  626. background: #ffffff;
  627. margin-top: 20rpx;
  628. border-radius: 10rpx;
  629. }
  630. .rider_left image {
  631. width: 80rpx;
  632. height: 85rpx;
  633. border-radius: 60%;
  634. }
  635. .phone {
  636. background: #fd6416;
  637. color: #ffffff;
  638. padding: 8rpx 15rpx;
  639. border-radius: 13rpx;
  640. font-size: 24rpx;
  641. }
  642. .shopxiaoix {
  643. background: red;
  644. color: #ffffff;
  645. width: auto;
  646. padding: 5rpx 12rpx;
  647. height: auto;
  648. text-align: center;
  649. border-radius: 30rpx;
  650. position: absolute;
  651. top: -4rpx;
  652. right: -4rpx;
  653. }
  654. </style>