zlisen il y a 3 ans
Parent
révision
f1ef71dfa6

+ 2
- 2
config/proxy.js Voir le fichier

@@ -8,8 +8,8 @@
8 8
 export default {
9 9
   dev: {
10 10
     '/api/': {
11
-      // target: 'https://xlj.newlandsh.com/',
12
-      target: 'http://localhost:8081/',
11
+      target: 'https://xlk.njyz.tech/',
12
+      // target: 'http://localhost:8081/',
13 13
       // target: 'https://xlj.newlandsh.com/',
14 14
       changeOrigin: true,
15 15
       pathRewrite: {

+ 13
- 13
config/routes.js Voir le fichier

@@ -275,19 +275,19 @@ export default [
275 275
             component: '../layouts/BlankLayout',
276 276
             menuCode: '/news',
277 277
             routes: [
278
-              {
279
-                path: '/news/type/NewsType',
280
-                name: '资讯类型',
281
-                component: './news/type/NewsType',
282
-                menuCode: '/news/type/NewsType',
283
-              },
284
-              {
285
-                path: '/news/type/editNews',
286
-                name: '编辑资讯类型',
287
-                hideInMenu: true,
288
-                component: './news/type/editNews',
289
-                menuCode: '/news/type/editNews',
290
-              },
278
+              // {
279
+              //   path: '/news/type/NewsType',
280
+              //   name: '资讯类型',
281
+              //   component: './news/type/NewsType',
282
+              //   menuCode: '/news/type/NewsType',
283
+              // },
284
+              // {
285
+              //   path: '/news/type/editNews',
286
+              //   name: '编辑资讯类型',
287
+              //   hideInMenu: true,
288
+              //   component: './news/type/editNews',
289
+              //   menuCode: '/news/type/editNews',
290
+              // },
291 291
               {
292 292
                 path: '/news/list/List',
293 293
                 name: '资讯列表',

+ 2
- 2
src/pages/activity/SignupActivity/detail.jsx Voir le fichier

@@ -125,9 +125,9 @@ const BasicForm = props => {
125 125
         <Form.Item label="活动封面图1">
126 126
           <img src={getImgURL(detailData.listImgUrl)} height="210px" width="375px" />
127 127
         </Form.Item>
128
-        {/* <Form.Item label="活动封面图2">
128
+        <Form.Item label="活动封面图2">
129 129
           <img src={getImgURL(detailData.bannerListImg)} height="125px" width="375px" />
130
-        </Form.Item> */}
130
+        </Form.Item>
131 131
         <Form.Item label="活动详情主图">
132 132
           <img src={getImgURL(detailData.imgUrl)} height="300px" width="375px" />
133 133
         </Form.Item>

+ 4
- 4
src/pages/activity/SignupActivity/edit/Basic.jsx Voir le fichier

@@ -145,7 +145,7 @@ const BasicForm = props => {
145 145
             ],
146 146
           })(<BuildSelect disabled={disable} />)}
147 147
         </Form.Item>
148
-        <Form.Item label="活动封面图" help="建议图片尺寸:690px*388px,比例16:9,格式:jpg">
148
+        <Form.Item label="活动封面图" help="建议图片尺寸:690px*388px,比例16:9,格式:jpg,用于:活动列表页">
149 149
           {getFieldDecorator('listImgUrl', {
150 150
             rules: [
151 151
               {
@@ -155,7 +155,7 @@ const BasicForm = props => {
155 155
             ],
156 156
           })(<ImageUploader />)}
157 157
         </Form.Item>
158
-        {/* <Form.Item
158
+        <Form.Item
159 159
           label="活动封面图2"
160 160
           help="建议图片尺寸:750*250,比例3:1,格式:jpg,用于:项目详情页"
161 161
         >
@@ -167,10 +167,10 @@ const BasicForm = props => {
167 167
               },
168 168
             ],
169 169
           })(<ImageUploader />)}
170
-        </Form.Item> */}
170
+        </Form.Item>
171 171
         <Form.Item
172 172
           label="活动详情主图"
173
-          help="建议图片尺寸:750*415px,比例16:9,格式:jpg,用于:普通活动详情"
173
+          help="建议图片尺寸:750*415px,比例16:9,格式:jpg,用于:活动详情"
174 174
         >
175 175
           {getFieldDecorator('imgUrl', {
176 176
             rules: [

+ 0
- 6
src/pages/activity/lookHouseActivity/detail.jsx Voir le fichier

@@ -122,12 +122,6 @@ const BasicForm = props => {
122 122
             ],
123 123
           })(<BuildSelect disabled />)}
124 124
         </Form.Item>
125
-        <Form.Item label="活动封面图1">
126
-          <img src={getImgURL(detailData.listImgUrl)} height="210px" width="375px" />
127
-        </Form.Item>
128
-        {/* <Form.Item label="活动封面图2">
129
-          <img src={getImgURL(detailData.bannerListImg)} height="125px" width="375px" />
130
-        </Form.Item> */}
131 125
         <Form.Item label="活动详情主图">
132 126
           <img src={getImgURL(detailData.imgUrl)} height="300px" width="375px" />
133 127
         </Form.Item>

+ 0
- 26
src/pages/activity/lookHouseActivity/edit/Basic.jsx Voir le fichier

@@ -164,32 +164,6 @@ const BasicForm = props => {
164 164
             ],
165 165
           })(<BuildSelect disabled={disable} />)}
166 166
         </Form.Item>
167
-        <Form.Item
168
-          label="活动封面图"
169
-          help="建议图片尺寸:690px*388px,比例16:9,格式:jpg,用于:首页推荐/活动列表"
170
-        >
171
-          {getFieldDecorator('listImgUrl', {
172
-            rules: [
173
-              {
174
-                required: true,
175
-                message: '请选择活动封面图1',
176
-              },
177
-            ],
178
-          })(<ImageUploader />)}
179
-        </Form.Item>
180
-        {/* <Form.Item
181
-          label="活动封面图2"
182
-          help="建议图片尺寸:750*250,比例3:1,格式:jpg,用于:项目详情页"
183
-        >
184
-          {getFieldDecorator('bannerListImg', {
185
-            rules: [
186
-              {
187
-                required: true,
188
-                message: '请选择活动封面图2',
189
-              },
190
-            ],
191
-          })(<ImageUploader />)}
192
-        </Form.Item> */}
193 167
         <Form.Item
194 168
           label="活动详情主图"
195 169
           help="建议图片尺寸:750*415px,比例16:9,格式:jpg,用于:普通活动详情"

+ 1
- 1
src/pages/building/Developers/Edit.jsx Voir le fichier

@@ -159,7 +159,7 @@ function Edit(props) {
159 159
                   indexLetter: pinyin(e.target.value, {
160 160
                     style: pinyin.STYLE_FIRST_LETTER,
161 161
                     heteronym: true,
162
-                  })[0][0]
162
+                  })[0][0]?.toUpperCase()
163 163
                 })
164 164
               }
165 165
                 

+ 14
- 21
src/pages/news/list/List.jsx Voir le fichier

@@ -142,12 +142,12 @@ export default props => {
142 142
       label: '标题',
143 143
       placeholder: '请输入标题',
144 144
     },
145
-    {
146
-      name: 'newsTypeId',
147
-      label: '资讯类型',
148
-      placeholder: '请选择资讯类型',
149
-      render: () => <NewsTypeSelect style={{ width: 160 }} />,
150
-    },
145
+    // {
146
+    //   name: 'newsTypeId',
147
+    //   label: '资讯类型',
148
+    //   placeholder: '请选择资讯类型',
149
+    //   render: () => <NewsTypeSelect style={{ width: 160 }} />,
150
+    // },
151 151
 
152 152
     {
153 153
       name: 'newsStatus',
@@ -177,13 +177,6 @@ export default props => {
177 177
       with: 300,
178 178
       ellipsis: true,
179 179
     },
180
-    {
181
-      title: '资讯类型',
182
-      key: 'newsType',
183
-      dataIndex: 'newsType',
184
-      align: 'center',
185
-      render: t => t.newsTypeName,
186
-    },
187 180
     {
188 181
       title: '发布时间',
189 182
       dataIndex: 'createDate',
@@ -198,13 +191,13 @@ export default props => {
198 191
       align: 'center',
199 192
       render: t => t || 0,
200 193
     },
201
-    {
202
-      title: '转发数',
203
-      key: 'shareNum',
204
-      dataIndex: 'shareNum',
205
-      align: 'center',
206
-      render: t => t || 0,
207
-    },
194
+    // {
195
+    //   title: '转发数',
196
+    //   key: 'shareNum',
197
+    //   dataIndex: 'shareNum',
198
+    //   align: 'center',
199
+    //   render: t => t || 0,
200
+    // },
208 201
     {
209 202
       title: '收藏数',
210 203
       key: 'saveNum',
@@ -233,7 +226,7 @@ export default props => {
233 226
                   row.newsId,
234 227
                   row.newsStatus === 0 ? 1 : 0,
235 228
                   row.buildingId,
236
-                  row.newsType.newsTypeId,
229
+                  // row.newsType.newsTypeId,
237 230
                 )
238 231
               }
239 232
             >

+ 0
- 7
src/pages/news/list/compents/Basic.jsx Voir le fichier

@@ -64,13 +64,6 @@ const Basic = props => {
64 64
       value: dynamicData.newsName,
65 65
       rules: [{ required: true, message: '请输入资讯标题' }],
66 66
     },
67
-    {
68
-      label: '资讯类型',
69
-      name: 'newsTypeId',
70
-      render: <NewsTypeSelect buildingId={changeBuildingId || dynamicData.buildingId} />,
71
-      value: dynamicData.newsTypeId,
72
-      rules: [{ required: true, message: '请选择资讯类型' }],
73
-    },
74 67
     {
75 68
       label: '资讯详情',
76 69
       name: 'newsDetailType',