index.vue 41 KB

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