Browse Source

版本更新

devlop
mo-bai 4 years ago
parent
commit
f4f75647bd
3 changed files with 11 additions and 5 deletions
  1. 7
      App.vue
  2. 4
      env/index.js
  3. 5
      manifest.json

7
App.vue

@ -22,7 +22,12 @@ export default {
//#ifdef APP-PLUS
checkUpdate().then((version) => {
let curVersion = plus.runtime.version
if (version != curVersion) {
if (!version) {
version = curVersion
}
let curVersionNum = curVersion.split('.').join('') - 0 || 100
let versionNum = version.split('.').join('') - 0 || 100
if (curVersionNum < versionNum) {
let client = uni.getSystemInfoSync().platform
if (client === 'ios') {
uni.showModal({

4
env/index.js

@ -1,8 +1,8 @@
/**
* @description 唯一环境变量
*/
const env = 'test'
// const env = 'test'
// const env = 'dev'
// const env = 'production'
const env = 'production'
export default env

5
manifest.json

@ -2,7 +2,7 @@
"name" : "纸掌柜",
"appid" : "__UNI__8C1E198",
"description" : "",
"versionName" : "1.0.4",
"versionName" : "1.0.5",
"versionCode" : 100,
"transformPx" : false,
"networkTimeout" : {
@ -69,7 +69,8 @@
"NSLocationWhenInUseUsageDescription" : "该应用需要你的地理位置,以便为你提供当前位置附近印包厂信息",
"NSLocationAlwaysUsageDescription" : "该应用需要你的地理位置,以便为你提供当前位置附近印包厂信息",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "该应用需要你的地理位置,以便为你提供当前位置附近印包厂信息"
}
},
"idfa" : false
},
/* SDK */
"sdkConfigs" : {

Loading…
Cancel
Save