<template>
	<view class="content">
		<view class="ru-head">
			<view class="ru-imgcon">
				<image src="../../../../static/home/nav_icon_close@2x.png" mode=""></image>
			</view>
		</view>
		
		<view class="ru-body">
			<p class="ru-body-p1">platform agent rebate model</p>
			<table class="ru-table">
				<thead>
					<tr>
					<th class="t1">level</th>
					<th class="t2">Commission rate</th>
					</tr>
				</thead>
				<tbody>
					<tr v-for="(item,key) in inviteRule.rates">
					<th class="t1">{{key}}</th>
					<th class="t2">{{item}}</th>	
					</tr>
				</tbody>
			</table>
			
			
			<view class="ru-cont" v-html="inviteRule.tips">
			</view>
		</view>
	
	
	
	</view>



</template>

<script>
	export default {
		data() {
			return {
		inviteRule:[],
			}
		},
		onLoad() {
		uni.request({
			url: '/start/api/user/inviteCode',
			data: {
				"ticket": uni.getStorageSync('logInfo').data,
			},
			header: {
				'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8' //自定义请求头信息
			},
			method: 'POST', //请求方式  或GET，必须为大写
			success: (res) => {
				this.inviteRule=res.data.data
	          console.log(res.data,9999);
			},
			fail: (res) => {
			console.log(res.errMsg);
			}
		});
		},
		methods: {
  
		}
	}
</script>

<style>
	@import url("./index.css");
</style>
