#
whycq
2023-02-09 b0b1d97f04f70a2b5edc731e68803c31835842ee
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
<template>
    <view class="settings">
        <uni-icons type="gear" size="30" color="#c5c5c5" @click="settings"></uni-icons>
    </view>
    <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>
    <view class="submit">
        <view class="" style="width: 400rpx;">
            <button type="primary" size="default">登录</button>
        </view>
 
    </view>
    
    <!-- 弹窗区域 -->
    
    <view>
        <!-- 输入框示例 -->
        <uni-popup ref="inputDialog" type="dialog">
            <uni-popup-dialog ref="inputClose" mode="input" title="输入内容" value="对话框预置提示内容!"
                placeholder="请输入内容" @confirm="dialogInputConfirm"></uni-popup-dialog>
                <uni-popup-dialog ref="inputClose" mode="input" title="输入内容" value="对话框预置提示内容!"
                    placeholder="请输入内容" @confirm="dialogInputConfirm"></uni-popup-dialog>
        </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()
            }
        }
    }
</script>
 
<style lang="less">
    .settings {
        width: 60rpx;
        height: 60rpx;
        position: fixed;
        right: 20rpx;
        top: 10rpx;
    }
    .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 {
        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;
        }
    }
 
    .submit {
        position: fixed;
        width: 100%;
        bottom: 200rpx;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .version {
        position: fixed;
        width: 100%;
        bottom: 0;
        text-align: center;
    }
</style>