红绿项目
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.
 
 
 
 

75 lines
1.4 KiB

<template>
<view class="content">
<view class="ru-head">
<view class="ru-imgcon">
<image src="../../../../static/home/[email protected]" mode="" @click="back"></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: {
back(){
uni.navigateBack()
}
}
}
</script>
<style>
@import url("./index.css");
</style>