Browse Source

[我的][修改]:[C端的版本号提取到ext.json]

tags/富茂链客4.1.0
meo 6 years ago
parent
commit
80a2a2f344
3 changed files with 8 additions and 1 deletions
  1. +1
    -0
      ext.json
  2. +6
    -0
      pages/user/index.js
  3. +1
    -1
      pages/user/index.wxml

+ 1
- 0
ext.json View File

@@ -4,6 +4,7 @@
"ext": {
"weappId": "wxea71200db93d756b",
"name": "富茂客官开发",
"appVersion":"C.3.4.1",
"attr": {
"ifHaveCarModular":"1",
"etcpversion":"release",


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

@@ -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({


+ 1
- 1
pages/user/index.wxml View File

@@ -75,7 +75,7 @@
</view>
<view class="margin"></view>
<view bindlongtap='showVersion' class='version'>
<view wx:if="{{flag=='show'}}">版本号:C.3.4.7</view>
<view wx:if="{{flag=='show'}}">版本号:{{appVersion}}</view>
<view wx:if="{{flag=='hidden'}}"></view>
</view>
</view>


Loading…
Cancel
Save