推荐换成邀请

This commit is contained in:
2022-08-01 15:17:44 +08:00
parent 5618d4e2d7
commit 574994dafd
4 changed files with 2314 additions and 2320 deletions

View File

@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置 // 基础配置
const config = { const config = {
apiUrl : 'https://api.gongli.vip/api/', // 正式环境 // apiUrl : 'https://api.gongli.vip/api/', // 正式环境
// apiUrl : 'http://api.gl.shangkelian.cn/api/', // 测试 apiUrl : 'http://api.gl.shangkelian.cn/api/', // 测试
timeout : 60000 timeout : 60000
} }

View File

@@ -1,28 +1,22 @@
<template> <template>
<view class="rank"> <view class="rank">
<view class="rank_top"> <view class="rank_top">
<view class="rank_top_left"> <view class="rank_top_left">
<image class="rank_title" src="../../static/rank/rank_txt.png" mode="widthFix" /> <image class="rank_title" src="../../static/rank/rank_txt.png" mode="widthFix" />
<view class="rank_sub_title" @click="toHelp"> <view class="rank_sub_title" @click="toHelp"> 共力家族 周会员邀请 <image src="/static/rank/help.png" mode="widthFix" /> </view>
共力家族 周会员推荐
<image src="/static/rank/help.png" mode="widthFix" />
</view>
</view> </view>
<image class="rank_top_right" src="../../static/rank/rank.png" mode="widthFix" /> <image class="rank_top_right" src="../../static/rank/rank.png" mode="widthFix" />
</view> </view>
<scroll-view class="rank_type" scroll-x="true"> <scroll-view class="rank_type" scroll-x="true">
<view :class="['rank_type_item',type === '1'?'rank_type_item_active':'']" @click="changeType('1')">上周加成榜 <view :class="['rank_type_item',type === '1'?'rank_type_item_active':'']" @click="changeType('1')">上周加成榜
</view> </view>
<view :class="['rank_type_item',type === '2'?'rank_type_item_active':'']" @click="changeType('2')">本周推荐 <view :class="['rank_type_item',type === '2'?'rank_type_item_active':'']" @click="changeType('2')">本周邀请
</view> </view>
<view :class="['rank_type_item',type === '3'?'rank_type_item_active':'']" @click="changeType('3')">会员推荐 <view :class="['rank_type_item',type === '3'?'rank_type_item_active':'']" @click="changeType('3')">会员邀请
</view> </view>
<view :class="['rank_type_item',type === '4'?'rank_type_item_active':'']" @click="changeType('4')">用户推荐 <view :class="['rank_type_item',type === '4'?'rank_type_item_active':'']" @click="changeType('4')">用户邀请
</view> </view>
</scroll-view> </scroll-view>
<view class="rank_update_time" v-if="lists.length > 0 && type !== '3'&& type !== '4'"> <view class="rank_update_time" v-if="lists.length > 0 && type !== '3'&& type !== '4'">
<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">
@@ -66,7 +60,7 @@
</view> </view>
<view class="tuijian"> <view class="tuijian">
<view class="num"> {{item.number}}</view> <view class="num"> {{item.number}}</view>
<view class="title">{{type === '4'?'推荐用户':'推荐会员'}}</view> <view class="title">{{type === '4'?'邀请用户':'邀请会员'}}</view>
</view> </view>
</view> </view>
</view> </view>
@@ -74,7 +68,7 @@
<block v-else> <block v-else>
<view class="vertical pages-empty"> <view class="vertical pages-empty">
<u-empty icon="http://cdn.uviewui.com/uview/empty/list.png" textColor="#999" <u-empty icon="http://cdn.uviewui.com/uview/empty/list.png" textColor="#999"
:text="type === '1'?'上周无加成数据':'当前暂无推荐数据'"> :text="type === '1'?'上周无加成数据':'当前暂无邀请数据'">
</u-empty> </u-empty>
</view> </view>
</block> </block>
@@ -96,7 +90,7 @@
end_timestamp: 0, end_timestamp: 0,
lists: [], lists: [],
timeData: {}, timeData: {},
type: "1", // 1 加成榜 2推荐 type: "1", // 1 加成榜 2邀请
page_id: '', page_id: '',
} }
}, },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long