index.vue 42 KB

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