takefood.vue 19 KB

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