wl-design-mobile 0.8.22 → 0.8.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/search/lambo-date.vue +7 -1
- package/util/jssdk.js +21 -5
package/package.json
CHANGED
package/search/lambo-date.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<lambo-vector-icon :icon="icon"></lambo-vector-icon>
|
|
10
10
|
</div>
|
|
11
11
|
<div>
|
|
12
|
-
<van-calendar v-model:show="showBottom" :
|
|
12
|
+
<van-calendar v-model:show="showBottom" :default-date="defaultDateArr" type="single" :max-date="maxDate"
|
|
13
13
|
:min-date="minDate" :style="{ maxHeight: '65%' }" color="#0070D2" @confirm="onConfirm"
|
|
14
14
|
get-container="body" :allow-same-day="allowSameDay"/>
|
|
15
15
|
</div>
|
|
@@ -62,6 +62,12 @@ export default {
|
|
|
62
62
|
defaultDateArr: ""
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
+
watch: {
|
|
66
|
+
// 监听父组件传入默认值变化,重置日历
|
|
67
|
+
defaultDate(newVal) {
|
|
68
|
+
this.initDefaultVal()
|
|
69
|
+
}
|
|
70
|
+
},
|
|
65
71
|
methods: {
|
|
66
72
|
onOpen() {
|
|
67
73
|
this.showBottom = true
|
package/util/jssdk.js
CHANGED
|
@@ -245,7 +245,7 @@ let JsSDK = (function () {
|
|
|
245
245
|
}
|
|
246
246
|
ccworkBridge.ccworkScanCode(params, (res) => {
|
|
247
247
|
console.log(res)
|
|
248
|
-
resolve(res)
|
|
248
|
+
resolve(res.result)
|
|
249
249
|
})
|
|
250
250
|
}else{
|
|
251
251
|
configWx().then(()=>{
|
|
@@ -282,7 +282,10 @@ let JsSDK = (function () {
|
|
|
282
282
|
quality: 'mid',
|
|
283
283
|
mode: 'camera'
|
|
284
284
|
}
|
|
285
|
-
ccworkBridge.ccworkGetPicsFromCameraAndAlbumV4(params, (res) => {
|
|
285
|
+
ccworkBridge.ccworkGetPicsFromCameraAndAlbumV4(params, (res) => {
|
|
286
|
+
console.log(res)
|
|
287
|
+
resolve(res.result)
|
|
288
|
+
})
|
|
286
289
|
}else{
|
|
287
290
|
configWx().then(()=>{
|
|
288
291
|
wx.chooseImage({
|
|
@@ -360,7 +363,10 @@ let JsSDK = (function () {
|
|
|
360
363
|
quality: 'mid',
|
|
361
364
|
mode: 'album'
|
|
362
365
|
}
|
|
363
|
-
ccworkBridge.ccworkGetPicsFromCameraAndAlbumV4(params, (res) => {
|
|
366
|
+
ccworkBridge.ccworkGetPicsFromCameraAndAlbumV4(params, (res) => {
|
|
367
|
+
console.log(res)
|
|
368
|
+
resolve(res.result)
|
|
369
|
+
})
|
|
364
370
|
} else {
|
|
365
371
|
configWx().then(() => {
|
|
366
372
|
wx.chooseImage({
|
|
@@ -440,7 +446,14 @@ let JsSDK = (function () {
|
|
|
440
446
|
reject('钉钉获取位置失败:'+error)
|
|
441
447
|
})
|
|
442
448
|
}else if(getAppType() === '40'){
|
|
443
|
-
ccworkBridge.ccworkGetLocation((res) => {
|
|
449
|
+
ccworkBridge.ccworkGetLocation((res) => {
|
|
450
|
+
console.log(res) //{"status": 1, "errormessage": "", "result": {"lat": "36.662029833742444", "lng": "117.12916891592852", "addr": "山东省济南市历下区草山岭西路6777路靠近浪潮图书馆", "country": "中国", "province": "山东省", "city": "济南市", "district": "历下区", "street": "草山岭西路", "streetNum": "6777路", "accuracy": 31, "course": 0, "speed": 0, "adcode": "370102", "citycode": "0531"}}
|
|
451
|
+
if(res.status === 1){
|
|
452
|
+
resolve({longitude:res.result.lng,latitude:res.result.lat});
|
|
453
|
+
}else{
|
|
454
|
+
reject('云上协同获取位置失败:'+res.errormessage)
|
|
455
|
+
}
|
|
456
|
+
})
|
|
444
457
|
}else{
|
|
445
458
|
configWx().then(()=>{
|
|
446
459
|
wx.getLocation({
|
|
@@ -490,7 +503,10 @@ let JsSDK = (function () {
|
|
|
490
503
|
dstlat: latitude,
|
|
491
504
|
coordtype: 'GCJ-02'
|
|
492
505
|
}
|
|
493
|
-
ccworkBridge.ccworkInvokeNavi(params, (res) => {
|
|
506
|
+
ccworkBridge.ccworkInvokeNavi(params, (res) => {
|
|
507
|
+
console.log(res)
|
|
508
|
+
resolve()
|
|
509
|
+
})
|
|
494
510
|
}else{
|
|
495
511
|
configWx().then(()=>{
|
|
496
512
|
wx.openLocation({
|