index.vue 35 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540
  1. <template>
  2. <view class="pages" style="position: relative">
  3. <view style="position: fixed; top: 0; left: 0; right: 0; z-index: 99; width: 100%" class="bg">
  4. <view class="flex bg justify-between padding-lr-xl">
  5. <view @click="switchTab(2)" :class="orderType == 2 ? 'select' : ''" class="tabBtn" v-if="XCXIsSelect == '是'">
  6. <view class="title">外卖配送</view>
  7. <view :class="orderType == 2 ? 'active' : ''"></view>
  8. </view>
  9. <view @click="switchTab(1)" :class="orderType == 1 ? 'select' : ''" class="tabBtn" v-if="XCXIsSelect == '是'">
  10. <view class="title">到店取餐</view>
  11. <view :class="orderType == 1 ? 'active' : ''"></view>
  12. </view>
  13. <view @click="switchTab(3)" :class="orderType == 3 ? 'select' : ''" class="tabBtn" v-if="XCXIsSelect == '是'">
  14. <view class="title">跑腿订单</view>
  15. <view :class="orderType == 3 ? 'active' : ''"></view>
  16. </view>
  17. </view>
  18. <view>
  19. <u-tabs v-if="orderType == 1" active-color="#FCD202" :list="qucanList" :is-scroll="true" :current="current" @change="change"></u-tabs>
  20. <u-tabs v-if="orderType == 2" active-color="#FCD202" :list="waimaiList" :is-scroll="true" :current="current1" @change="change1"></u-tabs>
  21. <u-tabs v-if="orderType == 3" :list="paotuiList" :is-scroll="true" active-color="#FCD202" :current="current2" @change="change2"></u-tabs>
  22. </view>
  23. </view>
  24. <!-- 全部订单 -->
  25. <view class="cont_one" v-if="orderType != 3 && XCXIsSelect == '是'">
  26. <view v-for="(item, index) in orderList" :key="index" @click="goNav('/pages/order/takefood?orderId=' + item.orderId + '&shopId=' + item.shopId)">
  27. <view class="cont" v-if="item.orderType == 1">
  28. <view class="order_title" v-if="item.expectDeliveryTime">预约订单:{{ item.expectDeliveryTime }}送达</view>
  29. <view class="order_success">
  30. <view class="order_name" v-if="item.status == 6">制作中</view>
  31. <view class="order_name" v-if="item.status == 3">待取餐</view>
  32. <view class="order_name" v-if="item.status == 4">已完成</view>
  33. <view class="order_name" v-if="item.status == 5">已取消</view>
  34. <view class="order_name" v-if="item.status == 7">待接单</view>
  35. <view class="order_name" v-if="item.status == 8">已取消</view>
  36. <view class="order_data">{{ item.payTime }}</view>
  37. </view>
  38. <u-line color="#E6E6E6" />
  39. <view class="cont_two_top">
  40. <view class="text-lg text-bold text-black flex align-center">
  41. <image :src="item.shopCover" style="width: 80rpx; height: 80rpx; border-radius: 80rpx" mode=""></image>
  42. <view class="margin-left-xs">{{ item.shopName }}</view>
  43. </view>
  44. </view>
  45. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderSequence">#{{ item.orderSequence }}</view>
  46. <view class="cont_two_text">{{ item.orderCode }}</view>
  47. <view class="cont_two_text2" v-if="item.status == 6">
  48. 前面还有
  49. <text>{{ item.countOrder }}</text>
  50. 个人排队
  51. </view>
  52. <!-- <view class="cont_two_bottom">
  53. <view class="cont_two_bottom_le">点餐详情</view>
  54. <view class="cont_two_bottom_ri">
  55. <image src="../../static/images/order/right1.png" mode=""></image>
  56. </view>
  57. </view> -->
  58. <u-line color="#E6E6E6" />
  59. <view class="flex justify-between align-center padding-lr-sm padding-tb-sm">
  60. <view class="text-sm text-gray">
  61. 实收
  62. <text class="text-lg text-bold text-black margin-left-xs">¥{{ item.payMoney }}</text>
  63. </view>
  64. <view class="flex padding-tb-sm">
  65. <view v-if="item.status == 7" class="btn" @click.stop="cancel(item)">取消订单</view>
  66. </view>
  67. <view v-if="item.status == 4 && item.commentFlag != 1" class="btn" @click.stop="pingjia(item)">评价订单</view>
  68. </view>
  69. </view>
  70. <view class="cont" v-if="item.orderType == 2">
  71. <view class="order_title" v-if="item.expectDeliveryTime">预约订单:{{ item.expectDeliveryTime }}送达</view>
  72. <view class="order_success">
  73. <view class="order_name" v-if="item.status == 3">
  74. 配送中
  75. <text style="color: #666666; margin-left: 10upx">{{ item.autoSendOrder == 1 ? '商家配送' : '平台配送' }}</text>
  76. </view>
  77. <view class="order_name" v-if="item.status == 4">已完成</view>
  78. <view class="order_name" v-if="item.status == 5">已取消</view>
  79. <view class="order_name" v-if="item.status == 6">制作中</view>
  80. <view class="order_name" v-if="item.status == 7">待接单</view>
  81. <view class="order_name" v-if="item.status == 8">已取消</view>
  82. <view class="order_data">{{ item.payTime }}</view>
  83. </view>
  84. <u-line color="#E6E6E6" />
  85. <view class="flex justify-between padding align-center">
  86. <view class="text-lg text-bold text-black flex align-center">
  87. <image :src="item.shopCover" style="width: 80rpx; height: 80rpx; border-radius: 80rpx" mode=""></image>
  88. <view class="margin-left-xs">{{ item.shopName }}</view>
  89. <view class="margin-left-xs" @click.stop="bindphone(item.shopPhone)">{{ item.shopPhone }}</view>
  90. </view>
  91. </view>
  92. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderSequence">#{{ item.orderSequence }}</view>
  93. <view style="padding: 0 30rpx; font-size: 20px">
  94. {{ item.orderTypeExtra == 1 ? '到店取餐' : item.orderTypeExtra == 2 ? '骑手配送' : item.orderTypeExtra == 3 ? '商家配送' : '' }}
  95. </view>
  96. <view v-if="item.riderNickName" style="padding: 0 30rpx; font-size: 20px">骑手姓名:{{ item.riderNickName }}</view>
  97. <view v-if="item.riderPhone" style="padding: 0 30rpx; font-size: 20px" @click.stop="bindphone(item.riderPhone)">骑手电话:{{ item.riderPhone }}</view>
  98. <view class="">
  99. <view class="padding-lr margin-tb-sm" v-for="(ite, ind) in item.orderGoodsList" :key="ind">
  100. <view class="flex">
  101. <image :src="ite.goodsPicture[0]" mode="" style="width: 120rpx; height: 120rpx; border-radius: 10rpx"></image>
  102. <view class="margin-left-sm flex flex-direction justify-between">
  103. <view class="text-black text-bold text-lg">{{ ite.goodsName }}</view>
  104. <view class="text-gray text-sm" v-if="ite.skuMessage">{{ ite.skuMessage }}</view>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <u-line color="#E6E6E6" />
  110. <view class="flex justify-between align-center padding-lr-sm">
  111. <view class="text-sm text-gray">
  112. 实收
  113. <text class="text-lg text-bold text-black margin-left-xs">¥{{ item.payMoney }}</text>
  114. </view>
  115. <view class="flex padding-tb-sm">
  116. <view v-if="item.status == 3" class="btn" @click.stop="finish(item)">确认收货</view>
  117. <!-- item.status == 6|| -->
  118. <view v-if="item.status == 7" class="btn" @click.stop="cancel(item)">取消订单</view>
  119. <view v-if="item.status == 4 && item.commentFlag != 1" class="btn" @click.stop="pingjia(item)">评价订单</view>
  120. <view class="btn_" @click.stop="goShop(item.shopId)">再来一单</view>
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. <empty v-if="!orderList.length" style="z-index: 0"></empty>
  126. </view>
  127. <view v-if="orderType == 3" style="margin-top: 160rpx">
  128. <view>
  129. <view class="order_box" v-for="(item, index) in order" :key="index" @click="bindorderDetail(item.indentNumber)">
  130. <view class="order_success">
  131. <view class="order_name" v-if="item.indentState == 0">待付款</view>
  132. <view class="order_name" v-if="item.indentState == 1 || item.indentState == 8 || item.indentState == 9 || item.indentState == 10">已取消</view>
  133. <view class="order_name" v-if="item.indentState == 2">待接单</view>
  134. <view class="order_name" v-if="item.indentState == 5">待确认</view>
  135. <view class="order_name" v-if="item.indentState == 3">已接单</view>
  136. <view class="order_name" v-if="item.indentState == 4">派送中</view>
  137. <view class="order_name" v-if="item.indentState == 6 || item.indentState == 7">已完成</view>
  138. <view class="order_name" v-if="item.indentState == 10">已取消</view>
  139. <view class="order_data">{{ item.createTime }}</view>
  140. </view>
  141. <u-line color="#E6E6E6" />
  142. <view class="order_city">
  143. <view class="city_type">
  144. <view class="type_name" v-if="item.indentType == 1">帮我送</view>
  145. <view class="type_name" v-if="item.indentType == 2">帮我取</view>
  146. <view class="type_name" v-if="item.indentType == 3">同城帮买</view>
  147. <view class="type_name" v-if="item.indentType == 4">同城服务</view>
  148. <view class="type_name" v-if="item.indentType == 5">同城外卖</view>
  149. <view class="city_text" v-if="item.indentType == 1 || item.indentType == 2">
  150. {{ item.itemType }}
  151. </view>
  152. <view class="city_text" v-if="item.indentType == 3 && item.buyType == 0">骑手购买</view>
  153. <view class="city_text" v-if="item.indentType == 3 && item.buyType == 1">指定购买</view>
  154. <view class="city_text" v-if="item.indentType == 4 && item.serviceType">{{ item.serviceType }}</view>
  155. </view>
  156. <view class="city_address">
  157. <view class="fh_box" v-if="item.indentType == 1 || item.indentType == 2 || item.indentType == 3">
  158. <view class="fh_image">
  159. <image src="../../static/images/order/mai.png" v-if="item.indentType == 3"></image>
  160. <image src="../../static/images/order/icon_f.png" v-else></image>
  161. </view>
  162. <view class="box">
  163. <view class="fh_name">{{ item.shopAddressDetail }}</view>
  164. <view class="fh_type" v-if="item.indentType != 3">
  165. {{ item.shopName }}
  166. <text>{{ item.shopPhone }}</text>
  167. </view>
  168. </view>
  169. </view>
  170. <view style="padding: 0 30rpx; font-size: 20px" v-if="item.orderSequence">#{{ item.orderSequence }}</view>
  171. <view class="sh_box">
  172. <view class="sh_image">
  173. <image src="../../static/images/order/icon_s.png"></image>
  174. </view>
  175. <view class="box">
  176. <view class="sh_name">{{ item.userAddressDetail }}</view>
  177. <view class="sh_type">
  178. {{ item.userName }}
  179. <text>{{ item.userPhone }}</text>
  180. </view>
  181. </view>
  182. </view>
  183. </view>
  184. </view>
  185. <u-line color="#E6E6E6" />
  186. <view class="order_btn">
  187. <!-- item.indentState == 7||item.indentState == 6 &&!item.evaluateMessage -->
  188. <view
  189. class="btn"
  190. v-if="item.indentState == 7 || (item.indentState == 6 && (!item.evaluateMessage || item.evaluateMessage == 0))"
  191. @tap.stop="pingjias(item)"
  192. >
  193. 点赞骑手
  194. </view>
  195. <view class="btn" v-if="item.indentState == 0 || item.indentState == 2" @tap.stop="bindorderOff(item)">取消订单</view>
  196. <view class="btn" @tap.stop="bindconfirm(item)" v-if="item.indentState == 5">确认订单</view>
  197. <view
  198. class="btn_"
  199. @tap.stop="bindorder(item)"
  200. v-if="
  201. item.indentState == 1 ||
  202. item.indentState == 3 ||
  203. item.indentState == 8 ||
  204. item.indentState == 9 ||
  205. item.indentState == 10 ||
  206. item.indentState == 4 ||
  207. item.indentState == 6
  208. "
  209. >
  210. 再来一单
  211. </view>
  212. <view class="btn_" v-if="item.indentState == 0" @tap.stop="bindorderpay(item)">立即付款</view>
  213. </view>
  214. </view>
  215. </view>
  216. <empty v-if="!order.length" style="z-index: 0"></empty>
  217. </view>
  218. </view>
  219. </template>
  220. <script>
  221. import empty from '@/components/empty.vue'
  222. export default {
  223. components: {
  224. empty
  225. },
  226. data() {
  227. return {
  228. show: false,
  229. page: 1,
  230. limit: 10,
  231. orderType: 2,
  232. orderList: [],
  233. status: '',
  234. current: 0,
  235. current1: 0,
  236. current2: 0,
  237. qucanList: [
  238. {
  239. name: '全部'
  240. },
  241. {
  242. name: '待接单'
  243. },
  244. {
  245. name: '制作中'
  246. },
  247. {
  248. name: '待取餐'
  249. },
  250. {
  251. name: '已完成'
  252. },
  253. {
  254. name: '已取消'
  255. }
  256. ],
  257. waimaiList: [
  258. {
  259. name: '全部'
  260. },
  261. {
  262. name: '待接单'
  263. },
  264. {
  265. name: '制作中'
  266. },
  267. {
  268. name: '配送中'
  269. },
  270. {
  271. name: '已完成'
  272. },
  273. {
  274. name: '已取消'
  275. }
  276. ],
  277. paotuiList: [
  278. {
  279. name: '全部',
  280. id: 1
  281. },
  282. {
  283. name: '待付款',
  284. id: 2
  285. },
  286. {
  287. name: '待接单',
  288. id: 3
  289. },
  290. {
  291. name: '已接单',
  292. id: 4
  293. },
  294. {
  295. name: '派送中',
  296. id: 5
  297. },
  298. {
  299. name: '已完成',
  300. id: 6
  301. },
  302. {
  303. name: '已取消',
  304. id: 7
  305. }
  306. ],
  307. userId: '',
  308. currentIndex: 1,
  309. order: [],
  310. waimaiCount: 0,
  311. paotuiCount: 0,
  312. XCXIsSelect: '是',
  313. arr: []
  314. }
  315. },
  316. onLoad(option) {
  317. this.XCXIsSelect = this.$queue.getData('XCXIsSelect') ? this.$queue.getData('XCXIsSelect') : '是'
  318. this.userId = uni.getStorageSync('userId')
  319. if (option.orderType) {
  320. this.orderType = option.orderType
  321. }
  322. uni.showLoading({
  323. title: '加载中...',
  324. mask: true // 是否显示透明蒙层,防止触摸穿透
  325. })
  326. this.$Request.getT('/app/common/type/266').then((res) => {
  327. //订单取消通知
  328. if (res.code == 0) {
  329. if (res.data && res.data.value) {
  330. this.arr.push(res.data.value)
  331. }
  332. }
  333. })
  334. this.$Request.getT('/app/common/type/269').then((res) => {
  335. //订单状态通知
  336. if (res.code == 0) {
  337. if (res.data && res.data.value) {
  338. this.arr.push(res.data.value)
  339. }
  340. }
  341. })
  342. },
  343. onShow() {
  344. this.userId = uni.getStorageSync('userId')
  345. if (uni.getStorageSync('current') && this.userId) {
  346. this.current1 = uni.getStorageSync('current')
  347. this.status = uni.getStorageSync('current')
  348. this.page = 1
  349. this.orderType = 2
  350. uni.removeStorageSync('current')
  351. this.getOrderList()
  352. }
  353. if (this.userId) {
  354. if (this.orderType == 3) {
  355. this.orderList_()
  356. } else {
  357. this.getOrderList()
  358. }
  359. } else {
  360. this.order = []
  361. this.orderList = []
  362. }
  363. uni.hideLoading()
  364. },
  365. methods: {
  366. bindopen() {
  367. this.show = true
  368. },
  369. bindx() {
  370. this.show = false
  371. },
  372. // 取消跑腿订单
  373. bindorderOff(e) {
  374. // #ifdef MP-WEIXIN
  375. if (uni.getStorageSync('sendMsg')) {
  376. console.log('授权+1')
  377. wx.requestSubscribeMessage({
  378. tmplIds: this.arr,
  379. success(re) {
  380. console.log(JSON.stringify(re), 111111111111)
  381. var datas = JSON.stringify(re)
  382. if (datas.indexOf('accept') != -1) {
  383. // console.log(re)
  384. }
  385. },
  386. fail: (res) => {
  387. // console.log(res)
  388. }
  389. })
  390. }
  391. // #endif
  392. console.log(e)
  393. let indentNumber = e.indentNumber
  394. console.log(indentNumber)
  395. uni.showModal({
  396. title: '温馨提示',
  397. // content: '取消订单平台将扣除您'+e.userFine+'元?',
  398. content: '确定取消订单?',
  399. showCancel: true,
  400. cancelText: '取消',
  401. confirmText: '确认',
  402. success: (res) => {
  403. if (res.confirm) {
  404. this.$Request.postT('/app/tbindent/userCancleIndent?indentNumber=' + indentNumber).then((res) => {
  405. // console.log(res)
  406. if (res.code == 0) {
  407. uni.showToast({
  408. title: '订单取消成功'
  409. })
  410. this.page = 1
  411. this.orderList_()
  412. } else {
  413. uni.hideLoading()
  414. uni.showModal({
  415. showCancel: false,
  416. title: '订单失败',
  417. content: res.msg
  418. })
  419. }
  420. })
  421. }
  422. }
  423. })
  424. },
  425. // 取消外卖订单
  426. cancel(e) {
  427. // #ifdef MP-WEIXIN
  428. if (uni.getStorageSync('sendMsg')) {
  429. console.log('授权+1')
  430. wx.requestSubscribeMessage({
  431. tmplIds: this.arr,
  432. success(re) {
  433. console.log(JSON.stringify(re), 111111111111)
  434. var datas = JSON.stringify(re)
  435. if (datas.indexOf('accept') != -1) {
  436. // console.log(re)
  437. }
  438. },
  439. fail: (res) => {
  440. // console.log(res)
  441. }
  442. })
  443. }
  444. // #endif
  445. let that = this
  446. console.log(e)
  447. uni.showModal({
  448. title: '提示',
  449. content: '确认取消订单吗?',
  450. success: function (res) {
  451. if (res.confirm) {
  452. console.log('用户点击确定')
  453. let data = {
  454. orderId: e.orderId
  455. }
  456. that.$Request.get('/app/order/userCancelOrder', data).then((res) => {
  457. if (res.code == 0) {
  458. uni.showToast({
  459. title: '订单取消成功',
  460. icon: 'none'
  461. })
  462. that.page = 1
  463. that.getOrderList()
  464. } else {
  465. uni.showToast({
  466. title: res.msg,
  467. icon: 'none'
  468. })
  469. }
  470. })
  471. } else if (res.cancel) {
  472. console.log('用户点击取消')
  473. }
  474. }
  475. })
  476. },
  477. // 评价订单
  478. pingjia(e) {
  479. // #ifdef MP-WEIXIN
  480. if (uni.getStorageSync('sendMsg')) {
  481. console.log('授权+1')
  482. wx.requestSubscribeMessage({
  483. tmplIds: this.arr,
  484. success(re) {
  485. console.log(JSON.stringify(re), 111111111111)
  486. var datas = JSON.stringify(re)
  487. if (datas.indexOf('accept') != -1) {
  488. // console.log(re)
  489. }
  490. },
  491. fail: (res) => {
  492. // console.log(res)
  493. }
  494. })
  495. }
  496. // #endif
  497. console.log(e)
  498. let ordersId = e.orderId
  499. let orderNumber = e.orderNumber
  500. let goodsId = []
  501. if (e.orderGoodsList) {
  502. e.orderGoodsList.forEach((res) => {
  503. goodsId.push(res.goodsId)
  504. })
  505. }
  506. uni.navigateTo({
  507. url: '/pages/order/feedback?ordersId=' + ordersId + '&orderNumber=' + orderNumber + '&goodsId=' + goodsId.toString() + '&shopId=' + e.shopId
  508. })
  509. },
  510. pingjias(e) {
  511. // #ifdef MP-WEIXIN
  512. if (uni.getStorageSync('sendMsg')) {
  513. console.log('授权+1')
  514. wx.requestSubscribeMessage({
  515. tmplIds: this.arr,
  516. success(re) {
  517. console.log(JSON.stringify(re), 111111111111)
  518. var datas = JSON.stringify(re)
  519. if (datas.indexOf('accept') != -1) {
  520. // console.log(re)
  521. }
  522. },
  523. fail: (res) => {
  524. // console.log(res)
  525. }
  526. })
  527. }
  528. // #endif
  529. uni.navigateTo({
  530. url: '/pages/order/feedbacks?indentNumber=' + e.indentNumber
  531. })
  532. },
  533. goShop(e) {
  534. // #ifdef MP-WEIXIN
  535. if (uni.getStorageSync('sendMsg')) {
  536. console.log('授权+1')
  537. wx.requestSubscribeMessage({
  538. tmplIds: this.arr,
  539. success(re) {
  540. console.log(JSON.stringify(re), 111111111111)
  541. var datas = JSON.stringify(re)
  542. if (datas.indexOf('accept') != -1) {
  543. // console.log(re)
  544. }
  545. },
  546. fail: (res) => {
  547. // console.log(res)
  548. }
  549. })
  550. }
  551. // #endif
  552. uni.navigateTo({
  553. url: '/pages/index/shop/index?shopId=' + e
  554. })
  555. },
  556. // 完成订单
  557. finish(e) {
  558. // #ifdef MP-WEIXIN
  559. if (uni.getStorageSync('sendMsg')) {
  560. console.log('授权+1')
  561. wx.requestSubscribeMessage({
  562. tmplIds: this.arr,
  563. success(re) {
  564. console.log(JSON.stringify(re), 111111111111)
  565. var datas = JSON.stringify(re)
  566. if (datas.indexOf('accept') != -1) {
  567. // console.log(re)
  568. }
  569. },
  570. fail: (res) => {
  571. // console.log(res)
  572. }
  573. })
  574. }
  575. // #endif
  576. let that = this
  577. console.log(e)
  578. uni.showModal({
  579. title: '提示',
  580. content: '确认订单完成吗?',
  581. success: function (res) {
  582. if (res.confirm) {
  583. console.log('用户点击确定')
  584. let data = {
  585. orderId: e.orderId
  586. }
  587. that.$Request.post('/app/order/accomplishOrder', data).then((res) => {
  588. if (res.code == 0) {
  589. uni.showToast({
  590. title: '订单完成',
  591. icon: 'none'
  592. })
  593. that.getOrderList()
  594. } else {
  595. uni.showToast({
  596. title: res.msg,
  597. icon: 'none'
  598. })
  599. }
  600. })
  601. } else if (res.cancel) {
  602. console.log('用户点击取消')
  603. }
  604. }
  605. })
  606. },
  607. switchTab(e) {
  608. // #ifdef MP-WEIXIN
  609. if (uni.getStorageSync('sendMsg')) {
  610. console.log('授权+1')
  611. wx.requestSubscribeMessage({
  612. tmplIds: this.arr,
  613. success(re) {
  614. console.log(JSON.stringify(re), 111111111111)
  615. var datas = JSON.stringify(re)
  616. if (datas.indexOf('accept') != -1) {
  617. // console.log(re)
  618. }
  619. },
  620. fail: (res) => {
  621. // console.log(res)
  622. }
  623. })
  624. }
  625. // #endif
  626. this.page = 1
  627. this.status = ''
  628. this.orderType = e
  629. this.current = 0
  630. this.current1 = 0
  631. this.order = []
  632. this.orderList = []
  633. console.log(e)
  634. if (this.orderType == 3) {
  635. this.orderList_()
  636. } else {
  637. this.getOrderList()
  638. }
  639. },
  640. change(index) {
  641. // #ifdef MP-WEIXIN
  642. if (uni.getStorageSync('sendMsg')) {
  643. console.log('授权+1')
  644. wx.requestSubscribeMessage({
  645. tmplIds: this.arr,
  646. success(re) {
  647. console.log(JSON.stringify(re), 111111111111)
  648. var datas = JSON.stringify(re)
  649. if (datas.indexOf('accept') != -1) {
  650. // console.log(re)
  651. }
  652. },
  653. fail: (res) => {
  654. // console.log(res)
  655. }
  656. })
  657. }
  658. // #endif
  659. this.page = 1
  660. this.current = index
  661. switch (index) {
  662. case 0:
  663. this.status = '' //全部
  664. break
  665. case 1:
  666. this.status = 7 //待接单
  667. break
  668. case 2:
  669. this.status = 6 //制作中
  670. break
  671. case 3:
  672. this.status = 3 //待取餐
  673. break
  674. case 4:
  675. this.status = 4 //已完成
  676. break
  677. case 5:
  678. this.status = 5 //已取消
  679. break
  680. }
  681. this.getOrderList()
  682. },
  683. change1(index) {
  684. // #ifdef MP-WEIXIN
  685. if (uni.getStorageSync('sendMsg')) {
  686. console.log('授权+1')
  687. wx.requestSubscribeMessage({
  688. tmplIds: this.arr,
  689. success(re) {
  690. console.log(JSON.stringify(re), 111111111111)
  691. var datas = JSON.stringify(re)
  692. if (datas.indexOf('accept') != -1) {
  693. // console.log(re)
  694. }
  695. },
  696. fail: (res) => {
  697. // console.log(res)
  698. }
  699. })
  700. }
  701. // #endif
  702. this.page = 1
  703. this.current1 = index
  704. switch (index) {
  705. case 0:
  706. this.status = '' //全部
  707. break
  708. case 1:
  709. this.status = 7 //待接单
  710. break
  711. case 2:
  712. this.status = 6 //制作中
  713. break
  714. case 3:
  715. this.status = 3 //配送中
  716. break
  717. case 4:
  718. this.status = 4 //已完成
  719. break
  720. case 5:
  721. this.status = 5 //已取消
  722. break
  723. }
  724. this.getOrderList()
  725. },
  726. change2(index) {
  727. // #ifdef MP-WEIXIN
  728. if (uni.getStorageSync('sendMsg')) {
  729. console.log('授权+1')
  730. wx.requestSubscribeMessage({
  731. tmplIds: this.arr,
  732. success(re) {
  733. console.log(JSON.stringify(re), 111111111111)
  734. var datas = JSON.stringify(re)
  735. if (datas.indexOf('accept') != -1) {
  736. // console.log(re)
  737. }
  738. },
  739. fail: (res) => {
  740. // console.log(res)
  741. }
  742. })
  743. }
  744. // #endif
  745. this.current2 = index
  746. this.currentIndex = this.paotuiList[index].id
  747. this.page = 1
  748. this.orderList_()
  749. },
  750. goNav(url) {
  751. // #ifdef MP-WEIXIN
  752. if (uni.getStorageSync('sendMsg')) {
  753. console.log('授权+1')
  754. wx.requestSubscribeMessage({
  755. tmplIds: this.arr,
  756. success(re) {
  757. console.log(JSON.stringify(re), 111111111111)
  758. var datas = JSON.stringify(re)
  759. if (datas.indexOf('accept') != -1) {
  760. // console.log(re)
  761. }
  762. },
  763. fail: (res) => {
  764. // console.log(res)
  765. }
  766. })
  767. }
  768. // #endif
  769. uni.navigateTo({
  770. url
  771. })
  772. },
  773. // 跑腿订单获取
  774. orderList_() {
  775. let data = {
  776. page: this.page,
  777. limit: this.limit,
  778. indentState: this.currentIndex
  779. }
  780. this.$Request.getT('/app/tbindent/findUserIndent', data).then((res) => {
  781. // console.log(res)
  782. var that = this
  783. if (res.code === 0) {
  784. this.paotuiCount = res.data.totalCount
  785. if (that.page == 1) {
  786. that.order = res.data.list
  787. that.totalPage = res.data.totalPage
  788. }
  789. if (that.page > 1) {
  790. if (res.data.list.length > 0) {
  791. that.order = that.order.concat(res.data.list)
  792. }
  793. }
  794. }
  795. uni.stopPullDownRefresh()
  796. uni.hideLoading()
  797. })
  798. },
  799. // 外卖数据列表
  800. getOrderList() {
  801. let data = {
  802. page: this.page,
  803. limit: this.limit,
  804. status: this.status,
  805. orderType: this.orderType
  806. }
  807. this.$Request.get('/app/order/waitTakeFood', data).then((res) => {
  808. if (res.code == 0) {
  809. this.waimaiCount = res.data.totalCount
  810. res.data.list.forEach((res) => {
  811. res.orderGoodsList.forEach((ret) => {
  812. if (ret.goodsPicture) {
  813. ret.goodsPicture = ret.goodsPicture.split(',')
  814. }
  815. })
  816. res.orderCode = res.orderCode.substring(res.orderCode.length - 3, res.orderCode.length)
  817. })
  818. console.log(res.data.list, 'jjjjj')
  819. if (this.page == 1) {
  820. this.orderList = res.data.list
  821. } else {
  822. this.orderList = [...this.orderList, ...res.data.list]
  823. }
  824. }
  825. uni.stopPullDownRefresh()
  826. uni.hideLoading()
  827. })
  828. },
  829. // 再来一单
  830. bindorder(e) {
  831. // #ifdef MP-WEIXIN
  832. if (uni.getStorageSync('sendMsg')) {
  833. console.log('授权+1')
  834. wx.requestSubscribeMessage({
  835. tmplIds: this.arr,
  836. success(re) {
  837. console.log(JSON.stringify(re), 111111111111)
  838. var datas = JSON.stringify(re)
  839. if (datas.indexOf('accept') != -1) {
  840. // console.log(re)
  841. }
  842. },
  843. fail: (res) => {
  844. // console.log(res)
  845. }
  846. })
  847. }
  848. // #endif
  849. console.log(e)
  850. let index = e.indentType
  851. let current = e.buyType
  852. if (e.indentType == 1 || e.indentType == 2) {
  853. uni.navigateTo({
  854. url: '/running/Helpsend/Helpsend?indentNumber=' + e.indentNumber + '&index=' + index
  855. })
  856. } else if (e.indentType == 3) {
  857. uni.navigateTo({
  858. url: '/running/Helppay/Helppay?indentNumber=' + e.indentNumber + '&index=' + index + '&current=' + current
  859. })
  860. } else {
  861. uni.navigateTo({
  862. url: '/running/Cityservice/Cityservice?indentNumber=' + e.indentNumber + '&index=' + index
  863. })
  864. }
  865. },
  866. // 订单详情
  867. bindorderDetail(indentNumber) {
  868. // #ifdef MP-WEIXIN
  869. if (uni.getStorageSync('sendMsg')) {
  870. console.log('授权+1')
  871. wx.requestSubscribeMessage({
  872. tmplIds: this.arr,
  873. success(re) {
  874. console.log(JSON.stringify(re), 111111111111)
  875. var datas = JSON.stringify(re)
  876. if (datas.indexOf('accept') != -1) {
  877. // console.log(re)
  878. }
  879. },
  880. fail: (res) => {
  881. // console.log(res)
  882. }
  883. })
  884. }
  885. // #endif
  886. console.log(indentNumber)
  887. uni.navigateTo({
  888. url: '/pages/order/detail?indentNumber=' + indentNumber
  889. })
  890. },
  891. // 立即付款
  892. bindorderpay(e) {
  893. uni.navigateTo({
  894. url: '/running/order/pay/pay?indentNumber=' + e.indentNumber
  895. })
  896. },
  897. // 拨打电话
  898. bindphone(e) {
  899. console.log(e)
  900. uni.makePhoneCall({
  901. phoneNumber: e
  902. })
  903. }
  904. },
  905. onReachBottom: function () {
  906. if (this.orderType == 3) {
  907. if (this.order.length < this.paotuiCount) {
  908. this.page = this.page + 1
  909. this.orderList_()
  910. } else {
  911. uni.showToast({
  912. title: '已经到底了',
  913. icon: 'none'
  914. })
  915. }
  916. } else {
  917. if (this.orderList.length < this.waimaiCount) {
  918. this.page = this.page + 1
  919. this.getOrderList()
  920. } else {
  921. uni.showToast({
  922. title: '已经到底了',
  923. icon: 'none'
  924. })
  925. }
  926. }
  927. },
  928. onPullDownRefresh: function () {
  929. this.page = 1
  930. this.status = ''
  931. this.current = 0
  932. this.current1 = 0
  933. // console.log(e)
  934. if (this.orderType == 3) {
  935. this.orderList_()
  936. } else {
  937. this.getOrderList()
  938. }
  939. }
  940. }
  941. </script>
  942. <style scoped>
  943. .active {
  944. /* width: 82rpx; */
  945. height: 16rpx;
  946. background: #fcd202;
  947. position: relative;
  948. top: -20rpx;
  949. z-index: 9;
  950. }
  951. .bg {
  952. background-color: #ffffff;
  953. }
  954. /* 切换选项 */
  955. .nav {
  956. display: flex;
  957. align-items: center;
  958. justify-content: center;
  959. background-color: #ffffff;
  960. color: #999999;
  961. }
  962. .btn {
  963. width: 150rpx;
  964. height: 60rpx;
  965. line-height: 60rpx;
  966. text-align: center;
  967. background: #f5f5f5;
  968. font-size: 28rpx;
  969. border: 2rpx solid ##f5f5f5;
  970. color: #666666;
  971. border-radius: 50rpx;
  972. font-weight: 700;
  973. margin-left: 10rpx;
  974. }
  975. .btn_ {
  976. width: 150rpx;
  977. height: 60rpx;
  978. line-height: 60rpx;
  979. text-align: center;
  980. background: #fcd202;
  981. font-size: 28rpx;
  982. border: 2rpx solid #fcd202;
  983. color: #333333;
  984. border-radius: 50rpx;
  985. font-weight: 700;
  986. margin-left: 10rpx;
  987. }
  988. .tabBtn {
  989. /* background-color: #f6f6fa; */
  990. height: 60rpx;
  991. line-height: 60rpx;
  992. color: #999999;
  993. font-size: 38rpx;
  994. }
  995. .title {
  996. position: relative;
  997. z-index: 100;
  998. }
  999. .shaix {
  1000. width: 30%;
  1001. text-align: center;
  1002. display: flex;
  1003. align-items: center;
  1004. justify-content: center;
  1005. letter-spacing: 4rpx;
  1006. font-size: 27rpx;
  1007. }
  1008. .select {
  1009. color: #000000;
  1010. font-weight: bold;
  1011. background-color: #fff;
  1012. z-index: 10;
  1013. }
  1014. .nav view {
  1015. flex-grow: 1;
  1016. margin: 3% 6.5% 2%;
  1017. text-align: center;
  1018. }
  1019. .nav_btna {
  1020. font-size: 42rpx;
  1021. line-height: 34rpx;
  1022. color: #000000;
  1023. font-weight: bold;
  1024. border-bottom: 14rpx solid #fcd202;
  1025. }
  1026. /* 内容 */
  1027. /* 全部订单 */
  1028. .cont_one {
  1029. margin-top: 160rpx;
  1030. }
  1031. /* .cont_one image {
  1032. width: 80%;
  1033. height: 353rpx;
  1034. } */
  1035. /* 到店取餐 */
  1036. .cont_two {
  1037. display: none;
  1038. width: 94%;
  1039. margin: 3% auto;
  1040. background-color: #ffffff;
  1041. border-radius: 18rpx;
  1042. }
  1043. .cont {
  1044. /* display: none; */
  1045. width: 94%;
  1046. margin: 3% auto;
  1047. background-color: #ffffff;
  1048. border-radius: 18rpx;
  1049. /* padding: 20rpx 0; */
  1050. }
  1051. .cont_two_top {
  1052. width: 94%;
  1053. padding: 4% 3% 0;
  1054. margin: 0 auto;
  1055. display: flex;
  1056. justify-content: space-between;
  1057. }
  1058. .cont_two_top_le {
  1059. /* width: 85%; */
  1060. font-size: 30rpx;
  1061. font-weight: 500;
  1062. color: #333333;
  1063. /* line-height: 2; */
  1064. margin: 5rpx 0;
  1065. }
  1066. .cont_two_top_ri {
  1067. /* width: 15%; */
  1068. padding: 6rpx 10rpx;
  1069. text-align: center;
  1070. background: rgba(255, 19, 10, 0.2);
  1071. font-size: 24rpx;
  1072. border: 2rpx solid #ff130a;
  1073. color: #ff130a;
  1074. opacity: 0.6;
  1075. border-radius: 8rpx;
  1076. }
  1077. .cont_two_top_ri1 {
  1078. /* width: 15%; */
  1079. text-align: center;
  1080. /* line-height: 2; */
  1081. padding: 6rpx 10rpx;
  1082. background: #62ba8b;
  1083. font-size: 24rpx;
  1084. border: 2rpx solid #62ba8b;
  1085. color: #fff;
  1086. /* opacity: 0.6; */
  1087. border-radius: 8rpx;
  1088. }
  1089. .cont_two_top_ri2 {
  1090. /* width: 15%; */
  1091. text-align: center;
  1092. /* line-height: 2; */
  1093. padding: 6rpx 10rpx;
  1094. background: #fcd202;
  1095. font-size: 24rpx;
  1096. border: 2rpx solid #fcd202;
  1097. color: #fff;
  1098. /* opacity: 0.6; */
  1099. border-radius: 8rpx;
  1100. }
  1101. .cont_two_text {
  1102. font-size: 58rpx;
  1103. text-align: center;
  1104. font-weight: bold;
  1105. color: red;
  1106. margin: 3% 0;
  1107. line-height: 32rpx;
  1108. }
  1109. .cont_two_text2 {
  1110. font-size: 30rpx;
  1111. width: 100%;
  1112. font-weight: 500;
  1113. color: #333333;
  1114. text-align: center;
  1115. padding-bottom: 3%;
  1116. /* line-height: 32rpx; */
  1117. }
  1118. .cont_two_text2 text {
  1119. color: #ff130a;
  1120. }
  1121. .cont_two_bottom {
  1122. width: 94%;
  1123. padding: 3%;
  1124. margin: 0 auto;
  1125. display: flex;
  1126. border-top: 1rpx solid #e6e6e6;
  1127. }
  1128. .cont_two_bottom_le {
  1129. flex: 1;
  1130. font-size: 24rpx;
  1131. font-weight: 500;
  1132. color: #999999;
  1133. line-height: 32rpx;
  1134. }
  1135. .cont_two_bottom_ri {
  1136. flex: 1;
  1137. text-align: right;
  1138. }
  1139. .cont_two_bottom_ri image {
  1140. width: 14rpx;
  1141. height: 24rpx;
  1142. }
  1143. /* 外卖订单 */
  1144. .cont_three {
  1145. display: none;
  1146. width: 94%;
  1147. margin: 3% auto;
  1148. background-color: #ffffff;
  1149. border-radius: 18rpx;
  1150. }
  1151. .cont_three_top {
  1152. width: 94%;
  1153. padding: 4% 3% 0;
  1154. margin: 0 auto;
  1155. display: flex;
  1156. }
  1157. .cont_three_top_le {
  1158. flex: 2;
  1159. font-size: 30rpx;
  1160. font-weight: 500;
  1161. color: #d80204;
  1162. line-height: 32rpx;
  1163. }
  1164. .cont_three_top_ri {
  1165. flex: 1;
  1166. text-align: right;
  1167. font-size: 24rpx;
  1168. font-weight: 500;
  1169. color: #999999;
  1170. line-height: 32rpx;
  1171. }
  1172. .cont_three_text {
  1173. padding: 2% 0 2% 3%;
  1174. font-size: 24rpx;
  1175. font-weight: 500;
  1176. color: #999999;
  1177. line-height: 32rpx;
  1178. }
  1179. .cont_three_cen {
  1180. width: 94%;
  1181. padding: 0.5% 3%;
  1182. margin: 0 auto;
  1183. display: flex;
  1184. }
  1185. .cont_three_cen_le {
  1186. flex: 2;
  1187. font-size: 30rpx;
  1188. font-weight: 500;
  1189. color: #333333;
  1190. line-height: 32rpx;
  1191. }
  1192. .cont_three_cen_ri {
  1193. flex: 1;
  1194. text-align: right;
  1195. font-size: 24rpx;
  1196. font-weight: 500;
  1197. color: #999999;
  1198. line-height: 32rpx;
  1199. }
  1200. .cont_three_text2 {
  1201. font-size: 24rpx;
  1202. font-weight: 500;
  1203. color: #d80204;
  1204. padding: 0 3%;
  1205. line-height: 32rpx;
  1206. }
  1207. .cont_three_bottom {
  1208. width: 94%;
  1209. padding: 3%;
  1210. margin: 3% auto 0;
  1211. display: flex;
  1212. border-top: 1rpx solid #e6e6e6;
  1213. }
  1214. .cont_three_bottom_le {
  1215. flex: 1;
  1216. font-size: 24rpx;
  1217. font-weight: 500;
  1218. color: #999999;
  1219. line-height: 32rpx;
  1220. }
  1221. .cont_three_bottom_ri {
  1222. flex: 1;
  1223. text-align: right;
  1224. }
  1225. .cont_dis {
  1226. display: block;
  1227. }
  1228. .box {
  1229. /* width: 100%;
  1230. height: 100vh;
  1231. background-color: rgba(0, 0, 0, 0.2);
  1232. position: absolute;
  1233. top: 40px;
  1234. z-index: 999 */
  1235. }
  1236. .popbox {
  1237. width: 749upx;
  1238. /* height: 764upx; */
  1239. background: #ffffff;
  1240. padding-bottom: 72rpx;
  1241. z-inde: 999;
  1242. position: fixed;
  1243. top: 39px;
  1244. left: 0;
  1245. right: 0;
  1246. }
  1247. .impute {
  1248. background: #f2f2f2;
  1249. height: 80rpx;
  1250. margin: 20rpx 0;
  1251. }
  1252. .btns {
  1253. width: 690upx;
  1254. height: 88upx;
  1255. background: #ffcc00;
  1256. box-shadow: 0upx 10upx 20upx 0upx #ffd9b3;
  1257. border-radius: 16upx;
  1258. text-align: center;
  1259. line-height: 88rpx;
  1260. font-size: 32rpx;
  1261. font-weight: bold;
  1262. margin: 0 auto;
  1263. }
  1264. .empty {
  1265. width: 100%;
  1266. background: #ffffff;
  1267. /* #ifdef MP-WEIXIN */
  1268. height: 93vh;
  1269. /* #endif */
  1270. /* #ifndef MP-WEIXIN */
  1271. height: 80vh;
  1272. /* #endif */
  1273. }
  1274. .tabs_box {
  1275. display: none;
  1276. }
  1277. .dis {
  1278. display: block;
  1279. width: 100%;
  1280. }
  1281. .u-tab-item {
  1282. font-size: 30rpx !important;
  1283. /* color: #666666 !important; */
  1284. }
  1285. .success_box {
  1286. width: 100%;
  1287. }
  1288. .order_box {
  1289. width: 95%;
  1290. margin: 0 auto;
  1291. /* height: 420rpx; */
  1292. background: #ffffff;
  1293. margin-top: 20rpx;
  1294. border-radius: 10px;
  1295. /* padding: 20rpx 0rpx; */
  1296. }
  1297. .order_title {
  1298. width: 90%;
  1299. margin: 0 auto;
  1300. border-radius: 14px 14px, 0px, 0px;
  1301. background: rgba(255, 239, 222, 1);
  1302. height: 40upx;
  1303. color: rgba(255, 141, 26, 1);
  1304. font-size: 24upx;
  1305. line-height: 40upx;
  1306. text-align: center;
  1307. }
  1308. .order_success {
  1309. width: 90%;
  1310. margin: 0 auto;
  1311. display: flex;
  1312. height: 80upx;
  1313. }
  1314. .order_name {
  1315. flex: 1;
  1316. display: flex;
  1317. justify-content: left;
  1318. align-items: center;
  1319. font-weight: bold;
  1320. font-size: 31rpx;
  1321. letter-spacing: 1upx;
  1322. }
  1323. .order_data {
  1324. flex: 1;
  1325. color: #999999;
  1326. display: flex;
  1327. justify-content: flex-end;
  1328. align-items: center;
  1329. font-size: 27rpx;
  1330. }
  1331. .city_type {
  1332. width: 90%;
  1333. margin: 0 auto;
  1334. height: 60upx;
  1335. line-height: 60upx;
  1336. display: flex;
  1337. justify-content: left;
  1338. align-items: center;
  1339. }
  1340. .type_name {
  1341. font-size: 27rpx;
  1342. }
  1343. .city_text {
  1344. line-height: 36rpx;
  1345. color: #49a5ff;
  1346. background: #c4e2ff;
  1347. text-align: center;
  1348. font-size: 25rpx;
  1349. margin-left: 20rpx;
  1350. padding: 2rpx 10rpx;
  1351. }
  1352. .city_address {
  1353. width: 90%;
  1354. margin: 0 auto;
  1355. /* margin-top: -10rpx; */
  1356. }
  1357. /* 发货地址 */
  1358. .fh_box {
  1359. display: flex;
  1360. /* height: 80upx; */
  1361. margin-top: 25rpx;
  1362. }
  1363. .fh_image {
  1364. /* flex: 1; */
  1365. width: 10%;
  1366. }
  1367. .box {
  1368. /* flex: 11; */
  1369. width: 85%;
  1370. overflow: hidden;
  1371. }
  1372. .fh_name {
  1373. font-size: 31rpx;
  1374. font-weight: 600;
  1375. letter-spacing: 2upx;
  1376. }
  1377. .fh_type {
  1378. color: #999999;
  1379. font-size: 28rpx;
  1380. margin-top: 10rpx;
  1381. }
  1382. .fh_type text {
  1383. margin-left: 20upx;
  1384. }
  1385. /* 送货地址 */
  1386. .sh_box {
  1387. display: flex;
  1388. margin-bottom: 14upx;
  1389. margin-top: 25rpx;
  1390. }
  1391. .sh_image {
  1392. /* flex: 1; */
  1393. width: 10%;
  1394. }
  1395. .sh_name {
  1396. font-size: 31rpx;
  1397. font-weight: 600;
  1398. letter-spacing: 2upx;
  1399. }
  1400. .sh_type {
  1401. color: #999999;
  1402. font-size: 28rpx;
  1403. margin-top: 10rpx;
  1404. }
  1405. .sh_type text {
  1406. margin-left: 20upx;
  1407. }
  1408. .fh_image image {
  1409. width: 45upx;
  1410. height: 45upx;
  1411. }
  1412. .sh_image image {
  1413. width: 45upx;
  1414. height: 45upx;
  1415. }
  1416. .order_btn {
  1417. display: flex;
  1418. justify-content: flex-end;
  1419. align-items: center;
  1420. height: 80upx;
  1421. margin-top: 8upx;
  1422. padding: 0 20rpx;
  1423. }
  1424. .btn1 {
  1425. width: 170upx;
  1426. font-size: 26rpx;
  1427. line-height: 60upx;
  1428. text-align: center;
  1429. border: 3upx solid #9c9c9c;
  1430. border-radius: 20upx;
  1431. color: #9c9c9c;
  1432. margin-right: 30upx;
  1433. }
  1434. .btn2 {
  1435. width: 170upx;
  1436. line-height: 60upx;
  1437. color: white;
  1438. background: #ff6a04;
  1439. font-size: 27rpx;
  1440. text-align: center;
  1441. margin-right: 30upx;
  1442. border-radius: 20upx;
  1443. }
  1444. .btn3 {
  1445. width: 120upx;
  1446. font-size: 26rpx;
  1447. line-height: 60upx;
  1448. text-align: center;
  1449. border: 2upx solid #ff130a;
  1450. border-radius: 10upx;
  1451. color: #ff130a;
  1452. margin-right: 30upx;
  1453. background: rgba(255, 19, 10, 0.2);
  1454. opacity: 0.6;
  1455. }
  1456. </style>