|
@@ -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
|
|
|
})
|