浏览代码

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

周立森 5 年前
父节点
当前提交
636ebde0c5

+ 14
- 9
src/pages/activity/editActivity.jsx 查看文件

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

+ 8
- 7
src/pages/activity/groupActivity/editGroupActivity.jsx 查看文件

20
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
20
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
21
 const { TextArea } = Input;
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
       })
62
       })
57
   }
63
   }
58
 
64
 
59
-  const cancelPage = () => {
60
-    router.push({
61
-      pathname: '/activity/groupActivity/list',
62
-    });
63
-  }
64
   const radioOnChange = e => {
65
   const radioOnChange = e => {
65
     console.log(e.target.value)
66
     console.log(e.target.value)
66
     setDynamicData({ ...dynamicData, isEnlist: e.target.value })
67
     setDynamicData({ ...dynamicData, isEnlist: e.target.value })
315
         </div>
316
         </div>
316
       </div>
317
       </div>
317
       <Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
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
     </div>
320
     </div>
320
 
321
 
321
   }
322
   }
382
       </div>
383
       </div>
383
       <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于拼团活动分享好友</p>
384
       <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于拼团活动分享好友</p>
384
       <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
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
     </div>
387
     </div>
387
   }
388
   }
388
 
389
 

+ 9
- 16
src/pages/activity/helpActivity/edithelpActivity.jsx 查看文件

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

+ 17
- 17
src/pages/carouselFigure/editCarousel.jsx 查看文件

86
             { required: true, message: '请选择所属项目' },
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
           label: () => (locationType ? '积分商城轮播图' : '首页轮播图'),
107
           label: () => (locationType ? '积分商城轮播图' : '首页轮播图'),
91
           name: 'image',
108
           name: 'image',
105
             { required: true, message: '请输入标题' },
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
           label: '类型',
126
           label: '类型',
127
           name: 'contentType',
127
           name: 'contentType',

+ 1
- 1
src/pages/integralMall/writeOff.jsx 查看文件

146
           <div style={{ margin: '110px auto', display: 'block', textAlign: 'center' }}>
146
           <div style={{ margin: '110px auto', display: 'block', textAlign: 'center' }}>
147
             <Input placeholder="请输入手机号" style={{ width: '200px' }} onChange={changeTel} />
147
             <Input placeholder="请输入手机号" style={{ width: '200px' }} onChange={changeTel} />
148
             <AuthButton name="admin.taPointsExchange.recId.put" noRight={null}>
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
             </AuthButton>
150
             </AuthButton>
151
           </div>
151
           </div>
152
         </TabPane>
152
         </TabPane>