Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
b30bf170
提交
b30bf170
authored
11月 11, 2025
作者:
廖在望
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://gitlab.yiring.com/digital-agri/agri-app
into dev
上级
1fb33a2e
3600aab8
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
28 行删除
+16
-28
nongchang.vue
src/pages/nongchang/nongchang.vue
+16
-28
没有找到文件。
src/pages/nongchang/nongchang.vue
浏览文件 @
b30bf170
...
...
@@ -19,6 +19,8 @@
getCommonToolsList
()
// 农技课堂
getAgricultureClassList
()
// 智能设备
getDeviceList
()
pageData
.
userInfo
=
userStore
.
getUserInfo
})
...
...
@@ -177,29 +179,9 @@
],
// 智能设备
smartDevices
:
[
{
id
:
1
,
name
:
'土壤监测仪'
,
image
:
'/static/images/codefun/8bd62352939b47e71f09a93a6ab344b2.png'
,
status
:
'在线'
,
statusColor
:
'#13e000'
,
},
{
id
:
2
,
name
:
'监测仪A'
,
image
:
'/static/images/codefun/81937c2666c800cf5966c29c2891b7c4.png'
,
status
:
'掉线'
,
statusColor
:
'#75777c'
,
},
{
id
:
3
,
name
:
'监测仪B'
,
image
:
'/static/images/codefun/8bd62352939b47e71f09a93a6ab344b2.png'
,
status
:
'在线'
,
statusColor
:
'#13e000'
,
},
],
smartDevices
:
[],
smartDeviceIcon
:
[
'/static/images/codefun/8bd62352939b47e71f09a93a6ab344b2.png'
,
'/static/images/codefun/81937c2666c800cf5966c29c2891b7c4.png'
],
// 信用中心
creditCenter
:
{
...
...
@@ -274,6 +256,12 @@
})
}
function
getDeviceList
()
{
NongChangAPI
.
getDeviceList
({}).
then
((
res
)
=>
{
pageData
.
smartDevices
=
res
.
records
})
}
// 菜单点击事件
function
onMenuItemClick
(
item
:
any
)
{
console
.
log
(
'点击菜单项:'
,
item
)
...
...
@@ -705,9 +693,9 @@
:key=
"device.id"
class=
"section_16 codefun-flex-row codefun-justify-center codefun-items-center codefun-shrink-0 codefun-relative"
>
<image
class=
"image_13"
:src=
"device.i
mage
"
/>
<image
class=
"image_13"
:src=
"device.i
sOnline === 1 ? pageData.smartDeviceIcon[0] : pageData.smartDeviceIcon[1]
"
/>
<view
class=
"codefun-ml-8 codefun-flex-col"
>
<text
class=
"font_1
4"
:class=
"`text_${58 + index}`"
>
{{ device.n
ame }}
</text>
<text
class=
"font_1
0"
>
{{ device.deviceN
ame }}
</text>
<view
class=
"codefun-mt-10 codefun-flex-row codefun-items-center"
>
<view
class=
"section_17"
v-if=
"index !== 1"
/>
<view
class=
"section_18"
v-if=
"index === 1"
/>
...
...
@@ -716,7 +704,7 @@
:class=
"index !== 1 ? 'text_59' : 'text_60'"
:style=
"{ color: device.statusColor }"
>
{{ device.
status
}}
{{ device.
isOnline_dictText
}}
</text>
</view>
</view>
...
...
@@ -1740,8 +1728,8 @@
.image_13
{
border-radius
:
24
rpx
;
width
:
92
rpx
;
height
:
92
rpx
;
width
:
75
rpx
;
height
:
75
rpx
;
}
.font_14
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论