Files
integral-shop/single_uniapp22miao/pages/sub-pages/agreement/contract1.vue
panchengyong 786bf78282 更新项目配置和添加小程序模块
- 修改 ArticleController.java
- 更新 application.yml 配置
- 更新 frontend/.env.production 环境配置
- 添加 single_uniapp22miao 小程序模块
- 添加 logs 目录
2026-03-13 13:27:13 +08:00

66 lines
1.1 KiB
Vue

<template>
<view class="contract-page">
<view class="content">
<view class="title">隐私政策</view>
<view class="article">
<rich-text :nodes="content"></rich-text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
content: ''
}
},
onLoad() {
this.loadContent();
},
methods: {
async loadContent() {
try {
const res = await this.$http.get('/api/setting/agreement', {
type: 'privacy'
});
if (res.code === 0) {
this.content = res.data.content;
}
} catch (error) {
console.error('加载隐私政策失败:', error);
}
}
}
}
</script>
<style lang="scss" scoped>
.contract-page {
min-height: 100vh;
background-color: #fff;
padding: 30rpx;
}
.content {
.title {
font-size: 36rpx;
font-weight: bold;
color: #333;
text-align: center;
margin-bottom: 40rpx;
}
.article {
font-size: 28rpx;
color: #666;
line-height: 1.8;
}
}
</style>