index.vue 44 KB

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