|
|
|
@ -2,21 +2,22 @@ |
|
|
|
|
<view class="pages"> |
|
|
|
|
<view class="content" v-html="strings"> |
|
|
|
|
</view> |
|
|
|
|
<addShuiyin /> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import * as api from '@/api/tutorial' |
|
|
|
|
export default{ |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
strings:'', |
|
|
|
|
import * as api from '@/api/tutorial' |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
strings: '', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(options){ |
|
|
|
|
onLoad(options) { |
|
|
|
|
this.getSoftAgreementData() |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
methods: { |
|
|
|
|
// 列表 |
|
|
|
|
async getSoftAgreementData() { |
|
|
|
|
let that = this; |
|
|
|
@ -24,9 +25,11 @@ |
|
|
|
|
status, |
|
|
|
|
message, |
|
|
|
|
data |
|
|
|
|
} = await api.getSoftAgreement({type:'soft'}); |
|
|
|
|
} = await api.getSoftAgreement({ |
|
|
|
|
type: 'soft' |
|
|
|
|
}); |
|
|
|
|
if (status == 200) { |
|
|
|
|
this.strings=data.detail.content |
|
|
|
|
this.strings = data.detail.content |
|
|
|
|
} else { |
|
|
|
|
that.$toast(message) |
|
|
|
|
} |
|
|
|
@ -36,12 +39,13 @@ |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|
.pages{ |
|
|
|
|
.pages { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
padding: 30rpx; |
|
|
|
|
span{ |
|
|
|
|
|
|
|
|
|
span { |
|
|
|
|
white-space: normal !important |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|
</style> |
|
|
|
|