index.vue 41 KB

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