whycq
2023-10-08 e60e5c67969ded98bc88129ab2a8a3faad436eb7
# home
2个文件已修改
1个文件已添加
63 ■■■■■ 已修改文件
pages.json 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/LoginDemo/LoginDemo.vue 39 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -1,5 +1,12 @@
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/component/demo",
            "style": {
                "navigationBarTitleText": "测试"
            }
        },
        {
            "path": "pages/LoginDemo/LoginDemo",
            "style": {
@@ -7,11 +14,13 @@
            }
        },
        {
            "path": "pages/component/demo",
            "path": "pages/home/home",
            "style": {
                "navigationBarTitleText": "测试"
                "navigationBarTitleText": "Home"
            }
        },
        {
            "path": "pages/common/data-list/dataDetail",
            "style": {
pages/LoginDemo/LoginDemo.vue
@@ -1,7 +1,7 @@
<template>
    <view class="main">
        <!-- 设置按钮 -->
        <uni-icons type="gear" size="30" color="#b1b3b8" class="setting"></uni-icons>
        <uni-icons type="gear" size="30" color="#b1b3b8" class="setting" @click="settings"></uni-icons>
        <view class="left">
            <!-- logo -->
            <view class="logo-box">
@@ -21,6 +21,28 @@
                登录
            </view>
        </view>
        <!-- 设置弹窗区域 -->
        <uni-popup ref="settings" type="dialog" style="height: 100%;width: 100%;background-color: aqua;">
            <view class="popup">
                <!-- 标题 -->
                <view class="title">配置</view>
                <view class="popup-item">
                    <view class="popup-item-left">IP:</view>
                    <view class="popup-item-right"><input type="text" v-model="url.ip"></view>
                </view>
                <view class="popup-item">
                    <view class="popup-item-left">端口:</view>
                    <view class="popup-item-right"><input type="text" v-model="url.port"></view>
                </view>
                <view class="popup-item">
                    <view class="popup-item-left">项目:</view>
                    <view class="popup-item-right"><input type="text" v-model="url.project"></view>
                </view>
            </view>
        </uni-popup>
        <!-- 版本号 -->
        <!-- #ifdef APP-PLUS -->
        <view class="version">
@@ -35,7 +57,12 @@
        data() {
            return {
                version: '',
                remberPassword: true
                remberPassword: true,
                url: {
                    ip: '',
                    port: '',
                    project: ''
                },
            }
        },
        mounted() {
@@ -55,6 +82,9 @@
        methods: {
            remberChange() {
                
            },
            settings() {
                this.$refs.settings.open()
            }
        }
    }
@@ -174,4 +204,9 @@
        font-size: 10px;
        color: #909399;
    }
    .popup {
        background-color: #fff;
        width: 100%;
    }
</style>
pages/home/home.vue
New file
@@ -0,0 +1,11 @@
<template>
    <view class="">
        Home
    </view>
</template>
<script>
</script>
<style>
</style>