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.
 
 
 
 

72 lines
1.3 KiB

<template>
<view class="body">
<block class="" v-for="(item,index) in list" :key="index">
<view v-html="item.content">
</view>
</block>
</view>
</template>
<script>
export default {
data() {
return {
list:[],
}
},
onLoad(option) {
if(option.type==1){
this.contactUs();
}
if(option.type==2){
this.Regulations();
}
},
methods: {
//联系我们(国外)
async contactUs() {
const res = await this.$myRequest({
url: '/open/foreignHomePage/contactUs',
header: {
token: uni.getStorageSync("token"),
},
})
if(res.data.code==200){
if(res.data.data.length>0){
this.list=res.data.data
}
}
},
//使用条例(国外)
async Regulations() {
const res = await this.$myRequest({
url: '/open/foreignHomePage/Regulations',
header: {
token: uni.getStorageSync("token"),
},
})
if(res.data.code==200){
if(res.data.data.length>0){
this.list=res.data.data
}
}
},
}
}
</script>
<style lang="scss">
.body{
padding-top: 0rpx;
display: flex;
flex-direction: column;
background-color: #000000;
min-height: 94.6vh;
font-family: Arial-Regular;
padding-left: 10rpx;
padding-right: 10rpx;
}
</style>