|
@@ -15,8 +15,7 @@ import logo from '../../assets/logo.png';
|
15
|
15
|
import touxiang from '../../assets/touxiang.jpg';
|
16
|
16
|
import poster1 from '../../assets/poster1.png';
|
17
|
17
|
import poster2 from '../../assets/poster2.png';
|
18
|
|
-import xiaochengxu from '../../assets/xiaochengxu.png';
|
19
|
|
-import PosterCard from '../../components/Cards/PosterCard';
|
|
18
|
+import xiaochengxu from '../../assets/xiaochengxu.png'
|
20
|
19
|
|
21
|
20
|
const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
22
|
21
|
const { TextArea } = Input;
|
|
@@ -306,12 +305,70 @@ const Edit = props => {
|
306
|
305
|
}
|
307
|
306
|
}
|
308
|
307
|
|
309
|
|
- const changePoster = e => {
|
310
|
|
- console.log(e,"返回出来的数据")
|
311
|
|
- }
|
312
|
|
-
|
313
|
308
|
return <div>
|
314
|
|
- <PosterCard onChange={changePoster}/>
|
|
309
|
+ <div style={{ display: 'flex' }}>
|
|
310
|
+ <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
|
|
311
|
+ <div style={{ width: '375px', height: '700px', backgroundColor: '#fff', boxShadow: '0px 0px 16px 6px rgba(0,0,0,0.15)', position: 'relative', margin: '0 auto' }}>
|
|
312
|
+ <img style={{ width: '100%', height: '300px' }} src={imgValue ? imgValue : poster1} alt="" />
|
|
313
|
+ <div style={{ display: 'flex', alignItems: 'center', marginTop: '-24px' }}>
|
|
314
|
+ <img style={{ width: '70px', height: '70px', border: '4px solid #fff', borderRadius: '35px', marginLeft: '16px' }} src={touxiang} alt="" />
|
|
315
|
+ <span style={{ color: '#222', fontWeight: '600', margin: '24px 10px 0 14px', fontSize: '17px' }}>喵喵</span>
|
|
316
|
+ <span style={{ color: '#999', marginTop: '25px', fontSize: '17px' }}>邀您参与</span>
|
|
317
|
+ <span style={{ color: '#999', margin: '25px 0 0 60px', fontSize: '17px' }}>2019.09.21</span>
|
|
318
|
+ </div>
|
|
319
|
+ <p style={{
|
|
320
|
+ margin: '10px 20px',
|
|
321
|
+ fontSize: '20px',
|
|
322
|
+ color: '#222',
|
|
323
|
+ fontWeight: '600',
|
|
324
|
+ display: '-webkit-box',
|
|
325
|
+ lineClamp: '3',
|
|
326
|
+ height: '60px',
|
|
327
|
+ WebkitLineClamp: '2',
|
|
328
|
+ WebkitBoxOrient: 'vertical',
|
|
329
|
+ overflow: 'hidden',
|
|
330
|
+ textOverflow: 'ellipsis'
|
|
331
|
+ }}>{inputValue ? inputValue : '海报标题'}</p>
|
|
332
|
+
|
|
333
|
+ <img src={yinhao} style={{ width: '30px', marginLeft: '20px' }} alt="" />
|
|
334
|
+ <p style={{
|
|
335
|
+ margin: '16px 20px 28px 20px',
|
|
336
|
+ fontSize: '17px',
|
|
337
|
+ color: '#999',
|
|
338
|
+ display: '-webkit-box',
|
|
339
|
+ lineClamp: '3',
|
|
340
|
+ height: '72px',
|
|
341
|
+ WebkitLineClamp: '3',
|
|
342
|
+ WebkitBoxOrient: 'vertical',
|
|
343
|
+ overflow: 'hidden',
|
|
344
|
+ textOverflow: 'ellipsis'
|
|
345
|
+ }}>{textAreaValue ? textAreaValue : '海报描述'}</p>
|
|
346
|
+ <div style={{ backgroundColor: '#f1f1f1', padding: '22px 30px', boxShadow: '0px 6px 12px -4px #dcdcdc', position: 'relative' }}>
|
|
347
|
+ <p style={{ margin: '0', fontSize: '18px', color: '#888' }}>长按识别小程序码</p>
|
|
348
|
+ <p style={{ margin: '0', fontSize: '18px', color: '#888' }}>进入<span style={{ margin: '0 5px', fontSize: '18px', color: '#333', fontWeight: '600' }}>{miniappName || '置业V顾问'}</span>报名活动</p>
|
|
349
|
+ <img style={{ width: '80px', position: 'absolute', right: '30px', top: '10px' }} src={xiaochengxu} alt="" />
|
|
350
|
+ </div>
|
|
351
|
+ </div>
|
|
352
|
+ <p style={{ textAlign: 'center', fontSize: '19px', color: '#666', marginTop: '30px' }}>海报模板</p>
|
|
353
|
+ </div>
|
|
354
|
+
|
|
355
|
+ <div >
|
|
356
|
+ <div style={{ display: 'flex', width: '100%', margin: '60px 0' }}>
|
|
357
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>活动海报图</p>
|
|
358
|
+ <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
|
|
359
|
+ </div>
|
|
360
|
+ <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:640*670px,比例64:67,格式:jpg,用于普通活动海报</p>
|
|
361
|
+ <div style={{ display: 'flex', alignItems: 'center', width: '100%', marginBottom: '60px' }}>
|
|
362
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题</p>
|
|
363
|
+ <Input style={{ width: '20vw' }} value={inputValue} placeholder="请输入海报标题" onChange={e => changeInput(e.target.value)} />
|
|
364
|
+ </div>
|
|
365
|
+ <div style={{ display: 'flex', margin: '10px 0 40px 0', width: '100%' }}>
|
|
366
|
+ <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报描述</p>
|
|
367
|
+ <TextArea rows={5} value={textAreaValue} onChange={e => changeTextArea(e.target.value)} />
|
|
368
|
+ </div>
|
|
369
|
+
|
|
370
|
+ </div>
|
|
371
|
+ </div>
|
315
|
372
|
<Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
|
316
|
373
|
<Button onClick={() => cancelPage()}>
|
317
|
374
|
取消
|