Ver a proveniência

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

tags/富茂链客4.1.0
meo há 6 anos
ascendente
cometimento
35b7b1b4da
3 ficheiros alterados com 6 adições e 8 eliminações
  1. +5
    -4
      config/config.js
  2. +0
    -3
      pages/user/index.js
  3. +1
    -1
      project.config.json

+ 5
- 4
config/config.js Ver ficheiro

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


+ 0
- 3
pages/user/index.js Ver ficheiro

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


+ 1
- 1
project.config.json Ver ficheiro

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


Carregando…
Cancelar
Guardar