From 80a2a2f344cb8c9d933d298f44ad5c98468d6959 Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 28 Feb 2019 13:04:02 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=88=91=E7=9A=84][=E4=BF=AE=E6=94=B9]:[C?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7=E6=8F=90=E5=8F=96?= =?UTF-8?q?=E5=88=B0ext.json]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ext.json | 1 + pages/user/index.js | 6 ++++++ pages/user/index.wxml | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ext.json b/ext.json index 967ac9e..ccb426e 100644 --- a/ext.json +++ b/ext.json @@ -4,6 +4,7 @@ "ext": { "weappId": "wxea71200db93d756b", "name": "富茂客官开发", + "appVersion":"C.3.4.1", "attr": { "ifHaveCarModular":"1", "etcpversion":"release", diff --git a/pages/user/index.js b/pages/user/index.js index 6c53972..de5d512 100644 --- a/pages/user/index.js +++ b/pages/user/index.js @@ -1,3 +1,5 @@ +const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {} +console.log(extConfig) var config = require("../../config/config.js"); var app = getApp(); const Http = require("../../utils/HttpBasics"); @@ -97,6 +99,10 @@ Page({ */ onShow: function() { let that = this; + console.log(extConfig.appVersion) + that.setData({ + appVersion: extConfig.appVersion + }) let num = wx.getStorageSync('couponNum'); let num1 = wx.getStorageSync('couponNum2'); wx.hideTabBarRedDot({ diff --git a/pages/user/index.wxml b/pages/user/index.wxml index 55a3642..9dd0835 100644 --- a/pages/user/index.wxml +++ b/pages/user/index.wxml @@ -75,7 +75,7 @@ - 版本号:C.3.4.7 + 版本号:{{appVersion}}