Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
basic-uniapp-v3
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-uniapp-v3
Commits
12ccff23
提交
12ccff23
authored
11月 10, 2025
作者:
吴佳伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 农场页面-常用工具增加点击跳转
上级
33f534ec
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
40 行增加
和
0 行删除
+40
-0
pages.json
src/pages.json
+10
-0
nongchang.vue
src/pages/nongchang/nongchang.vue
+3
-0
webview.vue
src/pages/webview/webview.vue
+27
-0
没有找到文件。
src/pages.json
浏览文件 @
12ccff23
...
...
@@ -296,6 +296,16 @@
}
},
{
"path"
:
"pages/webview/webview"
,
"style"
:
{
"navigationBarTitleText"
:
"常用工具"
,
"enablePullDownRefresh"
:
false
,
"navigationBarBackgroundColor"
:
"#5DB66F"
,
"navigationBarTextStyle"
:
"white"
,
"backgroundColorBottom"
:
"#F2F2F2"
}
},
{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"Basic APP"
...
...
src/pages/nongchang/nongchang.vue
浏览文件 @
12ccff23
...
...
@@ -347,6 +347,9 @@
function
onClickTool
(
tool
:
any
)
{
console
.
log
(
'点击常用工具:'
,
tool
)
// 在这里添加具体的常用工具点击逻辑
uni
.
navigateTo
({
url
:
`/pages/webview/webview?url=
${
encodeURIComponent
(
tool
.
addr
)}
`
,
})
}
// 轮播视频切换的时候触发
...
...
src/pages/webview/webview.vue
0 → 100644
浏览文件 @
12ccff23
<
template
>
<view
class=
"webview-container"
>
<web-view
:src=
"url"
></web-view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
url
:
''
}
},
onLoad
(
options
)
{
if
(
options
.
url
)
{
this
.
url
=
decodeURIComponent
(
options
.
url
)
}
else
{
uni
.
showToast
({
title
:
'网址不存在'
,
icon
:
'none'
})
uni
.
navigateBack
()
}
}
}
</
script
>
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论