dingxin 6 vuotta sitten
vanhempi
commit
7273775136

+ 15
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TpRentalHouseServicelImpl.java Näytä tiedosto

@@ -43,7 +43,11 @@ public class TpRentalHouseServicelImpl implements TpRentalHouseServicel {
43 43
             String houseLabel= tpRentalHouse.getHouseLabel();
44 44
             String houseLabelarr= houseLabel.replace(",", ",");
45 45
             String [] result = houseLabelarr.split(",");
46
-            tpRentalHouse.setHouseLabelArr(Arrays.asList(result));
46
+            if (result[0].equals("")){
47
+                tpRentalHouse.setHouseLabelArr(null);
48
+            }else {
49
+                tpRentalHouse.setHouseLabelArr(Arrays.asList(result));
50
+            }
47 51
             // 根据 tpRentalHouse.getId()和img_type为2查询列表图
48 52
             List<TpRentalHouseImg> tpRentalHouseImgList= tpRentalHouseImgMapper.selectRentalHouseImg(tpRentalHouse.getId(),1);
49 53
              if (null != tpRentalHouseImgList){
@@ -71,6 +75,16 @@ public class TpRentalHouseServicelImpl implements TpRentalHouseServicel {
71 75
                     img.add(tpRentalHouseImg.getImgUrl());
72 76
                 }
73 77
             }
78
+            String houseLabel= tpRentalHouse.getHouseLabel();
79
+            String houseLabelarr= houseLabel.replace(",", ",");
80
+            String [] result = houseLabelarr.split(",");
81
+            if (result[0].equals("")){
82
+                tpRentalHouse.setHouseLabelArr(null);
83
+            }else {
84
+                tpRentalHouse.setHouseLabelArr(Arrays.asList(result));
85
+            }
86
+
87
+
74 88
             map.put("tpRentalHouse",tpRentalHouse);
75 89
             map.put("bannerImg",img);
76 90
             response.addSuccess(map);

+ 9
- 5
VUECODE/smart-property-manage/src/views/grogshop/configindex.vue Näytä tiedosto

@@ -3,7 +3,7 @@
3 3
     <el-form ref="ruleForm" :model="listData" :rules="rules" label-width="150px" class="add-ruleForm">
4 4
      
5 5
       <el-form-item class="filter-item" label="酒店开关">
6
-        <span  style="font-size:9%;color:#C0C0C0">关闭后业主在APP端将看不到酒店相关的页面</span>
6
+        <span  style="font-size:0.7vw;color:#C0C0C0">关闭后业主在APP端将看不到酒店相关的页面</span>
7 7
         <el-switch style="padding-left:25%"
8 8
           v-model="listData.hotelSettingValue"
9 9
           active-color="#13ce66"
@@ -11,7 +11,7 @@
11 11
         </el-switch>
12 12
       </el-form-item>
13 13
       <el-form-item label="酒店首页图" prop="appIndexImg">
14
-        <span  style="font-size:9%;color:#C0C0C0"> APP端首页显示酒店栏的背景图,如果有文案需求可以用PS在图上添加文字等信息</span>
14
+        <span  style="font-size:0.7vw;color:#C0C0C0"> APP端首页显示酒店栏的背景图,如果有文案需求可以用PS在图上添加文字等信息</span>
15 15
         <el-upload
16 16
           class="avatar-uploader"
17 17
           name="uploadFiles"
@@ -39,18 +39,22 @@
39 39
           <img width="100%" :src="dialogImageUrl" alt="">
40 40
         </el-dialog>
41 41
       </el-form-item>
42
-      <el-form-item label="酒店名称" prop="hotelName">
42
+      <!-- <el-form-item label="酒店名称">
43 43
         <el-input v-model="listData.hotelName"/>
44
-      </el-form-item>
44
+      </el-form-item> -->
45 45
       <el-form-item label="联系电话" prop="hotelTel">
46 46
         <el-input v-model="listData.hotelTel"/>
47 47
       </el-form-item>
48 48
       <el-form-item label="酒店地址" prop="hotelAddress">
49 49
         <el-input v-model="listData.hotelAddress"/>
50 50
       </el-form-item>
51
-      <el-form-item label="高德坐标">
51
+      <el-form-item label="地图定位">
52
+        <span  style="font-size:0.7vw;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
53
+        <div>
54
+        <span>高德坐标</span>
52 55
         <el-input placeholder="经度" v-model="listData.hotelLongitude" style="width: 150px;" />
53 56
         <el-input placeholder="纬度" v-model="listData.hotelLatitude" style="width: 150px;" />
57
+        </div>
54 58
       </el-form-item>
55 59
       <el-form-item label="">
56 60
          <!-- 地图 -->

+ 1
- 1
VUECODE/smart-property-manage/src/views/grogshop/grogshopRoom.vue Näytä tiedosto

@@ -39,7 +39,7 @@
39 39
       <el-button type="info" @click="addHotelEndit()">编辑</el-button>
40 40
        <el-button type="primary" @click="enditRoom(1)">上架房型</el-button>
41 41
       <el-button type="danger" @click="enditRoom(2)">下架房型</el-button>
42
-      <span style="padding-left:20%;font-size:9%;color:#C0C0C0;">注:权重越大,APP端展示越靠前(权重相同时按编辑时间从晚到早排序)</span>
42
+      <span style="padding-left:20%;font-size:0.7vw;color:#C0C0C0;">注:权重越大,APP端展示越靠前(权重相同时按编辑时间从晚到早排序)</span>
43 43
       </el-row>
44 44
     </el-form>
45 45
       <el-table

+ 14
- 6
VUECODE/smart-property-manage/src/views/rental/rentalAdd.vue Näytä tiedosto

@@ -6,7 +6,7 @@
6 6
       </el-form-item>
7 7
       <el-form-item label="房间租金" prop="rentalPrice">
8 8
         <el-input v-model="listData.rentalPrice" onkeyup="this.value=this.value.replace(/\D/g,'')"  placeholder="房间租金"/>
9
-        <span style="font-size:9%;color:#C0C0C0">季租,年租优惠可以写在房间介绍中</span>
9
+        <span style="font-size:0.7vw;color:#C0C0C0">季租,年租优惠可以写在房间介绍中</span>
10 10
       </el-form-item>
11 11
       <el-form-item label="面积" prop="area">
12 12
         <el-input v-model="listData.area" onkeyup="this.value=this.value.replace(/\D/g,'')" placeholder="面积"/>
@@ -91,10 +91,13 @@
91 91
         <el-checkbox v-model="listData.bathroom" true-label="1" false-label="0">独卫</el-checkbox>
92 92
         <el-checkbox v-model="listData.balcony" true-label="1" false-label="0">阳台</el-checkbox>
93 93
       </el-form-item>
94
-      <el-form-item label="高德坐标" prop="communityLatitude">
94
+      <el-form-item label="地图定位" prop="communityLatitude">
95
+        <span  style="font-size:0.7vw;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
96
+        <div>
97
+        <span>高德坐标</span>
95 98
         <el-input placeholder="经度" v-model="listData.communityLongitude" style="width: 150px;" />
96 99
         <el-input placeholder="纬度" v-model="listData.communityLatitude" style="width: 150px;" />
97
-        <span  style="font-size:9%;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
100
+        </div>
98 101
       </el-form-item>
99 102
       <el-form-item label="">
100 103
          <!-- 地图 -->
@@ -183,9 +186,9 @@ export default {
183 186
         houseName: [
184 187
           { required: true, message: '请输入房间名称', trigger: 'blur' }
185 188
         ],
186
-        rentalPrice: [
187
-          { required: true, message: '请输入房间租金', trigger: 'blur' }
188
-        ],
189
+        // rentalPrice: [
190
+        //   { required: true, message: '请输入房间租金', trigger: 'change' }
191
+        // ],
189 192
         houseTel: [
190 193
           { required: true, message: '请输入联系电话', trigger: 'blur' }
191 194
         ],
@@ -291,6 +294,11 @@ export default {
291 294
         spinner: 'el-icon-loading',
292 295
         background: 'rgba(0, 0, 0, 0.7)'
293 296
       })
297
+      if(this.listData.appCarouselImg == 0){
298
+         this.$message.error("轮播图不能为空")
299
+        loading.close()
300
+        return
301
+      }
294 302
       this.$store.dispatch('rental/AddRental', this.listData).then((res) => {
295 303
         if (res.code === '0') {
296 304
           this.$message({

+ 15
- 8
VUECODE/smart-property-manage/src/views/rental/rentalEdit.vue Näytä tiedosto

@@ -4,9 +4,9 @@
4 4
       <el-form-item label="房间名称" prop="houseName">
5 5
         <el-input v-model="listData.houseName" placeholder="房间名称"/>
6 6
       </el-form-item>
7
-      <el-form-item label="房间租金" prop="rentalPrice">
7
+      <el-form-item label="房间租金">
8 8
         <el-input v-model="listData.rentalPrice" onkeyup="this.value=this.value.replace(/\D/g,'')" placeholder="房间租金"/>
9
-        <span style="font-size:9%;color:#C0C0C0">季租,年租优惠可以写在房间介绍中</span>
9
+        <span style="font-size:0.7vw;color:#C0C0C0">季租,年租优惠可以写在房间介绍中</span>
10 10
       </el-form-item>
11 11
       <el-form-item label="面积" prop="area">
12 12
         <el-input v-model="listData.area" onkeyup="this.value=this.value.replace(/\D/g,'')" placeholder="面积"/>
@@ -37,7 +37,7 @@
37 37
             <el-option label="合租" value="2"/>
38 38
           </el-select>
39 39
       </el-form-item>
40
-      <el-form-item label="轮播图(最多六张)" prop="appCarouselImg">
40
+      <el-form-item label="轮播图(最多六张)">
41 41
         <el-upload
42 42
           name="uploadFiles"
43 43
           :limit="6"
@@ -92,10 +92,13 @@
92 92
         <el-checkbox v-model="listData.bathroom" true-label="1" false-label="0">独卫</el-checkbox>
93 93
         <el-checkbox v-model="listData.balcony" true-label="1" false-label="0">阳台</el-checkbox>
94 94
       </el-form-item>
95
-      <el-form-item label="高德坐标" prop="communityLatitude">
95
+      <el-form-item label="地图定位" prop="communityLatitude">
96
+        <span  style="font-size:0.7vw;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
97
+        <div>
98
+        <span>高德坐标</span>
96 99
         <el-input placeholder="经度" v-model="listData.communityLongitude" style="width: 150px;" />
97 100
         <el-input placeholder="纬度" v-model="listData.communityLatitude" style="width: 150px;" />
98
-        <span  style="font-size:9%;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
101
+        </div>
99 102
       </el-form-item>
100 103
       <el-form-item label="">
101 104
          <!-- 地图 -->
@@ -200,10 +203,10 @@ export default {
200 203
           { required: true, message: '请选择租赁方式', trigger: 'blur' }
201 204
         ],
202 205
         appListImg: [
203
-          { required: true, message: 'app列表展示图', trigger: 'blur' }
206
+          { required: true, message: 'app列表展示图', trigger: 'clear' }
204 207
         ],
205 208
         appCarouselImg: [
206
-          { required: true, message: '轮播图', trigger: 'blur' }
209
+          { required: true, message: '轮播图不能为空', trigger: 'blur' }
207 210
         ],
208 211
         communityAddress: [
209 212
           { required: true, message: '请选择小区地址', trigger: 'blur' }
@@ -298,7 +301,11 @@ export default {
298 301
       console.log(this.isRegistered)
299 302
       this.$refs[formName].resetFields()
300 303
     },
301
-    updateRental() {
304
+    updateRental() { 
305
+     if(this.listData.appCarouselImg.length == 0){
306
+       this.$message.error("app轮播图不能为空")
307
+       return
308
+     }
302 309
       // 加载框
303 310
       const loading = this.$loading({
304 311
         lock: true,

+ 1
- 1
VUECODE/smart-property-manage/src/views/rental/rentalIndex.vue Näytä tiedosto

@@ -44,7 +44,7 @@
44 44
       <el-button type="warning" @click="edit">修改</el-button>
45 45
       <el-button type="danger" @click="shelfRental">上架房间</el-button>
46 46
       <el-button type="danger" @click="obtainedRental">下架房间</el-button>
47
-      <span  style="font-size:9%;color:#C0C0C0;padding-left:25%">注:权重越大,APP端展示越靠前(权重相同时按编辑时间从晚到早排序)</span>
47
+      <span  style="font-size:0.7vw;color:#C0C0C0;padding-left:25%">注:权重越大,APP端展示越靠前(权重相同时按编辑时间从晚到早排序)</span>
48 48
     </div>
49 49
     <el-table
50 50
       v-loading="listLoading"

+ 6
- 3
VUECODE/smart-property-manage/src/views/shop/shopAdd.vue Näytä tiedosto

@@ -48,7 +48,7 @@
48 48
       </el-form-item>
49 49
       <el-form-item label="权重" prop="sort">
50 50
         <el-input v-model="listData.sort" onkeyup="this.value=this.value.replace(/\D/g,'')"/>
51
-        <span style="font-size:9%;color:#C0C0C0;">权重值越大,排序越靠前</span>
51
+        <span style="font-size:0.7vw;color:#C0C0C0;">权重值越大,排序越靠前</span>
52 52
       </el-form-item>
53 53
       <el-form-item label="商铺类型" prop="shopTypeId">
54 54
         <el-select v-model="listData.shopTypeId" placeholder="商铺类型" clearable class="filter-item">
@@ -71,10 +71,13 @@
71 71
       <el-form-item label="人均消费" prop="averagePrice">
72 72
         <el-input v-model="listData.averagePrice" onkeyup="this.value=this.value.replace(/\D/g,'')" placeholder="单位 元/人"/>
73 73
       </el-form-item>
74
-      <el-form-item label="高德坐标" prop="shopLatitude">
74
+      <el-form-item label="地图定位" prop="shopLatitude">
75
+        <span  style="font-size:0.7vw;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
76
+        <div>
77
+        <span>高德坐标</span>
75 78
         <el-input placeholder="经度" v-model="listData.shopLongitude" style="width: 150px;" />
76 79
         <el-input placeholder="纬度" v-model="listData.shopLatitude" style="width: 150px;" />
77
-        <span  style="font-size:9%;color:#C0C0C0">在地图上搜索选择酒店位置确定坐标值,供APP端用户导航</span>
80
+        </div>
78 81
       </el-form-item>
79 82
       <el-form-item label="">
80 83
          <!-- 地图 -->

+ 6
- 1
VUECODE/smart-property-manage/src/views/shop/shopEdit.vue Näytä tiedosto

@@ -162,7 +162,7 @@ export default {
162 162
           { required: true, message: 'app列表展示图', trigger: 'blur' }
163 163
         ],
164 164
         appCarouselImg: [
165
-          { required: true, message: 'app商铺轮播图', trigger: 'blur' }
165
+          { required: false, message: 'app商铺轮播图', trigger: 'blur' }
166 166
         ],
167 167
         shopName: [
168 168
           { required: true, message: '商铺名称', trigger: 'blur' }
@@ -282,6 +282,11 @@ export default {
282 282
         spinner: 'el-icon-loading',
283 283
         background: 'rgba(0, 0, 0, 0.7)'
284 284
       })
285
+      if(this.listData.appCarouselImg == 0){
286
+         this.$message.error("轮播图不能为空")
287
+        loading.close()
288
+        return
289
+      }
285 290
       this.$store.dispatch('shopType/UpdateShop', this.listData).then((res) => {
286 291
         if (res.code === '0') {
287 292
           this.$message({

+ 1
- 1
VUECODE/smart-property-manage/src/views/shop/shopIndex.vue Näytä tiedosto

@@ -29,7 +29,7 @@
29 29
       <el-button type="warning" @click="edit">修改</el-button>
30 30
       <el-button type="danger" @click="shelfShop">上架商铺</el-button>
31 31
       <el-button type="danger" @click="obtainedShop">下架商铺</el-button>
32
-      <span  style="font-size:9%;color:#C0C0C0;padding-left:25%">注:权重最大的4个上架且有首页展示图的商铺默认会显示在APP首页(权重相同时按编辑时间从晚到早排序)</span>
32
+      <span  style="font-size:0.7vw;color:#C0C0C0;padding-left:25%">注:权重最大的4个上架且有首页展示图的商铺默认会显示在APP首页(权重相同时按编辑时间从晚到早排序)</span>
33 33
     </div>
34 34
     <el-table
35 35
       v-loading="listLoading"

+ 2
- 2
VUECODE/smart-property-manage/src/views/shop/shopSetting.vue Näytä tiedosto

@@ -9,14 +9,14 @@
9 9
           inactive-color="#ff4949"
10 10
           @change="changeSetting">
11 11
         </el-switch>
12
-         <span  style="font-size:9%;color:#C0C0C0;">关闭后业主在APP端将看不到商铺相关的页面</span>
12
+         <span  style="font-size:0.7vw;color:#C0C0C0;">关闭后业主在APP端将看不到商铺相关的页面</span>
13 13
       </el-form-item>
14 14
     </el-form>
15 15
     <div class="button">
16 16
       <el-button type="primary" @click="add">添加</el-button>
17 17
       <el-button type="warning" @click="edit">修改</el-button>
18 18
       <el-button type="danger" @click="deleteShopType">删除</el-button>
19
-      <span  style="font-size:9%;color:#C0C0C0;padding-left:25%">索引顺序即显示时的先后顺序,不能相同,必须为大于0的整数,数字越小越靠前,如果有1则1号值排会在APP端第一位</span>
19
+      <span  style="font-size:0.7vw;color:#C0C0C0;padding-left:25%">索引顺序即显示时的先后顺序,不能相同,必须为大于0的整数,数字越小越靠前,如果有1则1号值排会在APP端第一位</span>
20 20
     </div>
21 21
     <el-table
22 22
       v-loading="listLoading"