|
|
@ -60,12 +60,12 @@ |
|
|
|
</image> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rank_content" v-if="rankList.length>0"> |
|
|
|
<view class="rank_content" v-if="rankList.length>0"> |
|
|
|
<view class="rank_box" v-for="(item,index) in rankList" |
|
|
|
<view class="rank_box" @click="toBack(item)" v-for="(item,index) in rankList" |
|
|
|
:style="{ backgroundImage: 'url(' + (item.rankimage!=null?item.rankimage.external_url:'') + ')', }"> |
|
|
|
:style="{ backgroundImage: 'url(' + (item.rankimage!=null?item.rankimage.external_url:'') + ')', }"> |
|
|
|
<view class="rank_name"> |
|
|
|
<view class="rank_name"> |
|
|
|
{{item.name}}榜 |
|
|
|
{{item.name}}榜 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rank_go" @click="toBack(item.path)"> |
|
|
|
<view class="rank_go"> |
|
|
|
<text>GO</text> |
|
|
|
<text>GO</text> |
|
|
|
<u-icon name="arrow-right" color="#fff" size="23"></u-icon> |
|
|
|
<u-icon name="arrow-right" color="#fff" size="23"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -131,12 +131,15 @@ |
|
|
|
this.rankList = data.list |
|
|
|
this.rankList = data.list |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
toBack() { |
|
|
|
toBack(item) { |
|
|
|
// let pages = getCurrentPages(); |
|
|
|
// let pages = getCurrentPages(); |
|
|
|
// let beforePage = pages[pages.length - 2] |
|
|
|
// let beforePage = pages[pages.length - 2] |
|
|
|
// console.log(this.removeAfter(pages, 'pages/activity/ranking')) |
|
|
|
// console.log(this.removeAfter(pages, 'pages/activity/ranking')) |
|
|
|
uni.redirectTo({ |
|
|
|
// uni.redirectTo({ |
|
|
|
url: '/pages/activity/ranking' |
|
|
|
// url: '/pages/activity/ranking' |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '/pages/activity/charts?categoryId=' + item.category_id + '&name=' + item.name |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
removeAfter(arr, value) { |
|
|
|
removeAfter(arr, value) { |
|
|
|