zhengkaixin 1 day ago
parent
commit
05900fb430

BIN
assets/img/20250625/info1-1.png


BIN
assets/img/20250625/info1.png


+ 14 - 4
pages/index/index.vue

@@ -106,7 +106,7 @@
 
 			<u-modal v-model="showOss" class="showOss" :show-title="false" :show-confirm-button="false">
 				<view class="slot-content">
-					<u-image width="250px" style="margin: auto;min-height: 250px;" mode="widthFix"
+					<u-image width="250px" style="margin: auto;min-height: 250px;" mode="widthFix" 
 						@click="clickBanner(showOssIndex,true)" :src="showOssImg">
 
 						<view slot="loading" style="height: 200px;">
@@ -236,8 +236,13 @@
 
 
 
-							<u-image width="500" height="500" bgColor="#ff000000"
-								style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
+							<u-image width="500" height="500" bgColor="#ff000000" :class="{
+								showOssImgTop:item.picUrl&&(item.picUrl.indexOf('.jpg')!=-1)
+							}"
+								style="margin: auto;min-height: 250px;"  
+								
+								
+								mode="widthFix" @click="clickBannerTopI(i)"
 								:src="item.picUrl">
 								<view slot="loading" style="height: 200px;">
 									<u-loading mode="flower" size="186">
@@ -3506,6 +3511,11 @@
 			}
 		}
 	}
-	
+	.showOssImgTop{
+		
+		::v-deep .u-image__image{
+			border-radius:40px !important;
+		}
+	}
 	
 </style>

+ 59 - 4
pages/searchPile/chargeProcess/dcCharging.vue

@@ -737,7 +737,9 @@
 		
 		
 		
-						<u-image width="500" height="500" bgColor="#ff000000"
+						<u-image width="500" height="500" bgColor="#ff000000"  :class="{
+								showOssImgTop:item.picUrl&&(item.picUrl.indexOf('.jpg')!=-1)
+							}"
 							style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
 							:src="item.picUrl">
 							<view slot="loading" style="height: 200px;">
@@ -778,7 +780,8 @@
 	import * as newsApi from '@/apis/news.js'
 	import * as echarts from "echarts";
 	import uMessage from '@/components/UMessage.vue'
-
+	import * as API_temporary from '@/apis/temporary.js'
+	
 	import lottery from '@/components/lottery/index.vue';
 
 
@@ -955,8 +958,18 @@
 			this.getBannerInfo("JNT-charging", "bannerListJNT");
 			this.getBannerInfo("JNT-charging-end", "bannerListJNTend");
 			this.getBannerInfo("YXJ-charging-end", "bannerListYXJ");
-
-
+			
+			const now = new Date();
+			const targetDate = new Date('2025-07-10'); 
+			if(process.car.NODE_ENV=='test'){
+				targetDate = new Date('2025-06-10'); 
+			}
+			const endDate = new Date('2025-08-01');
+			
+			if(this.personInfo.memberLevel==4&&now > targetDate &&now < endDate){
+				this.informationByUser()
+				
+			}
 		},
 		onShow() {
 
@@ -1010,6 +1023,42 @@
 			}
 		},
 		methods: {
+			
+			informationByUser(){
+				API_temporary.informationByUser({
+					type:"5"
+				}).then((res) => {
+					var byUser = res.data.joinList
+					
+					this.bannerListTop = [
+						{
+							picUrl:require("@/assets/img/20250625/info1-1.png"),
+							linkUrl:"#/pages/temporary/20250625/info1",
+						}
+					];
+					
+					if(byUser.length){
+						
+					}else{
+						
+										
+						if (this.bannerListTop.length) {
+							this.showTop = true;
+							this.showTopImg = this.bannerListTop[0].picUrl;
+							this.showTopIndex = 0;
+										
+						}
+						
+					}
+					
+					
+				}).catch(error => {
+					uni.showToast({
+						title: error
+					})
+				})
+				
+			},
 			getBannerInfoTop(code) {
 				if(!this.carhelp.getOpenId()){
 					return
@@ -2811,4 +2860,10 @@
 			transform: rotate(0deg);
 		}
 	}
+	.showOssImgTop{
+		
+		::v-deep .u-image__image{
+			border-radius:40px !important;
+		}
+	}
 </style>

+ 9 - 1
pages/searchPile/stationAndPile/charging/chargingPileDetails.vue

@@ -520,7 +520,9 @@
 			
 			
 			
-							<u-image width="500" height="500" bgColor="#ff000000"
+							<u-image width="500" height="500" bgColor="#ff000000"  :class="{
+								showOssImgTop:item.picUrl&&(item.picUrl.indexOf('.jpg')!=-1)
+							}"
 								style="margin: auto;min-height: 250px;" mode="widthFix" @click="clickBannerTopI(i)"
 								:src="item.picUrl">
 								<view slot="loading" style="height: 200px;">
@@ -3193,4 +3195,10 @@
 					}
 				}
 	}
+	.showOssImgTop{
+		
+		::v-deep .u-image__image{
+			border-radius:40px !important;
+		}
+	}
 </style>

+ 40 - 2
pages/temporary/20250625/info1.vue

@@ -13,6 +13,7 @@
 
 <script>
 	import * as WxJsApi from '@/utils/wxJsApi'
+	import * as API_temporary from '@/apis/temporary.js'
 	
 	export default {
 		data() {
@@ -28,9 +29,46 @@
 				// //(res)
 			}).catch(error => {
 				//(res)
-			})
+			})
+			this.informationByUser()
 		},
-		methods: {
+		methods: {
+			informationByUser(){
+				API_temporary.informationByUser({
+					type:"5"
+				}).then((res) => {
+					var byUser = res.data.joinList
+				
+					if(byUser.length){
+						
+					}else{
+					
+						this.informationBySubmit()
+					}
+					
+					
+				}).catch(error => {
+					uni.showToast({
+						title: error
+					})
+				})
+				
+			},
+			informationBySubmit(){
+				
+				API_temporary.loginSubmit({
+					openId:this.carhelp.getOpenId(),
+					type:"5",
+					content:"已读"
+				}).then((res) => {
+					//this.byUser = res.data.helpList
+					
+				}).catch(error => {
+					uni.showToast({
+						title: error
+					})
+				})
+			},
 			navigate() {
 				
 				//console.log(item)