zhengkaixin 2 سال پیش
والد
کامیت
084e8df606
5فایلهای تغییر یافته به همراه143 افزوده شده و 53 حذف شده
  1. 3 0
      assets/img/buy/bus.svg
  2. 3 0
      assets/img/buy/bus2.svg
  3. 3 0
      assets/img/buy/fee.svg
  4. 6 0
      assets/img/buy/tips.svg
  5. 128 53
      pages/monthlyCardActivity/monthlyCardBuy.vue

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 0
assets/img/buy/bus.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 0
assets/img/buy/bus2.svg


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 3 - 0
assets/img/buy/fee.svg


+ 6 - 0
assets/img/buy/tips.svg

@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="40" height="40" style="border-color: rgba(187,187,187,1);border-width: 0px;border-style: solid" filter="none">
+    
+    <g>
+    <path d="M454.6 669.2h273.5c10.8 0 19.6 11.8 19.6 26.2 0 14.5-8.7 26.2-19.6 26.2H454.6c-10.8 0-19.6-11.8-19.6-26.2 0-14.5 8.9-26.2 19.6-26.2z m2.7 112.8h178.6c12.4 0 22.4 11.8 22.4 26.2 0 14.6-10 26.2-22.4 26.2H457.3c-12.4 0-22.4-11.8-22.4-26.2 0.1-14.5 10.2-26.2 22.4-26.2z" p-id="53555" fill="rgba(137.955,122.91,108.11999999999999,1)" stroke="none"></path><path d="M817.1 65.8H298.8c-69.5 0-121.5 52.1-121.5 121.5v76.8H155c-42.2 0-76.8 29.8-76.8 74.3v44.7c0 39.7 34.7 79.3 76.8 79.3h22.3v99.1H155c-42.2 0-76.8 29.8-76.8 74.3v44.7c0 39.7 34.7 79.3 76.8 79.3h22.3v69.5c0 69.5 52.1 128.9 121.5 128.9H817c69.5 0 128.9-59.5 128.9-128.9v-642c0.1-69.4-59.5-121.5-128.8-121.5zM276.6 385.7c0 14.9-12.4 27.3-27.3 27.3H155c-14.9 0-27.3-12.4-27.3-27.3V341c0-14.9 12.4-27.3 27.3-27.3h94.2c14.9 0 27.3 12.4 27.3 27.3v44.7z m0 297.5c0 14.9-12.4 27.3-27.3 27.3H155c-14.9 0-27.3-12.4-27.3-27.3v-44.7c0-14.9 12.4-27.3 27.3-27.3h94.2c14.9 0 27.3 12.4 27.3 27.3v44.7z m619.8 146.3c0 42.2-37.2 79.3-79.3 79.3H298.8c-42.2 0-72-37.2-72-79.3V760h22.3c42.2 0 76.8-39.7 76.8-81.8V636c0-42.2-34.7-74.3-76.8-74.3h-22.3v-99.1h22.3c42.2 0 76.8-39.7 76.8-81.8v-42.2c0-42.2-34.7-74.3-76.8-74.3h-22.3v-76.8c0-42.2 29.8-72 72-72H817c42.2 0 79.3 29.8 79.3 72v642z" p-id="53556" fill="rgba(137.955,122.91,108.11999999999999,1)" stroke="none"></path><path d="M603.7 447.3c-14.9 0-29.8-14.9-29.8-29.8V228.9c0-14.9 14.9-29.8 29.8-29.8s29.8 14.9 29.8 29.8v188.6c0 14.9-14.9 29.8-29.8 29.8zM569 521.7c0 19.2 15.6 34.7 34.7 34.7 19.2 0 34.7-15.6 34.7-34.7 0-12.4-6.6-23.9-17.4-30.1-10.7-6.2-24-6.2-34.7 0-10.7 6.2-17.3 17.7-17.3 30.1z" p-id="53557" fill="rgba(137.955,122.91,108.11999999999999,1)" stroke="none"></path>
+    </g>
+  </svg>

+ 128 - 53
pages/monthlyCardActivity/monthlyCardBuy.vue

@@ -38,10 +38,10 @@
 			</view>
 
 			<scroll-view class="scroll-view_H" scroll-x="true" :scrollWithAnimation="true" @scroll="scroll"
