|
@@ -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>
|