Commit a4c67afd by 张立顺

报错判断修复

1 parent a7be9857
...@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd' ...@@ -18,13 +18,13 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布 * 4预发布
* 5cdptest * 5cdptest
*/ */
let index = 3 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
const envName = accountInfo.miniProgram.envVersion const envName = accountInfo.miniProgram.envVersion
//手动控制体验版环境的请求 true就依据下面index false就默认2 //手动控制体验版环境的请求 true就依据下面index false就默认2
const manual = true const manual = false
const release = false const release = false
// 判断小程序环境 // 判断小程序环境
......
...@@ -166,7 +166,7 @@ Component({ ...@@ -166,7 +166,7 @@ Component({
console.log('result', result) console.log('result', result)
let { data, code, message } = result let { data, code, message } = result
if (code) { if (code == 0) {
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
thisPage.setData({ thisPage.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!