guozhi-wechat/pages/user/member-protocol.vue

48 lines
987 B
Vue
Raw Permalink Normal View History

2025-07-22 18:31:50 +08:00
<template>
<view style="height: 100%;overflow-y: auto;">
<view class="about-shadow tn-margin tn-padding tn-border-solid-bottom">
<view class="tn-text-bold tn-text-xl tn-text-center">会员协议</view>
<view class="tn-margin-top tn-text-content">
<rich-text :nodes="contents"></rich-text>
</view>
</view>
<view style="width:90%; margin: 10rpx auto;" class="padding-bottom-xl">
<tui-button shape="circle" shadow bold preventClick @click="goBack">我知道啦返回吧</tui-button>
</view>
</view>
</template>
<script>
import userApi from "@/common/api/user.js"
export default {
data() {
return {
contents: ''
}
},
onLoad() {
this.ajax()
},
methods: {
ajax() {
userApi.getMemberConfigs().then(res => {
console.log('getMemberConfigs', res)
this.contents = res.data.member_protocol
})
},
goBack() {
this.utils.goback()
}
}
}
</script>
<style>
page {
background-color: #fff;
}
</style>