whycq
2023-10-08 1895f15c4b179f6153ac0ef0faadf5d6c851aea9
# 动态项目
4个文件已修改
5个文件已添加
160 ■■■■■ 已修改文件
.hbuilderx/launch.json 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/LoginDemo/LoginDemo.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/common/data-list/dataDetail.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/project/bf/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/project/jf/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/project/jk/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/project/tzsk/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.hbuilderx/launch.json
New file
@@ -0,0 +1,16 @@
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
    "version": "0.0",
    "configurations": [{
         "app-plus" :
         {
             "launchtype" : "local"
         },
         "default" :
         {
             "launchtype" : "local"
         },
         "type" : "uniCloud"
     }
    ]
}
pages.json
@@ -24,6 +24,32 @@
            "style": {
                "navigationBarTitleText": "明细"
            }
        },
        {
            "path": "pages/project/bf/home/home",
            "style": {
                "navigationBarTitleText": "主页"
            }
        },
        {
            "path": "pages/project/jf/home/home",
            "style": {
                "navigationBarTitleText": "主页"
            }
        },
        {
            "path": "pages/project/jk/home/home",
            "style": {
                "navigationBarTitleText": "主页"
            }
        },
        {
            "path": "pages/project/tzsk/home/home",
            "style": {
                "navigationBarTitleText": "主页"
            }
        }
    ],
    "globalStyle": {
pages/LoginDemo/LoginDemo.vue
@@ -17,7 +17,7 @@
                    <switch :checked='remberPassword' color="#FFCC33" style="zoom:.5" @change="remberChange"/>
                </view>
            </view>
            <view class="button">
            <view class="button" @click="login">
                登录
            </view>
        </view>
@@ -85,6 +85,16 @@
            },
            settings() {
                this.$refs.settings.open()
            },
            login() {
                let path = 'js'
                uni.navigateTo({
                    url: `/pages/project/${path}/home/home`,
                    fail(res) {
                        console.log(`没有${path}项目,请联系管理元`);
                    }
                })
            }
        }
    }
pages/common/data-list/dataDetail.vue
@@ -25,6 +25,7 @@
                />
            </view>
            
            <!-- todo: 日期选择 -->
        </view>
        
        <view class="footer">
pages/home/home.vue
@@ -15,7 +15,19 @@
                Top 2. 冻猪排
            </view>
        </view>
        <view v-for="(item,i) in dataList" :key="i">{{i}}</view>
        <view class="home-list" v-for="(item,i) in homeList" :key="i">
            <view class="list-title flex-align-center">
                <view class="list-title-tag "></view>
                <view>{{item.name}}</view>
            </view>
            <view class="list-detl">
                <view v-for="nav in item.nav">
                    <view style="margin: 10px;">
                        {{nav.name}}
                    </view>
                </view>
            </view>
        </view>
    </view>
</template>
@@ -23,18 +35,59 @@
    export default {
        data() {
            return {
                dataList: [{},{},{}]
                homeList: [
                    {name: '入库',nav:[
                        {name: '组托入库'},
                        {name: '上架'}
                    ]},
                    {name: '出库'},
                    {name: '其他'}]
            }
        }
    }
</script>
<style>
    .flex-justify-center {
        display: flex;
        justify-content: center;
    }
    .flex-align-center {
        display: flex;
        align-items: center;
    }
    .z-swiper {
        height: 200px;
        height: 90px;
        margin: 8px;
        background-image: linear-gradient(110.6deg, rgb(179, 157, 219) 7%, rgb(150, 159, 222) 47.7%, rgb(24, 255, 255) 100.6%);
        border-radius: 8px;
        background-image: linear-gradient(110.6deg, rgb(179, 157, 219) 7%, rgb(150, 159, 222) 47.7%, rgb(24, 255, 255) 100.6%);
        color: #fff;
    }
    .home-list {
        display: flex;
        flex-direction: column;
        height: 90px;
        margin: 8px;
        border-radius: 8px;
        background-color: #f5f5f5;
    }
    .list-title {
        display: flex;
        height: 20px;
        margin: 10px 10px;
        /* background-color: #fff; */
    }
    .list-title-tag {
        width: 6px;
        height: 20px;
        margin: 5px 5px;
        border-radius: 8px;
        background-color: #00aeec;
    }
    .list-detl {
        display: flex;
        flex-direction: row;
    }
</style>
pages/project/bf/home/home.vue
New file
@@ -0,0 +1,11 @@
<template>
    <view>
        bf
    </view>
</template>
<script>
</script>
<style>
</style>
pages/project/jf/home/home.vue
New file
@@ -0,0 +1,11 @@
<template>
    <view>
        jf
    </view>
</template>
<script>
</script>
<style>
</style>
pages/project/jk/home/home.vue
New file
@@ -0,0 +1,11 @@
<template>
    <view>
        jk
    </view>
</template>
<script>
</script>
<style>
</style>
pages/project/tzsk/home/home.vue
New file
@@ -0,0 +1,11 @@
<template>
    <view>
        tzsk
    </view>
</template>
<script>
</script>
<style>
</style>