|
|
|
@ -23,6 +23,8 @@ Page({ |
|
|
|
status:false, |
|
|
|
// 是否新能源汽车专题产品
|
|
|
|
carCouponTip: 0, |
|
|
|
showTipMask:false, |
|
|
|
showTipMaskSecond: 3, |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
@ -32,6 +34,7 @@ Page({ |
|
|
|
this.setData({ |
|
|
|
id:options.id |
|
|
|
}) |
|
|
|
this.initTipMask() |
|
|
|
}, |
|
|
|
daojishi:function(time){ |
|
|
|
let now = new Date().getTime(); |
|
|
|
@ -93,12 +96,7 @@ Page({ |
|
|
|
commonApi.user_post("order/query",{ |
|
|
|
order_id:this.data.id |
|
|
|
}).then(res=>{ |
|
|
|
//判断是否存在新能源汽车专题产品
|
|
|
|
let carCouponTip = (res.data.order_product_list || []).some(v=>(v.tag_ids||[]).includes(390) || (v.tag_ids||[]).includes(391)) |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
carCouponTip:carCouponTip, |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
// 书券产品
|
|
|
|
@ -129,7 +127,16 @@ Page({ |
|
|
|
info:res.data, |
|
|
|
}) |
|
|
|
} |
|
|
|
//判断是否存在新能源汽车专题产品
|
|
|
|
let carCouponTip = (res.data.order_product_list || []).some(v=>(v.tag_ids||[]).includes(390) || (v.tag_ids||[]).includes(391)) |
|
|
|
res.data.order_product_list.forEach(v=>{ |
|
|
|
v.needTip = (v.tag_ids||[]).includes(390) || (v.tag_ids||[]).includes(391) |
|
|
|
}) |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
carCouponTip:carCouponTip, |
|
|
|
info: res.data |
|
|
|
}) |
|
|
|
|
|
|
|
console.log(this.data.ERMB); |
|
|
|
|
|
|
|
@ -268,6 +275,35 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 临时支付弹窗
|
|
|
|
initTipMask () { |
|
|
|
if (new Date().getTime()>=new Date('2025-02-01 00:00:00')) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
showTipMask:true, |
|
|
|
showTipMaskSecond: 3, |
|
|
|
}) |
|
|
|
let second = this.data.showTipMaskSecond |
|
|
|
let timer = setInterval(()=>{ |
|
|
|
if(second<0) { |
|
|
|
clearInterval(timer) |
|
|
|
} |
|
|
|
second-- |
|
|
|
this.setData({showTipMaskSecond: second}) |
|
|
|
},1000) |
|
|
|
|
|
|
|
}, |
|
|
|
closeTipMask () { |
|
|
|
if (this.data.showTipMaskSecond<=0) { |
|
|
|
|
|
|
|
this.setData({ |
|
|
|
showTipMask:false, |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* 生命周期函数--监听页面隐藏 |
|
|
|
*/ |
|
|
|
|