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