产出效率
This commit is contained in:
@@ -315,6 +315,12 @@
|
||||
"navigationStyle": "custom",
|
||||
"disableScroll": true
|
||||
}
|
||||
}, {
|
||||
"path": "pages/life/capacity",
|
||||
"name": "Capacity",
|
||||
"style": {
|
||||
"navigationBarTitleText": "-"
|
||||
}
|
||||
}
|
||||
],
|
||||
"tabBar": {
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
select(e){
|
||||
switch(e.item.name){
|
||||
case 'wxchum':
|
||||
console.log('wxchum')
|
||||
uni.share({
|
||||
provider: 'weixin',
|
||||
scene : 'WXSceneSession',
|
||||
|
||||
168
pages/life/capacity.vue
Normal file
168
pages/life/capacity.vue
Normal file
@@ -0,0 +1,168 @@
|
||||
<template>
|
||||
<view class="capacity">
|
||||
<view class="capacity-title">共力分总产率/小时<text>0.04GLF/h</text></view>
|
||||
<view class="capacity-sbutitle">总产率=角色产率+团队产率+共建产率+共力值产率</view>
|
||||
<view class="capacity-block">
|
||||
<view class="capacity-block-title">我的角色</view>
|
||||
<view class="capacity-block-glf">普通用户:0.04GLF/h</view>
|
||||
</view>
|
||||
<view class="capacity-block">
|
||||
<view class="capacity-block-title">
|
||||
<view class="title">成员产率<text>0GLF/h</text></view>
|
||||
<view class="more" @click="onInvitation">邀请更多好友</view>
|
||||
</view>
|
||||
<view class="capacity-block-table">
|
||||
<view class="header">
|
||||
<view class="flex-item">家族成员产率</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view class="flex-item">0人在线(会员)</view>
|
||||
<view class="flex-item">-</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view class="flex-item">0人在线(会员)</view>
|
||||
<view class="flex-item">-</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="capacity-block-table">
|
||||
<view class="header">
|
||||
<view class="flex-item">伙伴成员</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view class="flex-item">0人在线(会员)</view>
|
||||
<view class="flex-item">-</view>
|
||||
</view>
|
||||
<view class="flex">
|
||||
<view class="flex-item">0人在线(会员)</view>
|
||||
<view class="flex-item">-</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="capacity-block">
|
||||
<view class="capacity-block-title">
|
||||
<view class="title">共建产率<text>0GLF/h</text></view>
|
||||
<view class="subtitle">0/1200</view>
|
||||
</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">0/1200</view>
|
||||
</view>
|
||||
<view class="capacity-block-text">产品当日设置的</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
onInvitation(){
|
||||
this.$Router.push({name: 'Invitation'})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.capacity{
|
||||
background: $window-color;
|
||||
min-height: 100vh;
|
||||
padding: $padding;
|
||||
box-sizing: border-box;
|
||||
&-title{
|
||||
font-size: 38rpx;
|
||||
font-weight: bold;
|
||||
line-height: 60rpx;
|
||||
text{
|
||||
margin-left: 10rpx;
|
||||
color: $main-color;
|
||||
}
|
||||
}
|
||||
&-sbutitle{
|
||||
font-size: 26rpx;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
&-block{
|
||||
background: white;
|
||||
margin-top: $margin;
|
||||
border-radius: $radius;
|
||||
padding: $padding;
|
||||
&-glf{
|
||||
color: $main-color;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
&-title{
|
||||
font-weight: bold;
|
||||
font-size: 34rpx;
|
||||
padding-bottom: 30rpx;
|
||||
line-height: 60rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
.title{
|
||||
text{
|
||||
color: $main-color;
|
||||
font-weight: normal;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
}
|
||||
.more{
|
||||
background: $main-color;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
border-radius: 25rpx;
|
||||
line-height: 60rpx;
|
||||
width: 230rpx;
|
||||
text-align: center;
|
||||
}
|
||||
.subtitle{
|
||||
font-weight: normal;
|
||||
font-size: 24rpx;
|
||||
color: $main-color;
|
||||
}
|
||||
}
|
||||
&-text{
|
||||
font-size: 28rpx;
|
||||
color: gray;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
&-table{
|
||||
border:solid 1px $border-color;
|
||||
margin-bottom: 20rpx;
|
||||
&:last-child{
|
||||
margin-top: 0;
|
||||
}
|
||||
.header{
|
||||
background: $border-color;
|
||||
line-height: 50rpx;
|
||||
padding: 0 15rpx;
|
||||
font-size: 26rpx;
|
||||
color: gray;
|
||||
}
|
||||
.flex{
|
||||
display: flex;
|
||||
border-top: solid 1rpx $border-color;
|
||||
color: gray;
|
||||
.flex-item{
|
||||
width: 50%;
|
||||
box-sizing: border-box;
|
||||
line-height: 50rpx;
|
||||
padding: 0 15rpx;
|
||||
font-size: 24rpx;
|
||||
&:first-child{
|
||||
border-right: solid 1rpx $border-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -3,11 +3,19 @@
|
||||
<!-- 账户信息 -->
|
||||
<view class="life-header">
|
||||
<view class="life-header-flex">
|
||||
<view class="life-header-item">0.00GLF</view>
|
||||
<view class="life-header-item">{{glz}}<text>GLF</text></view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 共力人生 -->
|
||||
<view class="life-cover">
|
||||
<view class="life-sign" @click="onSign">
|
||||
<view class="life-sign-icon">签到</view>
|
||||
<view class="life-sign-num">{{}}</view>
|
||||
<view class="life-sign-unit">GLF/h</view>
|
||||
<view class="life-sign-time">
|
||||
<u-count-down :time="nextSignAt" format="HH:mm:ss"></u-count-down>
|
||||
</view>
|
||||
</view>
|
||||
<image class="life-cover-back" :src="require('@/static/life/back.png')"></image>
|
||||
<view class="life-role">
|
||||
<image class="life-role-src" :src="figurePath" mode="widthFix"/>
|
||||
@@ -85,6 +93,9 @@
|
||||
|
||||
<script>
|
||||
import { life } from '@/apis/interfaces/life.js'
|
||||
|
||||
var account;
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -103,18 +114,28 @@
|
||||
init: 0,
|
||||
pay: 0,
|
||||
delivered: 0
|
||||
}
|
||||
},
|
||||
nextSignAt : 0,
|
||||
glz : 0,
|
||||
base_hour : 0,
|
||||
base_seconds: 0
|
||||
};
|
||||
},
|
||||
created() {
|
||||
onShow() {
|
||||
// 共力人生
|
||||
life().then(res => {
|
||||
this.glz = res.account.glz
|
||||
this.base_hour = res.account.base_hour
|
||||
this.base_seconds = res.account.base_seconds
|
||||
this.nextSignAt = res.next_sign_at * 1000
|
||||
this.nickname = res.nickname
|
||||
this.figurePath = res.figure_path
|
||||
this.identity = res.identity
|
||||
this.children = res.children
|
||||
this.message = res.message
|
||||
this.order = res.order
|
||||
|
||||
this.outTime()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
@@ -123,6 +144,17 @@
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
// 计时器
|
||||
outTime(){
|
||||
account = setInterval(() =>{
|
||||
let newGlz = (Number(this.glz) + this.base_seconds)
|
||||
this.glz = newGlz.toFixed(4)
|
||||
}, 1000)
|
||||
},
|
||||
// 签到
|
||||
onSign(){
|
||||
this.$Router.push({name: 'Capacity'})
|
||||
},
|
||||
// 我的订单
|
||||
onNav(name, type){
|
||||
if(type){
|
||||
@@ -138,6 +170,9 @@
|
||||
icon : 'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
onHide() {
|
||||
clearInterval(account)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -347,7 +382,13 @@
|
||||
border-radius: 35rpx;
|
||||
padding: 0 20rpx;
|
||||
margin-right: 20rpx;
|
||||
font-size: 28rpx;
|
||||
font-size: 42rpx;
|
||||
font-weight: bold;
|
||||
text{
|
||||
font-weight: normal;
|
||||
padding-left: 5rpx;
|
||||
font-size: 70%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -357,6 +398,20 @@
|
||||
width: 100%;
|
||||
padding-top: 134%;
|
||||
overflow: hidden;
|
||||
.life-sign{
|
||||
position: absolute;
|
||||
top: 25%;
|
||||
right: $margin * 2;
|
||||
z-index: 99;
|
||||
background: rgba(0, 0, 0, .5);
|
||||
width: 78rpx;
|
||||
height: 78rpx;
|
||||
border-radius: 50%;
|
||||
color: white;
|
||||
text-align: center;
|
||||
line-height: 78rpx;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.life-cover-back{
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
|
||||
File diff suppressed because one or more lines are too long
1891
unpackage/dist/dev/app-plus/app-service.js
vendored
1891
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
1315
unpackage/dist/dev/app-plus/app-view.js
vendored
1315
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user