Browse Source

添加版本号

master
Enzo 4 years ago
parent
commit
22311ee16f
  1. 2
      common/api.js
  2. 2
      manifest.json
  3. 6
      pages/about/index.vue

2
common/api.js

@ -1,7 +1,7 @@
// appId: 正式 null | 测试 wxeb58570b5e04d147 // appId: 正式 null | 测试 wxeb58570b5e04d147
export const DEV = "prod"; // dev 测试 | prod 正式 export const DEV = "prod"; // dev 测试 | prod 正式
export const VERSION = '1.0.0'; // 版本号 export const VERSION = '1.0.0'; // 版本号
export const DEVURL = 'https://yytx.eugyl.com'; // 测试服请求地址
export const DEVURL = 'https://hainan.lanzulive.com'; // 测试服请求地址
// export const DEVURL = 'http://hainan.com'; // 测试服请求地址 // export const DEVURL = 'http://hainan.com'; // 测试服请求地址
export const PRODURL = 'https://yytx.eugyl.com'; // 正式服请求地址 export const PRODURL = 'https://yytx.eugyl.com'; // 正式服请求地址

2
manifest.json

@ -50,7 +50,7 @@
"quickapp" : {}, "quickapp" : {},
/* */ /* */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxeb58570b5e04d147",
"appid" : "wx5bd5789ad8f89524",
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : true,
"es6" : false, "es6" : false,

6
pages/about/index.vue

@ -1,5 +1,6 @@
<template> <template>
<view class="lf-m-l-32 lf-m-r-32"> <view class="lf-m-l-32 lf-m-r-32">
<view class="lf-row-center" style="font-size: 18rpx;color: #777;" v-if="version_number">当前版本号{{version_number}}</view>
<rich-text :nodes="content" v-if="$isRight(content)"></rich-text> <rich-text :nodes="content" v-if="$isRight(content)"></rich-text>
<lf-nocontent v-else></lf-nocontent> <lf-nocontent v-else></lf-nocontent>
<!-- 回到顶部 --> <!-- 回到顶部 -->
@ -11,10 +12,13 @@
export default { export default {
data(){ data(){
return { return {
content: ''
content: '',
version_number: '1.0.0'
} }
}, },
onLoad(){ onLoad(){
let info_sys = wx.getAccountInfoSync();
this.version_number = info_sys.miniProgram.version;
this.getData(); this.getData();
}, },
methods: { methods: {

Loading…
Cancel
Save