版本更新

This commit is contained in:
2020-08-25 10:13:49 +08:00
parent 0d96af99e1
commit 27bdf1f2b0
6 changed files with 43 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
<template>
<u-modal v-model="show" :show-cancel-button="true" confirm-text="升级" title="发现新版本" @cancel="cancel" @confirm="confirm">
<u-modal v-model="show" :show-cancel-button="is_focus_upgrade" confirm-text="升级" title="发现新版本" @cancel="cancel" @confirm="confirm">
<view class="u-update-content">
<rich-text :nodes="content"></rich-text>
<!-- <rich-text :nodes="content"></rich-text> -->
</view>
</u-modal>
</template>
@@ -10,6 +10,7 @@
export default {
data() {
return {
is_focus_upgrade: Boolean, // 是否强制更新
show: true,
// 传递给uni-app"rich-text"组件的内容,可以使用"<br>"进行换行
content: `
@@ -19,6 +20,9 @@
`,
}
},
onLoad(option) {
this.is_focus_upgrade = option.status == 1 ? false : true;
},
onReady() {
this.show = true;
},