配置全局变量

This commit is contained in:
姚亚男
2021-11-01 11:33:52 +08:00
parent 180ea3f9cc
commit fa409f4b4c
16 changed files with 39 additions and 48 deletions
+4 -2
View File
@@ -1,3 +1,5 @@
import {appId, secret} from '../js/project.config'
console.log(appId)
export function wxBind(callback){
// 获取openid进行手机号和微信的绑定
let count = 1
@@ -7,8 +9,8 @@ export function wxBind(callback){
wx.request({
url: 'https://api.weixin.qq.com/sns/jscode2session',
data: {
appid: 'wx457dfcb58fd556ea',
secret: 'e8d2ee25e32c77561efccb7145ba9dc8',
appid: appId,
secret: secret,
js_code: res.code,
grant_type: 'authorization_code'
},