takefood.vue 20 KB

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