|
@@ -23,13 +23,14 @@
|
|
<view class="tabItem" :class="tabIndex == '0' ? 'active' : ''" @tap="onChangeState('0')">待领取</view>
|
|
<view class="tabItem" :class="tabIndex == '0' ? 'active' : ''" @tap="onChangeState('0')">待领取</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="titleTips" v-show="tabIndex != '1'">
|
|
|
|
|
|
+ <!-- <view class="titleTips" v-show="tabIndex != '1'">
|
|
<image src="../../static/img/mine/starIcon.png" class="tipsIcon"></image>
|
|
<image src="../../static/img/mine/starIcon.png" class="tipsIcon"></image>
|
|
<text class="tipsText">关注微信公众号“</text>
|
|
<text class="tipsText">关注微信公众号“</text>
|
|
<text class="linkText" @tap="onGZHTo">自贡随手拍</text>
|
|
<text class="linkText" @tap="onGZHTo">自贡随手拍</text>
|
|
<text class="tipsText">”</text>
|
|
<text class="tipsText">”</text>
|
|
- </view>
|
|
|
|
- <view class="rewardDetailBox" :style="{height: (tabIndex == '1' ? 'calc(100% - 120rpx)' : 'calc(100% - 168rpx)')}">
|
|
|
|
|
|
+ </view> -->
|
|
|
|
+ <!-- <view class="rewardDetailBox" :style="{height: (tabIndex == '1' ? 'calc(100% - 120rpx)' : 'calc(100% - 168rpx)')}"> -->
|
|
|
|
+ <view class="rewardDetailBox" style="height: calc(100% - 120rpx)">
|
|
<view v-if="rewardList.length > 0">
|
|
<view v-if="rewardList.length > 0">
|
|
<view class="rewardContentBox" v-for="(item, index) in rewardList">
|
|
<view class="rewardContentBox" v-for="(item, index) in rewardList">
|
|
<view class="rewardTitleBox" @tap="onChangeContentShow(item.creationTimeText)">
|
|
<view class="rewardTitleBox" @tap="onChangeContentShow(item.creationTimeText)">
|
|
@@ -93,11 +94,15 @@
|
|
that.navBarHeight = that.$systemInfo.navBarHeight;
|
|
that.navBarHeight = that.$systemInfo.navBarHeight;
|
|
that.onGetData(function() {
|
|
that.onGetData(function() {
|
|
that.onGetListData(function() {
|
|
that.onGetListData(function() {
|
|
- that.onGetDetailListData(that.rewardList[0].creationTimeText, function(data){
|
|
|
|
- that.rewardList[0].list = data;
|
|
|
|
- that.$set(that.rewardList, 0, that.rewardList[0]);
|
|
|
|
|
|
+ if(that.rewardList.length > 0){
|
|
|
|
+ that.onGetDetailListData(that.rewardList[0].creationTimeText, function(data){
|
|
|
|
+ that.rewardList[0].list = data;
|
|
|
|
+ that.$set(that.rewardList, 0, that.rewardList[0]);
|
|
|
|
+ that.isShow = true;
|
|
|
|
+ })
|
|
|
|
+ }else {
|
|
that.isShow = true;
|
|
that.isShow = true;
|
|
- })
|
|
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -156,10 +161,12 @@
|
|
if (that.tabIndex != tabIndex) {
|
|
if (that.tabIndex != tabIndex) {
|
|
that.tabIndex = tabIndex;
|
|
that.tabIndex = tabIndex;
|
|
that.onGetListData(function(){
|
|
that.onGetListData(function(){
|
|
- that.onGetDetailListData(that.rewardList[0].creationTimeText, function(data){
|
|
|
|
- that.rewardList[0].list = data;
|
|
|
|
- that.$set(that.rewardList, 0, that.rewardList[0]);
|
|
|
|
- })
|
|
|
|
|
|
+ if(that.rewardList.length > 0){
|
|
|
|
+ that.onGetDetailListData(that.rewardList[0].creationTimeText, function(data){
|
|
|
|
+ that.rewardList[0].list = data;
|
|
|
|
+ that.$set(that.rewardList, 0, that.rewardList[0]);
|
|
|
|
+ })
|
|
|
|
+ }
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|