Commit 91e4cb7d32769160d648d64a8f4ab1a8584c1430
1 parent
882a21af
驾驶员新增载运量
Showing
4 changed files
with
22 additions
and
10 deletions
garbage-removal/package-lock.json
| @@ -4668,7 +4668,7 @@ | @@ -4668,7 +4668,7 @@ | ||
| 4668 | }, | 4668 | }, |
| 4669 | "node_modules/axios": { | 4669 | "node_modules/axios": { |
| 4670 | "version": "0.27.2", | 4670 | "version": "0.27.2", |
| 4671 | - "resolved": "https://registry.npmmirror.com/axios/-/axios-0.27.2.tgz", | 4671 | + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", |
| 4672 | "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", | 4672 | "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", |
| 4673 | "dependencies": { | 4673 | "dependencies": { |
| 4674 | "follow-redirects": "^1.14.9", | 4674 | "follow-redirects": "^1.14.9", |
garbage-removal/src/pages/order-info/order-driver/upload/index.vue
| @@ -83,7 +83,14 @@ | @@ -83,7 +83,14 @@ | ||
| 83 | }) | 83 | }) |
| 84 | 84 | ||
| 85 | const takeLocation = () => { | 85 | const takeLocation = () => { |
| 86 | - console.log("获取定位信息"); | 86 | + // 添加定位超时处理 |
| 87 | + setInterval(() => { | ||
| 88 | + if (!location.value.latitude) { | ||
| 89 | + uni.$u.toast("定位获取超时,请检查权限"); | ||
| 90 | + }else{ | ||
| 91 | + uni.$u.toast(location.value.longitude,location.value.latitude); | ||
| 92 | + } | ||
| 93 | + }, 5000); | ||
| 87 | // 获取定位信息 | 94 | // 获取定位信息 |
| 88 | window.JsInterface.takeLocation(); | 95 | window.JsInterface.takeLocation(); |
| 89 | } | 96 | } |
| @@ -179,7 +186,6 @@ | @@ -179,7 +186,6 @@ | ||
| 179 | } | 186 | } |
| 180 | 187 | ||
| 181 | if(typeof(location.value.latitude) === 'undefined'){ | 188 | if(typeof(location.value.latitude) === 'undefined'){ |
| 182 | - console.log('定位获取失败'); | ||
| 183 | uni.$u.toast("需要位置权限才能提交"); | 189 | uni.$u.toast("需要位置权限才能提交"); |
| 184 | return; | 190 | return; |
| 185 | } | 191 | } |
garbage-removal/src/pages/order/order-driver/swiper-list-item/index.vue
| @@ -23,8 +23,9 @@ | @@ -23,8 +23,9 @@ | ||
| 23 | <view class="title u-line-2">{{ item.garOrderAddress + item.garOrderAddressDetails }}</view> | 23 | <view class="title u-line-2">{{ item.garOrderAddress + item.garOrderAddressDetails }}</view> |
| 24 | <view class="type">垃圾类型: {{ item.garOrderTrashType }}</view> | 24 | <view class="type">垃圾类型: {{ item.garOrderTrashType }}</view> |
| 25 | <view class="delivery-time">预约时间 {{ item.garOrderAgreementTime }}</view> | 25 | <view class="delivery-time">预约时间 {{ item.garOrderAgreementTime }}</view> |
| 26 | + <view style="font-size: 24rpx;color: #19a97c;text-align: end;">载运量{{ item.garRealCarCount }}</view> | ||
| 26 | </view> | 27 | </view> |
| 27 | - </view> | 28 | + </view> |
| 28 | </view> | 29 | </view> |
| 29 | </view> | 30 | </view> |
| 30 | </z-paging> | 31 | </z-paging> |
garbage-removal/yarn.lock
| @@ -1417,6 +1417,16 @@ | @@ -1417,6 +1417,16 @@ | ||
| 1417 | "picocolors" "^1.0.0" | 1417 | "picocolors" "^1.0.0" |
| 1418 | "terser" "^5.4.0" | 1418 | "terser" "^5.4.0" |
| 1419 | 1419 | ||
| 1420 | +"@esbuild/win32-x64@0.16.17": | ||
| 1421 | + "integrity" "sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==" | ||
| 1422 | + "resolved" "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.16.17.tgz" | ||
| 1423 | + "version" "0.16.17" | ||
| 1424 | + | ||
| 1425 | +"@esbuild/win32-x64@0.17.19": | ||
| 1426 | + "integrity" "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==" | ||
| 1427 | + "resolved" "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz" | ||
| 1428 | + "version" "0.17.19" | ||
| 1429 | + | ||
| 1420 | "@intlify/core-base@9.1.9": | 1430 | "@intlify/core-base@9.1.9": |
| 1421 | "integrity" "sha512-x5T0p/Ja0S8hs5xs+ImKyYckVkL4CzcEXykVYYV6rcbXxJTe2o58IquSqX9bdncVKbRZP7GlBU1EcRaQEEJ+vw==" | 1431 | "integrity" "sha512-x5T0p/Ja0S8hs5xs+ImKyYckVkL4CzcEXykVYYV6rcbXxJTe2o58IquSqX9bdncVKbRZP7GlBU1EcRaQEEJ+vw==" |
| 1422 | "resolved" "https://registry.npmmirror.com/@intlify/core-base/-/core-base-9.1.9.tgz" | 1432 | "resolved" "https://registry.npmmirror.com/@intlify/core-base/-/core-base-9.1.9.tgz" |
| @@ -2663,7 +2673,7 @@ | @@ -2663,7 +2673,7 @@ | ||
| 2663 | 2673 | ||
| 2664 | "axios@^0.27.2": | 2674 | "axios@^0.27.2": |
| 2665 | "integrity" "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==" | 2675 | "integrity" "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==" |
| 2666 | - "resolved" "https://registry.npmmirror.com/axios/-/axios-0.27.2.tgz" | 2676 | + "resolved" "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz" |
| 2667 | "version" "0.27.2" | 2677 | "version" "0.27.2" |
| 2668 | dependencies: | 2678 | dependencies: |
| 2669 | "follow-redirects" "^1.14.9" | 2679 | "follow-redirects" "^1.14.9" |
| @@ -3677,11 +3687,6 @@ | @@ -3677,11 +3687,6 @@ | ||
| 3677 | "resolved" "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz" | 3687 | "resolved" "https://registry.npmmirror.com/fs.realpath/-/fs.realpath-1.0.0.tgz" |
| 3678 | "version" "1.0.0" | 3688 | "version" "1.0.0" |
| 3679 | 3689 | ||
| 3680 | -"fsevents@^2.3.2", "fsevents@~2.3.2": | ||
| 3681 | - "integrity" "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==" | ||
| 3682 | - "resolved" "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz" | ||
| 3683 | - "version" "2.3.3" | ||
| 3684 | - | ||
| 3685 | "function-bind@^1.1.2": | 3690 | "function-bind@^1.1.2": |
| 3686 | "integrity" "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" | 3691 | "integrity" "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" |
| 3687 | "resolved" "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz" | 3692 | "resolved" "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.2.tgz" |