index.vue 39 KB

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