dengrui/pagesB/dividendRules/dividendRules.vue

54 lines
1.6 KiB
Vue

<template>
<view class="">
<!-- 使用标题栏 -->
<status-nav :statusBackw="true" :statusTitle="true" :whereCome="1" :title-val="'分红规则'" :tabcolor="'#ffffff'"></status-nav>
<view class=" bacb" :style="{paddingTop:statusHNH+'px'}">
<view class="fon28 margin-zy40 padding-sx20 borbot" v-for="(item,index) in dataArr" :key="index">
<view class="bold">{{item.title}}</view>
<!-- <view class="color6 margin-s10">{{item.content}}</view> -->
<view class="color6 margin-s10">
<rich-text :nodes="item.content"></rich-text>
</view>
</view>
<view class="borbot padding-x30"></view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
dataArr:[
{title:'分红获得规则',content:''},
{title:'分红抵扣规则',content:''},
{title:'分红提现规则',content:''},
],
statusHNH:uni.getStorageSync('statusHNH')
}
},
onShow() {
this.$toolAll.tools.guoq()
},
onLoad() {
this.checkFenGZ()//查询分红规则事件
},
methods: {
checkFenGZ(){
this.$requst.post('user/bonus').then(res=>{
// console.log('分红规则列表:',res);
if(res.code==0){
this.dataArr[0].content = res.data.get
this.dataArr[1].content = res.data.deduct
this.dataArr[2].content = res.data.withdraw
}
},error=>{})
}
}
}
</script>
<style>
</style>