魏超 5 anos atrás
pai
commit
53263739cc

+ 6
- 6
config/config.js Ver arquivo

@@ -189,14 +189,14 @@ export default {
189 189
               component: '../layouts/BlankLayout',
190 190
               routes: [
191 191
                 {
192
-                  path: '/news/NewTypeList',
193
-                  name: '资讯列表',
194
-                  component: './news/NewTypeList',
192
+                  path: '/news/NewsType',
193
+                  name: '资讯类型',
194
+                  component: './news/type/NewsType',
195 195
                 },
196 196
                 {
197
-                  path: '/activity/editActivity',
198
-                  name: '',
199
-                  component: './activity/editActivity',
197
+                  path: '/news/NewsList',
198
+                  name: '咨询列表',
199
+                  component: './news/list/NewsList',
200 200
                 },
201 201
               ],
202 202
             },

+ 0
- 0
src/pages/news/list/NewsList.jsx Ver arquivo


src/pages/news/NewTypeList.jsx → src/pages/news/type/NewsType.jsx Ver arquivo

@@ -1,7 +1,7 @@
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
-import styles from '../style/GoodsList.less';
4
+import styles from './style.less';
5 5
 import router from 'umi/router';
6 6
 
7 7
 const { Option } = Select;
@@ -23,10 +23,11 @@ function handleSelectChange(props) {
23 23
 function onChange(pageNumber) {
24 24
   console.log('Page: ', pageNumber);
25 25
 }
26
+
26 27
 // 跳转到编辑商品
27 28
 function toEditGoods() {
28 29
   router.push({
29
-    pathname: '/activity/editActivity',
30
+    pathname: '/integralMall/editGoods',
30 31
     query: {
31 32
       a: 'b',
32 33
     },
@@ -55,7 +56,7 @@ const dataSource = [
55 56
 
56 57
 const columns = [
57 58
   {
58
-    title: '类型图',
59
+    title: '类型图',
59 60
     dataIndex: 'img',
60 61
     key: 'img',
61 62
     align: 'center',
@@ -68,7 +69,6 @@ const columns = [
68 69
     align: 'center',
69 70
 
70 71
   },
71
-
72 72
   {
73 73
     title: '操作',
74 74
     dataIndex: 'handle',
@@ -76,12 +76,12 @@ const columns = [
76 76
     align: 'center',
77 77
     render: () => <>
78 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 83
   Modal.confirm({
84
-    title: '确认删除该商品?',
84
+    title: '确认删除该类型?',
85 85
     okText: '确认',
86 86
     cancelText: '取消',
87 87
     onOk() {
@@ -93,8 +93,7 @@ const confirm = () => {
93 93
   });
94 94
 
95 95
 }
96
-
97
-const header = (props) => {
96
+function header(props) {
98 97
   const { getFieldDecorator } = props.form
99 98
   return (
100 99
 

src/pages/style/News.less → src/pages/news/type/style.less Ver arquivo