zjxpcyc 6 years ago
parent
commit
e0daae36ea

+ 11
- 0
README.md View File

1
+# 全楼盘小程序
2
+
3
+## 小程序中将less编译成wxss
4
+```bash
5
+npm install -g wxss-cli
6
+```
7
+
8
+```bash
9
+// minicode 为小程序开发根目录
10
+wxss ./minicode
11
+```

+ 1
- 1
pages/components/RoomCard/index.less View File

40
     }
40
     }
41
 
41
 
42
     .price {
42
     .price {
43
-      font-size: 46rpx;
43
+      font-size: 40rpx;
44
       color: #FF2B00;
44
       color: #FF2B00;
45
     }
45
     }
46
 
46
 

+ 1
- 1
pages/components/RoomCard/index.wxss View File

34
   flex: auto;
34
   flex: auto;
35
 }
35
 }
36
 .room-card .body .price {
36
 .room-card .body .price {
37
-  font-size: 46rpx;
37
+  font-size: 40rpx;
38
   color: #FF2B00;
38
   color: #FF2B00;
39
 }
39
 }
40
 .room-card .body .persons {
40
 .room-card .body .persons {

+ 1
- 2
pages/components/SubIndex/index.js View File

82
         const records = buildings.data.map(x => {
82
         const records = buildings.data.map(x => {
83
           const distance = parseInt(this.GetGreatCircleDistance(latitude, longitude, x.coordinate.split(',')[0], x.coordinate.split(',')[1] || longitude))
83
           const distance = parseInt(this.GetGreatCircleDistance(latitude, longitude, x.coordinate.split(',')[0], x.coordinate.split(',')[1] || longitude))
84
           
84
           
85
-          const m = /\d+/.exec(x.price)
86
-          const p = m ? `${m[0]}起`: x.price
85
+          const p = x.price.replace('元/㎡', '').trim()
87
           
86
           
88
           return {
87
           return {
89
             ...x,
88
             ...x,