Browse Source

导航优化

rainco 7 năm trước cách đây
mục cha
commit
cd4981886e

+ 22 - 9
frontend/saas-web/app/view/main/Main.js

@@ -87,25 +87,40 @@ Ext.define('saas.view.main.Main', {
                             iconCls:'x-fa fa-comment-o',
                             handler:function(){
                                console.log("新手导航");
+                               openTab('sys-guide-formpanel','新手导航', 'sys-guide-formpanel-nav');
                             }
                         },{
                             text: '用户手册',
                             iconCls:'x-fa fa-comment-o',
                             handler:function(){
-                                console.log("用户手册");
+                                window.open('http://www.usoftchina.com','_blank');
                             }
                         },{
                             text: '常见问题',
                             iconCls:'x-fa fa-question-circle-o',
                             handler:function(){
-                                console.log("常见问题");
+                                window.open('http://www.usoftchina.com','_blank');
                             }
                         },{
                             text: '客服热线',
                             iconCls:'x-fa fa-comment-o',
-                            handler:function(){
-                                console.log("客服热线");
-                            }
+                            menu:{
+                                items:[{
+                                    text:'<span onclick="javascript:window.open(\'http://www.usoftchina.com\');" style="text-decoration:underline;color:blue;">优软科技官网</span>'
+                                },{	
+                                    text:'<span>电话:400-830-1818</span>'
+                                },{	
+                                    text:'<span>邮箱:info@usoftchina.com</span>'
+                                }]
+                            }/* ,listeners: {
+                                'mouseover': function() {
+                                    this.over = true;
+                                },
+                                'mouseleave': function() {
+                                    this.over = false;
+                                    this.hide();
+                                }
+                            } */
                         }]
                     }
                 },
@@ -136,14 +151,12 @@ Ext.define('saas.view.main.Main', {
                             text: '账户中心',
                             iconCls:'x-fa x-fa fa-user-o',
                             handler:function(){
-                            console.log("账户中心");
+                                window.open('http://www.usoftchina.com','_blank');
                             }
                         },{  
                             text: '意见反馈',
                             iconCls:'x-fa fa-comment-o',
-                            handler:function(){
-                            console.log("意见反馈");
-                            }
+                            handler:'feedbackMsg'
                         }, {
                             text: '退出',
                             iconCls:'x-fa fa-power-off',

+ 22 - 6
frontend/saas-web/app/view/main/MainController.js

@@ -113,11 +113,27 @@ Ext.define('saas.view.main.MainController', {
         this.fireEvent('logout');
     },
 
-    accountCenterClick:function(e, t, eOpts){
-        console.log("!!!");
-    },
-    accountCenterMouseover:function(e, t, eOpts){
-        console.log("userImage???");
-        var userImage = Ext.getCmp('userImage');
+    feedbackMsg:function(btn){
+        console.log("意见反馈!");
+        var me = this,
+        win = Ext.getCmp("feedbackWin");
+        if (!win) {
+             win = Ext.create('Ext.window.Window', {
+                modal: true,
+                id:"feedbackWin",
+                height: '60%',
+                width: '80%',
+                title: '意见反馈',
+                scrollable: true,
+                constrain: true,
+                closable: true,
+                layout: 'fit',
+
+                items: [{
+                    xtype: 'sys-feedback-formpanel'
+                }]
+            }); 
+        };
+        win.show();
     }
 });

+ 2 - 2
frontend/saas-web/app/view/money/report/CustomerCheck.js

@@ -11,13 +11,13 @@ Ext.define('saas.view.money.report.CustomerCheckCheck', {
     listUrl: '/api/money/report/customercheck',
     defaultCondition: null,
     reportTitle: '客户对账单',
-    QueryWidth:0.1,
+    QueryWidth:0.25,
     //筛选:客户、日期(必填)
     searchItems: [ {
         xtype: 'dbfindtrigger',
         name: 'pi_custname',
         fieldLabel: '客户名称',
-        columnWidth: 0.2
+        columnWidth: 0.25
     }, {
         xtype: 'condatefield',
         name: 'pi_date',

+ 48 - 0
frontend/saas-web/app/view/sys/feedback/FormPanel.js

@@ -0,0 +1,48 @@
+Ext.define('saas.view.sys.feedback.FormPanel', {
+    extend: 'Ext.panel.Panel',
+    xtype: 'sys-feedback-formpanel',
+
+    controller: 'sys-feedback-formpanel',
+    viewModel: 'sys-feedback-formpanel',
+
+    viewName: 'sys-feedback-formpanel',
+    caller:'feedBack',
+    
+    defaultType: 'textfield',
+        fieldDefaults: {
+            labelWidth: 60
+        },
+
+        layout: {
+            type: 'vbox',
+            align: 'stretch'
+        },
+
+        bodyPadding: 5,
+        border: false,
+
+    items: [{
+        xtype: 'hidden',
+        name: 'id',
+        fieldLabel: 'id'
+    }, {
+        xtype : "textfield", 
+        name : "fb_name", 
+        fieldLabel : "姓名"
+    }, {
+        xtype : "textfield", 
+        name : "fb_mobile", 
+        fieldLabel : "联系方式"
+    }, {
+        xtype : "textarea", 
+        name : "fb_email", 
+        fieldLabel : "反馈内容",
+        flex: 1
+    }],buttons: [{
+        text: 'Send',
+        handler:'onSubmit'
+    },{
+        text: 'Send',
+        handler:'onClose'
+    }]
+});

+ 18 - 0
frontend/saas-web/app/view/sys/feedback/FormPanelController.js

@@ -0,0 +1,18 @@
+Ext.define('saas.view.sys.feedback.FormPanelController', {
+    extend: 'Ext.app.ViewController',
+    alias: 'controller.sys-feedback-formpanel',
+    init: function (form) {
+        var me = this;
+        this.control({
+        });
+    },
+    onSubmit:function(){
+        console.log("提交成功!");
+        showToast('提交成功!');
+        this.close();
+        this.destory();
+    },
+    onClose:function(){
+        this.close();
+    }
+});

+ 4 - 0
frontend/saas-web/app/view/sys/feedback/FormPanelModel.js

@@ -0,0 +1,4 @@
+Ext.define('saas.view.sys.feedback.FormPanelModel', {
+    extend: 'Ext.app.ViewModel',
+    alias: 'viewmodel.sys-feedback-formpanel',
+});