index.vue 39 KB

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