Files
lilishop-uniapp/pages/tabbar/screen/fullScreen.vue
Yer11214 349ffa4f34 refactor: 重构多个组件以支持 Vue 3 语法和功能
- 将多个组件转换为 `<script setup>` 语法,提升可读性和性能
- 优化状态管理和事件处理逻辑,简化代码结构
- 更新样式和布局以适应新组件结构
- 添加新功能和修复已知问题,提升用户体验
2026-07-08 18:37:11 +08:00

62 lines
1.6 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<u-modal v-model:show="show" cancelText="不同意" confirmText="同意" showCancelButton title="服务协议和隐私政策" @confirm="confirm" @cancel="cancel">
<view class="u-update-content">
请您务必审慎阅读,充分理解服务协议隐私政策各条款
包括但不限于为了更好的向你提供服务我们需要收集你的设备标识,
操作日志等信息用于分析优化应用性能 您可阅读你可阅读
<a @click="gotoLink">服务协议</a>
<a @click="gotoB"> 隐私政策</a>了解详细信息
如果您同意请点击下面按钮开始接受我们的服务
</view>
</u-modal>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import storage from '@/utils/storage'
const show = ref(true)
function gotoLink() {
uni.navigateTo({
url: '/pages/tabbar/home/web-view?src=https://pc-b2b2c.pickmall.cn/article/detail?id=1371992704333905920',
})
}
function gotoB() {
uni.navigateTo({
url: '/pages/tabbar/home/web-view?src=https://pc-b2b2c.pickmall.cn/article/detail?id=1371779927900160000',
})
}
function cancel() {
// #ifdef APP-PLUS
plus.ios.import('UIApplication').sharedApplication().performSelector('exit')
// #endif
}
function confirm() {
show.value = false
storage.setShow(show.value)
if (!show.value) {
setTimeout(() => {
uni.reLaunch({
url: '/pages/tabbar/home/index',
})
}, 500)
}
}
</script>
<style scoped>
.u-update-content {
font-size: 26rpx;
padding: 30rpx;
}
a {
text-decoration: blue;
color: blue;
}
</style>