49 lines
864 B
Vue
49 lines
864 B
Vue
<template>
|
|
<view class="container">
|
|
<view class="content">
|
|
<view v-if="partnerAgreement" v-html="partnerAgreement"></view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import { imageBase64,getHomeData } from "@/api/public";
|
|
export default {
|
|
data() {
|
|
return {
|
|
partnerAgreement:null
|
|
}
|
|
},
|
|
|
|
onLoad:function(e){
|
|
this.fetchCompanyData();
|
|
},
|
|
onShow:function(){
|
|
|
|
},
|
|
methods: {
|
|
fetchCompanyData:function(){
|
|
var that = this;
|
|
getHomeData().then(res => {
|
|
// that.buyNotice = res.data.buyNotice;
|
|
that.partnerAgreement = res.data.partnerAgreement.replace(
|
|
/\<img/gi,
|
|
'<img style="max-width:100%;height:auto;"'
|
|
);
|
|
});
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.content{
|
|
background-color: #fff;
|
|
margin: 20rpx;
|
|
padding:20rpx;
|
|
font-size: 30rpx;
|
|
font-weight: normal;
|
|
border-radius: 10rpx;
|
|
}
|
|
</style>
|