...
This commit is contained in:
@@ -11,7 +11,8 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="capacity-block">
|
<view class="capacity-block">
|
||||||
<view class="capacity-block-title">
|
<view class="capacity-block-title">
|
||||||
<view class="title">成员产率({{group.effect}}/{{group.count}})<text</text></view>
|
<view class="title">成员产率({{group.effect}}/{{group.count}})<text< /text>
|
||||||
|
</view>
|
||||||
<view class="capacity-block-glf">{{group.capacity}}GLF/h</view>
|
<view class="capacity-block-glf">{{group.capacity}}GLF/h</view>
|
||||||
<!-- <view class="more" @click="onInvitation">邀请更多好友</view> -->
|
<!-- <view class="more" @click="onInvitation">邀请更多好友</view> -->
|
||||||
</view>
|
</view>
|
||||||
@@ -68,7 +69,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { glz } from '@/apis/interfaces/life.js'
|
import {
|
||||||
|
glz,sign
|
||||||
|
} from '@/apis/interfaces/life.js'
|
||||||
|
import AD from '@/utils/ad.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -99,12 +103,14 @@
|
|||||||
},
|
},
|
||||||
build: {},
|
build: {},
|
||||||
together: {},
|
together: {},
|
||||||
other:{}
|
other: {},
|
||||||
|
can_repeat_sign: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
uni.showLoading({})
|
uni.showLoading({})
|
||||||
glz().then(res => {
|
glz().then(res => {
|
||||||
|
console.log(res);
|
||||||
this.nickname = res.nickname
|
this.nickname = res.nickname
|
||||||
this.identityText = res.identity_text
|
this.identityText = res.identity_text
|
||||||
this.baseHour = res.base_hour
|
this.baseHour = res.base_hour
|
||||||
@@ -115,6 +121,7 @@
|
|||||||
this.build = res.build
|
this.build = res.build
|
||||||
this.together = res.together
|
this.together = res.together
|
||||||
this.other = res.other
|
this.other = res.other
|
||||||
|
this.can_repeat_sign = res.can_repeat_sign
|
||||||
uni.setNavigationBarTitle({
|
uni.setNavigationBarTitle({
|
||||||
title: res.glz + 'GLF'
|
title: res.glz + 'GLF'
|
||||||
})
|
})
|
||||||
@@ -127,6 +134,15 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
onNavigationBarButtonTap() {
|
onNavigationBarButtonTap() {
|
||||||
|
if (!this.can_repeat_sign) {
|
||||||
|
uni.showModal({
|
||||||
|
title: '温馨提示',
|
||||||
|
content: '今日重置签到机会已使用过了,明日再来试试吧~',
|
||||||
|
confirmColor: '#34CE98',
|
||||||
|
confirmText: '知道了',
|
||||||
|
showCancel: false,
|
||||||
|
})
|
||||||
|
} else {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '温馨提示',
|
||||||
content: '重置签到只重新计算24小时时间,所迭代加成的比例不变',
|
content: '重置签到只重新计算24小时时间,所迭代加成的比例不变',
|
||||||
@@ -134,10 +150,11 @@
|
|||||||
confirmText: '立即重置',
|
confirmText: '立即重置',
|
||||||
cancelColor: '#999',
|
cancelColor: '#999',
|
||||||
cancelText: '再想想',
|
cancelText: '再想想',
|
||||||
success: (res) => {
|
success: (res1) => {
|
||||||
if(res.confirm){
|
if (res1.confirm) {
|
||||||
console.log('再次签到。。。')
|
console.log('再次签到。。。')
|
||||||
this.checkIMEI().then(res => {
|
this.checkIMEI().then(res => {
|
||||||
|
console.log(res);
|
||||||
switch (res) {
|
switch (res) {
|
||||||
case 'Permanent':
|
case 'Permanent':
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
@@ -155,7 +172,8 @@
|
|||||||
success: e => {
|
success: e => {
|
||||||
if (e.cancel) {
|
if (e.cancel) {
|
||||||
this.checkIMEI().then(IMEI => {
|
this.checkIMEI().then(IMEI => {
|
||||||
if (IMEI === 'Success') {
|
if (IMEI ===
|
||||||
|
'Success') {
|
||||||
this.showAd()
|
this.showAd()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -167,14 +185,48 @@
|
|||||||
this.showAd()
|
this.showAd()
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}).catch(err => {
|
||||||
|
console.log(err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
showAd() {
|
||||||
|
AD.show({
|
||||||
|
adpid: 1428308887,
|
||||||
|
adType: 'RewardedVideo'
|
||||||
|
}, detail => {
|
||||||
|
if (detail && detail.isEnded) {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '签到中..'
|
||||||
|
})
|
||||||
|
sign().then(res => {
|
||||||
|
uni.showToast({
|
||||||
|
title: '签到成功',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
this.getLife()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}, err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.errMsg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
onInvitation() {
|
onInvitation() {
|
||||||
this.$Router.push({name: 'Invitation'})
|
this.$Router.push({
|
||||||
|
name: 'Invitation'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// imei权限
|
// imei权限
|
||||||
checkIMEI() {
|
checkIMEI() {
|
||||||
@@ -212,41 +264,49 @@
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: $padding;
|
padding: $padding;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
&-hint {
|
&-hint {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: gray;
|
color: gray;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
padding: $padding 0;
|
padding: $padding 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-title {
|
&-title {
|
||||||
font-size: 38rpx;
|
font-size: 38rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 60rpx;
|
line-height: 60rpx;
|
||||||
|
|
||||||
text {
|
text {
|
||||||
margin-left: 10rpx;
|
margin-left: 10rpx;
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-sbutitle {
|
&-sbutitle {
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-block {
|
&-block {
|
||||||
background: white;
|
background: white;
|
||||||
margin-top: $margin;
|
margin-top: $margin;
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
padding: $padding;
|
padding: $padding;
|
||||||
|
|
||||||
&-glf {
|
&-glf {
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
// padding-top: 30rpx;
|
// padding-top: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-title {
|
&-title {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 34rpx;
|
font-size: 34rpx;
|
||||||
line-height: 60rpx;
|
line-height: 60rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
text {
|
text {
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
@@ -254,6 +314,7 @@
|
|||||||
padding-left: 10rpx;
|
padding-left: 10rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.more {
|
.more {
|
||||||
background: $main-color;
|
background: $main-color;
|
||||||
color: white;
|
color: white;
|
||||||
@@ -264,29 +325,35 @@
|
|||||||
width: 230rpx;
|
width: 230rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.subtitle {
|
.subtitle {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: $main-color;
|
color: $main-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nickname {
|
.nickname {
|
||||||
color: gray;
|
color: gray;
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&-text {
|
&-text {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: gray;
|
color: gray;
|
||||||
line-height: 40rpx;
|
line-height: 40rpx;
|
||||||
padding-top: 30rpx;
|
padding-top: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
&-table {
|
&-table {
|
||||||
border: solid 1px $border-color;
|
border: solid 1px $border-color;
|
||||||
margin-bottom: 20rpx;
|
margin-bottom: 20rpx;
|
||||||
padding-top: 30rpx;
|
padding-top: 30rpx;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
background: $border-color;
|
background: $border-color;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
@@ -294,16 +361,19 @@
|
|||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
border-top: solid 1rpx $border-color;
|
border-top: solid 1rpx $border-color;
|
||||||
color: gray;
|
color: gray;
|
||||||
|
|
||||||
.flex-item {
|
.flex-item {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
padding: 0 15rpx;
|
padding: 0 15rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
border-right: solid 1rpx $border-color;
|
border-right: solid 1rpx $border-color;
|
||||||
}
|
}
|
||||||
@@ -312,6 +382,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.pt30 {
|
.pt30 {
|
||||||
padding-top: 30rpx;
|
padding-top: 30rpx;
|
||||||
}
|
}
|
||||||
|
|||||||
2
unpackage/dist/dev/app-plus/app-service.js
vendored
2
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
3
unpackage/dist/dev/app-plus/app-view.js
vendored
3
unpackage/dist/dev/app-plus/app-view.js
vendored
@@ -24148,7 +24148,8 @@ var render = function() {
|
|||||||
"/" +
|
"/" +
|
||||||
_vm._$g(11, "t0-1") +
|
_vm._$g(11, "t0-1") +
|
||||||
")"
|
")"
|
||||||
)
|
),
|
||||||
|
_vm._v("< /text>")
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
_c(
|
_c(
|
||||||
|
|||||||
Reference in New Issue
Block a user