会员推荐榜

This commit is contained in:
2022-08-01 10:01:33 +08:00
parent 66ebcc6e7a
commit 992e4639fc
4 changed files with 173 additions and 136 deletions

View File

@@ -13,11 +13,12 @@
</view>
<view class="rank_type">
<view :class="['rank_type_item',type === '1'?'rank_type_item_active':'']" @click="changeType('1')"> 上周加成榜</view>
<view :class="['rank_type_item',type === '1'?'rank_type_item_active':'']" @click="changeType('1')">上周加成榜</view>
<view :class="['rank_type_item',type === '2'?'rank_type_item_active':'']" @click="changeType('2')">本周推荐榜</view>
<view :class="['rank_type_item',type === '3'?'rank_type_item_active':'']" @click="changeType('3')">会员推荐榜</view>
</view>
<view class="rank_update_time" v-if="lists.length > 0">
<view class="rank_update_time" v-if="lists.length > 0 && type !== '3'">
<view class="title"> 加成{{type === '1'?'结束':'生效'}}倒计时 : </view>
<u-count-down :time="end_timestamp" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
<view class="time">
@@ -75,7 +76,8 @@
<script>
import {
week,
week_mul
week_mul,
total
} from '@/apis/interfaces/rank.js'
export default {
data() {
@@ -113,10 +115,12 @@
let urlRequest = ''
if (this.type === '1') {
urlRequest = week_mul
} else {
} else if (this.type === '2') {
urlRequest = week
}else{
urlRequest = total
}
urlRequest().then(res => {
urlRequest().then(res => {
this.lists = res.rand;
this.page_id = res.page_id;
this.end_timestamp = res.end_timestamp * 1000;