You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
728 B
47 lines
728 B
<template>
|
|
<view class="pages">
|
|
<view class="content" v-html="strings">
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import * as api from '@/api/tutorial'
|
|
export default{
|
|
data(){
|
|
return{
|
|
strings:'',
|
|
}
|
|
},
|
|
onLoad(options){
|
|
this.getSoftAgreementData()
|
|
},
|
|
methods:{
|
|
// 列表
|
|
async getSoftAgreementData() {
|
|
let that = this;
|
|
let {
|
|
status,
|
|
message,
|
|
data
|
|
} = await api.getSoftAgreement({type:'soft'});
|
|
if (status == 200) {
|
|
this.strings=data.detail.content
|
|
} else {
|
|
that.$toast(message)
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.pages{
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 30rpx;
|
|
span{
|
|
white-space: normal !important
|
|
}
|
|
}
|
|
</style> |