Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小刘28
xz-uniapp
提交
f7cd948f
xz-uniapp
项目概览
小刘28
/
xz-uniapp
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
xz-uniapp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
f7cd948f
编写于
7月 20, 2022
作者:
小刘28
💬
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:完成加载网页内容的模板;
上级
a6fd4db2
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
7 deletion
+24
-7
App.vue
App.vue
+1
-0
pages.json
pages.json
+6
-0
pages/index/index.vue
pages/index/index.vue
+12
-3
pages/template/template-1.vue
pages/template/template-1.vue
+1
-1
pages/template/template-2-web.vue
pages/template/template-2-web.vue
+4
-3
未找到文件。
App.vue
浏览文件 @
f7cd948f
...
...
@@ -14,4 +14,5 @@
<
style
>
/*每个页面公共css */
</
style
>
pages.json
浏览文件 @
f7cd948f
...
...
@@ -6,6 +6,12 @@
"style"
:
{
"navigationBarTitleText"
:
"uni-app"
}
},
{
"path"
:
"pages/template/template-2-web"
,
"style"
:
{
"navigationBarTitleText"
:
"uni-app"
}
}
],
"globalStyle"
:
{
...
...
pages/index/index.vue
浏览文件 @
f7cd948f
<
template
>
<view
class=
""
>
<view
class=
"
current-page
"
>
<button
type=
"default"
@
click=
"clickGetUser()"
...
...
@@ -12,12 +12,16 @@
type=
"default"
@
click=
"clickUserLogin()"
>
用户登录
</button>
<button
type=
"default"
@
click=
"clickGoWeb()"
>
跳转web页面
</button>
</view>
</
template
>
<
script
>
import
xzImage
from
'
@/utils/
validate
/xzImage.js
'
;
import
xzImage
from
'
@/utils/
help
/xzImage.js
'
;
import
xzRequest
from
'
@/utils/network/xzRequest.js
'
;
export
default
{
...
...
@@ -50,11 +54,16 @@
});
console
.
log
(
res
);
// console.log(err);
},
clickGoWeb
(){
uni
.
navigateTo
({
url
:
'
../template/template-2-web
'
});
}
}
}
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
</
style
>
pages/template/template-1.vue
浏览文件 @
f7cd948f
...
...
@@ -93,6 +93,6 @@
}
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
</
style
>
pages/template/template-2-web.vue
浏览文件 @
f7cd948f
...
...
@@ -8,13 +8,14 @@
-->
<
template
>
<div
class=
"current-page"
>
<div>
<web-view
src=
"https://www.baidu.com"
></web-view>
</div>
</
template
>
<
script
>
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录