task.vue 23 KB

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