index.vue 39 KB

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