|
@@ -33,7 +33,7 @@
|
|
|
<view class="tt-txt">{{ $t('hea.syzx') }}</view>
|
|
<view class="tt-txt">{{ $t('hea.syzx') }}</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="tt-box" @click="navTo('/pages/user/shareQrCode')">
|
|
|
|
|
|
|
+ <view class="tt-box" v-if="isVip != -1" @click="navTo('/pages/user/shareQrCode')">
|
|
|
<image src="../../static/img/share.png" class="tt-icon1" mode=""></image>
|
|
<image src="../../static/img/share.png" class="tt-icon1" mode=""></image>
|
|
|
<view class="tt-txt">{{ $t('hea.fxhy') }}</view>
|
|
<view class="tt-txt">{{ $t('hea.fxhy') }}</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
@@ -43,6 +43,10 @@
|
|
|
<view class="tt-txt">{{ $t('hea.lxkf') }}</view>
|
|
<view class="tt-txt">{{ $t('hea.lxkf') }}</view>
|
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
<image src="../../static/img/jiantou.png" class="next-icon" mode=""></image>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="tt-box" v-if="isGood">
|
|
|
|
|
+ 倒计时:
|
|
|
|
|
+ <uni-countdown color="#FFF" background-color="#f5c786" :day="ls.stopTimeD" :hour="ls.stopTimeH" :minute="ls.stopTimeM" :second="ls.stopTimeS" :showColon="false" splitorColor="#FFF"></uni-countdown>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
<uni-popup ref="popup" type="center">
|
|
<uni-popup ref="popup" type="center">
|
|
|
<view class="popup-box">
|
|
<view class="popup-box">
|
|
@@ -78,6 +82,8 @@ import { mapState, mapMutations } from 'vuex';
|
|
|
import { saveUrl, interceptor } from '@/utils/loginUtils.js';
|
|
import { saveUrl, interceptor } from '@/utils/loginUtils.js';
|
|
|
import { getApplyList } from '../../api/apply.js';
|
|
import { getApplyList } from '../../api/apply.js';
|
|
|
import { getUserInfo } from '@/api/user.js';
|
|
import { getUserInfo } from '@/api/user.js';
|
|
|
|
|
+import { timeComputed } from '@/utils/rocessor.js';
|
|
|
|
|
+import uniCountdown from '@/components/uni-countdown/uni-countdown.vue';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -85,6 +91,8 @@ export default {
|
|
|
text1: 'BYTCKF33',
|
|
text1: 'BYTCKF33',
|
|
|
text2: 'BYTCKF67',
|
|
text2: 'BYTCKF67',
|
|
|
isVip: -1,
|
|
isVip: -1,
|
|
|
|
|
+ ls: [],
|
|
|
|
|
+ isGood: false,
|
|
|
tabbar: [
|
|
tabbar: [
|
|
|
{
|
|
{
|
|
|
iconPath: '../../static/tabBar/home.png',
|
|
iconPath: '../../static/tabBar/home.png',
|
|
@@ -154,27 +162,35 @@ export default {
|
|
|
.then(({ data }) => {
|
|
.then(({ data }) => {
|
|
|
console.log(data, 'UserInfo+++++++++++++++++');
|
|
console.log(data, 'UserInfo+++++++++++++++++');
|
|
|
this.isVip = -1;
|
|
this.isVip = -1;
|
|
|
|
|
+ let date = (new Date()).getTime();
|
|
|
|
|
+ date = (data.jointime + (48 * 3600))*1000 - date
|
|
|
|
|
+ console.log(date,'nowtime')
|
|
|
|
|
+ if (date > 0){
|
|
|
|
|
+ this.isGood = true;
|
|
|
|
|
+ this.timeComputed(data.jointime + (48 * 3600), this.ls);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ this.isGood = false;
|
|
|
|
|
+ }
|
|
|
if (data.activity[0].my_join) {
|
|
if (data.activity[0].my_join) {
|
|
|
- console.log(333)
|
|
|
|
|
- if (data.activity[0].my_join.status == '1'){
|
|
|
|
|
|
|
+ if (data.activity[0].my_join.status == '1') {
|
|
|
this.isVip = 0;
|
|
this.isVip = 0;
|
|
|
- }else {
|
|
|
|
|
- console.log(data.activity[0].my_join.status,'123')
|
|
|
|
|
- this.isVip = -1
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ console.log(data.activity[0].my_join.status, '123');
|
|
|
|
|
+ this.isVip = -1;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (data.activity[1].my_join) {
|
|
if (data.activity[1].my_join) {
|
|
|
- console.log(222)
|
|
|
|
|
|
|
+ console.log(222);
|
|
|
if (data.activity[1].my_join.status == '2') {
|
|
if (data.activity[1].my_join.status == '2') {
|
|
|
- console.log(111)
|
|
|
|
|
|
|
+ console.log(111);
|
|
|
this.isVip = 2;
|
|
this.isVip = 2;
|
|
|
- }else if (data.activity[1].my_join.status == '1'){
|
|
|
|
|
|
|
+ } else if (data.activity[1].my_join.status == '1') {
|
|
|
this.isVip = 1;
|
|
this.isVip = 1;
|
|
|
- }else {
|
|
|
|
|
- console.log(data.activity[0].my_join.status)
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ console.log(data.activity[0].my_join.status);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.setUserInfo(data);
|
|
this.setUserInfo(data);
|
|
|
})
|
|
})
|
|
|
.catch(e => {
|
|
.catch(e => {
|
|
@@ -185,8 +201,8 @@ export default {
|
|
|
limit: 1,
|
|
limit: 1,
|
|
|
status: 0
|
|
status: 0
|
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
|
- console.log(data,'1111')
|
|
|
|
|
- this.tabbar[1].count = data.count
|
|
|
|
|
|
|
+ console.log(data, '1111');
|
|
|
|
|
+ this.tabbar[1].count = data.count;
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
navTo(url) {
|
|
navTo(url) {
|
|
@@ -212,16 +228,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
tocall(type) {
|
|
tocall(type) {
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
- console.log(type)
|
|
|
|
|
- let text ='';
|
|
|
|
|
- if(type == '1'){
|
|
|
|
|
- text = this.text
|
|
|
|
|
|
|
+ console.log(type);
|
|
|
|
|
+ let text = '';
|
|
|
|
|
+ if (type == '1') {
|
|
|
|
|
+ text = this.text;
|
|
|
}
|
|
}
|
|
|
- if(type == '2'){
|
|
|
|
|
- text = this.text1
|
|
|
|
|
|
|
+ if (type == '2') {
|
|
|
|
|
+ text = this.text1;
|
|
|
}
|
|
}
|
|
|
- if(type == '3'){
|
|
|
|
|
- text = this.text2
|
|
|
|
|
|
|
+ if (type == '3') {
|
|
|
|
|
+ text = this.text2;
|
|
|
}
|
|
}
|
|
|
uni.setClipboardData({
|
|
uni.setClipboardData({
|
|
|
data: text,
|
|
data: text,
|
|
@@ -239,6 +255,18 @@ export default {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
// #endif
|
|
// #endif
|
|
|
|
|
+ },
|
|
|
|
|
+ // 计算倒计时时间
|
|
|
|
|
+ timeComputed(da, ar) {
|
|
|
|
|
+ let obj = this;
|
|
|
|
|
+ // 计算时间,保存需要多少时间到期
|
|
|
|
|
+ let stopTime = timeComputed(da);
|
|
|
|
|
+ console.log(stopTime);
|
|
|
|
|
+ ar.stopTimeD = stopTime.day;
|
|
|
|
|
+ ar.stopTimeH = stopTime.hours;
|
|
|
|
|
+ console.log(ar.stopTimeH);
|
|
|
|
|
+ ar.stopTimeM = stopTime.minutes;
|
|
|
|
|
+ ar.stopTimeS = stopTime.seconds;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
@@ -313,6 +341,7 @@ page,
|
|
|
height: 100rpx;
|
|
height: 100rpx;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
+ color: #ffffff;
|
|
|
border-bottom: 1px solid #838383;
|
|
border-bottom: 1px solid #838383;
|
|
|
.tt-icon1 {
|
|
.tt-icon1 {
|
|
|
width: 42rpx;
|
|
width: 42rpx;
|