Browse Source

Merge branch 'master' of http://git.ycjcjy.com/whole-estate/wxmini

wangfei 6 years ago
parent
commit
ab89be2d87

+ 12
- 2
pages/components/SubIndex/index.wxml View File

78
   <view class="mapList">
78
   <view class="mapList">
79
     <view class="flex-h">
79
     <view class="flex-h">
80
       <view class="flex-item">
80
       <view class="flex-item">
81
-        <text>银城颐居悦见山</text>
82
-        <text>均价:<text>¥18000</text>元/m²</text>
81
+        <!-- <text>银城颐居悦见山</text>
82
+        <text>均价:<text>¥18000</text>元/m²</text> -->
83
+        <swiper autoplay="{{true}}" style="height: 100rpx;" vertical="{{true}}">
84
+          <block wx:for="{{['','','']}}" wx:for-item="item" wx:for-index="index" wx:key="key">
85
+            <swiper-item>
86
+              <view class="swiper-item">
87
+                <text>银城颐居悦见山</text>
88
+                <text>均价:<text>¥18000</text>元/m²</text>
89
+              </view>
90
+            </swiper-item>
91
+          </block>
92
+        </swiper>
83
       </view>
93
       </view>
84
       <view>
94
       <view>
85
         <image mode="widthFix" src="/assets/images/icon7.png"></image>
95
         <image mode="widthFix" src="/assets/images/icon7.png"></image>

+ 5
- 4
pages/components/SubIndex/index.wxss View File

112
   background: #eee;
112
   background: #eee;
113
 }
113
 }
114
 
114
 
115
-.mapList > view > view.flex-item > text {
115
+.mapList > view > view.flex-item text {
116
   width: 100%;
116
   width: 100%;
117
   display: block;
117
   display: block;
118
   white-space: nowrap;
118
   white-space: nowrap;
119
 }
119
 }
120
 
120
 
121
-.mapList > view > view.flex-item > text:nth-child(1) {
121
+.mapList > view > view.flex-item text:nth-child(1) {
122
   font-size: 32rpx;
122
   font-size: 32rpx;
123
   line-height: 52rpx;
123
   line-height: 52rpx;
124
   font-weight: bold;
124
   font-weight: bold;
125
 }
125
 }
126
 
126
 
127
-.mapList > view > view.flex-item > text:nth-child(2) {
127
+.mapList > view > view.flex-item text:nth-child(2) {
128
   font-size: 22rpx;
128
   font-size: 22rpx;
129
   line-height: 46rpx;
129
   line-height: 46rpx;
130
 }
130
 }
131
 
131
 
132
-.mapList > view > view.flex-item > text text {
132
+.mapList > view > view.flex-item text text {
133
   font-size: 26rpx;
133
   font-size: 26rpx;
134
   font-weight: bold;
134
   font-weight: bold;
135
   color: #e23838;
135
   color: #e23838;
136
+  display: inline-block;
136
 }
137
 }
137
 
138
 
138
 .mapList > view > view:nth-child(2) {
139
 .mapList > view > view:nth-child(2) {

+ 1
- 1
pages/index/index.js View File

10
     })
10
     })
11
   },
11
   },
12
   data: {
12
   data: {
13
-    ShowLayer: true,
13
+    ShowLayer: false,
14
     NavList: [{ // navlist数据
14
     NavList: [{ // navlist数据
15
       value: '首页',
15
       value: '首页',
16
       icon: '/assets/images/icon1.png'
16
       icon: '/assets/images/icon1.png'

+ 7
- 4
pages/index/index.wxss View File

83
 
83
 
84
 .layer > view {
84
 .layer > view {
85
   width: 65%;
85
   width: 65%;
86
-  padding: 10rpx 0;
87
   background: #fff;
86
   background: #fff;
88
   border-radius: 20rpx;
87
   border-radius: 20rpx;
89
   box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, 0.05);
88
   box-shadow: 0 0 20rpx 10rpx rgba(0, 0, 0, 0.05);
90
 }
89
 }
91
 
90
 
92
 .layer .top {
91
 .layer .top {
92
+  width: 100%;
93
   text-align: right;
93
   text-align: right;
94
-  position: relative;
94
+  position: absolute;
95
+  left: 0;
96
+  top: 10rpx;
95
   overflow: hidden;
97
   overflow: hidden;
98
+  z-index: 1002;
96
 }
99
 }
97
 
100
 
98
 .layer .top image {
101
 .layer .top image {
103
 }
106
 }
104
 
107
 
105
 .layer .content {
108
 .layer .content {
106
-  padding: 0 20rpx;
107
   position: relative;
109
   position: relative;
108
   overflow: hidden;
110
   overflow: hidden;
109
-  margin: 10rpx auto 0;
111
+  margin: 0 auto;
112
+  z-index: 1001;
110
 }
113
 }