index.vue 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699
  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(item.phone)">手机号:{{item.phone}}</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. this.totalCount = res.data.totalCount
  1134. this.show1 = true
  1135. }
  1136. });
  1137. }
  1138. },
  1139. onReachBottom: function() {
  1140. this.page = this.page + 1;
  1141. this.getOrderList();
  1142. if (this.totalCount == this.orderList.length) {
  1143. uni.showToast({
  1144. title: '已经到底了~',
  1145. icon: 'none'
  1146. })
  1147. }
  1148. },
  1149. onPullDownRefresh: function() {
  1150. this.page = 1;
  1151. this.getOrderList();
  1152. },
  1153. }
  1154. </script>
  1155. <style scoped>
  1156. .active {
  1157. width: 82rpx;
  1158. height: 6rpx;
  1159. background: #333333;
  1160. margin-left: 12rpx;
  1161. }
  1162. .bg {
  1163. background-color: #FFFFFF;
  1164. }
  1165. /* 切换选项 */
  1166. .nav {
  1167. display: flex;
  1168. align-items: center;
  1169. justify-content: center;
  1170. background-color: #FFFFFF;
  1171. color: #999999;
  1172. }
  1173. .btn {
  1174. /* padding: 10rpx 20rpx;
  1175. text-align: center;
  1176. background: rgba(255, 19, 10, 0.2);
  1177. font-size: 28rpx;
  1178. border: 2rpx solid #FF130A;
  1179. color: #FF130A;
  1180. opacity: 0.6;
  1181. border-radius: 8rpx; */
  1182. width: 150rpx;
  1183. height: 60rpx;
  1184. line-height: 60rpx;
  1185. text-align: center;
  1186. background: #F5F5F5;
  1187. font-size: 28rpx;
  1188. border: 2rpx solid ##F5F5F5;
  1189. color: #666666;
  1190. border-radius: 50rpx;
  1191. font-weight: 700;
  1192. margin-left: 10rpx;
  1193. }
  1194. .btnCm {
  1195. /* padding: 10rpx 20rpx;
  1196. text-align: center;
  1197. background: #0081FF;
  1198. font-size: 28rpx;
  1199. border: 2rpx solid #0081FF;
  1200. color: #FFFFFF;
  1201. opacity: 0.6;
  1202. border-radius: 8rpx; */
  1203. }
  1204. /* 拍照 */
  1205. .btn_pai{
  1206. width: 150rpx;
  1207. height: 60rpx;
  1208. line-height: 60rpx;
  1209. text-align: center;
  1210. background: rgba(255, 201, 189, 1);
  1211. font-size: 28rpx;
  1212. border: 2rpx solid rgba(255, 201, 189, 1);
  1213. color: #333333;
  1214. border-radius: 50rpx;
  1215. font-weight: 700;
  1216. margin-left: 15rpx;
  1217. }
  1218. .btn_ {
  1219. width: 150rpx;
  1220. height: 60rpx;
  1221. line-height: 60rpx;
  1222. text-align: center;
  1223. background: #FCD202;
  1224. font-size: 28rpx;
  1225. border: 2rpx solid #FCD202;
  1226. color: #333333;
  1227. border-radius: 50rpx;
  1228. font-weight: 700;
  1229. margin-left: 15rpx;
  1230. }
  1231. .tabBtn {
  1232. /* background-color: #f6f6fa; */
  1233. height: 60rpx;
  1234. line-height: 60rpx;
  1235. color: #000000;
  1236. font-size: 31rpx;
  1237. font-weight: bold;
  1238. }
  1239. .shaix {
  1240. width: 30%;
  1241. text-align: center;
  1242. display: flex;
  1243. align-items: center;
  1244. justify-content: center;
  1245. letter-spacing: 4rpx;
  1246. font-size: 27rpx;
  1247. }
  1248. .select {
  1249. color: #000000;
  1250. font-size: 31rpx;
  1251. font-weight: bold;
  1252. background-color: #fff;
  1253. }
  1254. .nav view {
  1255. flex-grow: 1;
  1256. margin: 3% 6.5% 2%;
  1257. text-align: center;
  1258. }
  1259. .nav_btna {
  1260. font-size: 42rpx;
  1261. line-height: 34rpx;
  1262. color: #000000;
  1263. font-weight: bold;
  1264. border-bottom: 14rpx solid #FCD202;
  1265. }
  1266. /* 内容 */
  1267. /* 全部订单 */
  1268. .cont_one {
  1269. /* margin-top: 160rpx; */
  1270. }
  1271. .cont_one image {
  1272. width: 80%;
  1273. height: 353rpx;
  1274. }
  1275. /* 到店取餐 */
  1276. .cont_two {
  1277. display: none;
  1278. width: 94%;
  1279. margin: 3% auto;
  1280. background-color: #FFFFFF;
  1281. border-radius: 18rpx;
  1282. }
  1283. .cont {
  1284. /* display: none; */
  1285. width: 94%;
  1286. margin: 3% auto;
  1287. background-color: #FFFFFF;
  1288. border-radius: 18rpx;
  1289. }
  1290. .order_title{
  1291. width: 90%;
  1292. margin: 0 auto;
  1293. border-radius: 14px 14px, 0px, 0px;
  1294. background: rgba(255, 239, 222, 1);
  1295. height: 40upx;
  1296. color: rgba(255, 141, 26, 1);
  1297. font-size: 24upx;
  1298. line-height: 40upx;
  1299. text-align: center;
  1300. }
  1301. .cont_two_top {
  1302. width: 94%;
  1303. padding: 4% 3% 0;
  1304. margin: 0 auto;
  1305. display: flex;
  1306. justify-content: space-between;
  1307. }
  1308. .cont_two_top_le {
  1309. width: 85%;
  1310. font-size: 30rpx;
  1311. font-weight: 500;
  1312. color: #333333;
  1313. /* line-height: 2; */
  1314. margin: 5rpx 0;
  1315. }
  1316. .cont_two_top_ri {
  1317. /* width: 15%; */
  1318. padding: 6rpx 10rpx;
  1319. text-align: center;
  1320. background: rgba(255, 19, 10, 0.2);
  1321. font-size: 24rpx;
  1322. border: 2rpx solid #FF130A;
  1323. color: #FF130A;
  1324. opacity: 0.6;
  1325. border-radius: 8rpx;
  1326. }
  1327. .cont_two_top_ri1 {
  1328. /* width: 15%; */
  1329. text-align: center;
  1330. /* line-height: 2; */
  1331. padding: 6rpx 10rpx;
  1332. background: #62ba8b;
  1333. font-size: 24rpx;
  1334. border: 2rpx solid #62ba8b;
  1335. color: #fff;
  1336. /* opacity: 0.6; */
  1337. border-radius: 8rpx;
  1338. }
  1339. .cont_two_top_ri2 {
  1340. /* width: 15%; */
  1341. text-align: center;
  1342. /* line-height: 2; */
  1343. padding: 6rpx 10rpx;
  1344. background: #FCD202;
  1345. font-size: 24rpx;
  1346. border: 2rpx solid #FCD202;
  1347. color: #fff;
  1348. /* opacity: 0.6; */
  1349. border-radius: 8rpx;
  1350. }
  1351. .cont_two_text {
  1352. font-size: 58rpx;
  1353. text-align: center;
  1354. font-weight: bold;
  1355. color: red;
  1356. margin: 3% 0;
  1357. line-height: 32rpx;
  1358. }
  1359. .cont_two_text2 {
  1360. font-size: 30rpx;
  1361. width: 100%;
  1362. font-weight: 500;
  1363. color: #333333;
  1364. text-align: center;
  1365. padding-bottom: 3%;
  1366. /* line-height: 32rpx; */
  1367. }
  1368. .cont_two_text2 text {
  1369. color: #FF130A;
  1370. }
  1371. .cont_two_bottom {
  1372. width: 94%;
  1373. padding: 3%;
  1374. margin: 0 auto;
  1375. display: flex;
  1376. border-top: 1rpx solid #E6E6E6;
  1377. }
  1378. .cont_two_bottom_le {
  1379. flex: 1;
  1380. font-size: 24rpx;
  1381. font-weight: 500;
  1382. color: #999999;
  1383. line-height: 32rpx;
  1384. }
  1385. .cont_two_bottom_ri {
  1386. flex: 1;
  1387. text-align: right;
  1388. }
  1389. .cont_two_bottom_ri image {
  1390. width: 14rpx;
  1391. height: 24rpx;
  1392. }
  1393. /* 外卖订单 */
  1394. .cont_three {
  1395. display: none;
  1396. width: 94%;
  1397. margin: 3% auto;
  1398. background-color: #FFFFFF;
  1399. border-radius: 18rpx;
  1400. }
  1401. .cont_three_top {
  1402. width: 94%;
  1403. padding: 4% 3% 0;
  1404. margin: 0 auto;
  1405. display: flex;
  1406. }
  1407. .cont_three_top_le {
  1408. flex: 2;
  1409. font-size: 30rpx;
  1410. font-weight: 500;
  1411. color: #D80204;
  1412. line-height: 32rpx;
  1413. }
  1414. .cont_three_top_ri {
  1415. flex: 1;
  1416. text-align: right;
  1417. font-size: 24rpx;
  1418. font-weight: 500;
  1419. color: #999999;
  1420. line-height: 32rpx;
  1421. }
  1422. .cont_three_text {
  1423. padding: 2% 0 2% 3%;
  1424. font-size: 24rpx;
  1425. font-weight: 500;
  1426. color: #999999;
  1427. line-height: 32rpx;
  1428. }
  1429. .cont_three_cen {
  1430. width: 94%;
  1431. padding: 0.5% 3%;
  1432. margin: 0 auto;
  1433. display: flex;
  1434. }
  1435. .cont_three_cen_le {
  1436. flex: 2;
  1437. font-size: 30rpx;
  1438. font-weight: 500;
  1439. color: #333333;
  1440. line-height: 32rpx;
  1441. }
  1442. .cont_three_cen_ri {
  1443. flex: 1;
  1444. text-align: right;
  1445. font-size: 24rpx;
  1446. font-weight: 500;
  1447. color: #999999;
  1448. line-height: 32rpx;
  1449. }
  1450. .cont_three_text2 {
  1451. font-size: 24rpx;
  1452. font-weight: 500;
  1453. color: #D80204;
  1454. padding: 0 3%;
  1455. line-height: 32rpx;
  1456. }
  1457. .cont_three_bottom {
  1458. width: 94%;
  1459. padding: 3%;
  1460. margin: 3% auto 0;
  1461. display: flex;
  1462. border-top: 1rpx solid #E6E6E6;
  1463. }
  1464. .cont_three_bottom_le {
  1465. flex: 1;
  1466. font-size: 24rpx;
  1467. font-weight: 500;
  1468. color: #999999;
  1469. line-height: 32rpx;
  1470. }
  1471. .cont_three_bottom_ri {
  1472. flex: 1;
  1473. text-align: right;
  1474. }
  1475. .cont_dis {
  1476. display: block;
  1477. }
  1478. .box {
  1479. width: 100%;
  1480. height: 100vh;
  1481. background-color: rgba(0, 0, 0, 0.2);
  1482. /* opacity: 0.2; */
  1483. position: absolute;
  1484. top: 40px;
  1485. z-index: 999
  1486. }
  1487. .popbox {
  1488. width: 749upx;
  1489. /* height: 764upx; */
  1490. background: #FFFFFF;
  1491. padding-bottom: 72rpx;
  1492. z-inde: 999;
  1493. /* #ifdef H5 */
  1494. position: fixed;
  1495. top: 120px;
  1496. left: 0;
  1497. right: 0;
  1498. /* #endif */
  1499. /* #ifndef H5 */
  1500. position: fixed;
  1501. top: 66rpx;
  1502. left: 0;
  1503. right: 0;
  1504. /* #endif */
  1505. }
  1506. .impute {
  1507. background: #F2F2F2;
  1508. height: 80rpx;
  1509. margin: 20rpx 0;
  1510. }
  1511. .btns {
  1512. width: 690upx;
  1513. height: 88upx;
  1514. background: #FF8D1A;
  1515. box-shadow: 0upx 10upx 20upx 0upx #FFD9B3;
  1516. border-radius: 16upx;
  1517. text-align: center;
  1518. line-height: 88rpx;
  1519. font-size: 32rpx;
  1520. font-weight: bold;
  1521. margin: 0 auto;
  1522. }
  1523. .tosend_header_food_le {
  1524. width: 15%;
  1525. }
  1526. .tosend_header_food_le image {
  1527. width: 110rpx;
  1528. height: 110rpx;
  1529. }
  1530. .u-border-top:after {
  1531. border: none !important;
  1532. }
  1533. /* 收货码弹框 */
  1534. .receipt_code {
  1535. width: 90%;
  1536. margin: 0 auto;
  1537. }
  1538. .code_title {
  1539. width: 100%;
  1540. line-height: 100rpx;
  1541. font-size: 31rpx;
  1542. font-weight: bold;
  1543. text-align: center;
  1544. letter-spacing: 2rpx;
  1545. margin-top: 21rpx;
  1546. margin-bottom: 25rpx;
  1547. }
  1548. .u-input--border {
  1549. border: 1px solid #F2F2F2 !important;
  1550. background: #F2F2F2 !important;
  1551. color: #999999 !important;
  1552. font-weight: 500 !important;
  1553. letter-spacing: 2rpx !important;
  1554. }
  1555. .u-input__input {
  1556. font-size: 30rpx;
  1557. font-weight: bold;
  1558. flex: 1;
  1559. color: #999999 !important;
  1560. min-height: 85rpx !important;
  1561. margin-top: 7rpx;
  1562. }
  1563. .sure {
  1564. width: 100%;
  1565. height: 80rpx;
  1566. background: rgba(245, 211, 71, 1);
  1567. color: white;
  1568. border-radius: 46rpx;
  1569. text-align: center;
  1570. line-height: 80rpx;
  1571. margin-top: 30rpx;
  1572. color: rgba(0, 0, 0, 1);
  1573. letter-spacing: 2rpx;
  1574. }
  1575. .sure2{
  1576. text-align: center;
  1577. color: rgba(0, 0, 0, 1);
  1578. line-height: 80rpx;
  1579. margin-top: 30rpx;
  1580. width: 100%;
  1581. height: 80rpx;
  1582. opacity: 1;
  1583. border-radius: 10rpx;
  1584. background: rgba(245, 211, 71, 1);
  1585. }
  1586. /* 确认送达拍照框 */
  1587. .phone_title{
  1588. margin-top: 10px;
  1589. width: 100%;
  1590. height: 40px;
  1591. /* background-color: #FF7F00; */
  1592. text-align: center;
  1593. line-height: 40px;
  1594. /* color:#FFFFFF; */
  1595. }
  1596. .phone_title2{
  1597. margin-top: 10px;
  1598. text-align: center;
  1599. color:#9d9d9d;
  1600. }
  1601. .code_title2 {
  1602. width: 100%;
  1603. line-height: 50rpx;
  1604. text-align: center;
  1605. letter-spacing: 2rpx;
  1606. margin-top: 21rpx;
  1607. margin-bottom: 25rpx;
  1608. }
  1609. .code_title3{
  1610. margin-left: -20px;
  1611. margin-top: 21rpx;
  1612. margin-bottom: 25rpx;
  1613. width: 638rpx;
  1614. height: 66rpx;
  1615. border-radius: 6rpx;
  1616. background: rgba(255, 245, 245, 1);
  1617. font-size: 24rpx;
  1618. line-height: 66rpx;
  1619. color: rgba(212, 48, 48, 1);
  1620. text-align: center;
  1621. }
  1622. </style>