#
whycq
2022-02-11 efbbbd78c979cf860dde6cc006991f3c4b93c443
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<template>
    <view class="content uni-column">
        <view class="uni-flex">
            <image class="logo" src="/static/logo.png"></image>
        </view>
        <view class="uni-flex uni-column">
            <view class="input-box">
                <text class="cuIcon-people lock"></text>
                <text style="line-height: 60rpx;">: </text>
                <input v-model="mobile" type="text" value="" placeholder="请输入账号" />
            </view>
            <view class="input-box">
                <text class="cuIcon-lock lock"></text>
                <text style="line-height: 60rpx;font-size: 35rpx;">: </text>
                <input v-model="password" type="text" value="" placeholder="请输入密码" password="true"/>
            </view>
        </view>
        <view>
            <button class="cu-btn bg-yellow login-button" @click="submit">登 录</button>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {
                mobile:'',
                password:'',
                type: 'center',
                msgType: 'success',
                messageText: '这是一条成功提示',
                value: ''    
            }
        },
        methods: {
            submit(){
                let mob = this.mobile
                let pas = this.password
                if(mob === ""){
                    
                    console.log(1)
                }else{
                    console.log(2)
                }
            }
        }
    }
</script>
 
<style>
    .content {
        display: flex;
        justify-content: center;
    }
    .uni-flex {
        display: flex;
        flex-direction: row;
    }
    .logo {
        height: 200rpx;
        width: 400rpx;
        margin-top: 200rpx;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 50rpx;
    }
    .uni-column {
        flex-direction: column;
    }
    .input-box {
        display: flex;
        height: 60rpx;
        width: 400rpx;
        background-color: #fff;
        border: 1rpx solid #c5c5c5;
        margin-top: 50rpx;
        margin-left: auto;
        margin-right: auto;
        position: relative;
    }
    .input-box::after {
        content: "";
        position: absolute;
        z-index: -1;
        background-color: #9c9c9c;
        width: 100%;
        height: 100%;
        left: 0;
        bottom: -12%;
        border-radius: 10upx;
        opacity: 1;
        transform: scale(0.95, 0.95);
    }
    
    input {
        text-indent: 10rpx;
        display: flex;
        font-size: 20rpx;
        margin-top: auto;
        margin-bottom: auto;
        
    }
    .lock {
 
        font-size: 35rpx;
        color: #a7a7a7;
        line-height: 60rpx;
        text-indent: 10rpx;
    }
    .login-button {
        font-size: 35rpx;
        display: flex;
        margin-left: auto;
        margin-right: auto;
        margin-top: 100rpx;
        width: 150rpx;
        height: 80rpx;
    }
</style>