index.vue 46 KB

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