97 lines
2.0 KiB
Vue
97 lines
2.0 KiB
Vue
<template>
|
|
<view class="container">
|
|
<view class="agreement-item cont-box b-f" v-for="(item, index) in list" :key="index" @click="handleItemClick(item.id)">
|
|
<view class="title">
|
|
<text>{{ item.title }}</text>
|
|
</view>
|
|
<view class="arrow">
|
|
<text class="iconfont icon-arrow-right"></text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
// 协议列表数据(写死)
|
|
list: [
|
|
{
|
|
id: 'privacy',
|
|
title: '隐私政策'
|
|
},
|
|
{
|
|
id: 'service',
|
|
title: '用户服务条款'
|
|
},
|
|
{
|
|
id: 'getByMyself',
|
|
title: '自提服务协议'
|
|
},
|
|
{
|
|
id: 'delivery',
|
|
title: '配送规则'
|
|
},
|
|
{
|
|
id: 'refund',
|
|
title: '退换货政策'
|
|
},
|
|
{
|
|
id: 'activity',
|
|
title: '限时秒杀、平台补贴、加价购、满额赠'
|
|
},
|
|
{
|
|
id: 'minor',
|
|
title: '未成年人个人信息保护'
|
|
},
|
|
{
|
|
id: 'review',
|
|
title: '评价管理规范'
|
|
},
|
|
{
|
|
id: 'privacy',
|
|
title: '隐私政策'
|
|
},
|
|
{
|
|
id: 'appPermission',
|
|
title: '应用权限说明'
|
|
}
|
|
]
|
|
}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad(options) {},
|
|
|
|
methods: {
|
|
// 点击协议项,跳转到详情页
|
|
handleItemClick(id) {
|
|
this.$navTo('pages/agreement/detail', { id })
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.agreement-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 30rpx;
|
|
border-bottom: 1rpx solid #f6f6f9;
|
|
|
|
.title {
|
|
font-size: 32rpx;
|
|
color: #333;
|
|
}
|
|
|
|
.arrow {
|
|
color: #999;
|
|
font-size: 28rpx;
|
|
}
|
|
}
|
|
</style>
|