Files
integral-shop/single_uniapp22miao/pages/sub-pages/agreement/index.vue
apple 079076a70e miao33: 从 main 同步 single_uniapp22miao,dart-sass 兼容修复,DEPLOY.md 更新
- 从 main 获取 single_uniapp22miao 子项目
- dart-sass: /deep/ -> ::v-deep,calc 运算符加空格
- DEPLOY.md 采用 shccd159 版本(4 子项目架构说明)

Made-with: Cursor
2026-03-16 11:16:42 +08:00

76 lines
1.5 KiB
Vue
Raw 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>
<view class="agreement-page">
<view class="agreement-list">
<view
v-for="(item, index) in agreementList"
:key="index"
class="agreement-item"
@click="viewAgreement(item)"
>
<text class="title">{{ item.title }}</text>
<text class="arrow"></text>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
agreementList: [
{ title: '用户协议', type: 'user', url: '/pages/sub-pages/agreement/contract' },
{ title: '隐私政策', type: 'privacy', url: '/pages/sub-pages/agreement/contract1' },
{ title: '购买委托代卖协议', type: 'sale', url: '/pages/sub-pages/agreement/contract' },
{ title: '我的合同', type: 'my', url: '/pages/sub-pages/agreement/my-contract' }
]
}
},
methods: {
viewAgreement(item) {
uni.navigateTo({
url: `${item.url}?type=${item.type}`
});
}
}
}
</script>
<style lang="scss" scoped>
.agreement-page {
min-height: 100vh;
background-color: #f5f5f5;
padding: 20rpx 30rpx;
}
.agreement-list {
background-color: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.agreement-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 30rpx;
border-bottom: 1px solid #f5f5f5;
&:last-child {
border-bottom: none;
}
.title {
font-size: 28rpx;
color: #333;
}
.arrow {
font-size: 50rpx;
color: #ccc;
}
}
</style>