-				:scrollLeft="scrollLeftSet"  @scrolltoupper="scrolltoupper"   @scrolltolower="scrolltolower">
+				:scrollLeft="scrollLeftSet" @scrolltoupper="scrolltoupper" @scrolltolower="scrolltolower">
 				<view class="scroll-view-item_H" v-if="!ispay" v-for="(item,i) in cardList" :key="i">
-					<view 
-						:style="'background-image: url('+item.monthlyRentCard.image+') ;'" :class="'cardtab card-'+i ">
+					<view :style="'background-image: url('+item.monthlyRentCard.image+') ;'"
+						:class="'cardtab card-'+i ">
 						<view class="tag" v-if="item.monthlyRentCard.isVip">{{item.monthlyRentCard.platformText}}车主
 						</view>
 						<view class="tag" v-else-if="item.monthlyRentCard.remark">{{item.monthlyRentCard.remark}}</view>
@@ -111,10 +111,49 @@
 			<view class="title">
 				可享一个月充电服务费<span style="color:#ec4f27">全免</span>
 			</view>
-			<view class="line">
-				<view v-show="detail.type==1">· 仅限<b>非运营车</b>车主或<b>新用户</b>购买和使用</view>
+			<view class="line" >
+				<!-- <view v-show="detail.type==1">· 仅限<b>非运营车</b>车主或<b>新用户</b>购买和使用</view>
 				<view>· 在指定充电站充电时,此单服务费<b>全免</b></view>
-				<view>· 不可抵扣电费、停车费、占位费</view>
+				<view>· 不可抵扣电费、停车费、占位费</view> -->
+				
+				<view class="lineInfo" v-show="detail.type==1" :class="detail.type==1?'lineInfo1':'lineInfo2'" >
+					<view  class="lineSvg">
+						<img src="@/assets/img/buy/bus2.svg">
+					</view>
+					<view class="lineView">
+						<view  class="lineTitle">适用车主</view>
+						<p class="linep">仅限非运营车车主或新用户购买和使用</p>
+					</view>
+				</view>
+				<view class="lineInfo"  v-show="detail.type==2" :class="detail.type==1?'lineInfo1':'lineInfo2'" >
+					<view  class="lineSvg">
+						<img src="@/assets/img/buy/bus.svg">
+					</view>
+					<view class="lineView">
+						<view  class="lineTitle">适用车主</view>
+						<p class="linep">适合运营车车主购买和使用</p>
+					</view>
+				</view>
+				<view class="lineInfo" :class="detail.type==1?'lineInfo1':'lineInfo2'" >
+					<view  class="lineSvg">
+						<img src="@/assets/img/buy/fee.svg">
+					</view>
+					<view class="lineView">
+						<view  class="lineTitle">充电免服务费</view>
+						<p class="linep">在指定站点充电时,此单服务费全免</p>
+					</view>
+				</view>
+				<view class="lineInfo" :class="detail.type==1?'lineInfo1':'lineInfo2'" >
+					<view  class="lineSvg">
+						<img src="@/assets/img/buy/tips.svg">
+					</view>
+					<view class="lineView">
+						<view  class="lineTitle">注意事项</view>
+						<p class="linep">不可抵扣电费、停车费、占位费</p>
+					</view>
+				</view>
+				
+				
 			</view>
 
 
@@ -246,15 +285,15 @@
 					<view class="bot-line"></view>
 				</view>
 			</view>
-			
-				<view  class="upupupView" v-show="flag==1" >
-					<view class="upupupImg">
-						<img src="@/assets/img/upupup.svg">
-					</view>
-					
-					<p>上划查看更多内容</p>
+
+			<view class="upupupView" v-show="flag==1">
+				<view class="upupupImg">
+					<img src="@/assets/img/upupup.svg">
 				</view>
-			
+
+				<p>上划查看更多内容</p>
+			</view>
+
 		</view>
 		<!-- 按钮 -->
 		<view class="button" v-if="!ispay">
@@ -448,34 +487,36 @@
 		},
 		methods: {
 			scrolltolower: function(e) {
-			//		
-				
+				//		
+
 			},
-			scrolltoupper:function(e) {
-				
+			scrolltoupper: function(e) {
+
 				//this.scrollLeftSetBl=false;
 			},
 			scroll: function(e) {
-				
-				console.log(JSON.stringify(e.detail))
-				
+
+				if (this.scrollLeftSetBl) {
+					return
+				}
+				this.scrollLeftSetBl = true;
 				var scrollWidth = e.detail.scrollWidth
-				if (e.detail.deltaX>0) {
+				if (e.detail.deltaX > 0) {
 					//右移动
 					this.scrollLeftSet = 0;
 					this.checkboxChange(this.cardList[0].monthlyRentCard)
 				} else {
 					//左移动
-					this.scrollLeftSet = scrollWidth 
+					this.scrollLeftSet = scrollWidth
 					if (this.cardList.length > 1) {
 						this.checkboxChange(this.cardList[1].monthlyRentCard)
 					}
-					
-				}
 
+				}
 
+				this.scrollLeftSetBl = false;
 				//this.old.scrollTop = e.detail.scrollTop
-				this.scrollLeftOldSet =e.detail.scrollLeft
+				this.scrollLeftOldSet = e.detail.scrollLeft
 			},
 			confirmPhone() {
 				this.show = false;
@@ -694,10 +735,10 @@
 
 						}
 						if (this.flag == 0) {
-							this.flag = 1;
-							setTimeout(()=>{
-								this.flag = 2;
-							},5000)
+							this.flag = 1;
+							setTimeout(() => {
+								this.flag = 2;
+							}, 5000)
 						}
 					}
 					uni.hideLoading();
@@ -845,34 +886,35 @@
 			top: 15px;
 		}
 	}
-	 .upupupImg{
-		 height: 80px;
-	 }
-	.upupupView {
-		text-align: center;
-		font-size: 12px;
-		padding: 30rpx;
+
+	.upupupImg {
+		height: 80px;
+	}
+
+	.upupupView {
+		text-align: center;
+		font-size: 12px;
+		padding: 30rpx;
 		border-radius: 12px;
 		position: absolute;
 		background: rgb(0 0 0 / 70%);
 		top: 50%;
-		 transform: translate(-50%);
-		      left: 50%;
+		transform: translate(-50%);
+		left: 50%;
 		color: #fff;
 
-		
+
 	}
 
-	.upupupView img {
-		top: 15px;
+	.upupupView img {
+		top: 15px;
 		position: relative;
-		width: 60px;
-		animation: movepoint 2s infinite;
+		width: 60px;
+		animation: movepoint 2s infinite;
 		-webkit-animation: movepoint 2s infinite;
 	}
 </style>
-<style lang="scss" scoped>
-	
+<style lang="scss" scoped>
 	.scroll-Y {
 		height: 300rpx;
 	}
@@ -923,7 +965,7 @@
 			text-align: center;
 			line-height: 40rpx;
 			padding: 0 12rpx;
-			right: 24rpx;
+			right: 26rpx;
 			top: 0rpx;
 			border-radius: 0 12px 0 12px;
 
@@ -1114,21 +1156,54 @@
 			color: rgba(51, 51, 51, 1);
 			font-size: 40rpx;
 			text-align: center;
-			margin-bottom: 10px;
+			margin-bottom: 30rpx;
 		}
 
 		.line {
-			margin-bottom: 10px;
+			margin-bottom: 40rpx;
 			color: #666666;
-
-			b {
-				color: #333;
+			font-size: 34rpx;
+			line-height: 52rpx;
+			.lineInfo1{
+				border: 1px solid #D5C5B5;
+				background-color: #fef9f5;
+			}
+			.lineInfo2{
+				border: 1px solid #79ACDB ;
+				background-color: #ffffff;
+			}
+			.lineInfo{
+				margin-right: 20rpx;
+				display: flex;
+				padding: 20rpx 15rpx 15rpx 10rpx;
+				border-radius: 10px;
+				 margin-bottom: 16rpx;
+				.lineSvg{
+					padding-top: 2px;
+					margin: auto 16rpx;
+					img{
+						width: 70rpx;
+						color:#62574C ;
+					}
+				}
+				.lineView{
+					.lineTitle{
+						color:#62574C;
+						font-size: 36rpx;
+					}
+					.linep{
+						color:#8A7B6C;
+						font-size: 28rpx;
+						line-height:  28rpx;
+					}
+				}
 			}
+			
 		}
 
 		background-color: #fff;
 
-		padding: 20px 20px 20px 30px;
+		padding: 30rpx 30rpx 30rpx 50rpx;
 
 		/deep/.u-divider {
 			margin-bottom: 16px !important;

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است