h5首页增加关闭h5访问通知

This commit is contained in:
YeMingfei666 2025-02-05 13:31:46 +08:00
parent 93f4aca944
commit 9dbf88174e
1 changed files with 27 additions and 9 deletions

View File

@ -54,16 +54,25 @@
</scroll-view>
</view>
</up-modal>
<up-modal :show="datas.ruleShow" v-if="datas.isExamine&&!datas.version.show" confirm-text="知道了" title="规则说明"
:title="datas.rule_title" :title-style="{fontWeight:'700'}" @confirm="ruleConfirm"
<!-- h5关闭通知 -->
<!-- #ifdef H5 -->
<up-modal :show="datas.stopShow"
cancel-text="知道了"
show-cancel-button
confirm-text="去下载" title="重要通知"
@cancel="stopCancel"
:title="datas.rule_title" :title-style="{fontWeight:'700'}" @confirm="stopConfirm"
confirm-color="rgb(255, 117, 129)">
<view class="u-p-30 u-text-left">
<scroll-view scroll-y="true" style="max-height: 50vh;">
<rich-text style="text-align: justify;font-size: 18px;color: #666;"
:nodes="datas.rule_content"></rich-text>
</scroll-view>
<view class="color-red u-text-left">
<text>2025年2月8日将关闭网页访问请及时下载最新APP</text>
</view>
</up-modal>
<!-- #endif -->
</template>
<script setup>
@ -115,7 +124,7 @@
list: [], //
page: 1, //
stopShow:true,//h5
ruleShow: false,
rule_title: '', //
rule_content: '', //
@ -156,6 +165,15 @@
getrecomVideo()
})
function stopConfirm(){
datas.stopShow=false
uni.navigateTo({
url:'/pages/login/download'
})
}
function stopCancel(){
datas.stopShow=false
}
function versionUpdate() {
//#ifdef APP-PLUS
plus.screen.lockOrientation('portrait-primary'); //