wangfei před 6 roky
rodič
revize
0ed57d1f3a

+ 7
- 2
pages/EstateDetail/index.wxml Zobrazit soubor

@@ -20,7 +20,7 @@
20 20
         <view class="centerLabel">
21 21
           <view class="flex-h">
22 22
             <text class="name flex-item">{{EstateDetail.buildingName}}</text>
23
-            <text class="price">别名:{{EstateDetail.name || ''}}</text>
23
+            <text class="price" wx:if="{{EstateDetail.name}}">别名:{{EstateDetail.name || ''}}</text>
24 24
           </view>
25 25
           <text>均价:{{EstateDetail.price}}</text>
26 26
         </view>
@@ -177,7 +177,12 @@
177 177
       <block wx:for="{{CurrentImgList}}" wx:for-item="item" wx:for-index="index" wx:key="key">
178 178
         <swiper-item>
179 179
           <view class="swiper-item">
180
-            <image mode="aspectFit" src="{{item.url}}" class="centerLabel contain" bindtap="CloseMaxSwiper"></image>
180
+            <movable-area class="centerLabel contain" bindtap="CloseMaxSwiper">
181
+              <movable-view scale="{{true}}" scale-min="1" scale-max="2" style='width:100%;height:100%' direction="all">
182
+                <image mode="aspectFit" class="centerLabel contain" src="{{item.url}}"></image>
183
+              </movable-view>
184
+            </movable-area>
185
+            <!-- <image mode="aspectFit" src="{{item.url}}" class="centerLabel contain" bindtap="CloseMaxSwiper"></image> -->
181 186
           </view>
182 187
         </swiper-item>
183 188
       </block>

+ 5
- 0
pages/MyCollectEstateList/index.js Zobrazit soubor

@@ -138,5 +138,10 @@ create(store, {
138 138
   },
139 139
   onShareAppMessage: function () {
140 140
     return app.globalData.ShareDate
141
+  },
142
+  toBuilding(e) {
143
+    wx.navigateTo({
144
+      url: '/pages/EstateDetail/index?id=' + e.currentTarget.dataset.id
145
+    })
141 146
   }
142 147
 })

+ 9
- 10
pages/MyCollectEstateList/index.wxml Zobrazit soubor

@@ -5,26 +5,25 @@
5 5
       <text>暂无数据</text>
6 6
     </view>
7 7
     <view class="list">
8
-      <view class="flex-h" wx:for="{{list}}" wx:for-item="item" wx:key="item.buildingId">
8
+      <view class="flex-h" wx:for="{{list}}" wx:for-item="item" wx:key="item.buildingId" data-id='{{item.buildingId}}' bindtap='toBuilding'>
9 9
 
10 10
         <!-- 左侧图片 -->
11
-        <view class="img">
12
-          <image mode="aspectFill" src="{{item.buildingImg[0].url}}" class="centerLabel cover"></image>
11
+        <view class="img" data-id='{{item.buildingId}}'>
12
+          <image mode="aspectFill" data-id='{{item.buildingId}}' src="{{item.buildingImg[0].url}}" class="centerLabel cover"></image>
13 13
         </view>
14 14
 
15 15
         <!-- 右侧内容 -->
16
-        <view class="flex-item">
17
-          <view>
16
+        <view data-id='{{item.buildingId}}' class="flex-item" data-id='{{item.buildingId}}'>
17
+          <view data-id='{{item.buildingId}}'>
18 18
             <view class="delete">
19 19
               <image mode="widthFix" src="/assets/images/icon28.png" bindtap="DeleteItem" data-index="{{item.buildingId}}"></image>
20 20
             </view>
21
-            <text class="name">{{item.buildingName}}</text>
22
-            <text>{{item.address}}</text>
23
-            <text>距您{{item.distance}}km</text>
24
-            <text class="price">均价:<text>{{item.price}}</text></text>
21
+            <text data-id='{{item.buildingId}}' class="name">{{item.buildingName}}</text>
22
+            <text data-id='{{item.buildingId}}'>{{item.address}}</text>
23
+            <text data-id='{{item.buildingId}}'>距您{{item.distance}}km</text>
24
+            <text data-id='{{item.buildingId}}' class="price">均价:<text>{{item.price}}</text></text>
25 25
           </view>
26 26
         </view>
27
-
28 27
       </view>
29 28
     </view>
30 29
     <text class="noMore" wx:if="{{!IsNull}}">{{list.length < Total ? '正在加载更多...' : '已加载全部'}}</text>

+ 6
- 4
pages/MyCollectEstateList/index.wxss Zobrazit soubor

@@ -21,8 +21,8 @@
21 21
 }
22 22
 
23 23
 .img {
24
-  width: 140rpx;
25
-  height: 186rpx;
24
+  width: 260rpx;
25
+  height: 146rpx;
26 26
   position: relative;
27 27
   overflow: hidden;
28 28
   background: #eee;
@@ -38,7 +38,7 @@
38 38
   position: relative;
39 39
   overflow: hidden;
40 40
   text-align: right;
41
-  margin-top: -10rpx;
41
+  margin-top:-10px;
42 42
 }
43 43
 
44 44
 .list .delete image {
@@ -62,7 +62,9 @@
62 62
 }
63 63
 
64 64
 .list text.name{
65
-  font-size: 32rpx;
65
+  font-size: 24rpx;
66
+  color: #000;
67
+  margin-top: -20px;
66 68
 }
67 69
 
