|
|
@@ -244,10 +244,10 @@ Ext.define('saas.view.main.MainController', {
|
|
|
//打开分享窗口
|
|
|
var win = Ext.create('Ext.window.Window', {
|
|
|
cls:'x-window-dbfind',
|
|
|
- height: 385,
|
|
|
- width: 350,
|
|
|
+ height: 415,
|
|
|
+ width: 550,
|
|
|
modal:true,
|
|
|
- title: '分享企业',
|
|
|
+ title: '邀请同事',
|
|
|
bodyPadding: 10,
|
|
|
constrain: true,
|
|
|
closable: true,
|
|
|
@@ -257,7 +257,7 @@ Ext.define('saas.view.main.MainController', {
|
|
|
xtype:'tabpanel',
|
|
|
cls:'x-tab-shareTab',
|
|
|
items:[{
|
|
|
- title:'二维码分享',
|
|
|
+ title:'二维码邀请',
|
|
|
xtype:'panel',
|
|
|
layout: {
|
|
|
type: 'vbox',
|
|
|
@@ -267,7 +267,7 @@ Ext.define('saas.view.main.MainController', {
|
|
|
width:180,
|
|
|
height:180,
|
|
|
xtype: 'image',
|
|
|
- margin:'35 0 0 0',
|
|
|
+ margin:'25 0 0 0',
|
|
|
padding:'5',
|
|
|
style:'border: 1px solid #000;',
|
|
|
src:'resources/images/default/basePhoto.png',
|
|
|
@@ -276,17 +276,20 @@ Ext.define('saas.view.main.MainController', {
|
|
|
listeners:{
|
|
|
afterrender:function(f){
|
|
|
var serverOptions = Ext.manifest.server;
|
|
|
- var delay = 15;//天
|
|
|
+ var delay = 1;//天
|
|
|
var basePath = serverOptions.basePath.https?serverOptions.basePath.https:serverOptions.basePath;
|
|
|
- f.setSrc('/api/commons/share/qrcode?basePath='+basePath)
|
|
|
+ f.setSrc('/api/commons/share/qrcode?basePath='+basePath+'&delay='+delay)
|
|
|
}
|
|
|
}
|
|
|
},{
|
|
|
xtype:'displayfield',
|
|
|
value:'扫描二维码分享至微信/QQ'
|
|
|
+ },{
|
|
|
+ xtype:'displayfield',
|
|
|
+ value:'(分享后'+'<font style="color:#ff0000;">24小时</font>'+'内有效)'
|
|
|
}]
|
|
|
},{
|
|
|
- title:'链接分享',
|
|
|
+ title:'链接邀请',
|
|
|
xtype:'panel',
|
|
|
layout: {
|
|
|
type: 'vbox',
|
|
|
@@ -298,8 +301,8 @@ Ext.define('saas.view.main.MainController', {
|
|
|
value:'复制以下链接分享给好友'
|
|
|
},{
|
|
|
xtype:'textfield',
|
|
|
- width:200,
|
|
|
- value:'https://www.usoftchina.com?admin=false&_noc=0'
|
|
|
+ width:500,
|
|
|
+ value:'https://saas.usoftchina.com?admin=false&_noc=0'
|
|
|
},{
|
|
|
margin:'10 0 0 0',
|
|
|
width:110,
|
|
|
@@ -319,6 +322,10 @@ Ext.define('saas.view.main.MainController', {
|
|
|
document.body.removeChild(target);
|
|
|
saas.util.BaseUtil.showSuccessToast('复制链接成功');
|
|
|
}
|
|
|
+ },{
|
|
|
+ margin:'10 0 0 0',
|
|
|
+ xtype:'displayfield',
|
|
|
+ value:'(分享后'+'<font style="color:#ff0000;">24小时</font>'+'内有效)'
|
|
|
}]
|
|
|
}]
|
|
|
}]
|