修复激励广告

This commit is contained in:
唐明明
2022-06-30 16:17:15 +08:00
179 changed files with 21204 additions and 19797 deletions

View File

@@ -7,7 +7,7 @@
<view class="title">我的角色</view>
<view class="nickname">{{nickname}}</view>
</view>
<view class="capacity-block-glf">{{identityText}}:{{base}}GLF/h</view>
<view class="capacity-block-glf ">{{identityText}}:{{base}}GLF/h</view>
</view>
<view class="capacity-block">
<view class="capacity-block-title">
@@ -15,7 +15,7 @@
<view class="capacity-block-glf">{{group.capacity}}GLF/h</view>
<!-- <view class="more" @click="onInvitation">邀请更多好友</view> -->
</view>
<view class="capacity-block-table">
<view class="capacity-block-table pt30">
<view class="header">
<view class="flex-item">家族成员产率</view>
</view>
@@ -44,18 +44,25 @@
</view>
<view class="capacity-block">
<view class="capacity-block-title">
<view class="title">共建产率<text>0GLF/h</text></view>
<view class="subtitle">-/-</view>
<view class="title">共建产率<text>{{build.capacity}}GLF/h</text></view>
<view class="subtitle">{{build.current}}/{{build.max}}</view>
</view>
<view class="capacity-block-text">产品当前设置共建者每日可以通过看广告获得共建值暂未开放敬请期待</view>
<view class="capacity-block-text ">产品当前设置共建者每日可以通过看广告获得共建值</view>
</view>
<view class="capacity-block">
<view class="capacity-block-title">
<view class="title">共力值产率<text>0GLF/h</text></view>
<view class="subtitle">-/-</view>
<view class="title">共力值产率<text>{{together.capacity}}GLF/h</text></view>
<view class="subtitle">{{together.current}}/{{together.max}}</view>
</view>
<view class="capacity-block-text">根据正常用户的使用在平台的使用习惯购物等行为产生对应共力值暂未开放敬请期待</view>
<view class="capacity-block-text ">根据正常用户的使用在平台的使用习惯购物等行为产生对应共力值暂未开放敬请期待</view>
</view>
<view class="capacity-block" v-for="(item,index) in other" :keys='index'>
<view class="capacity-block-title">
<view class="title">{{item.title}}</view>
<view class="capacity-block-glf">{{item.capacity}}GLF/h</view>
</view>
<view class="capacity-block-text " v-if="item.remark">{{item.remark}}</view>
</view>
<view class="capacity-hint">
PS产品设置每100个共力值或共建值可以加速5%的角色产率
</view>
@@ -91,13 +98,14 @@
novip_count : '-',
vip_text : '-',
novip_text : '-',
}
},
build:{},
together:{},
other:{}
};
},
created() {
uni.showLoading({
title: '加载中...'
})
uni.showLoading({})
glz().then(res => {
this.nickname = res.nickname
this.identityText = res.identity_text
@@ -106,6 +114,9 @@
this.group = res.group
this.recommend = res.recommend
this.partner = res.partner
this.build = res.build
this.together = res.together
this.other = res.other
uni.setNavigationBarTitle({
title: res.glz + 'GLF'
})
@@ -158,11 +169,11 @@
&-glf{
color: $main-color;
font-size: 30rpx;
// padding-top: 30rpx;
}
&-title{
font-weight: bold;
font-size: 34rpx;
padding-bottom: 30rpx;
line-height: 60rpx;
display: flex;
justify-content: space-between;
@@ -197,10 +208,12 @@
font-size: 28rpx;
color: gray;
line-height: 40rpx;
padding-top: 30rpx;
}
&-table{
border:solid 1px $border-color;
margin-bottom: 20rpx;
padding-top: 30rpx;
&:last-child{
margin-top: 0;
}
@@ -229,5 +242,8 @@
}
}
.pt30{
padding-top: 30rpx;
}
}
</style>

File diff suppressed because it is too large Load Diff

377
pages/rank/index.vue Normal file
View File

@@ -0,0 +1,377 @@
<template>
<view class="rank">
<view class="rank_top">
<view class="rank_top_left">
<image class="rank_title" src="../../static/rank/rank_txt.png" mode="widthFix" />
<view class="rank_sub_title" @click="toHelp">
共力家族 周会员推荐
<image src="/static/rank/help.png" mode="widthFix" />
</view>
</view>
<image class="rank_top_right" src="../../static/rank/rank.png" mode="widthFix" />
</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 === '2'?'rank_type_item_active':'']" @click="changeType('2')">本周推荐榜
</view>
</view>
<view class="rank_update_time" v-if="lists.length > 0">
<view class="title"> 加成{{type === '1'?'有效':'生效'}}倒计时 : </view>
<u-count-down :time="end_timestamp" format="DD:HH:mm:ss" autoStart millisecond @change="onChange">
<view class="time">
<view class="time__item">
<view class="time__item_no">{{ timeData.days }} </view>
</view>
<view class="time__item">
<view class="time__item_no">{{ timeData.hours>9?timeData.hours:'0'+timeData.hours}}</view>
</view>
<view class="time__item">
<view class="time__item_no">{{ timeData.minutes>9?timeData.minutes:'0'+timeData.minutes}}</view>
</view>
<view class="time__item">
<view class="time__item_no">{{ timeData.seconds>9?timeData.seconds:'0'+timeData.seconds}}</view>
</view>
</view>
</u-count-down>
</view>
<view class="list">
<block v-if="lists.length>0">
<view class="list_item" v-for="(item,index) in lists" :keys='index'>
<view class="no">
<image v-if="index < 3" class="image" :src="'/static/rank/rank-'+(index+1)+'.png'"
mode="widthFix" />
<view v-else class="txt"> {{index + 1}} </view>
</view>
<view class="user_info">
<view class="user">
<image class="avatar" :src="item.avatar" mode="aspectFill" />
<view class="nickname"> {{item.nickname}} </view>
<view class="wight" v-if="type === '1'">+{{item.rate}}%</view>
</view>
<view class="tuijian">
<view class="num"> {{item.number}}</view>
<view class="title">推荐会员</view>
</view>
</view>
</view>
</block>
<block v-else>
<view class="vertical pages-empty">
<u-empty icon="http://cdn.uviewui.com/uview/empty/list.png" textColor="#999"
:text="type === '1'?'上周无加成数据':'当前暂无推荐数据'">
</u-empty>
</view>
</block>
</view>
</view>
</template>
<script>
import {
week,
week_mul
} from '@/apis/interfaces/rank.js'
export default {
data() {
return {
end_timestamp: 0,
lists: [],
timeData: {},
type: "1", // 1 加成榜 2推荐榜
page_id:'',
}
},
onLoad() {
this.getList();
},
methods: {
onChange(e) {
this.timeData = e
},
changeType(type) {
if (this.type !== type) {
this.type = type;
this.getList();
}
},
toHelp() {
uni.navigateTo({
url: 'pages/vip/agreement?id=' + this.page_id
})
},
getList() {
uni.showLoading({})
let urlRequest = ''
if (this.type === '1') {
urlRequest = week_mul
} else {
urlRequest = week
}
urlRequest().then(res => {
this.lists = [];
this.lists = res.rand;
this.page_id = res.page_id;
this.end_timestamp = res.end_timestamp * 1000;
uni.hideLoading();
}).catch(err => {
uni.showToast({
title: err.message,
icon: 'none',
mask: true
})
})
}
}
}
</script>
<style lang="scss">
.rank {
.rank_top {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
background-color: #34CE98;
padding: 50rpx 30rpx 40rpx 30rpx;
.rank_top_left {
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-start;
box-sizing: border-box;
.rank_title {
width: 360rpx;
}
.rank_sub_title {
font-size: 28rpx;
font-weight: 500;
color: white;
padding-left: 20rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
margin-top: 10rpx;
image {
width: 32rpx;
margin-left: 6rpx;
}
}
}
.rank_top_right {
width: 280rpx;
}
}
.rank_type {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
background-color: #26b398;
.rank_type_item {
flex: 1;
text-align: center;
padding: 40rpx;
font-size: 32rpx;
font-weight: 400;
color: rgba($color: #fff, $alpha: 0.6);
}
.rank_type_item_active {
position: relative;
color: white;
&::after {
content: '';
border-bottom: 20rpx solid white;
border-right: 16rpx solid transparent;
border-left: 16rpx solid transparent;
position: absolute;
bottom: 0;
left: 50%;
margin-left: -20rpx;
}
}
}
.rank_update_time {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: 50rpx 30rpx;
width: 100%;
.title {
font-size: 28rpx;
font-weight: normal;
color: #34CE98;
}
.time {
padding-left: 20rpx;
flex: 1;
font-size: 28rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
color: #333;
.time__item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
.time__item_no {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
background-color: #34CE98;
color: white;
min-width: 50rpx;
min-height: 50rpx;
border-radius: 4rpx;
margin: 0 16rpx;
font-size: 36rpx;
font-weight: bold;
padding: 2rpx 10rpx;
}
}
}
}
.list {
border-top: 30rpx solid #f9f9f9;
padding: 30rpx;
.list_item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
.no {
width: 80rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
box-sizing: border-box;
.image {
width: 54rpx;
}
.txt {
font-weight: 600;
font-size: 34rpx;
color: #333;
}
}
.user_info {
flex: 1;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
border-bottom: solid 1rpx #bdc6d7;
padding: 30rpx 20rpx 30rpx 0;
margin-left: 30rpx;
.user {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
.avatar {
width: 90rpx;
height: 90rpx;
border-radius: 50%;
margin-right: 30rpx;
}
.nickname {
font-size: 30rpx;
color: #333;
max-width: 200rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
box-sizing: border-box;
}
.wight {
font-size: 26rpx;
font-weight: normal;
margin-left: 20rpx;
background-color: #bdc6d7;
color: #fff;
border-radius: 30rpx;
padding: 0 10rpx;
}
}
}
.tuijian {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
.num {
color: #999;
font-size: 30rpx;
}
.title {
font-size: 22rpx;
color: #999;
}
}
}
}
}
</style>

View File

@@ -51,7 +51,7 @@
</view>
</view>
<view class=" introduce"><navigator hover-class="none" url="/pages/vip/agreement?id=5"> 退换货说明</navigator> </view>
<view class=" introduce"><navigator hover-class="none" url="/pages/vip/agreement?id=5">退换货说明</navigator> </view>
</view>
</template>