68 70
 .list text.price text {

+ 1
- 1
pages/MyWelfare/index.js Zobrazit soubor

@@ -53,7 +53,7 @@ create(store, {
53 53
         let list = res.data.records || []
54 54
         let aArr = this.data.list || []
55 55
         list.map((item) => {
56
-          aArr.push(item)
56
+          aArr.push({ ...item, activityDate: item.activityDate.split(' ')[0]})
57 57
         })
58 58
         this.setData({
59 59
           list: aArr,

+ 1
- 1
pages/MyWelfare/index.wxml Zobrazit soubor

@@ -17,7 +17,7 @@
17 17
           <view>
18 18
             <text class="name">{{item.title}}</text>
19 19
             <text>{{item.desc}}</text>
20
-            <text class="price">活动时间:<text>{{item.activityDate || ''}}</text></text>
20
+            <text class="price">活动时间:<text>{{(item.activityDate || '')}}</text></text>
21 21
           </view>
22 22
         </view>
23 23
 

+ 2
- 2
pages/MyWelfare/index.wxss Zobrazit soubor

@@ -21,8 +21,8 @@
21 21
 }
22 22
 
23 23
 .img {
24
-  width: 140rpx;
25
-  height: 186rpx;
24
+  width: 260rpx;
25
+  height: 146rpx;
26 26
   position: relative;
27 27
   overflow: hidden;
28 28
   background: #eee;

+ 5
- 7
pages/components/Estate/index.wxml Zobrazit soubor

@@ -3,7 +3,7 @@
3 3
   <view class="map">
4 4
     <movable-area style="height: 100%; width: 100%; background: #eee;position:absolute;left:0;top:0;">
5 5
       <movable-view scale="{{true}}" scale-min="1.3" scale-max="2.5" x="{{x}}" y="{{y}}" direction="all">
6
-        <image mode="aspectFill" src="https://whole-estate.oss-cn-beijing.aliyuncs.com/img4-new-2.jpg" class="centerLabel cover bg"></image>
6
+        <image mode="aspectFill" src="https://whole-estate.oss-cn-beijing.aliyuncs.com/img4-new-3.jpg" class="centerLabel cover bg"></image>
7 7
       </movable-view>
8 8
     </movable-area>
9 9
     <!-- <image mode="widthFix" src="/assets/images/img4.jpg" class="centerLabel cover bg"></image>
@@ -18,15 +18,13 @@
18 18
         <view class="estateDetail">
19 19
           <text class="name">{{item.buildingName}}</text>
20 20
           <view class="address">
21
-            <image mode="widthFix" src="/assets/images/icon41.png" style="width: 12rpx;"></image>{{item.address}} 距您{{item.distance}}km
21
+            <image mode="widthFix" src="/assets/images/icon41.png" style="width: 12rpx;"></image>{{item.address}}
22
+          </view>
23
+          <view class="distance">
24
+            距您{{item.distance}}km
22 25
           </view>
23 26
           <view class="price">均价:<text>{{item.price}}</text></view>
24 27
         </view>
25
-        <!-- <view class="address flex-h">
26
-          <image mode="widthFix" src="/assets/images/icon41.png"></image>
27
-          <text class="flex-item">{{item.address}} 距您{{item.distance}}km</text>
28
-        </view>
29
-        <text class="price">均价:{{item.price}}</text> -->
30 28
       </view>
31 29
     </view>
32 30
   </view>

+ 9
- 2
pages/components/Estate/index.wxss Zobrazit soubor

@@ -35,7 +35,7 @@
35 35
   width: 100%;
36 36
   position: relative;
37 37
   overflow: hidden;
38
-  padding: 25rpx 0 25rpx 0;
38
+  padding: 60rpx 0 25rpx 0;
39 39
 }
40 40
 
41 41
 .EstateList > text {
@@ -78,7 +78,7 @@
78 78
 .EstateList .list > view {
79 79
   display: inline-block;
80 80
   width: 380rpx;
81
-  height: 390rpx;
81
+  height: 430rpx;
82 82
   position: relative;
83 83
   overflow: hidden;
84 84
   border-radius: 10rpx;
@@ -134,6 +134,13 @@
134 134
   vertical-align: middle;
135 135
 }
136 136
 
137
+.EstateList .estateDetail .distance{
138
+  color: #666666;
139
+  font-size: 22rpx;
140
+  line-height: 36rpx;
141
+  margin-left: 22rpx;
142
+}
143
+
137 144
 .EstateList .estateDetail .address text {
138 145
   color: #666666;
139 146
   font-size: 22rpx;

+ 1
- 0
pages/components/SubIndex/index.js Zobrazit soubor

@@ -58,6 +58,7 @@ Component({
58 58
       }
59 59
     })
60 60
   },
61
+  
61 62
   pageLifetimes: {
62 63
     show: function() {},
63 64
   },

+ 15
- 0
pages/components/SubIndex/index.wxss Zobrazit soubor

@@ -265,6 +265,21 @@
265 265
 .roomList .info > view {
266 266
   align-items: center;
267 267
 }
268
+/* 
269
+.roomList .info > view .marquee{
270
+  animation: geiwogun 2s linear infinite;
271
+	white-space: nowrap;
272
+}
273
+
274
+@keyframes geiwogun {
275
+from {
276
+  transform: translate(0, 0);
277
+}
278
+to {
279
+  transform: translate(-50%, 0);
280
+}
281
+}
282
+ */
268 283
 
269 284
 .roomList .info > view:nth-child(1) > text:nth-child(1) {
270 285
   line-height: 52rpx;