Browse Source

[我的][我的引入appVersion版本号修改]

tags/富茂链客4.1.0
meo 6 years ago
parent
commit
35b7b1b4da
3 changed files with 6 additions and 8 deletions
  1. +5
    -4
      config/config.js
  2. +0
    -3
      pages/user/index.js
  3. +1
    -1
      project.config.json

+ 5
- 4
config/config.js View File

@@ -1,14 +1,15 @@
const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
let weappId = extConfig.weappId;
let configUrl;
let configUrls;
console.log(Object.keys(extConfig).length)
if (Object.keys(extConfig).length == 0){
weappId = 'wx649b3be73c1afe47';
configUrl = 'https://ctest.malls.iformall.com/C/api';
configUrls = 'https://ctest.malls.iformall.com/C/api';
}else{
configUrl = extConfig.attr.configUrl;
configUrls = extConfig.attr.configUrl;
}
var config = {
url: configUrl,
url: configUrls,
api: {
/**
* 接口用途:login


+ 0
- 3
pages/user/index.js View File

@@ -1,10 +1,7 @@
const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
console.log(extConfig)
let appVersion;
if (Object.keys(extConfig).length == 0) {
appVersion = 'C.3.3.8';
} else {
configUrl = extConfig.attr.configUrl;
}
var config = require("../../config/config.js");
var app = getApp();


+ 1
- 1
project.config.json View File

@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.0.9",
"appid": "wx649b3be73c1afe47",
"appid": "wxb11603577a84a86d",
"projectname": "C%E7%AB%AF%E5%B0%8F%E7%A8%8B%E5%BA%8F",
"isGameTourist": false,
"condition": {


Loading…
Cancel
Save