chenxiong преди 3 години
родител
ревизия
a9f7bd002e
променени са 2 файла, в които са добавени 31 реда и са изтрити 1 реда
  1. 0 1
      pages.json
  2. 31 0
      pages/webview/index.vue

+ 0 - 1
pages.json

@@ -73,7 +73,6 @@
 			"path": "pages/webview/index",
 			"style": {
 				"navigationBarTitleText": "网页",
-				"navigationBarTextStyle": "white",
 				"navigationStyle": "custom", // 隐藏系统导航栏
 				"app-plus": {
 					"titleNView": false, //禁用原生导航栏 

+ 31 - 0
pages/webview/index.vue

@@ -0,0 +1,31 @@
+<template>
+	<view class="webview">
+		<web-view :webview-styles="webviewStyles" :src="url"></web-view>
+	</view>
+</template>
+
+<script>
+export default {
+	components: {},
+	data() {
+		return {
+			url:'',
+			webviewStyles: {
+				progress: {
+					color: '#007AFF'
+				}
+			}
+		};
+	},
+	onLoad(option) {
+		this.url = decodeURIComponent(option.url);
+	},
+	methods: {
+		
+	},
+};
+</script>
+
+<style lang="scss" scoped>
+
+</style>