index.vue 47 KB

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