|
@@ -168,7 +168,7 @@
|
|
|
<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">
|
|
|
+ <view class="img-1" v-for="(item,index) in activityList" :key="item.id" @click="rechargeActivity(index)">
|
|
|
<img :src="item.picUrl" alt="">
|
|
|
</view>
|
|
|
</view>
|
|
@@ -380,14 +380,25 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- rechargeActivity() {
|
|
|
- if (this.userId) {
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/user/finance/recharge'
|
|
|
- })
|
|
|
+ rechargeActivity(index) {
|
|
|
+ var mod= this.activityList[index]
|
|
|
+
|
|
|
+ if(mod.clickUrl == null){
|
|
|
+
|
|
|
+ } else if(mod.clickUrl.indexOf('http')==0) {
|
|
|
+ window.location=mod.clickUrl;
|
|
|
+
|
|
|
+ } else if(mod.clickUrl.indexOf('#/')==0) {
|
|
|
+ if(mod.clickUrl.indexOf("?")==-1) {
|
|
|
+ mod.clickUrl+='?';
|
|
|
+ }
|
|
|
+ window.location=mod.clickUrl;
|
|
|
+
|
|
|
+ } else if(mod.clickUrl=='#'||mod.clickUrl=='') {
|
|
|
+
|
|
|
} else {
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/login/login'
|
|
|
+ url:mod.clickUrl
|
|
|
})
|
|
|
}
|
|
|
},
|
|
@@ -761,7 +772,7 @@
|
|
|
|
|
|
.img-box {
|
|
|
margin-top: 12px;
|
|
|
- width: 345px;
|
|
|
+ width: 95%;
|
|
|
height: 146px;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|