<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>
