魏超 5 年前
父节点
当前提交
53263739cc
共有 4 个文件被更改,包括 15 次插入16 次删除
  1. 6
    6
      config/config.js
  2. 0
    0
      src/pages/news/list/NewsList.jsx
  3. 9
    10
      src/pages/news/type/NewsType.jsx
  4. 0
    0
      src/pages/news/type/style.less

+ 6
- 6
config/config.js 查看文件

189
               component: '../layouts/BlankLayout',
189
               component: '../layouts/BlankLayout',
190
               routes: [
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 查看文件


src/pages/news/NewTypeList.jsx → src/pages/news/type/NewsType.jsx 查看文件

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 查看文件