index.vue 35 KB

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