#
whycq
2023-02-10 d612cb44b33a686d02defa8308f3b1ff45c67281
#
1个文件已修改
96 ■■■■ 已修改文件
pages/login/login.vue 96 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/login.vue
@@ -1,35 +1,50 @@
<template>
    <!-- 设置 -->
    <label class="settings">
        <uni-icons type="gear" size="30" color="#707070" @click="settings"></uni-icons>
    </label>
    <!-- logo -->
    <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>
            <view class="box-icon">
                <uni-icons type="person" size="20" color="#707070"></uni-icons>
            </view>
            <view class="box-text">账号:</view>
            <view class="box-input">
                <input type="text">
            </view>
            <view class="box-show"></view>
        </view>
        <!-- 密码 -->
        <view class="box shadow-warp">
            <view></view>
            <view>
            <view class="box-icon">
                <uni-icons type="locked" size="20" color="#707070"></uni-icons>
            </view>
            <view class="box-text">密码:</view>
            <view class="box-input">
                <input type="text">
            </view>
            <view class="box-show">
                <uni-icons type="eye-filled" size="20" color="#707070"></uni-icons>
            </view>
        </view>
        <!-- 记住密码 -->
        <view class="check">
            <view>
                <text>记住密码</text>
            <view class="check-left">
                <view>记住密码</view>
            </view>
            <view></view>
            <view class="check-right">
                <switch checked color="#FFCC33" style="zoom:.5"/>
            </view>
        </view>
    </view>
    <!-- 登录按钮 -->
    <view class="submit">
        <view class="" style="width: 400rpx;">
            <button type="primary" size="default">登录</button>
@@ -37,14 +52,12 @@
    </view>
    
    <!-- 弹窗区域 -->
    <!-- 设置弹窗区域 -->
    <view>
        <uni-popup ref="inputDialog" type="dialog">
            <view class="popup">
                <view class="title title-font">
                    配置
                </view>
                <!-- 标题 -->
                <view class="title title-font">配置</view>
                <view class="input">
                    <view class="input-left">ip:</view>
                    <view class="input-right"><input type="text"></view>
@@ -83,6 +96,7 @@
            }
        },
        onLoad() {
            // 手机端版本号
            // #ifdef APP-PLUS
            var that = this
            plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
@@ -91,12 +105,15 @@
            // #endif
        },
        methods: {
            // 设置窗口开启按钮
            settings() {
                this.$refs.inputDialog.open()
            },
            // 设置窗口确认修改按钮
            dialogInputConfirm() {
                this.$refs.inputDialog.close()
            },
            // 设置窗口关闭按钮
            close() {
                this.$refs.inputDialog.close()
            }
@@ -111,6 +128,7 @@
        letter-spacing: 3px;
        font-weight: 500;
    }
    // 设置区域
    .settings {
        width: 100rpx;
        height: 100rpx;
@@ -121,7 +139,7 @@
        right: 0;
        top: 70rpx;
    }
    // 设置区域 - 手机
    <!-- #ifdef APP-PLUS -->
    .settings {
        width: 100rpx;
@@ -148,31 +166,61 @@
            }
        }
    }
    // 输入框区域
    .content {
        min-height: 240rpx;
        min-height: 250rpx;
        width: 100%;
        // background-color: bisque;
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: flex-start;
        // 输入大区
        .box {
            width: 70%;
            width: 80%;
            height: 80rpx;
            background-color: #FFFFFF;
            padding: 1upx 30upx;
            display: flex;
            display: grid;
            grid-template-columns: 1fr 1fr 5fr 1fr;
            align-items: center;
            justify-content: space-between;
            font-size: 12px;
            // 图标
            &-icon {
                display: grid;
                justify-items: center;
            }
            // 输入框
            &-input {
                background-color: aquamarine;
            }
            // 隐藏显示密码
            &-show {
                display: grid;
                justify-items: center;
            }
        }
        // 记住密码
        .check {
            width: 78%;
            width: 80%;
            // background-color: blueviolet;
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            text-align: left;
            &-left {
                display: grid;
                align-items: center;
                font-size: 12px;
                text-indent: 10rpx;
            }
            &-right {
                display: grid;
                align-items: center;
                justify-items: flex-end;
            }
        }
    }
    // 登录按钮
    .submit {
        position: fixed;
        width: 100%;