提交 ec0c4ffe 编写于 作者: G gongfuxiang

微信小程序登录授权改为button形式

上级 a11b758d
......@@ -60,7 +60,7 @@ App({
// 请求地址
request_url: "{{request_url}}",
request_url: 'https://test.shopxo.net/',
//request_url: 'https://test.shopxo.net/',
// 基础信息
application_title: "{{application_title}}",
......@@ -208,7 +208,7 @@ App({
}
},
fail: function () {
$this.user_login(object, method);
$this.user_login(object, method, auth_data);
}
});
},
......@@ -265,7 +265,6 @@ App({
*/
get_user_login_info(object, method, openid, auth_data) {
var $this = this;
// 远程解密数据
wx.request({
url: $this.get_request_url('WechatUserInfo', 'user'),
......
......@@ -30,7 +30,6 @@ Page({
* 登录授权事件
*/
get_user_info_event(e) {
console.log(e);
this.user_auth_code(null, null, e.detail);
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册