index.vue 42 KB

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