商品兑换券更新
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
</view>
|
||||
<view class="bildRight">
|
||||
<text>我的积分</text>
|
||||
<view>{{info.levelConsume}}</view>
|
||||
<view>{{info.accountPoints}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="navTop">
|
||||
@@ -26,14 +26,16 @@
|
||||
<view class="flex-start">
|
||||
<view class="listStyle_left">
|
||||
<view class="listrigth">
|
||||
<view>{{item.biz_name}}</view>
|
||||
<view :class="[item.type == '+'?'colorStyle':'']">{{item.type}}{{item.amount}}
|
||||
<view>{{active == 1 ? item.biz_name : item.memberName}}</view>
|
||||
<view :class="[item.type == '+'?'colorStyle':'']">
|
||||
{{ active == 1 ? item.type : (item.floatType == 'add'?'+':'')}}
|
||||
{{active == 1 ? item.amount : item.floatPoints}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="listrigth2">
|
||||
<view>{{$u.timeFormat(item.create_time, 'yyyy-mm-dd hh:MM:ss')}}</view>
|
||||
<view>余额:{{item.balance}}</view>
|
||||
<view v-if="active == 1">余额:{{item.balance}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -53,13 +55,15 @@
|
||||
pageSize: 10,
|
||||
memberId: null
|
||||
},
|
||||
info: null
|
||||
info: null,
|
||||
shopId: null
|
||||
}
|
||||
},
|
||||
onLoad(e) {
|
||||
console.log(JSON.parse(e.shopUserInfo))
|
||||
this.info = JSON.parse(e.shopUserInfo)
|
||||
this.form.memberId = this.info.id;
|
||||
this.shopId = this.info.shopId;
|
||||
this.getlist()
|
||||
},
|
||||
onReachBottom() {
|
||||
@@ -73,20 +77,29 @@
|
||||
},
|
||||
async getlist() {
|
||||
if (this.active == 1) {
|
||||
let res = await this.api.queryMemberAccount(this.form)
|
||||
let res = await this.api.queryMemberAccount({
|
||||
...this.form
|
||||
})
|
||||
if (res.code == 0 && res.data.list.length > 0) {
|
||||
console.log(this.list.length)
|
||||
this.list = this.list.concat(res.data.list)
|
||||
this.form.page++
|
||||
console.log(this.list)
|
||||
}
|
||||
} else {
|
||||
this.list = []
|
||||
|
||||
let res = await this.api.queryMemberPointsLog({
|
||||
shopId: this.shopId,
|
||||
...this.form
|
||||
})
|
||||
if (res.code == 0 && res.data.list.length > 0) {
|
||||
this.list = this.list.concat(res.data.list)
|
||||
this.form.page++
|
||||
}
|
||||
}
|
||||
},
|
||||
clickEvent(i) {
|
||||
this.active = i;
|
||||
this.form.page = 1;
|
||||
this.list = []
|
||||
this.getlist()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,9 @@
|
||||
type: 'index',
|
||||
})
|
||||
} else if ( type == 3 ) {
|
||||
uni.pro.navigateTo('user/coupon')
|
||||
uni.pro.navigateTo('user/coupon', {
|
||||
shopId: this.shopId,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user