Browse Source

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

魏熙美 5 years ago
parent
commit
3e9bdc0e7c

+ 6
- 6
config/config.js View File

194
               component: '../layouts/BlankLayout',
194
               component: '../layouts/BlankLayout',
195
               routes: [
195
               routes: [
196
                 {
196
                 {
197
-                  path: '/news/NewTypeList',
198
-                  name: '资讯列表',
199
-                  component: './news/NewTypeList',
197
+                  path: '/news/NewsType',
198
+                  name: '资讯类型',
199
+                  component: './news/type/NewsType',
200
                 },
200
                 },
201
                 {
201
                 {
202
-                  path: '/activity/editActivity',
203
-                  name: '',
204
-                  component: './activity/editActivity',
202
+                  path: '/news/NewsList',
203
+                  name: '咨询列表',
204
+                  component: './news/list/NewsList',
205
                 },
205
                 },
206
               ],
206
               ],
207
             },
207
             },

+ 0
- 0
src/pages/news/list/NewsList.jsx View File


src/pages/news/NewTypeList.jsx → src/pages/news/type/NewsType.jsx View File

1
 import React from 'react';
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
 import { FormattedMessage } from 'umi-plugin-react/locale';
3
 import { FormattedMessage } from 'umi-plugin-react/locale';
4
-import styles from '../style/GoodsList.less';
4
+import styles from './style.less';
5
 import router from 'umi/router';
5
 import router from 'umi/router';
6
 
6
 
7
 const { Option } = Select;
7
 const { Option } = Select;
23
 function onChange(pageNumber) {
23
 function onChange(pageNumber) {
24
   console.log('Page: ', pageNumber);
24
   console.log('Page: ', pageNumber);
25
 }
25
 }
26
+
26
 // 跳转到编辑商品
27
 // 跳转到编辑商品
27
 function toEditGoods() {
28
 function toEditGoods() {
28
   router.push({
29
   router.push({
29
-    pathname: '/activity/editActivity',
30
+    pathname: '/integralMall/editGoods',
30
     query: {
31
     query: {
31
       a: 'b',
32
       a: 'b',
32
     },
33
     },
55
 
56
 
56
 const columns = [
57
 const columns = [
57
   {
58
   {
58
-    title: '类型图',
59
+    title: '类型图',
59
     dataIndex: 'img',
60
     dataIndex: 'img',
60
     key: 'img',
61
     key: 'img',
61
     align: 'center',
62
     align: 'center',
68
     align: 'center',
69
     align: 'center',
69
 
70
 
70
   },
71
   },
71
-
72
   {
72
   {
73
     title: '操作',
73
     title: '操作',
74
     dataIndex: 'handle',
74
     dataIndex: 'handle',
76
     align: 'center',
76
     align: 'center',
77
     render: () => <>
77
     render: () => <>
78
     <span style={{ color: '#1990FF', marginRight: '20px' }} onClick={confirm}>删除<Icon type="shopping-cart" className={styles.shoppingCart} /></span>
78
     <span style={{ color: '#1990FF', marginRight: '20px' }} onClick={confirm}>删除<Icon type="shopping-cart" className={styles.shoppingCart} /></span>
79
-    <span style={{ color: '#FF925C' }}>编辑<Icon type="form" className={styles.edit} /></span></>,
79
+    <span style={{ color: '#FF925C' }} onClick={toEditGoods}>编辑<Icon type="form" className={styles.edit} /></span></>,
80
   },
80
   },
81
 ];
81
 ];
82
-const confirm = () => {
82
+function confirm() {
83
   Modal.confirm({
83
   Modal.confirm({
84
-    title: '确认删除该商品?',
84
+    title: '确认删除该类型?',
85
     okText: '确认',
85
     okText: '确认',
86
     cancelText: '取消',
86
     cancelText: '取消',
87
     onOk() {
87
     onOk() {
93
   });
93
   });
94
 
94
 
95
 }
95
 }
96
-
97
-const header = (props) => {
96
+function header(props) {
98
   const { getFieldDecorator } = props.form
97
   const { getFieldDecorator } = props.form
99
   return (
98
   return (
100
 
99
 

src/pages/style/News.less → src/pages/news/type/style.less View File