Browse Source

update

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

7
App.vue

@ -27,7 +27,12 @@ export default {
return return
} }
let curVersion = plus.runtime.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 let client = uni.getSystemInfoSync().platform
if (client === 'ios') { if (client === 'ios') {
uni.showModal({ uni.showModal({

4
env/index.js

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

4
manifest.json

@ -2,8 +2,8 @@
"name" : "印包客", "name" : "印包客",
"appid" : "__UNI__EBBA73E", "appid" : "__UNI__EBBA73E",
"description" : "", "description" : "",
"versionName" : "1.0.0",
"versionCode" : 101,
"versionName" : "1.0.1",
"versionCode" : 100,
"transformPx" : false, "transformPx" : false,
"networkTimeout" : { "networkTimeout" : {
"request" : 6000 "request" : 6000

Loading…
Cancel
Save