|
|
|
|
@ -16,10 +16,10 @@
|
|
|
|
|
<u-image :fade="false" :src="logo20" width="135rpx" height="100rpx"></u-image>
|
|
|
|
|
</view>
|
|
|
|
|
<view :animation="animationData21" class="logo21">
|
|
|
|
|
<u-image :fade="false" :src="logo21" width="147rpx" height="420rpx"></u-image>
|
|
|
|
|
<u-image :fade="false" :src="logo21" width="143rpx" height="255rpx"></u-image>
|
|
|
|
|
</view>
|
|
|
|
|
<view :animation="animationData22" class="logo22">
|
|
|
|
|
<u-image :fade="false" :src="logo22" width="52rpx" height="457rpx"></u-image>
|
|
|
|
|
<u-image :fade="false" :src="logo22" width="53rpx" height="457rpx"></u-image>
|
|
|
|
|
</view>
|
|
|
|
|
<view :animation="animationData23" class="logo23">
|
|
|
|
|
<u-image :fade="false" :src="logo23" width="750rpx" height="594rpx"></u-image>
|
|
|
|
|
@ -32,7 +32,8 @@
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
isLogin:false,//是否注册
|
|
|
|
|
isLogin:false,//是否注册
|
|
|
|
|
isEnd:false,//是否结束
|
|
|
|
|
animations: [{
|
|
|
|
|
name: 'fadeIn',
|
|
|
|
|
duration: '1s',
|
|
|
|
|
@ -43,17 +44,18 @@
|
|
|
|
|
show:false,
|
|
|
|
|
width:'750rpx',
|
|
|
|
|
height:'1650rpx'
|
|
|
|
|
},{
|
|
|
|
|
name: 'heartBeat',
|
|
|
|
|
duration: '1.5s',
|
|
|
|
|
timer: 1000,
|
|
|
|
|
content: require('../../static/index/logo.png'),
|
|
|
|
|
autoplay:false,
|
|
|
|
|
class:'logo',
|
|
|
|
|
show:false,
|
|
|
|
|
width:'285rpx',
|
|
|
|
|
height:'202rpx'
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// name: 'heartBeat',
|
|
|
|
|
// duration: '1.5s',
|
|
|
|
|
// timer: 1000,
|
|
|
|
|
// content: require('../../static/index/logo.png'),
|
|
|
|
|
// autoplay:false,
|
|
|
|
|
// class:'logo',
|
|
|
|
|
// show:false,
|
|
|
|
|
// width:'285rpx',
|
|
|
|
|
// height:'202rpx'
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
name: 'fadeIn',
|
|
|
|
|
duration: '1s',
|
|
|
|
|
@ -62,8 +64,8 @@
|
|
|
|
|
autoplay:false,
|
|
|
|
|
class:'logo1',
|
|
|
|
|
show:false,
|
|
|
|
|
width:'671rpx',
|
|
|
|
|
height:'336rpx'
|
|
|
|
|
width:'242rpx',
|
|
|
|
|
height:'432rpx'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'fadeInUp',
|
|
|
|
|
@ -74,7 +76,7 @@
|
|
|
|
|
class:'logo2',
|
|
|
|
|
show:false,
|
|
|
|
|
width:'750rpx',
|
|
|
|
|
height:'802rpx'
|
|
|
|
|
height:'605rpx'
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
logo20:require('../../static/index/2logo.png'),
|
|
|
|
|
@ -105,45 +107,40 @@
|
|
|
|
|
onLoad() {
|
|
|
|
|
// this.play2(0)
|
|
|
|
|
// this.getUserInfo()
|
|
|
|
|
this.play(3)
|
|
|
|
|
this.getConfig()
|
|
|
|
|
this.play(2)
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// getUserInfo(){
|
|
|
|
|
// let userinfo = uni.getStorageSync('userInfo')
|
|
|
|
|
// if(userinfo){
|
|
|
|
|
// this.isLogin = true
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
methods: {
|
|
|
|
|
play(index){
|
|
|
|
|
// 第一屏结束
|
|
|
|
|
if(index<0){
|
|
|
|
|
// 第一屏结束
|
|
|
|
|
let that = this
|
|
|
|
|
var animation = uni.createAnimation({
|
|
|
|
|
duration: 1500,
|
|
|
|
|
timingFunction: 'ease-in',
|
|
|
|
|
})
|
|
|
|
|
// this.animations[1]['show'] = true
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
that.animations[1]['show'] = false
|
|
|
|
|
},500)
|
|
|
|
|
animation.opacity(0).width("135rpx").height("100rpx").top('106rpx').left('55rpx').step()
|
|
|
|
|
this.animationData = animation.export()
|
|
|
|
|
// 第二屏logo
|
|
|
|
|
var animation20 = uni.createAnimation({
|
|
|
|
|
duration: 2500,
|
|
|
|
|
timingFunction: 'ease-in'
|
|
|
|
|
})
|
|
|
|
|
animation20.opacity(1).step()
|
|
|
|
|
this.animationData20 = animation20.export()
|
|
|
|
|
// 第二屏s
|
|
|
|
|
var animation1 = uni.createAnimation({
|
|
|
|
|
duration: 2000,
|
|
|
|
|
timingFunction: 'ease-in',
|
|
|
|
|
})
|
|
|
|
|
animation1.opacity(1).step()
|
|
|
|
|
this.animationData1 = animation1.export()
|
|
|
|
|
this.play2()
|
|
|
|
|
// let that = this
|
|
|
|
|
// var animation = uni.createAnimation({
|
|
|
|
|
// duration: 1500,
|
|
|
|
|
// timingFunction: 'ease-in',
|
|
|
|
|
// })
|
|
|
|
|
// // this.animations[1]['show'] = true
|
|
|
|
|
// setTimeout(function(){
|
|
|
|
|
// that.animations[1]['show'] = false
|
|
|
|
|
// },500)
|
|
|
|
|
// animation.opacity(0).width("135rpx").height("100rpx").top('106rpx').left('55rpx').step()
|
|
|
|
|
// this.animationData = animation.export()
|
|
|
|
|
// // 第二屏logo
|
|
|
|
|
// var animation20 = uni.createAnimation({
|
|
|
|
|
// duration: 2500,
|
|
|
|
|
// timingFunction: 'ease-in'
|
|
|
|
|
// })
|
|
|
|
|
// animation20.opacity(1).step()
|
|
|
|
|
// this.animationData20 = animation20.export()
|
|
|
|
|
// // 第二屏s
|
|
|
|
|
// var animation1 = uni.createAnimation({
|
|
|
|
|
// duration: 2000,
|
|
|
|
|
// timingFunction: 'ease-in',
|
|
|
|
|
// })
|
|
|
|
|
// animation1.opacity(1).step()
|
|
|
|
|
// this.animationData1 = animation1.export()
|
|
|
|
|
// this.play2()
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.animations[index]['show'] = true
|
|
|
|
|
@ -179,14 +176,48 @@
|
|
|
|
|
this.animationData23 = animation23.export()
|
|
|
|
|
this.towhere()
|
|
|
|
|
},
|
|
|
|
|
getConfig(){
|
|
|
|
|
// /
|
|
|
|
|
let that = this
|
|
|
|
|
this.util.request({
|
|
|
|
|
api: '/api/mobile/user/wechat-login-url',
|
|
|
|
|
method: 'GET',
|
|
|
|
|
data:{
|
|
|
|
|
activity_tag:'bbfc'
|
|
|
|
|
},
|
|
|
|
|
utilSuccess: (res) => {
|
|
|
|
|
that.isEnd = that.isCurrentTimeBetween(res.start_time,res.end_time)
|
|
|
|
|
let config = res.config
|
|
|
|
|
config.map(item=>{
|
|
|
|
|
if(item.key==='active_tip'){
|
|
|
|
|
uni.setStorageSync('active_tip',item.value)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
uni.setStorageSync('isEnd',that.isEnd)
|
|
|
|
|
// this.userInfo = res;
|
|
|
|
|
// uni.setStorageSync("userInfo",res)
|
|
|
|
|
},
|
|
|
|
|
utilFail: (res) => {
|
|
|
|
|
this.util.toast(res)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
isCurrentTimeBetween(startTime, endTime) {
|
|
|
|
|
const now = new Date();
|
|
|
|
|
const start = new Date(startTime);
|
|
|
|
|
const end = new Date(endTime);
|
|
|
|
|
|
|
|
|
|
return now >= start && now <= end;
|
|
|
|
|
},
|
|
|
|
|
towhere(isclick){
|
|
|
|
|
let userinfo = uni.getStorageSync('userInfo')
|
|
|
|
|
let url = '/pages/login/index'
|
|
|
|
|
if(userinfo){
|
|
|
|
|
url = '/pages/me/me'
|
|
|
|
|
}
|
|
|
|
|
console.log(userinfo,url,isclick)
|
|
|
|
|
// return
|
|
|
|
|
// 不点击 动画结束后延时进入
|
|
|
|
|
if(isclick){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url:url
|
|
|
|
|
@ -240,8 +271,8 @@
|
|
|
|
|
|
|
|
|
|
.logo1 {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 520rpx;
|
|
|
|
|
left: 60rpx;
|
|
|
|
|
bottom: 670rpx;
|
|
|
|
|
left: 270rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.logo2 {
|
|
|
|
|
|