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.
|
|
|
<template>
|
|
|
|
<view class="presale">
|
|
|
|
<view class="p" v-html="content"></view>
|
|
|
|
<addShuiyin />
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import * as Api from '@/api/help'
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
content: '',
|
|
|
|
type:''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad(op) {
|
|
|
|
this.type=op.type
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
title: this.type == 1 ? '服务商共富计划推广协议' : '邀请规则'
|
|
|
|
})
|
|
|
|
this.getCarouselList()
|
|
|
|
},
|
|
|
|
onShow() {},
|
|
|
|
methods: {
|
|
|
|
// 获取预售规则
|
|
|
|
getCarouselList(type) {
|
|
|
|
const app = this;
|
|
|
|
Api.getAgreement({
|
|
|
|
type:this.type==1?'fwsghjh':'invite_rule'
|
|
|
|
})
|
|
|
|
.then(result => {
|
|
|
|
let content = result.data.detail.content;
|
|
|
|
if(content){
|
|
|
|
content = content.replace(/style=""/g,'').replace(/<img src=/g,'<img style="width: 100%; display:block" src=')
|
|
|
|
}
|
|
|
|
this.content = content
|
|
|
|
})
|
|
|
|
.finally(() => app.isLoading = false)
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.presale {
|
|
|
|
padding: 40rpx;
|
|
|
|
.p {
|
|
|
|
font-size: 26rpx;
|
|
|
|
line-height: 50rpx;
|
|
|
|
color: #212121;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|