|
@@ -161,7 +161,7 @@
|
|
|
</view> -->
|
|
|
|
|
|
<!-- 充值活动 -->
|
|
|
- <view class=" top-up">
|
|
|
+ <view class=" top-up" v-if="activityList.length > 0">
|
|
|
<view class="top-up-title"><text class="line"></text>充值活动</view>
|
|
|
<view class="img-box">
|
|
|
<view class="img-1" v-for="(item,index) in activityList" :key="item.id" @click="rechargeActivity">
|
|
@@ -170,7 +170,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 新闻 -->
|
|
|
- <view class="news-title">
|
|
|
+ <view class="news-title" v-if="newsList.length > 0">
|
|
|
<view class="news-title-left">
|
|
|
<view class="line" style="margin-top:4px;"></view>新闻公告
|
|
|
</view>
|
|
@@ -192,7 +192,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="bottom" v-if="newsList.length == recordsTotal">
|
|
|
+ <view class="bottom" v-if="newsList.length == recordsTotal && newsList.length != 0">
|
|
|
<view class="bot">
|
|
|
<view class="bot-line"></view>
|
|
|
<view class="bot-text">已经到底了</view>
|
|
@@ -244,6 +244,11 @@
|
|
|
url:k
|
|
|
})
|
|
|
}
|
|
|
+ if(op.jpcode == 'toLogin') {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/login/login'
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
},
|
|
@@ -255,6 +260,7 @@
|
|
|
onReady() {
|
|
|
if (this.carhelp.getPersonInfo()) {
|
|
|
this.userId = this.carhelp.getPersonInfo().id;
|
|
|
+ this.getFindChargeData();
|
|
|
}
|
|
|
|
|
|
WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
|
|
@@ -266,7 +272,6 @@
|
|
|
this.getPoint();
|
|
|
this.getNewsList();
|
|
|
this.getActivityInfoList();
|
|
|
- this.getFindChargeData();
|
|
|
},
|
|
|
methods: {
|
|
|
getFindChargeData() {
|