|
|
@@ -5,7 +5,11 @@
|
|
|
<view v-show="active===0">
|
|
|
<view class="dayGift-box" v-for="(day,index) in dayGiftList" :key='day.id'>
|
|
|
<view>{{index + 1}}</view>
|
|
|
- <view style="margin-left: -35%">{{day.date}}</view>
|
|
|
+ <view style="margin-left: -35%">
|
|
|
+ <view v-if="day.type == 3">首次登录赠送</view>
|
|
|
+ <view v-else>每日免费赠送</view>
|
|
|
+ <view style="color:#999;font-size:26rpx;">{{day.date}}</view>
|
|
|
+ </view>
|
|
|
<view style="color: #1AAD19;">+{{day.times || 0}}次</view>
|
|
|
</view>
|
|
|
<view class="dayGift-box" style="justify-content: center;" v-if="!dayGiftList.length">暂无明细</view>
|
|
|
@@ -40,7 +44,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
type: [{
|
|
|
- title: '每日赠送次数'
|
|
|
+ title: '免费赠送次数'
|
|
|
}, {
|
|
|
title: '邀好友奖励次数'
|
|
|
}],
|
|
|
@@ -84,14 +88,14 @@
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.getGiftRequest(4);
|
|
|
- this.getGiftRequest(1);
|
|
|
+ this.getGiftRequest(3,4);
|
|
|
+ this.getGiftRequest(1,1);
|
|
|
},
|
|
|
methods: {
|
|
|
switchTabs(){
|
|
|
console.log(this.active)
|
|
|
},
|
|
|
- getGiftRequest(types){
|
|
|
+ getGiftRequest(types,other){
|
|
|
let that = this;
|
|
|
uni.request({
|
|
|
url: getApp().globalData.shareUrl, //需要设置为全局
|
|
|
@@ -106,7 +110,7 @@
|
|
|
sign: md5('get_times_record_list' + getApp().globalData.globalTimestamp),
|
|
|
page:'',
|
|
|
page_size:'',
|
|
|
- type:types
|
|
|
+ type:types+'|'+ other
|
|
|
},
|
|
|
success: res => {
|
|
|
if(res.data.code === 200){
|