|
@@ -700,7 +700,8 @@ var share =
|
|
|
var dever = {
|
|
|
login : 'user/login',
|
|
|
web_view : '/lib/dever/pages/web_view',
|
|
|
- source : 'h5',
|
|
|
+ source : 'h5',
|
|
|
+ source_id : 1,
|
|
|
host : '',
|
|
|
doc : false,
|
|
|
config : {},
|
|
@@ -773,17 +774,25 @@ var dever = {
|
|
|
},
|
|
|
//加载通用的方法
|
|
|
common : function(func) {
|
|
|
- this.source = 'h5';
|
|
|
+ this.source = 'h5';
|
|
|
+ this.source_id = 1;
|
|
|
this.host = '';
|
|
|
//#ifdef H5
|
|
|
- this.source = 'h5';
|
|
|
+ this.source = 'h5';
|
|
|
+ this.source_id = 1;
|
|
|
this.host = window.location.protocol + '//' + window.location.host + '/#';
|
|
|
//#endif
|
|
|
//#ifdef APP-PLUS
|
|
|
- this.source = 'app';
|
|
|
+ this.source = uni.getSystemInfoSync().platform;
|
|
|
+ if (this.source == 'ios') {
|
|
|
+ this.source_id = 3;
|
|
|
+ } else {
|
|
|
+ this.source_id = 2;
|
|
|
+ }
|
|
|
//#endif
|
|
|
//#ifdef MP-WEIXIN
|
|
|
- this.source = 'applet';
|
|
|
+ this.source = 'wx_applet';
|
|
|
+ this.source_id = 5;
|
|
|
//#endif
|
|
|
|
|
|
if (func) {
|