task1.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  1. <template>
  2. <view class="app" style="padding-bottom: 100rpx;">
  3. <view class="hdr">
  4. <view class="header">
  5. <image class="header_bg" :src="userInfo.workState ? workStatus[userInfo.workState].img : workStatus[0].img" />
  6. <view class="header_nav">
  7. <view @click="exit()">
  8. <image class="header_left_img" src="@/static/task/task_left.png"></image>
  9. <text class="leftqh">退出</text>
  10. </view>
  11. <view style="text-align: center;font-size: 36rpx;color: #FFFFFF;">商家订单</view>
  12. <view @click="changeStatus()" v-if="userInfo.state" style="position: relative;">
  13. <!-- <image class="header_right_img" src="@/static/task/qiehuan.png"></image>-->
  14. <!-- <text class="qh">切换</text>-->
  15. </view>
  16. <view v-else></view>
  17. </view>
  18. <view class="status">
  19. <text>{{ '营业中' }}</text>
  20. </view>
  21. <!-- 提示信息 -->
  22. <view class="statistics-tip">
  23. <text>订单状态统计为近一个月数据</text>
  24. </view>
  25. </view>
  26. <!-- v-if="userInfo.state" -->
  27. <view class="nav_list">
  28. <view :class="['nav_list_item', {'selector': index === menuIndex}]" @click="toggleMenu(index)"
  29. v-for="(item, index) in menuList" :key="index">
  30. <text>{{ item.label }}</text>
  31. <text style="color: red;">({{ item.num }})</text>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="app-main">
  36. <view class="form" v-for="(item, index) in list" :key="index">
  37. <view class="form_item">
  38. <view class="form_item_l item2">{{ menuList[menuIndex].label }}</view>
  39. <!-- <view class="form_item_r">配送费<span style="color: red">¥{{ item.freightPrice }}</span></view> -->
  40. </view>
  41. <view class="form_item">
  42. <view class="form_item_l">门店名称</view>
  43. <view class="form_item_r">{{ storageMap[item.storeId] }} </view>
  44. </view>
  45. <view class="form_item" v-if="item.predictTime">
  46. <view class="form_item_l">送达时间</view>
  47. <view class="form_item_r">{{ item.predictTime }}</view>
  48. </view>
  49. <view class="form_item">
  50. <view class="form_item_l">订单编号</view>
  51. <view class="form_item_r">{{ item.orderId }}</view>
  52. </view>
  53. <view class="form_item">
  54. <view class="form_item_l">收货地址</view>
  55. <view class="form_item_r fr2">
  56. <view class="v1">
  57. <text class="shdz">{{ item.province }}-{{ item.city }}-{{ item.county }}-{{ item.userAddress }}</text>
  58. </view>
  59. <view class="v2">
  60. <image class="addr" src="@/static/task/xxxard.png" @click="openMap(item)" />
  61. </view>
  62. </view>
  63. </view>
  64. <view class="form_item">
  65. <view class="form_item_l">联系电话</view>
  66. <view class="form_item_r" @click="call(item.userPhone)">
  67. <text style="padding-right: 24rpx;">{{ item.userPhone }}</text>
  68. <image class="phone" src="@/static/task/call.png"></image>
  69. </view>
  70. </view>
  71. <view class="form_item">
  72. <view class="form_item_l">实付金额</view>
  73. <view class="form_item_r"><span style="color: red">¥{{ item.payPrice }}</span></view>
  74. </view>
  75. <view style="padding-bottom: 46rpx;padding-top: 36rpx;text-align: right;">
  76. <button class="btn btn2" @click="getDetails(item.id)">订单详情</button>
  77. <block>
  78. <button class="btn btn3" v-if="item.status===14"
  79. @click="handleOperation(item.id,'startStocking')">开始配货</button>
  80. <button class="btn btn3" v-if="item.status===16"
  81. @click="handleOperation(item.id,'completeAllocation')">完成配货</button>
  82. <button class="btn btn3"
  83. v-if="(item.status===20||item.status===32||item.status===30) && item.shippingType===1"
  84. @click="allot(item.storeId,item.orderId,item.postId)">{{ item.postId ? '重新配送' : '配送' }}</button>
  85. <button class="btn btn3" v-if="item.status===20 && item.shippingType===1"
  86. @click="handleOperation(item.id,'merchantDistribution')">商家自配</button>
  87. <button class="btn btn3" v-if="item.status===30"
  88. @click="handleOperation(item.id,'completeDelivery')">完成配送</button>
  89. <button class="btn btn3"
  90. v-if="(item.status===20||item.status===32||item.status===30) && item.shippingType===2"
  91. @click="handleOperation(item.id,'completePickup')">完成取货</button>
  92. </block>
  93. <!-- <block v-if="menuIndex == 0">
  94. <button class="btn btn3" @click="start(item)">开始配货</button>
  95. </block>
  96. <block v-if="menuIndex == 1">
  97. <button class="btn btn2 btn4" @click="order_error(item)">订单异常</button>
  98. <button class="btn btn3" @click="complete(item)">完成配货</button>
  99. </block>
  100. <block v-if="menuIndex == 2">
  101. <button class="btn btn2 btn4" @click="order_error(item)">订单异常</button>
  102. <button class="btn btn3" @click="complete(item)">完成配送</button>
  103. </block>
  104. <block v-if="menuIndex == 3">
  105. <button class="btn btn3" @click="complete(item)">完成配送</button>
  106. </block> -->
  107. </view>
  108. </view>
  109. <!-- <view v-if="list.length==0" style="text-align: center;padding-top: 60rpx;color: #999999;font-size: 30rpx;">
  110. 暂无任何信息
  111. </view> -->
  112. <!-- v-if="userInfo.state" -->
  113. <view class="loadMore">
  114. <uni-load-more :status="finish ? 'noMore' : 'more'" />
  115. </view>
  116. <!-- <view class="audit-box" v-else>审核中</view> -->
  117. <!-- <view class="botm">
  118. <view class="botm_inner">
  119. <image class="rw_img" src="../../static/task/fuwuxing.png"></image>
  120. <text class="botm_txt">
  121. 我的任务
  122. </text>
  123. </view>
  124. </view> -->
  125. <!-- 遮罩层-->
  126. <view v-if="errOrder.show == true" class="mask">
  127. <view class="mask-modal">
  128. <view class="mask-modal-tit">配送异常</view>
  129. <textarea class="mask_area" v-model="errOrder.msg" placeholder="请输入异常原因" placeholder-class="pl"></textarea>
  130. <view class="mask_bottom">
  131. <view>
  132. <button @click="checkErr(false)" style="float: left;" class="mask_btn">取消</button>
  133. </view>
  134. <view>
  135. <button @click="checkErr(true)" style="float: right;" class="mask_btn mask_btn2">确定</button>
  136. </view>
  137. </view>
  138. </view>
  139. </view>
  140. </view>
  141. <uni-popup ref="popup" type="bottom">
  142. <view class="popup_mask">
  143. <view class="popup_mask_tit">
  144. <text class="pop_t1">选择配送员</text>
  145. </view>
  146. <view class="pop_item">
  147. <uni-list border-full>
  148. <uni-list-item v-for="(item,index) in courierList" :key="item.id" :title="item.name"
  149. :note="`配送时间:${ item.deliveryStart }-${ item.deliveryEnd }`">
  150. <template v-slot:footer>
  151. <button class="btn3" size="mini" @click="check(item.id)">选择</button>
  152. </template>
  153. </uni-list-item>
  154. </uni-list>
  155. </view>
  156. </view>
  157. </uni-popup>
  158. <tab-bar :active="0"></tab-bar>
  159. </view>
  160. </template>
  161. <script>
  162. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  163. import TabBar from '../../components/tab-bar';
  164. import {
  165. mapState,
  166. mapMutations
  167. } from 'vuex';
  168. export default {
  169. components: {
  170. uniLoadMore,
  171. TabBar
  172. },
  173. computed: {
  174. ...mapState(['token', 'userInfo'])
  175. },
  176. data() {
  177. return {
  178. workStatus: [{
  179. lable: '休息中',
  180. value: 0,
  181. img: require('@/static/task/xiuxi.png')
  182. },
  183. {
  184. lable: '开工中',
  185. value: 1,
  186. img: require('@/static/task/kaigong.png')
  187. }
  188. ],
  189. menuIndex: 0,
  190. menuList: [{
  191. label: '待配货',
  192. status: 14,
  193. num: 0
  194. },
  195. {
  196. label: '配货中',
  197. status: 16,
  198. num: 0
  199. },
  200. {
  201. label: '待配送',
  202. status: 20,
  203. num: 0
  204. },
  205. {
  206. label: '配送中',
  207. status: 30,
  208. num: 0
  209. },
  210. {
  211. label: '已完成',
  212. status: '40,50',
  213. num: 0
  214. }
  215. ],
  216. list: [], // 任务列表
  217. pageNo: 1, // 页码
  218. pageSize: 10, // 页数
  219. loadData: false, // 列表加载中
  220. finish: false, // 列表全部加载完成
  221. storageMap: {},
  222. errOrder: {
  223. show: false,
  224. id: null,
  225. address: '',
  226. msg: ''
  227. },
  228. courierList: []
  229. }
  230. },
  231. onLoad() {
  232. let that = this;
  233. if (that.userInfo.state) {
  234. that.resetData();
  235. }
  236. uni.setTabBarItem({
  237. index: 0,
  238. visible: false,
  239. complete(e) {
  240. console.log(e)
  241. }
  242. })
  243. uni.setTabBarItem({
  244. index: 3,
  245. visible: false,
  246. complete(e) {
  247. console.log(e)
  248. }
  249. })
  250. this.listAllStorage()
  251. this.getTaskTotal()
  252. this.getTaskList()
  253. },
  254. //上拉加载
  255. onReachBottom() {
  256. uni.showNavigationBarLoading()
  257. this.getTaskList()
  258. },
  259. //下拉刷新
  260. onPullDownRefresh() {
  261. //uni.startPullDownRefresh()
  262. if (this.userInfo.state) {
  263. // 审核通过
  264. this.resetData();
  265. } else {
  266. // 审核中
  267. this.getUserInfo().then(res => {
  268. if (res) {
  269. this.resetData();
  270. } else {
  271. uni.showToast({
  272. title: '后台审核中'
  273. })
  274. }
  275. })
  276. }
  277. this.resetData()
  278. setTimeout(() => {
  279. uni.stopPullDownRefresh()
  280. }, 1000)
  281. },
  282. methods: {
  283. ...mapMutations(['saveUserInfo', 'logout']),
  284. goToOrderCancellation() {
  285. uni.navigateTo({
  286. url: '/pages/order/OrderCancellation' // 根据实际路径调整
  287. });
  288. },
  289. handleOperation(id, operation) {
  290. const operations = {
  291. startStocking: 'order/storeOrder/startStocking',
  292. completeAllocation: 'order/storeOrder/completeAllocation',
  293. merchantDistribution: 'order/storeOrder/merchantDistribution',
  294. completeDelivery: 'order/storeOrder/completeDelivery',
  295. completePickup: 'order/storeOrder/completePickup'
  296. }
  297. this.request('get', operations[operation], this.token, {
  298. id
  299. }).then(() => {
  300. uni.showToast({
  301. title: '操作成功'
  302. })
  303. this.resetData()
  304. })
  305. },
  306. allot(val, id, postId) {
  307. this.orderId = id
  308. if (postId) {
  309. this.reAllot(val, id)
  310. return
  311. }
  312. this.request('get', 'rider/rider/getRiderByStorageId', this.token, {
  313. storageId: val
  314. }).then(res => {
  315. if (res.code !== 200) {
  316. uni.showToast({
  317. title: res.message
  318. })
  319. return
  320. }
  321. this.courierList = res.data
  322. if (res.data[0].automatic === 1) {
  323. this.check(res.data[0].id)
  324. } else {
  325. this.$refs.popup.open()
  326. }
  327. })
  328. },
  329. reAllot(val, id) {
  330. this.orderId = id
  331. this.request('get', 'rider/rider/getRiderByStorageId', this.token, {
  332. storageId: val
  333. }).then(res => {
  334. this.courierList = res.data
  335. this.$refs.popup.open()
  336. })
  337. },
  338. check(val) {
  339. this.request('get', 'order/storeOrder/distributeOrder', this.token, {
  340. orderId: this.orderId,
  341. riderId: val
  342. }).then(res => {
  343. this.$refs.popup.close()
  344. uni.showToast({
  345. title: '操作成功'
  346. })
  347. this.resetData()
  348. })
  349. },
  350. listAllStorage() {
  351. this.request('get', 'storage/storage/list', this.token, null).then(({
  352. rows
  353. }) => {
  354. rows.forEach(storage => {
  355. this.storageMap[storage.id] = storage.name
  356. })
  357. })
  358. },
  359. /* 获取后台用户信息(进入即判断是否过期) */
  360. getUserInfo() {
  361. let that = this;
  362. return new Promise((resolve) => {
  363. that.request("get", "getInfo", that.token, null).then(res => {
  364. console.log('getUserInfo', res)
  365. if (res.code === 200) {
  366. that.saveUserInfo(newUserData); // 缓存用户基础数据
  367. resolve(true)
  368. } else {
  369. resolve(false)
  370. }
  371. })
  372. })
  373. },
  374. // 退出
  375. exit() {
  376. let that = this;
  377. uni.showModal({
  378. title: '系统提示',
  379. content: '是否确认退出?',
  380. showCancel: true,
  381. confirmText: '取消',
  382. cancelText: '确认',
  383. success: function(res) {
  384. if (res.cancel) {
  385. that.logout();
  386. uni.redirectTo({
  387. url: '/pages/login/merchant'
  388. })
  389. }
  390. }
  391. })
  392. },
  393. // 切换工作状态
  394. changeStatus() {
  395. let that = this
  396. let workState = that.userInfo.workState;
  397. let params = {
  398. riderId: that.userInfo.id
  399. }
  400. that.request("get", "rider/app/" + (workState ? 'toRest' : 'toWorking'), that.token, params).then(res => {
  401. console.log('changeStatus', res)
  402. if (res.code === 200) {
  403. that.userInfo.workState = workState ? 0 : 1;
  404. that.saveUserInfo(that.userInfo);
  405. that.resetData();
  406. }
  407. })
  408. },
  409. // 切换菜单
  410. toggleMenu(index) {
  411. this.finish = false
  412. // if (!this.userInfo.state) {
  413. // uni.showToast({
  414. // title: '审核中,可下拉获取最新审核状态'
  415. // })
  416. // return;
  417. // }
  418. if (!this.loadData) {
  419. this.menuIndex = index;
  420. this.pageNo = 1;
  421. this.list = [];
  422. this.getTaskList();
  423. } else {
  424. uni.showToast({
  425. title: '数据加载中,请稍后'
  426. })
  427. }
  428. },
  429. // 刷新页面数据
  430. resetData() {
  431. if (!this.loadData) {
  432. this.pageNo = 1;
  433. this.list = [];
  434. this.finish = false
  435. //this.getWorkStatus();
  436. this.listAllStorage()
  437. this.getTaskTotal();
  438. this.getTaskList();
  439. } else {
  440. uni.showToast({
  441. title: '数据加载中,请稍后'
  442. })
  443. }
  444. },
  445. //获取工作状态
  446. getWorkStatus() {
  447. let that = this;
  448. let params = {
  449. riderId: that.userInfo.id
  450. };
  451. that.request("get", "rider/app/getWorkingState", that.token, params).then(res => {
  452. console.log('getWorkStatus', res)
  453. that.status = res.data.workState == 1 ? true : false;
  454. })
  455. },
  456. // 获取订单坐标
  457. getOrderPoi(address) {
  458. console.log('address', address)
  459. const result = {
  460. lat: 0.00,
  461. lng: 0.00
  462. }
  463. return result;
  464. },
  465. // 拨打电话
  466. call(phone) {
  467. uni.makePhoneCall({
  468. phoneNumber: phone //仅为示例
  469. });
  470. },
  471. // 开启导航
  472. async openMap(data) {
  473. // data = {
  474. // province: '福建省',
  475. // city: '福州市',
  476. // county: '晋安区',
  477. // address: '长河路88号'
  478. // };
  479. let address = `${data.province}${data.city}${data.county}${data.address}`;
  480. if (data.latitude && data.longitude) {
  481. wx.openLocation({
  482. latitude: Number(data.latitude), // 纬度,范围为-90~90,负数表示南纬
  483. longitude: Number(data.longitude), // 经度,范围为-180~180,负数表示西经
  484. scale: 8, // 缩放比例
  485. name: data.address,
  486. address,
  487. success(success) {
  488. console.log('success', success)
  489. },
  490. fail(fail) {
  491. console.log('fail', fail)
  492. }
  493. })
  494. } else {
  495. uni.showToast({
  496. title: '经纬度获取失败,无法进行导航',
  497. icon: 'none',
  498. mask: true,
  499. duration: 2000
  500. });
  501. }
  502. },
  503. // 订单详情
  504. getDetails(id) {
  505. uni.navigateTo({
  506. url: `../order/order1?id=${id}`
  507. })
  508. },
  509. // 获取各类任务列表统计数量
  510. getTaskTotal() {
  511. let that = this;
  512. that.request("get", "order/storeOrder/statistical", that.token, null).then(res => {
  513. console.log(res.data)
  514. if (res.data) {
  515. let keys = ['waitingCount', 'beingDistributed', 'waitingToBeDelivered', 'inDelivery',
  516. 'completedCount'
  517. ];
  518. keys.forEach((keyName, index) => {
  519. that.menuList[index].num = res.data[keyName] || 0;
  520. })
  521. }
  522. })
  523. },
  524. // 获取任务列表
  525. getTaskList() {
  526. let that = this;
  527. if (that.finish) {
  528. return;
  529. }
  530. that.loadData = true;
  531. let params = {
  532. orderStatus: that.menuList[that.menuIndex].status,
  533. pageNum: that.pageNo,
  534. pageSize: that.pageSize
  535. };
  536. that.request("get", "order/storeOrder/list", that.token, params).then(res => {
  537. if (res.code === 200) {
  538. let newList = res.rows;
  539. console.log(newList)
  540. newList.forEach(item => {
  541. if (item.predictTime) {
  542. if (typeof(item.predictTime) === 'number') {
  543. item.predictTime = that.dateFtt('yyyy-MM-dd hh:mm:ss', new Date(item.predictTime))
  544. }
  545. }
  546. })
  547. that.list = that.list.concat(newList);
  548. that.finish = that.list.length >= res.total;
  549. that.pageNo++;
  550. that.loadData = false; // 获取结束
  551. } else {
  552. that.loadData = false; // 获取结束
  553. }
  554. })
  555. },
  556. //提交订单异常
  557. async checkErr(type) {
  558. let that = this
  559. if (type) {
  560. if (!that.errOrder.msg.length) {
  561. uni.showToast({
  562. title: '请输入异常原因'
  563. })
  564. return;
  565. }
  566. that.errOrder.show = false;
  567. let point = await that.getOrderPoi(that.errOrder.address);
  568. if (point) {
  569. let params = {
  570. riderOrderId: that.errOrder.id,
  571. reason: that.errOrder.msg,
  572. lng: point.lng,
  573. lat: point.lat
  574. }
  575. that.request("get", "rider/task/abnormal", that.token, params).then(res => {
  576. if (res.code == 200) {
  577. uni.showToast({
  578. title: '操作成功'
  579. })
  580. that.resetData()
  581. }
  582. })
  583. }
  584. } else {
  585. that.errOrder.show = false;
  586. }
  587. }
  588. }
  589. }
  590. </script>
  591. <style lang="scss" scoped>
  592. .popup_mask {
  593. width: 690rpx;
  594. padding: 0 30rpx;
  595. height: 500rpx;
  596. background-color: #FFFFFF;
  597. border-top-left-radius: 24rpx;
  598. border-top-right-radius: 24rpx;
  599. padding-bottom: 6rpx;
  600. }
  601. .popup_mask_tit {
  602. height: 104rpx;
  603. line-height: 104rpx;
  604. position: relative;
  605. }
  606. .pop_t1 {
  607. font-size: 32rpx;
  608. color: #333333;
  609. font-weight: bold;
  610. }
  611. .pop_item {
  612. height: calc(100% - 104rpx);
  613. overflow: auto;
  614. }
  615. .hdr {
  616. position: fixed;
  617. top: 0;
  618. left: 0;
  619. z-index: 99;
  620. width: 100vw;
  621. }
  622. .app-main {
  623. position: absolute;
  624. width: 750rpx;
  625. top: 410rpx;
  626. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  627. }
  628. .toLogin {
  629. padding-top: 100rpx;
  630. text-align: center;
  631. color: red;
  632. font-size: 30rpx;
  633. }
  634. .header_right_img {
  635. width: 56rpx;
  636. height: 56rpx;
  637. position: absolute;
  638. right: 72rpx;
  639. top: -6rpx;
  640. }
  641. .header_left_img {
  642. width: 30rpx;
  643. height: 30rpx;
  644. position: absolute;
  645. top: 10rpx;
  646. }
  647. .qh {
  648. font-size: 30rpx;
  649. color: #FFFFFF;
  650. position: absolute;
  651. right: 0;
  652. top: 4rpx;
  653. }
  654. .leftqh {
  655. font-size: 30rpx;
  656. color: #FFFFFF;
  657. position: absolute;
  658. left: 46rpx;
  659. top: 4rpx;
  660. }
  661. .app {
  662. background-color: #F6F6F6;
  663. }
  664. .ret {
  665. width: 20rpx;
  666. height: 36rpx;
  667. }
  668. .header {
  669. height: 322rpx;
  670. position: relative;
  671. }
  672. .header_bg {
  673. width: 750rpx;
  674. height: 322rpx;
  675. }
  676. .header_nav {
  677. width: 686rpx;
  678. display: flex;
  679. flex-direction: row;
  680. position: absolute;
  681. top: 60rpx;
  682. left: 32rpx;
  683. }
  684. .header_nav view {
  685. flex: 1;
  686. }
  687. .status {
  688. width: 750rpx;
  689. text-align: center;
  690. position: absolute;
  691. color: #FFFFFF;
  692. font-size: 48rpx;
  693. top: 164rpx;
  694. font-weight: bold;
  695. }
  696. .status text {
  697. display: inline-block;
  698. width: 242rpx;
  699. height: 84rpx;
  700. background-color: #FFFFFF;
  701. border-radius: 39rpx;
  702. text-align: center;
  703. line-height: 84rpx;
  704. color: #3662DD;
  705. }
  706. .nav_list {
  707. height: 88rpx;
  708. background-color: #FFFFFF;
  709. display: flex;
  710. flex-direction: row;
  711. position: relative;
  712. }
  713. .nav_list_item {
  714. flex: 1;
  715. height: 100%;
  716. line-height: 88rpx;
  717. text-align: center;
  718. font-size: 28rpx;
  719. color: #666666;
  720. &.selector {
  721. position: relative;
  722. &:after {
  723. position: absolute;
  724. content: '';
  725. bottom: 0;
  726. left: 50%;
  727. width: 56rpx;
  728. height: 8rpx;
  729. margin-left: -28rpx;
  730. ;
  731. border-radius: 4rpx;
  732. background-color: #3662DD;
  733. }
  734. }
  735. }
  736. .nav_list_item2 {
  737. width: 200rpx;
  738. position: absolute;
  739. right: 100rpx;
  740. }
  741. .nav_list_item3 {
  742. width: 100rpx;
  743. position: absolute;
  744. right: 0;
  745. }
  746. .form {
  747. padding: 0 47rpx;
  748. border-top: 24rpx solid #F6F6F6;
  749. background-color: #FFFFFF;
  750. }
  751. .form_item {
  752. height: 80rpx;
  753. border-bottom: 1rpx solid #F6F6F6;
  754. display: flex;
  755. flex-direction: row;
  756. }
  757. .selector {
  758. color: #3662DD;
  759. }
  760. .form_item_l {
  761. width: 170rpx;
  762. height: 98rpx;
  763. line-height: 98rpx;
  764. font-size: 28rpx;
  765. color: #999999;
  766. }
  767. .form_item_r {
  768. width: 486rpx;
  769. height: 98rpx;
  770. line-height: 98rpx;
  771. font-size: 28rpx;
  772. color: #333333;
  773. text-align: right;
  774. }
  775. .addr {
  776. display: inline-block;
  777. width: 34rpx;
  778. height: 36rpx;
  779. position: relative;
  780. top: 6rpx;
  781. }
  782. .phone {
  783. width: 38rpx;
  784. height: 36rpx;
  785. position: relative;
  786. top: 6rpx;
  787. }
  788. .item2 {
  789. font-weight: bold;
  790. color: #333333;
  791. font-size: 32rpx;
  792. }
  793. .btn {
  794. display: inline-block;
  795. width: 180rpx;
  796. height: 74rpx;
  797. line-height: 74rpx;
  798. color: #3662DD;
  799. font-size: 30rpx;
  800. border: 1rpx solid #3662DD;
  801. background-color: #FFFFFF;
  802. }
  803. .btn2 {
  804. margin-right: 30rpx;
  805. }
  806. .btn3 {
  807. background: linear-gradient(to right, #5095F4, #3662DD);
  808. color: #FFFFFF;
  809. border: none;
  810. }
  811. .btn3+.btn3 {
  812. margin-left: 30rpx;
  813. }
  814. .botm {
  815. height: 120rpx;
  816. background-color: #FFFFFF;
  817. position: fixed;
  818. bottom: 0;
  819. width: 750rpx;
  820. }
  821. .botm_inner {
  822. height: 120rpx;
  823. position: relative;
  824. font-size: 30rpx;
  825. color: #3662DD;
  826. }
  827. .rw_img {
  828. width: 58rpx;
  829. height: 64rpx;
  830. position: absolute;
  831. top: 28rpx;
  832. left: 240rpx;
  833. }
  834. .botm_txt {
  835. position: absolute;
  836. left: 328rpx;
  837. top: -6rpx;
  838. /* #ifdef H5 */
  839. top: 40rpx;
  840. /* #endif */
  841. }
  842. .btn4 {
  843. border-color: #FF473C;
  844. color: #FF473C;
  845. }
  846. .mask {
  847. position: fixed;
  848. top: 0;
  849. left: 0;
  850. z-index: 999;
  851. width: 100%;
  852. height: 100vh;
  853. background: rgba(0, 0, 0, 0.4);
  854. display: flex;
  855. justify-content: center;
  856. align-items: center;
  857. }
  858. .statistics-tip {
  859. position: absolute; /* 绝对定位 */
  860. left: 20rpx; /* 距离左侧的距离 */
  861. bottom: 10rpx; /* 距离底部的距离 */
  862. font-size: 24rpx;
  863. color: red;
  864. background-color: rgba(255, 255, 255, 0.8); /* 半透明背景 */
  865. padding: 6rpx 12rpx;
  866. border-radius: 8rpx;
  867. z-index: 1; /* 确保提示信息在 header 内容之上 */
  868. }
  869. .mask-modal {
  870. width: 600rpx;
  871. height: 520rpx;
  872. position: relative;
  873. background-color: #FFFFFF;
  874. border-radius: 16rpx;
  875. }
  876. .mask-modal-tit {
  877. color: #000000;
  878. font-size: 32rpx;
  879. padding: 40rpx 0;
  880. text-align: center;
  881. font-weight: bold;
  882. }
  883. .mask_area {
  884. width: 500rpx;
  885. height: 186rpx;
  886. font-size: 30rpx;
  887. background-color: #F8F8F8;
  888. margin: 0 auto;
  889. padding: 24rpx 20rpx;
  890. }
  891. .pl {
  892. font-size: 30rpx;
  893. color: #999999;
  894. }
  895. .mask_bottom {
  896. width: 500rpx;
  897. margin: 0 auto;
  898. display: flex;
  899. flex-direction: row;
  900. padding-top: 40rpx;
  901. }
  902. .mask_bottom view {
  903. flex: 1;
  904. height: 96rpx;
  905. }
  906. .mask_btn {
  907. width: 238rpx;
  908. height: 94rpx;
  909. line-height: 94rpx;
  910. font-size: 32rpx;
  911. border: 1rpx solid #3662DD;
  912. color: #3662DD;
  913. }
  914. .mask_btn2 {
  915. background: linear-gradient(to right, #5095F4, #3662DD);
  916. border: none;
  917. color: #FFFFFF;
  918. }
  919. .fr2 {
  920. display: flex;
  921. flex-direction: row;
  922. }
  923. .fr2 .v1 {
  924. width: 428rpx;
  925. height: 98rpx;
  926. line-height: 98rpx;
  927. text-align: right;
  928. overflow: hidden;
  929. white-space: nowrap;
  930. text-overflow: ellipsis;
  931. }
  932. .fr2 .v2 {
  933. width: 58rpx;
  934. text-align: right;
  935. height: 98rpx;
  936. }
  937. .bgcor {
  938. background-color: red;
  939. }
  940. .loadMore {
  941. // padding: 0 0 120rpx;
  942. background-color: #F6F6F6;
  943. }
  944. .audit-box {
  945. color: #c30d23;
  946. font-size: 38rpx;
  947. font-weight: 600;
  948. text-align: center;
  949. padding: 120rpx 0;
  950. }
  951. /* 核销按钮样式 */
  952. .write-off-btn {
  953. display: flex;
  954. align-items: center;
  955. justify-content: center;
  956. padding: 8rpx 16rpx;
  957. background-color: rgba(255, 255, 255, 0.2);
  958. border-radius: 24rpx;
  959. color: #FFFFFF;
  960. font-size: 28rpx;
  961. gap: 8rpx;
  962. }
  963. .write-off-icon {
  964. width: 32rpx;
  965. height: 32rpx;
  966. }
  967. </style>