tanxue před 2 měsíci
rodič
revize
012283afc1

+ 12 - 3
common/styles/global/pages.scss

@@ -823,7 +823,16 @@
 
 /*** 地图浮层 ***/
 .map-popup-box{
-	height: 100vh;
-	.map-card-list{}
-	.map-card-box{}
+	width: 100%;height: 100vh;display: flex;flex-direction: column;
+	.map-card-list{width: 100%;padding: 24rpx;box-sizing: border-box;flex: 1;overflow: auto;}
+	.map-card-box{border-bottom: 1rpx solid #ccc;padding-bottom: 20rpx;margin-bottom: 20rpx;display: flex;align-items: center;}
+	.map-card-box:last-child{border-bottom: 0;}
+	.dqwz-text{color:#3fd2a1;border: 1rpx solid #3fd2a1;padding: 1rpx 10rpx 3rpx;
+	box-sizing: border-box;border-radius: 4rpx;line-height: 1;font-size: 24rpx;margin-right: 10rpx;}
+	.map-card-title{font-size: 30rpx;color: #000;margin-bottom: 12rpx;}
+	.map-card-address{font-size: 24rpx;color: #666;}
+	.map-active-icon{
+		width: 40rpx;height: 40rpx;@include ezy-no-repeat-cover();margin-left: auto;
+		background-image: url("@/static/images/common/markIcon.png");
+	}
 }

+ 8 - 4
components/customMap/customMap.vue

@@ -13,10 +13,14 @@
 		</view>
 		<map style="width: 100%; height: 300px;" :latitude="data.latitude" :longitude="data.longitude"
 			:markers="data.covers" :show-location="true"> </map>
-		<view  v-if="result"  v-for="(item,index) in result.data.data" key="index" class="map-card-list">
-			<view @click="xuanzeAdress(item)" class="map-card-box">
-				<view class="map-card-title" :class="index==0?'xxxactive':''">{{item.title}}</view>
-				<view class="map-card-address">{{item.address}}</view>
+
+		<view v-if="result" class="map-card-list">
+			<view v-for="(item,index) in result.data.data" key="index"  @click="xuanzeAdress(item)" class="map-card-box">
+				<view>
+					<view class="map-card-title"><text v-if="index==0" class="dqwz-text">当前位置</text>{{item.title}}</view>
+					<view class="map-card-address">{{item.address}}</view>
+				</view>
+				<icon class="map-active-icon" v-if="index==0"></icon>
 			</view>
 
 		</view>