|
@@ -125,9 +125,26 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- const wxLoginClick = () => {
|
|
|
- toast("功能暂未开放!")
|
|
|
- return false
|
|
|
+ const wxLoginClick = () => {
|
|
|
+
|
|
|
+ //获取服务商信息判断手机端是否安装了app
|
|
|
+ // uni.getProvider({
|
|
|
+ // service: 'oauth',// oauth 代表授权登录
|
|
|
+ // success: function (res) {
|
|
|
+ // // 登录
|
|
|
+ // uni.login({
|
|
|
+ // // 表示授权方式 如果不设置则弹出登录列表选择界面
|
|
|
+ // provider: 'weixin',
|
|
|
+ // "onlyAuthorize": true, // 微信登录仅请求授权认证
|
|
|
+ // success: function (loginRes) {
|
|
|
+ // console.log('loginRes',loginRes);
|
|
|
+
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+
|
|
|
+
|
|
|
uni.login({
|
|
|
"provider": "weixin",
|
|
|
"onlyAuthorize": true, // 微信登录仅请求授权认证
|
|
@@ -154,4 +171,4 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-</script>
|
|
|
+</script>
|