index.vue 44 KB

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