index.vue 34 KB

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