52 lines
772 B
Vue
52 lines
772 B
Vue
<template>
|
|
<view class="rich-text-protocolContent">
|
|
<rich-text :nodes="protocolContent"></rich-text>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
getVipDescAPI,
|
|
} from "@/request/recharge/index.js";
|
|
export default {
|
|
|
|
data() {
|
|
return {
|
|
protocolContent: ""
|
|
};
|
|
},
|
|
methods: {
|
|
//获取协议
|
|
getVipDesc() {
|
|
getVipDescAPI().then((res) => {
|
|
if (res) {
|
|
const {
|
|
code,
|
|
data
|
|
} = res
|
|
if (code == 200) {
|
|
this.protocolContent = data
|
|
}
|
|
}
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
})
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.getVipDesc()
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.rich-text-protocolContent {
|
|
font-size: 24rpx;
|
|
color: #666;
|
|
padding: 32rpx;
|
|
}
|
|
</style>
|