浏览代码

Merge branch 'master' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager

魏超 5 年前
父节点
当前提交
a779aec730

+ 5
- 12
config/config.js 查看文件

@@ -151,18 +151,11 @@ export default {
151 151
                   name: '渠道管理',
152 152
                   component: './channel/channelList',
153 153
                 },
154
-              ],
155
-            },
156
-            {
157
-              path: '/activity',
158
-              name: '活动管理',
159
-              component: '../layouts/BlankLayout',
160
-              routes: [
161
-                {
162
-                  path: '/activity/ActivityList',
163
-                  name: '活动列表',
164
-                  component: './activity/ActivityList',
165
-                },
154
+                // {
155
+                //   path: '/channel/addChannel',
156
+                //   name: '新增渠道',
157
+                //   component: './channel/addChannel',
158
+                // },
166 159
               ],
167 160
             },
168 161
             {

+ 1
- 0
src/global.less 查看文件

@@ -12,6 +12,7 @@ body,
12 12
 
13 13
 .ant-layout {
14 14
   min-height: 100vh;
15
+  background-color: #f8f8f8;
15 16
 }
16 17
 
17 18
 canvas {

+ 13
- 10
src/layouts/BlankLayout.jsx 查看文件

@@ -1,16 +1,19 @@
1 1
 import React from 'react';
2
+import { PageHeaderWrapper } from '@ant-design/pro-layout';
2 3
 
3 4
 const Layout = ({ children }) => (
4
-  <div
5
-    style={{
6
-      backgroundColor: '#fff',
7
-      padding: '32PX 28px',
8
-      boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)',
9
-      borderRadius: '12px',
10
-    }}
11
-  >
12
-    {children}
13
-  </div>
5
+  <PageHeaderWrapper style={{height:'49px',background:'rgba(240,240,240,1)',paddingTop:'15px'}}>
6
+    <div
7
+      style={{
8
+        backgroundColor: '#fff',
9
+        padding: '32PX 28px',
10
+        boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)',
11
+        borderRadius: '12px',
12
+      }}
13
+    >
14
+      {children}
15
+    </div>
16
+  </PageHeaderWrapper>
14 17
 );
15 18
 
16 19
 export default Layout;

+ 9
- 0
src/pages/channel/channelList.jsx 查看文件

@@ -7,6 +7,8 @@ const { Option } = Select;
7 7
 function handleChange(value) {
8 8
   console.log(`selected ${value}`);
9 9
 }
10
+
11
+
10 12
 const menu = (
11 13
   <Menu onClick={handleMenuClick}>
12 14
     <Menu.Item key="1">
@@ -92,6 +94,13 @@ const columns = [
92 94
     align: 'center',
93 95
     render: () => <a>Delete</a>,
94 96
   },
97
+  {
98
+    title: '操作',
99
+    dataIndex: 'handle',
100
+    key: 'handle',
101
+    align: 'center',
102
+    render: () => <a style={ { color: '#66B3FF' } }>编辑</a>,
103
+  },
95 104
 ];
96 105
 
97 106
 export default () => (

+ 13
- 0
src/pages/channel/channelList.less 查看文件

@@ -44,3 +44,16 @@
44 44
   color: rgb(10, 10, 10);
45 45
   margin: 30px 0;
46 46
 }
47
+
48
+.inpuit {
49
+  width:50%;
50
+}
51
+
52
+.inpuitTxt {
53
+  width:70%;
54
+}
55
+
56
+
57
+.formButton{
58
+  margin-left: 12% 
59
+}

+ 2
- 2
src/pages/integralMall/GoodsList.jsx 查看文件

@@ -1,5 +1,5 @@
1 1
 import React from 'react';
2
-import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal } from 'antd';
2
+import { Form, Input, Button, Icon, Select, message, Table, Divider, Tag, Pagination, Modal,Breadcrumb } from 'antd';
3 3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4 4
 import styles from '../style/GoodsList.less';
5 5
 import router from 'umi/router';
@@ -103,7 +103,7 @@ const columns = [
103 103
     dataIndex: 'handle',
104 104
     key: 'handle',
105 105
     align: 'center',
106
-    render: () => <><span style={{ color: '#1990FF', marginRight: '20px' }} onClick={confirm}>下架<Icon type="shopping-cart" className={styles.shoppingCart} /></span><span style={{ color: '#FF925C' }}>编辑<Icon type="form" className={styles.edit} /></span></>,
106
+    render: () => <><span style={{ color: '#1990FF', marginRight: '20px' }} onClick={confirm}>下架<Icon type="shopping-cart" className={styles.shoppingCart} /></span><span style={{ color: '#FF925C' }} onClick={toEditGoods}>编辑<Icon type="form" className={styles.edit} /></span></>,
107 107
   },
108 108
 ];
109 109
 function confirm() {