|
- <template>
- <view class="boox">
- <view class="title">
- 数智工牌
- </view>
- <view class="booximg">
- <image class="img" src="https://qufang.oss-cn-beijing.aliyuncs.com/zkgj/xcx/guidepage.png" mode=""></image>
- </view>
- <view @click="bindWxBLogin" class="button">
- <view class="view">
- 立即去登录
- </view>
- </view>
- </view>
- <!-- <view class="full">
- <view class="logo"></view>
- <view class="title">
- 数智工牌
- </view>
-
- <view @click="bindWxBLogin" class="button">
- 立即去登录
- </view>
- </view> -->
-
- </template>
-
- <script>
- var app = getApp();
- var config = require("../../config");
- export default {
- data() {
- return {
-
- };
- },
- onShow: function() {
- uni.request({
- url: config.service.verify,
- method: "GET",
- header: {
- 'content-type': 'application/json',
- 'Access-Token': uni.getStorageSync('weapp_session_login_data').token
- },
- success: (data) => {
- if (data.data.code == 10000) {
- uni.switchTab({
- url: '/pages/index/index'
- });
- }
- }
- })
- },
- onHide: function() {},
- methods: {
- bindWxBLogin() {
- wx.navigateTo({
- url: '/pages/login/index'
- });
- }
-
- }
- };
- </script>
- <style lang="scss">
- .boox{
- width: 100vw;
- height: 100vh;
- position: relative;
- .title {
- width: 100%;
- position: absolute;
- left: 0rpx;
- top: 100rpx;
- text-align: center;
- color: #FFFFFF;
- font-size: 32rpx;
- font-weight: 500;
- z-index: 1000;
- }
- .booximg{
- width: 100vw;
- height: 96vh;
- .img{
- width: 100%;
- height: 100%;
- }
- }
- .button {
- width: 100%;
- position: absolute;
- left: 0rpx;
- bottom:80rpx;
- .view{
- width: 630rpx;
- height: 86rpx;
- margin: 0 auto;
- background: #2671E2;
- box-shadow: 0px 2rpx 20rpx 0rpx rgba(38, 113, 226, 0.5);
- border-radius: 49rpx;
- color: #FFFFFF;
- text-align: center;
- line-height: 86rpx;
- font-size: 32rpx;
- }
- }
- }
- </style>
|