|
@@ -155,8 +155,8 @@
|
|
|
provider: 'weixin',
|
|
|
success: async function(res) {
|
|
|
const aee = await that.$api(`/wechat/api/login/app`, 'GET', {
|
|
|
- js_code: res.code,
|
|
|
- config: 'pointApp'
|
|
|
+ config: that.$config.wx_projectkey,
|
|
|
+ js_code: res.code
|
|
|
})
|
|
|
if (aee.errcode == '0') {
|
|
|
that.$set(that, `openid`, aee.data.openid);
|
|
@@ -267,7 +267,7 @@
|
|
|
let user = that.user;
|
|
|
let detail = e.detail;
|
|
|
let res = await that.$api(`/wechat/api/login/getPhone`, 'GET', {
|
|
|
- config: 'pointApp',
|
|
|
+ config: that.$config.wx_projectkey,
|
|
|
code: detail.code
|
|
|
})
|
|
|
if (res.errcode == '0') {
|