dever 5 years ago
parent
commit
1299958313
4 changed files with 16 additions and 93 deletions
  1. 0 90
      App.vue
  2. 1 0
      lib/dever/dever.css
  3. 5 3
      lib/dever/index.js
  4. 10 0
      pages.json

File diff suppressed because it is too large
+ 0 - 90
App.vue


File diff suppressed because it is too large
+ 1 - 0
lib/dever/dever.css


+ 5 - 3
lib/dever/index.js

@@ -82,7 +82,9 @@ var http = {
 		if (options && options.page && options.page > 0) {
 			loading_method = 'page';
 		}
-		config.request.url = config.request.host + config.request.url;
+		if (config.request.url.indexOf('http') == -1) {
+			config.request.url = config.request.host + config.request.url;
+		}
 		config.request.data = options;
 		return new Promise((resolve, reject) => {
 			config.request.complete = (response) => {
@@ -490,7 +492,7 @@ var upload = {
 
 var dever = {
 	login : 'login/login?refer=-1',
-	web_view : '/dever/pages/web_view',
+	web_view : '/lib/dever/pages/web_view',
 	source : 'h5',
 	host : '',
 	doc : false,
@@ -787,7 +789,7 @@ var dever = {
 		if (path.indexOf('http') > -1) {
 			this.debug('http:' + path);
 			this.data('web_view', path);
-			if (this.source == 'app' || this.source == 'applet') {
+			if (this.source == 'app' || this.source == 'applet' || go == 'webview') {
 				uni.navigateTo({
 					url: this.web_view
 				})

+ 10 - 0
pages.json

@@ -39,6 +39,16 @@
 		    		"navigationStyle": "custom"
 		    	}
 		    }
+		},
+		{
+		    "path" : "lib/dever/pages/web_view",
+		    "style": {
+		    	"app-plus": {
+		    		"titleNView": false,
+		    		"bounce": "none",
+		    		"navigationStyle": "custom"
+		    	}
+		    }
 		}
     ],
 	"globalStyle": {

Some files were not shown because too many files changed in this diff