#
whycq
2023-02-10 c650073f71d4430bea7a9aedc559a45f096e2c11
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
<template>
    <label class="settings">
        <uni-icons type="gear" size="30" color="#707070" @click="settings"></uni-icons>
    </label>
    <view class="head">
        <view class="logo">
            <image src="../../static/img/logo.png" mode="aspectFit"></image>
        </view>
    </view>
    <view class="content">
        <view class="box shadow-warp">
            <view></view>
            <view>
                <input type="text">
            </view>
 
        </view>
        <view class="box shadow-warp">
            <view></view>
            <view>
                <input type="text">
            </view>
 
        </view>
        <view class="check">
            <view>
                <text>记住密码</text>
            </view>
            
            <view></view>
        </view>
    </view>
    <view class="submit">
        <view class="" style="width: 400rpx;">
            <button type="primary" size="default">登录</button>
        </view>
 
    </view>
    
    <!-- 弹窗区域 -->
    
    <view>
        <uni-popup ref="inputDialog" type="dialog">
            <view class="popup">
                <view class="title title-font">
                    配置
                </view>
                <view class="input">
                    <view class="input-left">ip:</view>
                    <view class="input-right"><input type="text"></view>
                </view>
                <view class="input">
                    <view class="input-left">端口:</view>
                    <view class="input-right"><input type="text"></view>
                </view>
                <view class="input">
                    <view class="input-left">项目:</view>
                    <view class="input-right"><input type="text"></view>
                </view>
                <view class="btn">
                    <view class="btn-left" @click="close">取消</view>
                    <view class="btn-right">确认</view>
                </view>
            </view>
        </uni-popup>
    </view>
 
 
    <!-- 版本号 -->
    <!-- #ifdef APP-PLUS -->
    <view class="version">
        当前版本:{{version}}
    </view>
    <!-- #endif -->
</template>
 
<script>
    export default {
        data() {
            return {
                version: '',
                value: ''
            }
        },
        onLoad() {
            // #ifdef APP-PLUS
            var that = this
            plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
                that.version = wgtinfo.version
            });
            // #endif
        },
        methods: {
            settings() {
                this.$refs.inputDialog.open()
            },
            dialogInputConfirm() {
                this.$refs.inputDialog.close()
            },
            close() {
                this.$refs.inputDialog.close()
            }
        }
    }
</script>
 
<style lang="less">
    .title-font {
        color: #606266;
        font-size: 18px;
        letter-spacing: 3px;
        font-weight: 500;
    }
    .settings {
        width: 100rpx;
        height: 100rpx;
        line-height: 100rpx;
        text-align: center;
        position: fixed;
        // background-color: #007aff;
        right: 0;
        top: 70rpx;
    }
    
    <!-- #ifdef APP-PLUS -->
    .settings {
        width: 100rpx;
        height: 100rpx;
        line-height: 100rpx;
        text-align: center;
        position: fixed;
        right: 0rpx;
        top: 0rpx;
    }
    <!-- #endif -->
    .head {
        height: 400rpx;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        // background-color: aqua;
        justify-items: center;
        align-items: center;
 
        .logo {
            image {
                height: 300rpx;
            }
        }
    }
 
    .content {
        min-height: 240rpx;
        width: 100%;
        // background-color: bisque;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        .box {
            width: 70%;
            height: 80rpx;
            background-color: #FFFFFF;
            padding: 1upx 30upx;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .check {
            width: 78%;
            display: grid;
            grid-template-columns: 1fr 1fr;
            text-align: left;
        }
    }
 
    .submit {
        position: fixed;
        width: 100%;
        bottom: 200rpx;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }
    // 弹出层
    .popup {
        width: 650rpx;
        min-height: 400rpx;
        background-color: #FFF;
        border-radius: 25rpx;
        .title {
            width: 100%;
            height: 80rpx;
            line-height: 80rpx;
            text-align: center;
        }
        .input {
            width: 100%;
            height: 80rpx;
            line-height: 80rpx;
            display: grid;
            grid-template-columns: 1fr 3fr;
            align-items: center;
            &-left {
                text-align: right;
            }
            &-right {
                display: grid;
                align-items: center;
                height: 50rpx;
                padding: 5rpx;
                margin-left: 20rpx;
                width: 400rpx;
                border-bottom: 1px solid #e7e6e4;
                
            }
        }
        .btn {
            margin-top: 20rpx;
            width: 100%;
            height: 80rpx;
            line-height: 80rpx;
            text-align: center;
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-top: 1px solid #e7e6e4;
            &-left {
                border-right: 1px solid #e7e6e4;
            }
            &-right {
                color: #007aff;
            }
        }
    }
    .version {
        position: fixed;
        width: 100%;
        bottom: 0;
        text-align: center;
    }
</style>