From 7e6793fdf39b9a6bdbb08533b562f77686fe53ef Mon Sep 17 00:00:00 2001 From: 17792275749 <812100002@qq.com> Date: Tue, 10 Mar 2026 17:23:02 +0800 Subject: [PATCH] =?UTF-8?q?2026=E5=B9=B43=E6=9C=889=E6=97=A521:28:15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/led/components/info.vue | 23 +++-- src/views/led/components/rowDom.vue | 2 +- src/views/led/led.vue | 151 +++++++++++++++++++--------- 3 files changed, 119 insertions(+), 57 deletions(-) diff --git a/src/views/led/components/info.vue b/src/views/led/components/info.vue index 674098e..bfeaca0 100644 --- a/src/views/led/components/info.vue +++ b/src/views/led/components/info.vue @@ -4,36 +4,37 @@
餐品热量
-
268千卡/100克
+
{{ deviceData.calorie }}千卡/100克
- +
-
红烧带鱼
-
(0.24)
+
{{ deviceData.foodName }}
+
-
美容养颜
-
增强免疫力
+
-
12.5
+
{{ deviceData.realNameWeight }}
实名取用
-
13.8
+
{{ deviceData.marginWeight }}
余量
-
6.6
+
{{ deviceData.anonymityWeight }}
匿名取用
diff --git a/src/views/led/components/rowDom.vue b/src/views/led/components/rowDom.vue index a7faf10..f3f9b2d 100644 --- a/src/views/led/components/rowDom.vue +++ b/src/views/led/components/rowDom.vue @@ -6,7 +6,7 @@
diff --git a/src/views/led/led.vue b/src/views/led/led.vue index 83cad0a..04dd353 100644 --- a/src/views/led/led.vue +++ b/src/views/led/led.vue @@ -29,71 +29,139 @@ export default { }, data() { return { + // url: "http://192.168.1.201:14801", + screenWidth: 1920, deviceDataList: [{ - id: '1', - data: 1 - }, { - id: '2', + deviceId: '1', data: null }, { - id: '3', - data: 2 + deviceId: '2', + data: { + foodId: "2028767531816284161", + foodName: "蒜香鸡翅根", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260303/ad0b893a-1fa6-4905-b969-016c44cd29b4.png", + calorie: "116", + labelList: ['补充蛋白质', '增强免疫力'], + differenceWeight: "0.12", // 偷菜 + marginWeight: "5.32", // 余量(kg) + realNameWeight: "7.86", // 实名取餐重量(kg) + anonymityWeight: "1.70", // 匿名取餐重量(kg) + } }, { - id: '4', + deviceId: '3', data: null }, { - id: '5', - data: 3 + deviceId: '4', + data: { + foodId: "2028273122528030722", + foodName: "杏鲍菇炒肉", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260302/a0c9541a-47bb-43db-bff5-053fe3d88111.png", + calorie: "59", + labelList: ['润肠通便', '提高免疫'], + differenceWeight: "", // 偷菜 + marginWeight: "6.18", // 余量(kg) + realNameWeight: "5.42", // 实名取餐重量(kg) + anonymityWeight: "0.90", // 匿名取餐重量(kg) + } }, { - id: '6', + deviceId: '5', data: null }, { - id: '7', + deviceId: '6', + data: { + foodId: "2029388232071933954", + foodName: "青椒鸡肉丝", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260305/8e833968-f88b-4918-84d0-99dcc5118b4b.png", + calorie: "43", + labelList: ['促进消化', '补充维C'], + differenceWeight: "0.08", // 偷菜 + marginWeight: "4.56", // 余量(kg) + realNameWeight: "6.24", // 实名取餐重量(kg) + anonymityWeight: "1.12", // 匿名取餐重量(kg) + } + }, { + deviceId: '7', data: null }, { - id: '8', + deviceId: '8', + data: { + foodId: "2028277177375617026", + foodName: "西红柿炒鸡蛋", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260302/660cc729-09cc-4b77-bfe9-9d2918714a3c.png", + calorie: "44", + labelList: ['美容养颜', '健脑益智'], + differenceWeight: "", // 偷菜 + marginWeight: "3.74", // 余量(kg) + realNameWeight: "8.96", // 实名取餐重量(kg) + anonymityWeight: "2.30", // 匿名取餐重量(kg) + } + }, { + deviceId: '9', data: null }, { - id: '9', + deviceId: '10', + data: { + foodId: "2028768323575050242", + foodName: "凉拌菠菜", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260303/af27cd5a-325f-4d9c-bedf-4b32870f293c.png", + calorie: "30", + labelList: ['补铁补血', '明目护眼'], + differenceWeight: "0.06", // 偷菜 + marginWeight: "7.20", // 余量(kg) + realNameWeight: "4.38", // 实名取餐重量(kg) + anonymityWeight: "0.56", // 匿名取餐重量(kg) + } + }, { + deviceId: '11', data: null }, { - id: '10', + deviceId: '12', + data: { + foodId: "2031257721365442561", + foodName: "青笋炒木耳?", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260310/45e6f7fc-f58a-4828-b5ff-72c5a5f561da.png", + calorie: "28", + labelList: ['清热解毒', '活血化瘀'], + differenceWeight: "0.04", // 偷菜 + realNameWeight: "3.82", // 实名取餐重量(kg) + marginWeight: "5.94", // 余量(kg) + anonymityWeight: "0.74", // 匿名取餐重量(kg) + } + }, { + deviceId: '13', data: null }, { - id: '11', - data: null + deviceId: '14', + data: { + foodId: "2031248239226892289", + foodName: "玉米粒大米饭", + foodImg: "https://dev.yixiong-tech.com:8081/common/files/20260306/db3b1d29-8a8d-4e26-a93f-fdc066959f30.png", + calorie: "137", + labelList: ['补充能量', '促进消化'], + differenceWeight: "", // 偷菜 + marginWeight: "8.64", // 余量(kg) + realNameWeight: "10.26", // 实名取餐重量(kg) + anonymityWeight: "1.10", // 匿名取餐重量(kg) + } }, { - id: '12', - data: null - }, { - id: '13', - data: null - }, { - id: '14', - data: null - }, { - id: '15', + deviceId: '15', data: null }], } }, created() { - this.getDeviceId(); + // this.getDeviceId(); }, methods: { - getDeviceId() { - // httpRequest().then(function (res) { - // - // }).catch(function(err) { - // - // }) - }, - - getDeviceData() { - - } + // getDeviceId() { + // httpRequest("GET", this.url + "/terminal/neglect/large-screen/longScreen", {}).then(function (res) { + // console.log(res); + // }).catch(function(err) { + // + // }) + // }, } } @@ -104,13 +172,6 @@ export default { height: 100%; background-color: #000000; - //.row_1, - //.row_2, - //.row_3 { - // width: 100%; - // height: 312px; - //} - .ledDom { width: 100%; height: 312px;