Explorar el Código

新增经纪人/推荐客户/邀请经纪人等页面

dingxin hace 5 años
padre
commit
0be78993b8
Se han modificado 3 ficheros con 37 adiciones y 7 borrados
  1. 20
    5
      config/config.js
  2. 11
    1
      src/pages/channel/channelList.jsx
  3. 6
    1
      src/pages/channel/channelList.less

+ 20
- 5
config/config.js Ver fichero

@@ -151,11 +151,26 @@ export default {
151 151
                   name: '渠道管理',
152 152
                   component: './channel/channelList',
153 153
                 },
154
-                // {
155
-                //   path: '/channel/addChannel',
156
-                //   name: '新增渠道',
157
-                //   component: './channel/addChannel',
158
-                // },
154
+                {
155
+                  path: '/channel/addChannel',
156
+                  name: '',
157
+                  component: './channel/addChannel',
158
+                },
159
+                {
160
+                  path: '/channel/brokerList',
161
+                  name: '经纪人',
162
+                  component: './channel/brokerList',
163
+                },
164
+                {
165
+                  path: '/channel/recommendClients',
166
+                  name: '推荐客户',
167
+                  component: './channel/recommendClients',
168
+                },
169
+                {
170
+                  path: '/channel/InviteClients',
171
+                  name: '邀请经纪人',
172
+                  component: './channel/InviteClients',
173
+                },
159 174
               ],
160 175
             },
161 176
             {

+ 11
- 1
src/pages/channel/channelList.jsx Ver fichero

@@ -2,6 +2,7 @@ import React from 'react';
2 2
 import { Input, Menu, Dropdown, Button, Icon, message, Table, Divider, Tag, Select } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import channels from './channelList.less';
5
+import router from 'umi/router';
5 6
 
6 7
 const { Option } = Select;
7 8
 function handleChange(value) {
@@ -103,6 +104,15 @@ const columns = [
103 104
   },
104 105
 ];
105 106
 
107
+// 跳转到编辑商品
108
+function toEditGoods() {
109
+  router.push({
110
+    pathname: '/channel/addChannel',
111
+    query: {
112
+      a: 'b',
113
+    },
114
+  });
115
+}
106 116
 export default () => (
107 117
   <>
108 118
     <div className={channels.searchBox}>
@@ -119,7 +129,7 @@ export default () => (
119 129
       </dvi>
120 130
       <Button className={channels.about}>查询</Button>
121 131
     </div>
122
-    <Button className={channels.addBtn}>新增</Button>
132
+    <Button className={channels.addBtn} onClick={toEditGoods}>新增</Button>
123 133
     <Table dataSource={dataSource} columns={columns} />
124 134
   </>
125 135
 );

+ 6
- 1
src/pages/channel/channelList.less Ver fichero

@@ -1,5 +1,5 @@
1 1
 .searchBox {
2
-  font-size: 30px;
2
+  font-size: 20px;
3 3
   color: red;
4 4
   display: flex;
5 5
   display: flex;
@@ -57,3 +57,8 @@
57 57
 .formButton{
58 58
   margin-left: 12% 
59 59
 }
60
+
61
+.divInput{
62
+  float: 'left'; 
63
+  width: 500
64
+}