task.vue 23 KB

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