task.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  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. uni.navigateTo({
  447. url: `../task/complete?id=${id}`
  448. })
  449. },
  450. // 获取各类任务列表统计数量
  451. getTaskTotal() {
  452. let that = this;
  453. that.request("get", "rider/task/statistical", that.token, null).then(res => {
  454. console.log(res.data)
  455. if (res.data) {
  456. let keys = ['waitingCount', 'dispenseCount', 'timeoutCount', 'abnormalCount', 'completedCount'];
  457. keys.forEach((keyName, index) => {
  458. that.menuList[index].num = res.data[keyName] || 0;
  459. })
  460. }
  461. })
  462. },
  463. // 获取任务列表
  464. getTaskList() {
  465. //console.log("getTaskList")
  466. let that = this;
  467. if (that.finish) {
  468. return;
  469. }
  470. that.loadData = true;
  471. let params = {
  472. status: that.menuList[that.menuIndex].status,
  473. page: that.pageNo,
  474. limit: that.pageSize
  475. };
  476. that.request("get", "rider/task/list", that.token, params).then(res => {
  477. if (res.code === 200) {
  478. let newList = res.rows;
  479. console.log(newList)
  480. newList.forEach(item => {
  481. if (item.predictTime) {
  482. if (typeof(item.predictTime) === 'number') {
  483. item.predictTime = that.dateFtt('yyyy-MM-dd hh:mm:ss', new Date(item.predictTime))
  484. }
  485. }
  486. })
  487. that.list = that.list.concat(newList);
  488. that.finish = newList.length >= res.total;
  489. that.pageNo++;
  490. that.loadData = false; // 获取结束
  491. } else {
  492. that.loadData = false; // 获取结束
  493. }
  494. })
  495. },
  496. // 开始配送
  497. async start(data) {
  498. let that = this;
  499. let id = data.id;
  500. let address = `${data.province}${data.city}${data.county}${data.address}`;
  501. let point = await that.getOrderPoi(address);
  502. if (point) {
  503. let params = {
  504. riderOrderId: id,
  505. lng: point.lng,
  506. lat: point.lat
  507. }
  508. that.request("get", "rider/task/begin", that.token, params).then(res => {
  509. // console.log(res)
  510. if (res.code == 200) {
  511. uni.showToast({
  512. title: '操作成功'
  513. })
  514. that.resetData()
  515. }
  516. })
  517. }
  518. },
  519. //订单异常
  520. order_error(data) {
  521. let that = this;
  522. let address = `${data.province}${data.city}${data.county}${data.address}`;
  523. that.errOrder = {
  524. show: true,
  525. id: data.id,
  526. address,
  527. msg: ''
  528. }
  529. },
  530. //提交订单异常
  531. async checkErr(type) {
  532. let that = this
  533. if (type) {
  534. if (!that.errOrder.msg.length) {
  535. uni.showToast({
  536. title: '请输入异常原因'
  537. })
  538. return;
  539. }
  540. that.errOrder.show = false;
  541. let point = await that.getOrderPoi(that.errOrder.address);
  542. if (point) {
  543. let params = {
  544. riderOrderId: that.errOrder.id,
  545. reason: that.errOrder.msg,
  546. lng: point.lng,
  547. lat: point.lat
  548. }
  549. that.request("get", "rider/task/abnormal", that.token, params).then(res => {
  550. if (res.code == 200) {
  551. uni.showToast({
  552. title: '操作成功'
  553. })
  554. that.resetData()
  555. }
  556. })
  557. }
  558. } else {
  559. that.errOrder.show = false;
  560. }
  561. }
  562. }
  563. }
  564. </script>
  565. <style lang="scss" scoped>
  566. .hdr {
  567. position: fixed;
  568. top: 0;
  569. left: 0;
  570. z-index: 99;
  571. width: 100vw;
  572. }
  573. .app-main {
  574. position: absolute;
  575. width: 750rpx;
  576. top: 410rpx;
  577. }
  578. .toLogin {
  579. padding-top: 100rpx;
  580. text-align: center;
  581. color: red;
  582. font-size: 30rpx;
  583. }
  584. .header_right_img {
  585. width: 56rpx;
  586. height: 56rpx;
  587. position: absolute;
  588. right: 72rpx;
  589. top: -6rpx;
  590. }
  591. .header_left_img {
  592. width: 30rpx;
  593. height: 30rpx;
  594. position: absolute;
  595. top: 10rpx;
  596. }
  597. .qh {
  598. font-size: 30rpx;
  599. color: #FFFFFF;
  600. position: absolute;
  601. right: 0;
  602. top: 4rpx;
  603. }
  604. .leftqh {
  605. font-size: 30rpx;
  606. color: #FFFFFF;
  607. position: absolute;
  608. left: 46rpx;
  609. top: 4rpx;
  610. }
  611. .app {
  612. background-color: #F6F6F6;
  613. }
  614. .ret {
  615. width: 20rpx;
  616. height: 36rpx;
  617. }
  618. .header {
  619. height: 322rpx;
  620. position: relative;
  621. }
  622. .header_bg {
  623. width: 750rpx;
  624. height: 322rpx;
  625. }
  626. .header_nav {
  627. width: 686rpx;
  628. display: flex;
  629. flex-direction: row;
  630. position: absolute;
  631. top: 60rpx;
  632. left: 32rpx;
  633. }
  634. .header_nav view {
  635. flex: 1;
  636. }
  637. .status {
  638. width: 750rpx;
  639. text-align: center;
  640. position: absolute;
  641. color: #FFFFFF;
  642. font-size: 48rpx;
  643. top: 164rpx;
  644. font-weight: bold;
  645. }
  646. .status text {
  647. display: inline-block;
  648. width: 242rpx;
  649. height: 84rpx;
  650. background-color: #FFFFFF;
  651. border-radius: 39rpx;
  652. text-align: center;
  653. line-height: 84rpx;
  654. color: #3662DD;
  655. }
  656. .nav_list {
  657. height: 88rpx;
  658. background-color: #FFFFFF;
  659. display: flex;
  660. flex-direction: row;
  661. position: relative;
  662. }
  663. .nav_list_item {
  664. flex: 1;
  665. height: 100%;
  666. line-height: 88rpx;
  667. text-align: center;
  668. font-size: 28rpx;
  669. color: #666666;
  670. &.selector {
  671. position: relative;
  672. &:after {
  673. position: absolute;
  674. content: '';
  675. bottom: 0;
  676. left: 50%;
  677. width: 56rpx;
  678. height: 8rpx;
  679. margin-left: -28rpx;
  680. ;
  681. border-radius: 4rpx;
  682. background-color: #3662DD;
  683. }
  684. }
  685. }
  686. .nav_list_item2 {
  687. width: 200rpx;
  688. position: absolute;
  689. right: 100rpx;
  690. }
  691. .nav_list_item3 {
  692. width: 100rpx;
  693. position: absolute;
  694. right: 0;
  695. }
  696. .form {
  697. padding: 0 47rpx;
  698. border-top: 24rpx solid #F6F6F6;
  699. background-color: #FFFFFF;
  700. }
  701. .form_item {
  702. height: 80rpx;
  703. border-bottom: 1rpx solid #F6F6F6;
  704. display: flex;
  705. flex-direction: row;
  706. }
  707. .selector {
  708. color: #3662DD;
  709. }
  710. .form_item_l {
  711. width: 170rpx;
  712. height: 98rpx;
  713. line-height: 98rpx;
  714. font-size: 28rpx;
  715. color: #999999;
  716. }
  717. .form_item_r {
  718. width: 486rpx;
  719. height: 98rpx;
  720. line-height: 98rpx;
  721. font-size: 28rpx;
  722. color: #333333;
  723. text-align: right;
  724. }
  725. .addr {
  726. display: inline-block;
  727. width: 34rpx;
  728. height: 36rpx;
  729. position: relative;
  730. top: 6rpx;
  731. }
  732. .phone {
  733. width: 38rpx;
  734. height: 36rpx;
  735. position: relative;
  736. top: 6rpx;
  737. }
  738. .item2 {
  739. font-weight: bold;
  740. color: #333333;
  741. font-size: 32rpx;
  742. }
  743. .btn {
  744. display: inline-block;
  745. width: 180rpx;
  746. height: 74rpx;
  747. line-height: 74rpx;
  748. color: #3662DD;
  749. font-size: 30rpx;
  750. border: 1rpx solid #3662DD;
  751. background-color: #FFFFFF;
  752. }
  753. .btn2 {
  754. margin-right: 30rpx;
  755. }
  756. .btn3 {
  757. background: linear-gradient(to right, #5095F4, #3662DD);
  758. color: #FFFFFF;
  759. border: none;
  760. }
  761. .botm {
  762. height: 120rpx;
  763. background-color: #FFFFFF;
  764. position: fixed;
  765. bottom: 0;
  766. width: 750rpx;
  767. }
  768. .botm_inner {
  769. height: 120rpx;
  770. position: relative;
  771. font-size: 30rpx;
  772. color: #3662DD;
  773. }
  774. .rw_img {
  775. width: 58rpx;
  776. height: 64rpx;
  777. position: absolute;
  778. top: 28rpx;
  779. left: 240rpx;
  780. }
  781. .botm_txt {
  782. position: absolute;
  783. left: 328rpx;
  784. top: -6rpx;
  785. /* #ifdef H5 */
  786. top: 40rpx;
  787. /* #endif */
  788. }
  789. .btn4 {
  790. border-color: #FF473C;
  791. color: #FF473C;
  792. }
  793. .mask {
  794. position: fixed;
  795. top: 0;
  796. left: 0;
  797. z-index: 999;
  798. width: 100%;
  799. height: 100vh;
  800. background: rgba(0, 0, 0, 0.4);
  801. display: flex;
  802. justify-content: center;
  803. align-items: center;
  804. }
  805. .mask-modal {
  806. width: 600rpx;
  807. height: 520rpx;
  808. position: relative;
  809. background-color: #FFFFFF;
  810. border-radius: 16rpx;
  811. }
  812. .mask-modal-tit {
  813. color: #000000;
  814. font-size: 32rpx;
  815. padding: 40rpx 0;
  816. text-align: center;
  817. font-weight: bold;
  818. }
  819. .mask_area {
  820. width: 500rpx;
  821. height: 186rpx;
  822. font-size: 30rpx;
  823. background-color: #F8F8F8;
  824. margin: 0 auto;
  825. padding: 24rpx 20rpx;
  826. }
  827. .pl {
  828. font-size: 30rpx;
  829. color: #999999;
  830. }
  831. .mask_bottom {
  832. width: 500rpx;
  833. margin: 0 auto;
  834. display: flex;
  835. flex-direction: row;
  836. padding-top: 40rpx;
  837. }
  838. .mask_bottom view {
  839. flex: 1;
  840. height: 96rpx;
  841. }
  842. .mask_btn {
  843. width: 238rpx;
  844. height: 94rpx;
  845. line-height: 94rpx;
  846. font-size: 32rpx;
  847. border: 1rpx solid #3662DD;
  848. color: #3662DD;
  849. }
  850. .mask_btn2 {
  851. background: linear-gradient(to right, #5095F4, #3662DD);
  852. border: none;
  853. color: #FFFFFF;
  854. }
  855. .fr2 {
  856. display: flex;
  857. flex-direction: row;
  858. }
  859. .fr2 .v1 {
  860. width: 428rpx;
  861. height: 98rpx;
  862. line-height: 98rpx;
  863. text-align: right;
  864. overflow: hidden;
  865. white-space: nowrap;
  866. text-overflow: ellipsis;
  867. }
  868. .fr2 .v2 {
  869. width: 58rpx;
  870. text-align: right;
  871. height: 98rpx;
  872. }
  873. .bgcor {
  874. background-color: red;
  875. }
  876. .loadMore {
  877. // padding: 0 0 120rpx;
  878. background-color: #F6F6F6;
  879. }
  880. .audit-box {
  881. color: #c30d23;
  882. font-size: 38rpx;
  883. font-weight: 600;
  884. text-align: center;
  885. padding: 120rpx 0;
  886. }
  887. </style>