|
@@ -42,7 +42,7 @@
|
|
<!-- <u-tabbar v-model="current" :list="list"></u-tabbar> -->
|
|
<!-- <u-tabbar v-model="current" :list="list"></u-tabbar> -->
|
|
<u-skeleton :loading="loading" :animation="true"></u-skeleton>
|
|
<u-skeleton :loading="loading" :animation="true"></u-skeleton>
|
|
<u-toast ref="ulogin" />
|
|
<u-toast ref="ulogin" />
|
|
- <luo-version-upgrade v-if="show_s == true" :url="url" :is_force="is_force" :describe="Copywriting"></luo-version-upgrade>
|
|
|
|
|
|
+ <luo-version-upgrade v-if="show_s == true" :version="platform" :url="url" :is_force="is_force" :describe="Copywriting"></luo-version-upgrade>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -73,6 +73,7 @@
|
|
url: '',
|
|
url: '',
|
|
is_force: false,
|
|
is_force: false,
|
|
Copywriting: '',
|
|
Copywriting: '',
|
|
|
|
+ platform:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -130,6 +131,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
system() {
|
|
system() {
|
|
|
|
+ console.log("在这里")
|
|
uni.getSystemInfo({
|
|
uni.getSystemInfo({
|
|
success: res => {
|
|
success: res => {
|
|
// let add = ''这个不要删除!
|
|
// let add = ''这个不要删除!
|
|
@@ -138,6 +140,8 @@
|
|
complete: err => {
|
|
complete: err => {
|
|
if (err.platform == 'android') {
|
|
if (err.platform == 'android') {
|
|
this.onLaunch_s()
|
|
this.onLaunch_s()
|
|
|
|
+ console.log("在这里2")
|
|
|
|
+ this.platform = err.platform
|
|
} else if (err.platform == 'ios') {
|
|
} else if (err.platform == 'ios') {
|
|
//
|
|
//
|
|
this.iosstartup()
|
|
this.iosstartup()
|
|
@@ -153,12 +157,6 @@
|
|
osType: 1
|
|
osType: 1
|
|
}
|
|
}
|
|
}).then(res => {
|
|
}).then(res => {
|
|
- //
|
|
|
|
- //
|
|
|
|
- // //最低版本
|
|
|
|
- // //更新文案
|
|
|
|
- // //最新版本
|
|
|
|
-
|
|
|
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
//
|
|
//
|
|
//版本号
|
|
//版本号
|
|
@@ -233,16 +231,8 @@
|
|
params: {
|
|
params: {
|
|
osType: 0
|
|
osType: 0
|
|
}
|
|
}
|
|
- }).then(res => {
|
|
|
|
-
|
|
|
|
- //最低版本
|
|
|
|
- //更新文案
|
|
|
|
- //下载最新版地址
|
|
|
|
- //最新版本
|
|
|
|
-
|
|
|
|
|
|
+ }).then(res =>{
|
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
|
|
-
|
|
|
|
- //版本号
|
|
|
|
if (wgtinfo.version == res.data.version) {
|
|
if (wgtinfo.version == res.data.version) {
|
|
this.show_s = false
|
|
this.show_s = false
|
|
// uni.showToast({
|
|
// uni.showToast({
|
|
@@ -250,7 +240,6 @@
|
|
// title: '已是最新版本',
|
|
// title: '已是最新版本',
|
|
// position: "bottom"
|
|
// position: "bottom"
|
|
// })
|
|
// })
|
|
-
|
|
|
|
} else if (wgtinfo.version != res.data.forceVersion) {
|
|
} else if (wgtinfo.version != res.data.forceVersion) {
|
|
this.Copywriting = res.data.msg
|
|
this.Copywriting = res.data.msg
|
|
this.show_s = true
|
|
this.show_s = true
|
|
@@ -262,7 +251,6 @@
|
|
this.show_s = true
|
|
this.show_s = true
|
|
this.url = res.data.url
|
|
this.url = res.data.url
|
|
}
|
|
}
|
|
-
|
|
|
|
})
|
|
})
|
|
|
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|