Sfoglia il codice sorgente

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

周立森 5 anni fa
parent
commit
636ebde0c5

+ 14
- 9
src/pages/activity/editActivity.jsx Vedi File

@@ -25,6 +25,12 @@ const formItemLayout = {
25 25
   wrapperCol: { span: 14 },
26 26
 };
27 27
 
28
+const cancelPage = () => {
29
+  router.push({
30
+    pathname: '/activity/ActivityList',
31
+  });
32
+}
33
+
28 34
 const BasicForm = props => {
29 35
   const [isEnlist, setIsEnlist] = useState(1)
30 36
   const [activityStatus, setActivityStatus] = useState(1)
@@ -222,7 +228,7 @@ const BasicForm = props => {
222 228
             确认
223 229
           </Button>
224 230
           &nbsp;&nbsp;&nbsp;&nbsp;
225
-          <Button onClick={() => router.go(-1)}>
231
+          <Button onClick={() => cancelPage()}>
226 232
             取消
227 233
           </Button>
228 234
         </Form.Item>
@@ -242,12 +248,7 @@ const Basic = Form.create({ name: 'BasicForm' })(BasicForm);
242 248
 const Edit = props => {
243 249
   const [tab, changeTab] = useState('basic')
244 250
   const { dynamicId } = props.location.query
245
-  
246
-  const cancelPage = () => {
247
-    router.push({
248
-      pathname: '/activity/ActivityList',
249
-    });
250
-  }
251
+
251 252
 
252 253
   const Poster = (props) => {
253 254
     const [inputValue, changeInput] = useState('')
@@ -369,7 +370,9 @@ const Edit = props => {
369 370
         </div>
370 371
       </div>
371 372
       <Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
372
-      <Button onClick={() => router.go(-1)}>取消</Button>
373
+      <Button onClick={() => cancelPage()}>
374
+        取消
375
+      </Button>
373 376
     </div>
374 377
 
375 378
   }
@@ -436,7 +439,9 @@ const Edit = props => {
436 439
       </div>
437 440
       <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginTop: '20px' }}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于活动分享好友</p>
438 441
       <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
439
-      <Button onClick={() => router.go(-1)}>取消</Button>
442
+      <Button onClick={() => cancelPage()}>
443
+        取消
444
+      </Button>
440 445
     </div>
441 446
   }
442 447
 

+ 8
- 7
src/pages/activity/groupActivity/editGroupActivity.jsx Vedi File

@@ -20,6 +20,12 @@ import xiaochengxu from '../../../assets/xiaochengxu.png'
20 20
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
21 21
 const { TextArea } = Input;
22 22
 
23
+const cancelPage = () => {
24
+  router.push({
25
+    pathname: '/activity/groupActivity/list',
26
+  });
27
+}
28
+
23 29
 /**
24 30
  *
25 31
  *
@@ -56,11 +62,6 @@ const Edit = props => {
56 62
       })
57 63
   }
58 64
 
59
-  const cancelPage = () => {
60
-    router.push({
61
-      pathname: '/activity/groupActivity/list',
62
-    });
63
-  }
64 65
   const radioOnChange = e => {
65 66
     console.log(e.target.value)
66 67
     setDynamicData({ ...dynamicData, isEnlist: e.target.value })
@@ -315,7 +316,7 @@ const Edit = props => {
315 316
         </div>
316 317
       </div>
317 318
       <Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
318
-      <Button onClick={() => router.go(-1)}>取消</Button>
319
+      <Button onClick={() => cancelPage()}>取消</Button>
319 320
     </div>
320 321
 
321 322
   }
@@ -382,7 +383,7 @@ const Edit = props => {
382 383
       </div>
383 384
       <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于拼团活动分享好友</p>
384 385
       <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
385
-      <Button onClick={() => router.go(-1)}>取消</Button>
386
+      <Button onClick={() => cancelPage()}>取消</Button>
386 387
     </div>
387 388
   }
388 389
 

+ 9
- 16
src/pages/activity/helpActivity/edithelpActivity.jsx Vedi File

@@ -20,6 +20,12 @@ import xiaochengxu from '../../../assets/xiaochengxu.png'
20 20
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
21 21
 const { TextArea } = Input;
22 22
 
23
+const cancelPage = () => {
24
+  router.push({
25
+    pathname: '/activity/helpActivity/list',
26
+  });
27
+}
28
+
23 29
 const header = props => {
24 30
   const [isEnlist, setIsEnlist] = useState(1)
25 31
   // 新增成功后拿到返回的ID
@@ -71,13 +77,6 @@ const header = props => {
71 77
   // })
72 78
   // }
73 79
 
74
-  
75
-  const cancelPage = () => {
76
-    router.push({
77
-      pathname: '/activity/helpActivity/list',
78
-    });
79
-  }
80
-
81 80
   function handleSubmit(e) {
82 81
     e.preventDefault();
83 82
     props.form.validateFields((err, values) => {
@@ -274,7 +273,7 @@ const header = props => {
274 273
             确认
275 274
           </Button>
276 275
           &nbsp;&nbsp;&nbsp;&nbsp;
277
-          <Button onClick={() => router.go(-1)}>
276
+          <Button onClick={() => cancelPage()}>
278 277
             取消
279 278
           </Button>
280 279
           </Form.Item>
@@ -314,12 +313,6 @@ const Edit = props => {
314 313
       })
315 314
     }
316 315
   
317
-
318
-  const cancelPage = () => {
319
-    router.push({
320
-      pathname: '/activity/helpActivity/list',
321
-    });
322
-  }
323 316
   const radioOnChange = e => {
324 317
     console.log(e.target.value)
325 318
     setDynamicData({ ...dynamicData, isEnlist: e.target.value })
@@ -436,7 +429,7 @@ const Edit = props => {
436 429
         </div>
437 430
       </div>
438 431
       <Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
439
-      <Button onClick={() => router.go(-1)}>取消</Button>
432
+      <Button onClick={() => cancelPage()}>取消</Button>
440 433
     </div>
441 434
 
442 435
   }
@@ -503,7 +496,7 @@ const Edit = props => {
503 496
       </div>
504 497
       <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于助力活动分享好友</p>
505 498
       <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
506
-      <Button onClick={() => router.go(-1)}>取消</Button>
499
+      <Button onClick={() => cancelPage()}>取消</Button>
507 500
     </div>
508 501
   }
509 502
 

+ 17
- 17
src/pages/carouselFigure/editCarousel.jsx Vedi File

@@ -86,6 +86,23 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
86 86
             { required: true, message: '请选择所属项目' },
87 87
           ],
88 88
         },
89
+        {
90
+          label: '发布位置',
91
+          name: 'showPosition',
92
+          type: FieldTypes.Select,
93
+          dict: [{
94
+            label: '首页',
95
+            value: 'index',
96
+          },
97
+          {
98
+            label: '积分商城',
99
+            value: 'mall',
100
+          }],
101
+          value: data.showPosition,
102
+          rules: [
103
+            { required: true, message: '请选择发布位置' },
104
+          ],
105
+        },
89 106
         {
90 107
           label: () => (locationType ? '积分商城轮播图' : '首页轮播图'),
91 108
           name: 'image',
@@ -105,23 +122,6 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
105 122
             { required: true, message: '请输入标题' },
106 123
           ],
107 124
         },
108
-        {
109
-          label: '发布位置',
110
-          name: 'showPosition',
111
-          type: FieldTypes.Select,
112
-          dict: [{
113
-            label: '首页',
114
-            value: 'index',
115
-          },
116
-          {
117
-            label: '积分商城',
118
-            value: 'mall',
119
-          }],
120
-          value: data.showPosition,
121
-          rules: [
122
-            { required: true, message: '请选择发布位置' },
123
-          ],
124
-        },
125 125
         {
126 126
           label: '类型',
127 127
           name: 'contentType',

+ 1
- 1
src/pages/integralMall/writeOff.jsx Vedi File

@@ -146,7 +146,7 @@ function header(props) {
146 146
           <div style={{ margin: '110px auto', display: 'block', textAlign: 'center' }}>
147 147
             <Input placeholder="请输入手机号" style={{ width: '200px' }} onChange={changeTel} />
148 148
             <AuthButton name="admin.taPointsExchange.recId.put" noRight={null}>
149
-              <Button type="primary" style={{ marginLeft: '10px', padding: '6px 46px', backgroundColor: '#EA2323', border: 'none' }} onClick={verifyTel}>立即核销</Button>
149
+              <Button type="primary" style={{ marginLeft: '10px', padding: '0px 46px', backgroundColor: '#EA2323', border: 'none' }} onClick={verifyTel}>立即核销</Button>
150 150
             </AuthButton>
151 151
           </div>
152 152
         </TabPane>