index.vue 40 KB

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