|
@@ -625,7 +625,7 @@
|
|
this.getBannerInfoTop("home-top");
|
|
this.getBannerInfoTop("home-top");
|
|
}
|
|
}
|
|
|
|
|
|
- this.getBannerInfoTop("home-top");
|
|
|
|
|
|
+ //this.getBannerInfoTop("home-top");
|
|
|
|
|
|
this.getPointTimeOut();
|
|
this.getPointTimeOut();
|
|
this.getNewsList();
|
|
this.getNewsList();
|
|
@@ -1089,27 +1089,30 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getBannerInfoTop(code){
|
|
getBannerInfoTop(code){
|
|
|
|
+ var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
|
|
|
|
+ var time=this.carhelp.get("bannerListTop");
|
|
|
|
+ if((time&&nowtime==time)){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: "加载中",
|
|
title: "加载中",
|
|
mask: true,
|
|
mask: true,
|
|
})
|
|
})
|
|
- var nowtime = parseUnixTime(currentTimeStamp(), '{y}-{m}-{d}')
|
|
|
|
|
|
|
|
newsApi.getBannerInfo(code).then((res) => {
|
|
newsApi.getBannerInfo(code).then((res) => {
|
|
|
|
|
|
|
|
|
|
this.bannerListTop =res.data;
|
|
this.bannerListTop =res.data;
|
|
|
|
|
|
- var time=this.carhelp.get("bannerListTop");
|
|
|
|
|
|
|
|
- if(this.bannerListTop.length&&!(time&&nowtime==time)){
|
|
|
|
|
|
+ if(this.bannerListTop.length){
|
|
this.showTop=true;
|
|
this.showTop=true;
|
|
this.showTopImg=this.bannerListTop[0].picUrl;
|
|
this.showTopImg=this.bannerListTop[0].picUrl;
|
|
this.showTopIndex=0;
|
|
this.showTopIndex=0;
|
|
this.carhelp.set("bannerListTop",nowtime);
|
|
this.carhelp.set("bannerListTop",nowtime);
|
|
}
|
|
}
|
|
//this.test()
|
|
//this.test()
|
|
- if (this.userId) {
|
|
|
|
|
|
+ if (this.userId&&false) {
|
|
API.readCoupon().then((res2) => {
|
|
API.readCoupon().then((res2) => {
|
|
var mod=res2.data.userCoupon;
|
|
var mod=res2.data.userCoupon;
|
|
console.log(mod)
|
|
console.log(mod)
|