cczg-lottery-activity/pages/index/index.vue

78 lines
1.3 KiB
Vue

<template>
<view class="content">
<view class="topcontent">
<image class="logo" :src="logo"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
<view class="btn">
<u-button type="primary" text="进入首页" @click="navigateTo(defaultUrl)"></u-button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
title: '蓝色兄弟营销客户端',
defaultUrl:'/pages/coupons/index/index',
logo: require("@/static/images/LOGO.png")
}
},
onLoad() {
},
methods: {
navigateTo:(url)=>{
uni.redirectTo({
url:url
})
}
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 100%;
}
.topcontent{
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}
.logo {
height: 300rpx;
width: 300rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
.btn {
width: 80%;
height: 300rpx;
}
</style>