Browse Source

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

傅行帆 5 years ago
parent
commit
374d7bb84c

+ 5
- 2
src/pages/building/list/add/components/base.jsx View File

360
               rules: [{ required: true, message: '请选择销售状态' }],
360
               rules: [{ required: true, message: '请选择销售状态' }],
361
             })(
361
             })(
362
               <Select placeholder="销售状态" style={{ width: '1016px' }}>
362
               <Select placeholder="销售状态" style={{ width: '1016px' }}>
363
-                <Option value="待定">待定</Option>
363
+                {/* <Option value="待定">待定</Option>
364
                 <Option value="在售">在售</Option>
364
                 <Option value="在售">在售</Option>
365
-                <Option value="售完">售完</Option>
365
+                <Option value="售完">售完</Option> */}
366
+                <Option value="待售">待售</Option>
367
+                <Option value="在售">在售</Option>
368
+                <Option value="售罄">售罄</Option>
366
               </Select>,
369
               </Select>,
367
             )}
370
             )}
368
           </Form.Item>
371
           </Form.Item>

+ 7
- 4
src/pages/building/list/index.jsx View File

96
       },
96
       },
97
     });
97
     });
98
   }
98
   }
99
-
99
+// src={((data.buildingImg && data.buildingImg[0]) || {}).url}background: `url(${item.caseCoverImg})` style={{ background: `url(((data.buildingImg && data.buildingImg[0]) || {}).url)` }}
100
   const { buildingImg } = data
100
   const { buildingImg } = data
101
-  console.log("buildingImg: ", data.buildingImg, "data: ", data)
101
+  console.log("buildingImg: ", data.buildingImg, "data: ")
102
   return (
102
   return (
103
     <Card
103
     <Card
104
       hoverable
104
       hoverable
105
       style={{ minWidth: '330px', borderRadius: '12px', margin: '10px', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)' }}
105
       style={{ minWidth: '330px', borderRadius: '12px', margin: '10px', boxShadow: '0px 0px 16px 2px rgba(0,0,0,0.12)' }}
106
-      cover={<img alt="example" src={((data.buildingImg && data.buildingImg[0]) || {}).url} style={{ borderRadius: '12px 12px 0 0', width: '100%', height: '14vw' }}></img>}
107
-      bodyStyle={{ padding: '10px 20px' }}
106
+      // cover={}
107
+      // bodyStyle={{ padding: '10px 20px' }}
108
     >
108
     >
109
+    <img className={Styles.cover} style={{ background: `url(${((data.buildingImg && data.buildingImg[0]) || {}).url})` }}   ></img>
110
+    <div style={{ padding: '10px 20px' }}>
109
       <p className={Styles.cardText}>
111
       <p className={Styles.cardText}>
110
         <span className={Styles.title}>楼盘编号</span>
112
         <span className={Styles.title}>楼盘编号</span>
111
         <span >:{data.code}</span>
113
         <span >:{data.code}</span>
155
         </span>
157
         </span>
156
       </AuthButton>
158
       </AuthButton>
157
       </p>
159
       </p>
160
+      </div>
158
     </Card>
161
     </Card>
159
   )
162
   )
160
 }
163
 }

+ 9
- 0
src/pages/building/list/style.less View File

56
   white-space: nowrap;
56
   white-space: nowrap;
57
   overflow: hidden;
57
   overflow: hidden;
58
 }
58
 }
59
+.cover{
60
+  width: 100%;
59
 
61
 
62
+  padding-bottom: 56.25%;
63
+  background-size: 100% 100% !important;
64
+ 
65
+  border-radius: 12px 12px 0 0;
66
+  
67
+    // height: '14vw';
68
+}

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

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 View File

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>