mall-applet1/pagesB/buy-read/buy-read.vue

33 lines
596 B
Vue

<template>
<view>
<status-container titlet="购买须知" :ifCustomer='false'>
<view slot="content">
<rich-text :nodes="richText" class="fon24 colpeili line-h46"></rich-text>
</view>
</status-container>
</view>
</template>
<script>
export default {
data(){
return {
richText:''
}
},
onLoad() {
this.$requst.post('/api/index/purchaseinstructions').then(res=>{
if(res.code==0){
this.richText = this.$toolAll.tools.escape2Html(res.data.content);
} else {
this.$toolAll.tools.showToast(res.msg);
}
})
}
}
</script>
<style>
</style>