index.vue 43 KB

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