微信小程序登录授权改为button形式
parent
a11b758d70
commit
ec0c4ffe29
|
|
@ -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);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue