Browse Source

bug xiufu

muzilei 4 years ago
parent
commit
5718b3d37a
2 changed files with 17 additions and 4 deletions
  1. 4 1
      pages/index/index.vue
  2. 13 3
      pages/userCenter/fenlei.vue

+ 4 - 1
pages/index/index.vue

@@ -37,7 +37,7 @@
 			 				<view>{{ item.provinceName||'' }}{{ item.cityName||'' }}{{ item.districtName||'' }}{{ item.address||'' }}</view>
 			 				<view>{{ item.provinceName||'' }}{{ item.cityName||'' }}{{ item.districtName||'' }}{{ item.address||'' }}</view>
 			 				<view>
 			 				<view>
 			 					<u-icon name="map-fill" color="#01c9b2" size="30"></u-icon>
 			 					<u-icon name="map-fill" color="#01c9b2" size="30"></u-icon>
-			 					{{ item.distanct.distance ? (item.distanct.distance / 1000).toFixed(1) : 0 }}KM
+			 					{{ getDistanct(item) }}KM
 			 					<u-icon name="arrow-right" color="#999" size="20"></u-icon>
 			 					<u-icon name="arrow-right" color="#999" size="20"></u-icon>
 			 				</view>
 			 				</view>
 			 			</view>
 			 			</view>
@@ -149,6 +149,9 @@
 				  // 新的版本下载失败
 				  // 新的版本下载失败
 				});
 				});
 			},
 			},
+      getDistanct(item){
+        return item.distanct&&item.distanct.distance ? (item.distanct.distance / 1000).toFixed(1) : 0
+      },
 			// 获取用户信息
 			// 获取用户信息
 			getUserInfo(){
 			getUserInfo(){
 				getUserInfo().then(res => {
 				getUserInfo().then(res => {

+ 13 - 3
pages/userCenter/fenlei.vue

@@ -1,8 +1,13 @@
 <template>
 <template>
 	<view class="zn-container">
 	<view class="zn-container">
-		<u-image width="750rpx" height="760rpx" src="http://zyyc.oss-cn-beijing.aliyuncs.com/adminUpload/store/YN7mzaYJS7b5d7xMT3J5.jpg"></u-image>
-		<u-image width="750rpx" height="1940rpx" src="http://zyyc.oss-cn-beijing.aliyuncs.com/adminUpload/store/rCknG5whE2ptayzr7Qmt.jpg"></u-image>
-		<u-image width="750rpx" height="508rpx" src="http://zyyc.oss-cn-beijing.aliyuncs.com/adminUpload/store/AQQFatexHSM5ihxaFh4p.jpg"></u-image>
+		<view>
+      <u-image width="574rpx" height="1521rpx" src="https://lese.sxzxyj.net/img/2020/11/27/de2087035eb847299402c4d634995bab.jpg"></u-image>
+      <u-image width="574rpx" height="1695rpx" src="https://lese.sxzxyj.net/img/2020/11/27/a6b25e97c94542f1b40269508e90c0a4.jpg"></u-image>
+      <u-image width="574rpx" height="1701rpx" src="https://lese.sxzxyj.net/img/2020/11/27/b5658548282f48d5abefea15ae91b2c7.jpg"></u-image>
+      <u-image width="574rpx" height="1733rpx" src="https://lese.sxzxyj.net/img/2020/11/27/75fe5964decc4d95992c8d104eea135f.jpg"></u-image>
+      <u-image width="574rpx" height="1452rpx" src="https://lese.sxzxyj.net/img/2020/11/27/edc048d346f14ab6a585c994feadbf1a.jpg"></u-image>
+      <u-image width="574rpx" height="1507rpx" src="https://lese.sxzxyj.net/img/2020/11/27/16232089fad6435fb38f817d0f8d1fb1.jpg"></u-image>
+    </view>
 	</view>
 	</view>
 </template>
 </template>
 
 
@@ -21,5 +26,10 @@
 <style lang="less">
 <style lang="less">
 	.zn-container{
 	.zn-container{
 		width: 100%;
 		width: 100%;
+    background-color: #FFFFFF;
+    > view{
+      width: 574rpx;
+      margin: 0 auto;
+    }
 	}
 	}
 </style>
 </style>