1 Star 1 Fork 0

wmm387/时尚激情广场舞

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.js 950 Bytes
一键复制 编辑 原始数据 按行查看 历史
wmm387 提交于 2019-04-01 09:06 +08:00 . 修改后台接口
App({
onLaunch: function (options) {
// 登录
var that = this
wx.login({
success: res => {
if (res.code) {
wx.request({
url: that.globalData.url + 'accs/login',
method: 'POST',
data: {
gh_id: 'gh_39363a133f32',
code: res.code,
},
success: function (res) {
that.globalData.openId = res.data.msg
that.globalData.userId = res.data.data
}
})
} else {
console.log('登录失败' + res.errMsg)
}
}
})
},
onShow: function (options) {
this.globalData.referrerInfo = options.referrerInfo
},
globalData: {
version: '1.2.0',
gcwType: 'ssjqgcw',
referrerInfo: null,
userId: 0,
openId: null,
url: 'https://xcx.nanxuncn.com/api/gcw/second/',
imageUrl: 'https://xcx.nanxuncn.com',
globalFormIds: null
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wmm387/nanxun-wechatapp-gcw3.git
git@gitee.com:wmm387/nanxun-wechatapp-gcw3.git
wmm387
nanxun-wechatapp-gcw3
时尚激情广场舞
master

搜索帮助