提交 f7cd948f 编写于 作者: 小刘28's avatar 小刘28 💬

feat:完成加载网页内容的模板;

上级 a6fd4db2
......@@ -14,4 +14,5 @@
<style>
/*每个页面公共css */
</style>
......@@ -6,6 +6,12 @@
"style": {
"navigationBarTitleText": "uni-app"
}
},
{
"path": "pages/template/template-2-web",
"style": {
"navigationBarTitleText": "uni-app"
}
}
],
"globalStyle": {
......
<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>
......@@ -93,6 +93,6 @@
}
</script>
<style scoped>
<style lang="scss" scoped>
</style>
......@@ -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.
先完成此消息的编辑!
想要评论请 注册