index.vue 43 KB

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