#
whycq
2024-01-03 ea03a625a5307204799cd8d0bebccc0780cca4b9
#
2个文件已修改
1个文件已添加
53 ■■■■■ 已修改文件
pages.json 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/home/home.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mat/moduleMat.vue 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json
@@ -183,6 +183,14 @@
                "navigationBarTitleText" : "订单组托",
                "enablePullDownRefresh" : false
            }
        },
        {
            "path" : "pages/mat/moduleMat",
            "style" :
            {
                "navigationBarTitleText" : "组件物料",
                "enablePullDownRefresh" : false
            }
        }
    ],
    "globalStyle": {
pages/home/home.vue
@@ -142,7 +142,15 @@
                    method: 'POST',
                    success(res) {
                        res = res.data
                        that.elements = []
                        that.elements = [
                            {
                                title: '组件物料',
                                name: 'moduleMat',
                                color: 'green',
                                cuIcon: 'order',
                                url: '/mat/moduleMat'
                            },
                        ]
                        if (res.code === 200) {
                            if (res.data == undefined || res.data == null || res.data == "") {
                                that.elements = that.elements2
pages/mat/moduleMat.vue
New file
@@ -0,0 +1,35 @@
<template>
    <view>
        <view class="card" v-for="item in data">
            <view class="card-title">
            </view>
        </view>
    </view>
</template>
<script>
    export default {
        data() {
            return {
                data: [
                    {id:1,uuid:3},
                    {id:2,uuid:4}
                ]
            }
        },
        methods: {
        }
    }
</script>
<style>
    .card {
        background-color: antiquewhite;
        margin: 16rpx;
        min-height: 50rpx;
        border-radius: 16rpx;
    }
</style>