qsh-webview-sdk 2.4.2 → 2.4.3
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/README.md +13 -14
- package/dist/qsh-webview-sdk.es.js +251 -284
- package/dist/qsh-webview-sdk.es.js.map +1 -1
- package/dist/qsh-webview-sdk.umd.js +1 -1
- package/dist/qsh-webview-sdk.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -596,10 +596,9 @@ qsh.chooseLocation({
|
|
|
596
596
|
latitude: 39.908823, // 初始纬度
|
|
597
597
|
longitude: 116.397470, // 初始经度
|
|
598
598
|
success: (res) => {
|
|
599
|
-
console.log(
|
|
600
|
-
console.log(
|
|
601
|
-
console.log(
|
|
602
|
-
console.log('经度:', res.longitude);
|
|
599
|
+
console.log(res.location);
|
|
600
|
+
console.log(res.formatted_address);
|
|
601
|
+
console.log(res.addressComponent);
|
|
603
602
|
},
|
|
604
603
|
fail: (err) => console.error(err)
|
|
605
604
|
});
|
|
@@ -626,20 +625,12 @@ qsh.printPdf({
|
|
|
626
625
|
});
|
|
627
626
|
```
|
|
628
627
|
|
|
629
|
-
## 兼容性
|
|
630
|
-
|
|
631
|
-
- 微信小程序 WebView
|
|
632
|
-
- UniApp APP 端 (Android/iOS)
|
|
633
|
-
- H5+ 环境
|
|
634
|
-
- NVUE 页面
|
|
635
|
-
- UVUE 页面 (UniApp X)
|
|
636
|
-
|
|
637
628
|
### 跳转其他微信小程序
|
|
638
629
|
|
|
639
630
|
```javascript
|
|
640
631
|
qsh.navigateToMiniProgram({
|
|
641
|
-
appid: ',
|
|
642
|
-
path: ',
|
|
632
|
+
appid: '',
|
|
633
|
+
path: '',
|
|
643
634
|
// release/trial/develop
|
|
644
635
|
env: 'release',
|
|
645
636
|
success: (res) => console.log('跳转成功', res),
|
|
@@ -668,6 +659,14 @@ qsh.manualShare({
|
|
|
668
659
|
对于isPublic:true时 用户点击分享的内容后会直接从基座首页跳转到h5Url, 对于isPublic:false时,基座完成登录流程后会携带参数h5Url=${encodeURIComponent(h5Url)}跳转到业务配置的h5首页, 在h5首页获取code和h5Url后根据需要自行处理登录逻辑和跳转
|
|
669
660
|
此方法会销毁当前H5页面并返回小程序基座
|
|
670
661
|
|
|
662
|
+
## 兼容性
|
|
663
|
+
|
|
664
|
+
- 微信小程序 WebView
|
|
665
|
+
- UniApp APP 端 (Android/iOS)
|
|
666
|
+
- H5+ 环境
|
|
667
|
+
- NVUE 页面
|
|
668
|
+
- UVUE 页面 (UniApp X)
|
|
669
|
+
|
|
671
670
|
## License
|
|
672
671
|
|
|
673
672
|
MIT
|