ソースを参照

修改漏掉的 可省x元, 修改活动页面

zhengkaixin 1 ヶ月 前
コミット
b6aae24a59

+ 5 - 2
pages/searchPile/chargeProcess/dcCharging.vue

@@ -196,8 +196,11 @@
 				</view>
 
 				<view class="info-text-min">
-					剩余时长{{setValidity(thisdaysDistance(userCard.endTime))}} |
-					剩余优惠电量{{userCard.chargedDegree>userCard.chargeDegreeLimit?0:(userCard.chargeDegreeLimit-userCard.chargedDegree).toFixed(0)}}度
+					剩余时长{{setValidity(thisdaysDistance(userCard.endTime))}}
+					<span v-if="userCard.chargeDegreeLimit"> | 剩余优惠电量{{userCard.chargedDegree>userCard.chargeDegreeLimit?0:(userCard.chargeDegreeLimit-userCard.chargedDegree).toFixed(0)}}度</span>
+				   <span v-else-if="userCard.chargeDegreeLimit==0&&userCard.saveInformation"> | 已用{{userCard.saveInformation.num}}次 /
+											共省{{userCard.saveInformation.saveMoney}}元</span>
+				   
 				</view>
 			</view>
 

+ 8 - 1
pages/searchPile/stationAndPile/stationDetails.vue

@@ -784,7 +784,7 @@
 	let _self;
 	import {
 		newDate,
-		parseUnixTime
+		parseUnixTime,daysDistance
 
 	} from '@/utils'
 	import groupItem from '@/components/GroupItem.vue'
@@ -1170,6 +1170,13 @@
 				}
 				return ''
 			},
+			thisdaysDistance(endTime) {
+			
+				var date = new Date()
+				var date2 = newDate(endTime);
+				return daysDistance(date, date2)
+			
+			},
 			thispercent(userCard) {
 				if(userCard.classify==1||(userCard.classify==2&&userCard.chargeDegreeLimit==0)){
 					var k1=daysDistance(userCard.startTime, userCard.endTime)

+ 38 - 12
pages/temporary/activity20250501.vue

@@ -23,7 +23,7 @@
 								<view class="view312">
 									{{item.numz/10}}折
 								</view>
-								<view class="view311" v-if="item.giftMemberLevelDuration==180">
+								<view class="view311" >
 									半年卡
 								</view>
 								<view class="view311">
@@ -31,8 +31,8 @@
 								</view>
 							</view>
 
-							<view class="view33" v-if="item.giftMemberLevelDuration==180">
-								有效期180天
+							<view class="view33" >
+								可省约{{item.giftMemberLevelDuration}}
 							</view>
 						</view>
 					</view>
@@ -51,12 +51,12 @@
 					<tr class="tr1">
 						<td>充值金额</td>
 						<td>奖励</td>
-						<td class="jz">有效期</td>
+						<td class="jz">可省约</td>
 					</tr>
 					<tr v-for="(item,i) in moneyList" :key="i">
 						<td >{{item.amountDesc}}</td>
 						<td>{{item.amountRemark}}</td>
-						<td class="jz">{{item.giftMemberLevelDuration}}</td>
+						<td class="jz">{{item.giftMemberLevelDuration}}</td>
 					</tr>
 				
 
@@ -65,17 +65,17 @@
 
 			<view class="title">活动时间:</view>
 			<view class="textlist">
-				2025年5月1日至2025年6月30日
+				2025年5月10日至2025年6月30日
 			</view>
 			<view class="title">活动说明:</view>
 			<view class="textlist">
-				<p>1、本次充值活动所充金额仅用于支付本平台充电费用(包含电费和服务费),不可转赠、提现、退款。</p>
+					<p>1、本次充值活动所充金额仅用于支付本平台充电费用(包含电费和服务费),不可转赠、提现、退款。</p>
 					<p>2、本服务费折扣卡仅适用于服务费打折,不适用于电费。</p>
-					<p>3、本服务费折扣卡有效期为180天,充值后自动激活。</p>
+					<p>3、本服务费折扣卡有效期为180天,充值后自动激活。</p>
 					<p>4、本服务费折扣卡不限充电次数和充电度数,有效期内均可享受对应优惠。</p>
 					<p>5、本服务费折扣卡不能与平台的“服务费6折卡”和“服务费包月卡”叠加使用。</p>
 					<p>6、本服务费折扣卡为一车一卡,不转赠、转借,如有发现上述行为,平台有权对折扣卡关停,并保留进一步追究负责的权利。</p>
-					<p>7、充值金额和折扣卡适用于所有优电联盟充电站点。
+					<p>7、充值金额和折扣卡适用于所有优电联盟充电站点。</p>
 					<p>8、本次活动最终解释权归湖北鹏育优电新能源科技有限公司所有。</p>
 			</view>
 		</view>
@@ -93,7 +93,33 @@
 			return {
 				source: 1, //活动来源 1公众号 ,2充电开始 ,3充电结束- 99系统内
 				activityNo: "1", //活动编号
-				moneyList: [],
+				moneyList: [
+					{
+						amountDesc: "500元",
+						amountRemark: "送8.5折半年卡",
+						giftMemberLevelDuration:"75元",
+						numz:85,
+						text:""
+					},{
+						amountDesc: "1000元",
+						amountRemark: "送7.5折半年卡+白银会员",
+						giftMemberLevelDuration:"250元",
+						numz:75,
+						text:"黄金会员"
+					},{
+						amountDesc: "2000元",
+						amountRemark: "送6折半年卡+黄金会员",
+						giftMemberLevelDuration:"800元",
+						numz:60,
+						text:"黄金会员"
+					},{
+						amountDesc: "3000元",
+						amountRemark: "送5折半年卡+白金会员",
+						giftMemberLevelDuration:"1500元",
+						numz:50,
+						text:"白金会员"
+					}
+				],
 			};
 		},
 		onLoad(op) {
@@ -101,10 +127,10 @@
 				this.source = op.source;
 			}
 			if(this.source!=99){
-				this.saveSource()
+				//this.saveSource()
 			}
 			
-			this.init();
+			//this.init();
 		},
 		onReady() {