From ea03a625a5307204799cd8d0bebccc0780cca4b9 Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期三, 03 一月 2024 11:06:29 +0800
Subject: [PATCH] #
---
pages/home/home.vue | 10 +++++++++-
pages.json | 8 ++++++++
pages/mat/moduleMat.vue | 35 +++++++++++++++++++++++++++++++++++
3 files changed, 52 insertions(+), 1 deletions(-)
diff --git a/pages.json b/pages.json
index be5a1d9..9afeedb 100644
--- a/pages.json
+++ b/pages.json
@@ -183,6 +183,14 @@
"navigationBarTitleText" : "璁㈠崟缁勬墭",
"enablePullDownRefresh" : false
}
+ },
+ {
+ "path" : "pages/mat/moduleMat",
+ "style" :
+ {
+ "navigationBarTitleText" : "缁勪欢鐗╂枡",
+ "enablePullDownRefresh" : false
+ }
}
],
"globalStyle": {
diff --git a/pages/home/home.vue b/pages/home/home.vue
index e502616..9042145 100644
--- a/pages/home/home.vue
+++ b/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
diff --git a/pages/mat/moduleMat.vue b/pages/mat/moduleMat.vue
new file mode 100644
index 0000000..2810749
--- /dev/null
+++ b/pages/mat/moduleMat.vue
@@ -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>
--
Gitblit v1.9.1