瀏覽代碼

修改bug

dev
corala 3 年之前
父節點
當前提交
eda54d3cf8
共有 3 個檔案被更改,包括 19 行新增3 行删除
  1. +1
    -1
      pages/index/index.js
  2. +12
    -2
      pages/login/index.js
  3. +6
    -0
      project.private.config.json

+ 1
- 1
pages/index/index.js 查看文件

@@ -29,7 +29,7 @@ Page({
if (res.data.code == 0) {
let data = res.data.data
// gameVersion为指定发版,和后台是否保持一致,方便提审通过,后续只需更改1为2,3,4,5...
if(data.miniType==0&&data.gameVersion==1){
if(data.miniType==0&&data.gameVersion==2){
getApp().globalData.gameurl = data.linkUrl
that.tabindex(data.linkUrl)
}else{


+ 12
- 2
pages/login/index.js 查看文件

@@ -103,7 +103,8 @@ Page({
Authorization: 'bearer '+ that.data.token
},
success(res) {
if (res.statusCode == 200) {
console.log(res)
if (res.data.code==0) {
that.setData({
avatarModal: false,
step: 2
@@ -113,6 +114,11 @@ Page({
phoneModal: true
})
}
}else{
wx.showToast({
icon: 'none',
title: res.data.msg
})
}
}
})
@@ -125,7 +131,6 @@ Page({
// console.log(res)
that.bindNickname(res.userInfo)
getApp().globalData.userInfo.userWxName = res.userInfo.nickName
console.log(2121212)
console.log(getApp().globalData.userInfo)
}
})
@@ -161,6 +166,11 @@ Page({
getApp().globalData.userInfo.phone = res.data.data
console.log(getApp().globalData.userInfo)
that.leave()
}else{
wx.showToast({
icon: 'none',
title: res.data.msg
})
}
}
})


+ 6
- 0
project.private.config.json 查看文件

@@ -27,6 +27,12 @@
"pathName": "pages/index/index",
"query": "id=70",
"scene": null
},
{
"name": "pages/index/index",
"pathName": "pages/index/index",
"query": "id=77",
"scene": null
}
]
}


Loading…
取消
儲存