takefood.vue 20 KB

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