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

update: univerify-custom-page

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