takefood.vue 20 KB

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