index.vue 37 KB

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