会员推荐榜
This commit is contained in:
@@ -24,8 +24,16 @@ const week = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 会员推荐帮
|
||||||
|
|
||||||
|
const total = () => {
|
||||||
|
return request({
|
||||||
|
url: 'user/rank/total'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export {
|
export {
|
||||||
week_mul,
|
week_mul,
|
||||||
week,
|
week,
|
||||||
|
total
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,11 +13,12 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="rank_type">
|
<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 === '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>
|
||||||
|
|
||||||
<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>
|
<view class="title"> 加成{{type === '1'?'结束':'生效'}}倒计时 : </view>
|
||||||
<u-count-down :time="end_timestamp" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
<u-count-down :time="end_timestamp" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
|
||||||
<view class="time">
|
<view class="time">
|
||||||
@@ -75,7 +76,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
week,
|
week,
|
||||||
week_mul
|
week_mul,
|
||||||
|
total
|
||||||
} from '@/apis/interfaces/rank.js'
|
} from '@/apis/interfaces/rank.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -113,10 +115,12 @@
|
|||||||
let urlRequest = ''
|
let urlRequest = ''
|
||||||
if (this.type === '1') {
|
if (this.type === '1') {
|
||||||
urlRequest = week_mul
|
urlRequest = week_mul
|
||||||
} else {
|
} else if (this.type === '2') {
|
||||||
urlRequest = week
|
urlRequest = week
|
||||||
|
}else{
|
||||||
|
urlRequest = total
|
||||||
}
|
}
|
||||||
urlRequest().then(res => {
|
urlRequest().then(res => {
|
||||||
this.lists = res.rand;
|
this.lists = res.rand;
|
||||||
this.page_id = res.page_id;
|
this.page_id = res.page_id;
|
||||||
this.end_timestamp = res.end_timestamp * 1000;
|
this.end_timestamp = res.end_timestamp * 1000;
|
||||||
|
|||||||
154
unpackage/dist/dev/app-plus/app-service.js
vendored
154
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
133
unpackage/dist/dev/app-plus/app-view.js
vendored
133
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -28540,24 +28540,37 @@ var render = function() {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
[_vm._v("本周推荐榜")]
|
[_vm._v("本周推荐榜")]
|
||||||
|
),
|
||||||
|
_c(
|
||||||
|
"v-uni-view",
|
||||||
|
{
|
||||||
|
class: _vm._$g(10, "c"),
|
||||||
|
attrs: { _i: 10 },
|
||||||
|
on: {
|
||||||
|
click: function($event) {
|
||||||
|
return _vm.$handleViewEvent($event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[_vm._v("会员推荐榜")]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
),
|
),
|
||||||
_vm._$g(10, "i")
|
_vm._$g(11, "i")
|
||||||
? _c(
|
? _c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } },
|
{ staticClass: _vm._$g(11, "sc"), attrs: { _i: 11 } },
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(11, "sc"), attrs: { _i: 11 } },
|
{ staticClass: _vm._$g(12, "sc"), attrs: { _i: 12 } },
|
||||||
[_vm._v("加成" + _vm._$g(11, "t0-0") + "倒计时 :")]
|
[_vm._v("加成" + _vm._$g(12, "t0-0") + "倒计时 :")]
|
||||||
),
|
),
|
||||||
_c(
|
_c(
|
||||||
"u-count-down",
|
"u-count-down",
|
||||||
{
|
{
|
||||||
attrs: { _i: 12 },
|
attrs: { _i: 13 },
|
||||||
on: {
|
on: {
|
||||||
change: function($event) {
|
change: function($event) {
|
||||||
return _vm.$handleViewEvent($event)
|
return _vm.$handleViewEvent($event)
|
||||||
@@ -28567,19 +28580,19 @@ var render = function() {
|
|||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(13, "sc"), attrs: { _i: 13 } },
|
{ staticClass: _vm._$g(14, "sc"), attrs: { _i: 14 } },
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(14, "sc"), attrs: { _i: 14 } },
|
{ staticClass: _vm._$g(15, "sc"), attrs: { _i: 15 } },
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g(15, "sc"),
|
staticClass: _vm._$g(16, "sc"),
|
||||||
attrs: { _i: 15 }
|
attrs: { _i: 16 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g(15, "t0-0"))]
|
[_vm._v(_vm._$g(16, "t0-0"))]
|
||||||
),
|
),
|
||||||
_vm._v("天")
|
_vm._v("天")
|
||||||
],
|
],
|
||||||
@@ -28587,15 +28600,15 @@ var render = function() {
|
|||||||
),
|
),
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(16, "sc"), attrs: { _i: 16 } },
|
{ staticClass: _vm._$g(17, "sc"), attrs: { _i: 17 } },
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g(17, "sc"),
|
staticClass: _vm._$g(18, "sc"),
|
||||||
attrs: { _i: 17 }
|
attrs: { _i: 18 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g(17, "t0-0"))]
|
[_vm._v(_vm._$g(18, "t0-0"))]
|
||||||
),
|
),
|
||||||
_vm._v("时")
|
_vm._v("时")
|
||||||
],
|
],
|
||||||
@@ -28603,15 +28616,15 @@ var render = function() {
|
|||||||
),
|
),
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(18, "sc"), attrs: { _i: 18 } },
|
{ staticClass: _vm._$g(19, "sc"), attrs: { _i: 19 } },
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g(19, "sc"),
|
staticClass: _vm._$g(20, "sc"),
|
||||||
attrs: { _i: 19 }
|
attrs: { _i: 20 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g(19, "t0-0"))]
|
[_vm._v(_vm._$g(20, "t0-0"))]
|
||||||
),
|
),
|
||||||
_vm._v("分")
|
_vm._v("分")
|
||||||
],
|
],
|
||||||
@@ -28619,15 +28632,15 @@ var render = function() {
|
|||||||
),
|
),
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(20, "sc"), attrs: { _i: 20 } },
|
{ staticClass: _vm._$g(21, "sc"), attrs: { _i: 21 } },
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g(21, "sc"),
|
staticClass: _vm._$g(22, "sc"),
|
||||||
attrs: { _i: 21 }
|
attrs: { _i: 22 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g(21, "t0-0"))]
|
[_vm._v(_vm._$g(22, "t0-0"))]
|
||||||
),
|
),
|
||||||
_vm._v("秒")
|
_vm._v("秒")
|
||||||
],
|
],
|
||||||
@@ -28645,44 +28658,44 @@ var render = function() {
|
|||||||
: _vm._e(),
|
: _vm._e(),
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(22, "sc"), attrs: { _i: 22 } },
|
{ staticClass: _vm._$g(23, "sc"), attrs: { _i: 23 } },
|
||||||
[
|
[
|
||||||
_vm._$g(23, "i")
|
_vm._$g(24, "i")
|
||||||
? _vm._l(_vm._$g(24, "f"), function(item, index, $20, $30) {
|
? _vm._l(_vm._$g(25, "f"), function(item, index, $20, $30) {
|
||||||
return _c(
|
return _c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
key: item,
|
key: item,
|
||||||
staticClass: _vm._$g("24-" + $30, "sc"),
|
staticClass: _vm._$g("25-" + $30, "sc"),
|
||||||
attrs: {
|
attrs: {
|
||||||
keys: _vm._$g("24-" + $30, "a-keys"),
|
keys: _vm._$g("25-" + $30, "a-keys"),
|
||||||
_i: "24-" + $30
|
_i: "25-" + $30
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("25-" + $30, "sc"),
|
staticClass: _vm._$g("26-" + $30, "sc"),
|
||||||
attrs: { _i: "25-" + $30 }
|
attrs: { _i: "26-" + $30 }
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_vm._$g("26-" + $30, "i")
|
_vm._$g("27-" + $30, "i")
|
||||||
? _c("v-uni-image", {
|
? _c("v-uni-image", {
|
||||||
staticClass: _vm._$g("26-" + $30, "sc"),
|
staticClass: _vm._$g("27-" + $30, "sc"),
|
||||||
attrs: {
|
attrs: {
|
||||||
src: _vm._$g("26-" + $30, "a-src"),
|
src: _vm._$g("27-" + $30, "a-src"),
|
||||||
mode: "widthFix",
|
mode: "widthFix",
|
||||||
_i: "26-" + $30
|
_i: "27-" + $30
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
: _c(
|
: _c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("27-" + $30, "sc"),
|
staticClass: _vm._$g("28-" + $30, "sc"),
|
||||||
attrs: { _i: "27-" + $30 }
|
attrs: { _i: "28-" + $30 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g("27-" + $30, "t0-0"))]
|
[_vm._v(_vm._$g("28-" + $30, "t0-0"))]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
@@ -28690,43 +28703,43 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("28-" + $30, "sc"),
|
staticClass: _vm._$g("29-" + $30, "sc"),
|
||||||
attrs: { _i: "28-" + $30 }
|
attrs: { _i: "29-" + $30 }
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("29-" + $30, "sc"),
|
staticClass: _vm._$g("30-" + $30, "sc"),
|
||||||
attrs: { _i: "29-" + $30 }
|
attrs: { _i: "30-" + $30 }
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c("v-uni-image", {
|
_c("v-uni-image", {
|
||||||
staticClass: _vm._$g("30-" + $30, "sc"),
|
staticClass: _vm._$g("31-" + $30, "sc"),
|
||||||
attrs: {
|
attrs: {
|
||||||
src: _vm._$g("30-" + $30, "a-src"),
|
src: _vm._$g("31-" + $30, "a-src"),
|
||||||
mode: "aspectFill",
|
mode: "aspectFill",
|
||||||
_i: "30-" + $30
|
_i: "31-" + $30
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("31-" + $30, "sc"),
|
staticClass: _vm._$g("32-" + $30, "sc"),
|
||||||
attrs: { _i: "31-" + $30 }
|
attrs: { _i: "32-" + $30 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g("31-" + $30, "t0-0"))]
|
[_vm._v(_vm._$g("32-" + $30, "t0-0"))]
|
||||||
),
|
),
|
||||||
_vm._$g("32-" + $30, "i")
|
_vm._$g("33-" + $30, "i")
|
||||||
? _c(
|
? _c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("32-" + $30, "sc"),
|
staticClass: _vm._$g("33-" + $30, "sc"),
|
||||||
attrs: { _i: "32-" + $30 }
|
attrs: { _i: "33-" + $30 }
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_vm._v(
|
_vm._v(
|
||||||
"+" + _vm._$g("32-" + $30, "t0-0") + "%"
|
"+" + _vm._$g("33-" + $30, "t0-0") + "%"
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
@@ -28737,23 +28750,23 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("33-" + $30, "sc"),
|
staticClass: _vm._$g("34-" + $30, "sc"),
|
||||||
attrs: { _i: "33-" + $30 }
|
attrs: { _i: "34-" + $30 }
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("34-" + $30, "sc"),
|
staticClass: _vm._$g("35-" + $30, "sc"),
|
||||||
attrs: { _i: "34-" + $30 }
|
attrs: { _i: "35-" + $30 }
|
||||||
},
|
},
|
||||||
[_vm._v(_vm._$g("34-" + $30, "t0-0"))]
|
[_vm._v(_vm._$g("35-" + $30, "t0-0"))]
|
||||||
),
|
),
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{
|
{
|
||||||
staticClass: _vm._$g("35-" + $30, "sc"),
|
staticClass: _vm._$g("36-" + $30, "sc"),
|
||||||
attrs: { _i: "35-" + $30 }
|
attrs: { _i: "36-" + $30 }
|
||||||
},
|
},
|
||||||
[_vm._v("推荐会员")]
|
[_vm._v("推荐会员")]
|
||||||
)
|
)
|
||||||
@@ -28770,8 +28783,8 @@ var render = function() {
|
|||||||
: [
|
: [
|
||||||
_c(
|
_c(
|
||||||
"v-uni-view",
|
"v-uni-view",
|
||||||
{ staticClass: _vm._$g(37, "sc"), attrs: { _i: 37 } },
|
{ staticClass: _vm._$g(38, "sc"), attrs: { _i: 38 } },
|
||||||
[_c("u-empty", { attrs: { _i: 38 } })],
|
[_c("u-empty", { attrs: { _i: 39 } })],
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user