浏览代码

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

魏熙美 5 年前
父节点
当前提交
a258ee5d00

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

245
               textOverflow: 'ellipsis'
245
               textOverflow: 'ellipsis'
246
             }}>{inputValue ? inputValue : '海报标题'}</p>
246
             }}>{inputValue ? inputValue : '海报标题'}</p>
247
 
247
 
248
-            <img src={yinhao} style={{ width: '30px', marginLeft: '10px' }} alt="" />
248
+            <img src={yinhao} style={{ width: '30px', marginLeft: '20px' }} alt="" />
249
             <p style={{
249
             <p style={{
250
               margin: '16px 20px 28px 20px', fontSize: '17px', color: '#999',
250
               margin: '16px 20px 28px 20px', fontSize: '17px', color: '#999',
251
               display: '-webkit-box', lineClamp: '3', height: '76px',
251
               display: '-webkit-box', lineClamp: '3', height: '76px',

+ 12
- 17
src/pages/building/list/add/components/poster.jsx 查看文件

10
 import PosterBottom from '../../../../../assets/bottom.png'
10
 import PosterBottom from '../../../../../assets/bottom.png'
11
 import yinhao from '../../../../../assets/yinhao.png'
11
 import yinhao from '../../../../../assets/yinhao.png'
12
 import ImageUploader from '../../../../../components/XForm/ImageUpload';
12
 import ImageUploader from '../../../../../components/XForm/ImageUpload';
13
-import logo from '../../../../../assets/logo.png';
14
-import touxiang from '../../../../../assets/touxiang.jpg';
15
 import poster1 from '../../../../../assets/poster1.png';
13
 import poster1 from '../../../../../assets/poster1.png';
16
 import poster2 from '../../../../../assets/poster2.png';
14
 import poster2 from '../../../../../assets/poster2.png';
15
+import Styles from '../style.less';
17
 
16
 
18
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
17
 const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
19
 const { TextArea } = Input;
18
 const { TextArea } = Input;
48
   }
47
   }
49
 
48
 
50
   const submitPoster = () => {
49
   const submitPoster = () => {
51
-     if (buildingId) {
50
+    if (buildingId) {
52
       if (posterId) {
51
       if (posterId) {
53
         request({
52
         request({
54
           url: `/api/admin/poster/${posterId}`,
53
           url: `/api/admin/poster/${posterId}`,
59
         }).catch(err => {
58
         }).catch(err => {
60
           message.info(err.msg || err.message)
59
           message.info(err.msg || err.message)
61
         })
60
         })
62
-       } else {
61
+      } else {
63
         request({
62
         request({
64
           url: '/api/admin/poster',
63
           url: '/api/admin/poster',
65
           method: 'POST',
64
           method: 'POST',
70
         }).catch(err => {
69
         }).catch(err => {
71
           message.info(err.msg || err.message)
70
           message.info(err.msg || err.message)
72
         })
71
         })
73
-       }
74
-     } else {
72
+      }
73
+    } else {
75
       message.warn('请先保存基本信息数据')
74
       message.warn('请先保存基本信息数据')
76
-     }
75
+    }
77
   }
76
   }
78
 
77
 
79
   return <div>
78
   return <div>
81
       <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
80
       <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
82
         <div style={{ width: '375px', height: '785px', backgroundColor: '#fff', boxShadow: '0px 0px 16px 6px rgba(0,0,0,0.15)', position: 'relative', margin: '0 auto' }}>
81
         <div style={{ width: '375px', height: '785px', backgroundColor: '#fff', boxShadow: '0px 0px 16px 6px rgba(0,0,0,0.15)', position: 'relative', margin: '0 auto' }}>
83
           <img style={{ width: '100%', height: '300px' }} src={imgValue || poster1} alt="" />
82
           <img style={{ width: '100%', height: '300px' }} src={imgValue || poster1} alt="" />
84
-          <div style={{ display: 'flex', alignItems: 'center', marginTop: '-24px' }}>
85
-            <img style={{ width: '70px', height: '70px', border: '4px solid #fff', borderRadius: '35px', marginLeft: '16px' }} src={touxiang} alt="" />
86
-            <span style={{ color: '#222', fontWeight: '600', margin: '24px 10px 0 14px', fontSize: '17px' }}>喵喵</span>
87
-            <span style={{ color: '#999', marginTop: '25px', fontSize: '17px' }}>邀您阅读</span>
88
-            <span style={{ color: '#999', margin: '25px 0 0 60px', fontSize: '17px' }}>2019.09.21</span>
89
-          </div>
83
+
84
+          <p className={Styles.tagLabel}><span>全朝南</span><span>品牌开发商</span><span>轨交房</span></p>
90
           <p style={{
85
           <p style={{
91
             margin: '10px 20px', fontSize: '20px', color: '#222', fontWeight: '600',
86
             margin: '10px 20px', fontSize: '20px', color: '#222', fontWeight: '600',
92
-            display: '-webkit-box', lineClamp: '3', height: '60px',
93
-            WebkitLineClamp: '2',
87
+            display: '-webkit-box', lineClamp: '3', height: '36px',lineHeight:'36px',
88
+            WebkitLineClamp: '1',
94
             WebkitBoxOrient: 'vertical',
89
             WebkitBoxOrient: 'vertical',
95
             overflow: 'hidden',
90
             overflow: 'hidden',
96
             textOverflow: 'ellipsis',
91
             textOverflow: 'ellipsis',
97
           }}>{inputValue || '海报标题'}</p>
92
           }}>{inputValue || '海报标题'}</p>
93
+          <p style={{ color: '#999',padding:' 0 20px' }}>约<span style={{ color: '#fd0d0c', fontSize: '24px',marginLeft:'6px' }}>41505</span><span style={{ color: '#fd0d0c', fontSize: '20px' }}>元/m²</span></p>
98
 
94
 
99
-          <img src={yinhao} style={{ width: '30px', marginLeft: '10px' }} alt="" />
95
+          <img src={yinhao} style={{ width: '30px', marginLeft: '22px' }} alt="" />
100
           <p style={{
96
           <p style={{
101
             margin: '16px 20px 28px 20px', fontSize: '17px', color: '#999',
97
             margin: '16px 20px 28px 20px', fontSize: '17px', color: '#999',
102
             display: '-webkit-box', lineClamp: '3', height: '76px',
98
             display: '-webkit-box', lineClamp: '3', height: '76px',
109
         </div>
105
         </div>
110
         <p style={{ textAlign: 'center', fontSize: '19px', color: '#666', marginTop: '30px' }}>海报模板</p>
106
         <p style={{ textAlign: 'center', fontSize: '19px', color: '#666', marginTop: '30px' }}>海报模板</p>
111
       </div>
107
       </div>
112
-
113
       <div >
108
       <div >
114
         <div style={{ display: 'flex', width: '100%', margin: '60px 0' }}>
109
         <div style={{ display: 'flex', width: '100%', margin: '60px 0' }}>
115
           <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报图片</p>
110
           <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报图片</p>

+ 20
- 0
src/pages/building/list/add/style.less 查看文件

1
+.tagLabel{
2
+  padding: 14px 20px 0 20px;
3
+  margin: 0 0 5px 0;
4
+  span{
5
+    padding: 2px 8px;
6
+    font-size: 10px;
7
+    background-color: #e1f7eb;
8
+    color: #3de180;
9
+    border-radius: 2px;
10
+    margin-right: 10px;
11
+  }
12
+  span:nth-child(3n+2){
13
+    color: #72a0d1;
14
+    background-color: #eaeff5;
15
+  }
16
+  span:nth-child(3n+3){
17
+    color: #ff5858;
18
+    background-color: #fff0f1;
19
+  }
20
+}