修改邀请页面
This commit is contained in:
parent
9b565065f9
commit
fa5f11cac3
|
|
@ -62,20 +62,20 @@
|
|||
<view class="">累计收益</view>
|
||||
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{cumulativeRevenue}}</text>元</view>
|
||||
</view>
|
||||
<!-- <view>
|
||||
<view class="">已签到</view>
|
||||
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{withdrawn}}</text>人</view>
|
||||
</view> -->
|
||||
<view>
|
||||
<view class="">已签到</view>
|
||||
<view class="text-red u-m-t-16 "><text class=" u-font-40">{{inviteCount}}</text>人</view>
|
||||
</view>
|
||||
<!-- <view>
|
||||
<view class="">已提现</view>
|
||||
<view class="text-red u-m-t-16 "><text class="u-font-40">{{withdrawn}}</text>元</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="u-m-t-16 color-999 u-text-center u-p-b-32">好友签到成功可额外获得1元现金红包</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="margin u-m-t-40 padding bg-white radius-16" >
|
||||
<view class="margin u-m-t-40 u-m-b-32 padding bg-white radius-16" >
|
||||
<view class="u-font-32 color-333 font-bold u-text-center">已邀请列表</view>
|
||||
<view v-if="inviterList.length" class="u-m-t-20">
|
||||
<view class="flex justify-between" style="line-height: 80rpx;" v-for="(item, index) in inviterList"
|
||||
|
|
@ -85,12 +85,15 @@
|
|||
<image src="../static/invite/5.png" style="width: 80rpx;" mode="widthFix"></image>
|
||||
<text class="margin-left-sm">{{item.userName}}</text>
|
||||
</view>
|
||||
<view style="width: 160rpx;">
|
||||
<text>获得</text>
|
||||
<text class="margin-left-xs text-red">{{item.money}}</text>
|
||||
<view style="width: 160rpx;" class="u-flex u-row-right font-bold">
|
||||
<text class=" text-red" v-if="item.money>0">已签到</text>
|
||||
<text class=" color-999" v-else>未签到</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="u-p-t-30 u-p-b-30 empty" v-if="hasAjax&&!inviterList.length">
|
||||
<my-empty ></my-empty>
|
||||
</view> -->
|
||||
|
||||
</view>
|
||||
|
||||
|
|
@ -137,14 +140,19 @@
|
|||
let settingWritePhotosAlbum = false;
|
||||
import tkiQrcode from '../../components/tki-qrcode/tki-qrcode.vue';
|
||||
import wmPoster from '../components/wm-poster/wm-posterorders.vue';
|
||||
import myEmpty from '@/components/my-empty.vue';
|
||||
|
||||
import config from '../../common/config.js'
|
||||
export default {
|
||||
components: {
|
||||
tkiQrcode,
|
||||
tkiQrcode,myEmpty,
|
||||
wmPoster
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//已签到人数
|
||||
inviteCount:0,
|
||||
hasAjax:false,
|
||||
erweimapath: '',
|
||||
poster: {},
|
||||
qrShow: false,
|
||||
|
|
@ -394,6 +402,7 @@
|
|||
this.$u.api.inviter(data).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.inviterList = res.data.list
|
||||
this.hasAjax=true;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
|
|
@ -409,6 +418,7 @@
|
|||
this.cumulativeRevenue = res.data.inviteMoney.moneySum //累计收益
|
||||
this.inviterNumber = res.data.inviteCount //邀请人数
|
||||
this.withdrawn = res.data.inviteMoney.cashOut //已提现
|
||||
this.inviteSignCount =res.data.inviteSignCount
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
|
|
|
|||
Loading…
Reference in New Issue