h5首页增加关闭h5访问通知
This commit is contained in:
parent
93f4aca944
commit
9dbf88174e
|
|
@ -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'); //竖屏正方向锁定
|
||||
|
|
|
|||
Loading…
Reference in New Issue