提交 82d179b9 编写于 作者: DCloud_iOS_WZT's avatar DCloud_iOS_WZT

update: univerify-custom-page

add: full-webview-page
上级 5bb68cae
......@@ -1233,9 +1233,9 @@
// #endif
// #ifdef APP-ANDROID || APP-IOS
{
"path": "pages/API/get-univerify-manager/univerify-privacy-page",
"path": "pages/API/get-univerify-manager/full-webview-page",
"style": {
"navigationBarTextStyle": "black",
"navigationBarTextStyle": "white",
"navigationStyle": "custom"
}
},
......
<template>
<view class="background">
<view class="container">
<view class="close_container">
<text class="close_icon" @click="onBack()">{{closeIcon}}</text>
<view class="nav">
<text class="left_icon" @click="onBack()">{{backIcon}}</text>
</view>
<web-view class="web_container" :src="url"></web-view>
</view>
......@@ -15,7 +14,7 @@
data() {
return {
url: '',
closeIcon: '\uE650'
backIcon:'\ue601'
}
},
onLoad(options : OnLoadOptions) {
......@@ -23,9 +22,10 @@
},
methods: {
onBack(){
console.log('click onback');
uni.closeDialogPage({
dialogPage: this.$page,
animationType:'slide-out-bottom',
animationType:'slide-out-right',
success(res) {
console.log('closeThisDialog success', res)
},
......@@ -40,28 +40,37 @@
<style>
.background {
background-color: #f1f1f1;
background-color: #007aff;
width: 100%;
height: 100%;
}
.nav{
height: 45px;
width: 100%;
position: relative;
flex-direction: row;
justify-content: space-between;
height: 45px;
}
.left_icon{
color: white;
top: 5px;
left: 15px;
justify-content: center;
align-items: center;
width: 40px;
height: 100%;
font-family: uni-icon;
font-size: 26px;
}
.container{
padding-top: var(--status-bar-height);
color: white;
width: 100%;
position: absolute;
height: 100%;
}
.close_container{
height: 45px;
width: 100%;
}
.close_icon {
left: 90%;
top: 15px;
font-family: uni-icon;
font-size: 24px;
}
.web_container{
background-color: #f1f1f1;
padding-top: 10px;
flex: 1;
width: 100%;
......
......@@ -51,10 +51,10 @@
})
},
openLink() {
let url = '/pages/API/get-univerify-manager/univerify-privacy-page?url=' + this.privacyUrl;
let url = '/pages/API/get-univerify-manager/full-webview-page?url=' + this.privacyUrl;
uni.openDialogPage({
url: url,
animationType: 'slide-in-bottom',
animationType: 'slide-in-right',
success(res) {
console.log("打开隐私协议");
},
......@@ -212,7 +212,7 @@
.privacy-text {
margin-top: 4px;
color: #2785ff;
color: #007aff;
font-size: 14px;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册