节点中心

This commit is contained in:
zhangmanman
2021-09-25 09:51:37 +08:00
parent 8ab145ea73
commit 1d22ce7d13
30 changed files with 1571 additions and 5 deletions

46
pages/user/clause.vue Normal file
View File

@@ -0,0 +1,46 @@
<template>
<view>
<view class="clauseCont">
<rich-text :nodes="clauseData"></rich-text>
</view>
</view>
</template>
<script>
import { userClause } from '@/apis/interfaces/user'
export default {
data() {
return {
clauseData: [] //服务条款
};
},
onLoad() {
// 获取服务条款
this.clauseInfo()
},
methods: {
// 服务条款
clauseInfo(){
userClause().then(res => {
this.clauseData = res.content.replace(/\<img/gi, '<img style="max-width:100%; height:auto; vertical-align: top;"')
}).catch(err => {
uni.showToast({
icon: 'none',
title: err.message
})
})
},
}
}
</script>
<style lang="scss">
page {
background-color: $uni-bg-color;
}
.clauseCont {
padding: $padding + 10 $padding * 2;
width: 100%;
box-sizing: border-box;
}
</style>