Ver código fonte

feat:提交代码

jinx 4 anos atrás
pai
commit
971bb99433

+ 3 - 3
component/roomItem/roomItem.wxml

@@ -1,6 +1,6 @@
 <view class="tj_listItem" data-id="{{room.id}}" bindtap="gotoWV">
 				<view class="tj_listItemCover">
-					<image mode="aspectFill"
+					<image mode="aspectFill" class="coverImage"
 						src="{{room.appListPicUrl}}"></image>
 				</view>
 				<view class="tj_listItemMsg">
@@ -9,7 +9,7 @@
 					</p>
 					<view class="tj_listItemTip">
 						<view>
-							<text>{{room.address}}</text>
+							<text class="tj_listItemTipText">{{room.address}}</text>
 							<!-- <text> | </text> -->
 						</view>
 						<!-- <view>
@@ -25,7 +25,7 @@
 					<view class="tj_listItemTag">
 						<view class="tagVr">
 							<view class="tagItemIcon">
-								<image mode="heightFix" src="../../static/images/icon/vrIcon.png"></image>
+								<image class="tagItemIconImage" mode="heightFix" src="../../static/images/icon/vrIcon.png"></image>
 							</view>
 							<view class="tip">
 								房源

+ 3 - 3
component/roomItem/roomItem.wxss

@@ -16,7 +16,7 @@
   overflow: hidden;
 }
 
-.tj_listItem .tj_listItemCover image {
+.tj_listItem .tj_listItemCover .coverImage {
   width: 210rpx;
   height: 210rpx;
 }
@@ -45,7 +45,7 @@
   margin: 5rpx 0 ;
 }
 
-.tj_listItemMsg .tj_listItemTip text {
+.tj_listItemMsg .tj_listItemTip .tj_listItemTipText {
   font-size: 20rpx;
   color: #666;
   overflow: hidden; 
@@ -96,7 +96,7 @@
   justify-content: center;
 }
 
-.tj_listItemMsg .tj_listItemTag .tagVr .tagItemIcon image {
+.tj_listItemMsg .tj_listItemTag .tagVr .tagItemIcon .tagItemIconImage {
   width: 28rpx;
   height: 18rpx;
 }

+ 9 - 5
pages/index/index.js

@@ -211,11 +211,14 @@ Router({
       size: 3,
       name: '',
     }).then((res) => {
-      console.log(res)
+      // console.log(res)
       if (res.errno === 0) {
         if (res.data.data.length == 0) {
+          let mt = (type-0)+1
+
           this.setData({
-            middleEmptyLength: this.data.middleEmptyLength + 1
+            middleEmptyLength: this.data.middleEmptyLength + 1,
+            middleType:mt
           })
         }
         let value = `middleList.${type}`
@@ -254,19 +257,20 @@ Router({
 
 
   onReady: function () {
-    console.log(2)
 
   },
 
   onShow: function (options) {
-    console.log(3)
+    
 
     // 页面显示
     let city = app.globalData.city
     if (city != this.data.city) {
       this.setData({
         'city': app.globalData.city,
-        middleEmptyLength: 0
+        middleEmptyLength: 0,
+        hasData:true,
+        loading:false
       })
       this.getRoomList()
       for (let i = 0; i < this.data.middleTabList.length; i++) {

+ 1 - 1
pages/index/index.wxml

@@ -54,7 +54,7 @@
 		<view class="middleList" wx:for="{{middleTabList}}" wx:for-item="i" wx:if="{{middleType==i.type && middleList[i.type].length>0 }}">
 			<view class="middleList_item" bindtap="middle_gotoWV" data-id="{{j.id}}" wx:for="{{middleList[i.type]}}" wx:for-item="j">
 				<view class="middleList_cover">
-					<image mode="scaleToFill" src="{{j.appListPicUrl}}"></image>
+					<image mode="aspectFill" src="{{j.appListPicUrl}}"></image>
 				</view>
 				<text class="middleList_title">{{j.name}}</text>
 				{{item.type}}

+ 9 - 2
pages/index/index.wxss

@@ -188,7 +188,8 @@
   justify-content: flex-start;
   text-align: center;
 }
-.none{
+
+.none {
   border-bottom: 2rpx solid transparent;
 }
 
@@ -236,6 +237,7 @@
 
 .middleList_item {
   margin-right: 16rpx;
+  
 }
 
 .middleList_item:last-of-type {
@@ -255,12 +257,17 @@
 }
 
 .middleList_item .middleList_title {
+  display: block;
+  margin: 0 auto;
   font-size: 28rpx;
   color: #333;
-  width: 100%;
+  width: 200rpx;
   display: block;
   text-align: center;
   margin-top: 10rpx;
+  overflow: hidden;
+  text-overflow: ellipsis;
+ white-space: nowrap;
 }
 
 .tj_content {

+ 1 - 1
pages/sence/sence.wxml

@@ -8,7 +8,7 @@
     </view>
     <view class="searchBtn"  bindtap="search">搜索</view>
   </view>
-  <view style="height: 64rpx;"></view>
+  <view style="height: 84rpx;"></view>
   <view class="resulst" wx:if="{{roomList.length>0}}">
     <view wx:for="{{roomList}}" wx:key class="house-list">
       <roomItem room="{{item}}" bindgotoWV="gotoWV"></roomItem>

+ 2 - 2
pages/sence/sence.wxss

@@ -23,7 +23,7 @@
   justify-content: flex-start;
   padding: 0 32rpx;
   box-sizing: border-box;
-  margin-right: 10rpx;
+  margin: 10rpx auto 0 ;
 }
 .storeSearch image{
   width: 24rpx;
@@ -45,7 +45,7 @@
   width: 60rpx;
 }
 .resulst{
-  padding: 10rpx 32rpx;
+  padding: 0rpx 32rpx 10rpx;
   box-sizing: border-box;
 }
 

+ 1 - 1
pages/store/store.wxml

@@ -7,7 +7,7 @@
     </view>
     <!-- <view class="searchBtn">搜索</view> -->
   </view>
-  <view style="height: 74rpx;"></view>
+  <view style="height: 84rpx;"></view>
   <view class="storeList" wx:if="{{storeList.length>0}}">
     <view wx:for="{{storeList}}">
       <storeItem store="{{item}}"  bindgotoWV="gotoWV"></storeItem>

+ 2 - 1
pages/store/store.wxss

@@ -20,6 +20,7 @@
   justify-content: flex-start;
   padding: 0 32rpx;
   box-sizing: border-box;
+  margin: 10rpx auto 0 ;
 }
 
 .storeSearch image {
@@ -46,7 +47,7 @@
   /* display: flex;
   align-items: center;
   justify-content: center; */
-  margin-top: 32rpx;
+  margin-top: 20rpx;
 }
 
 .storeList>view {