From c630f4f0d0f5273de1381a30dc4db3453a3f7a28 Mon Sep 17 00:00:00 2001 From: zhangds Date: Fri, 15 Mar 2024 11:29:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=AB=8B=E5=87=8F?= =?UTF-8?q?=E9=87=91=20=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reduce.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/reduce.html b/reduce.html index c31c96f..b7bf681 100644 --- a/reduce.html +++ b/reduce.html @@ -128,7 +128,7 @@ let goodsDetail = null, goodsCount = null; new Vue({ el: "#reduce", - data () { + data() { return { plaflam: 1, //支付宝 promtshow: false, @@ -154,7 +154,7 @@ 5、使用立减金的微信支付订单,如发生全额退款,且立减金仍在有效期内,立减金将自动退还给用户,如立减金已过期,则不退还给用户;如发生部分退款,用户支付金额将按比例原路退还,立减金将不退还给用户
`, }; }, - created () { + created() { document.title = localStorage.getItem('title'); /* 获取立减金信息*/ goodsDetail = JSON.parse(sessionStorage.getItem("goodsInfo")); @@ -168,27 +168,27 @@ this.backAble = goodsCount > 1;//多个商品才有返回 this.reduceInfo = goodsDetail.entity; this.plaflam = goodsDetail.entity.channel; - if (goodsDetail.entity.time_limit.use_time.type == 'week') { //处理星期连贯操作 + if (goodsDetail.entity.time_limit.use_time && goodsDetail.entity.time_limit.use_time.type == 'week') { //处理星期连贯操作 goodsDetail.entity.time_limit.use_time.week = sortWeeks(goodsDetail.entity.time_limit.use_time.week); } this.receive_time = goodsDetail.entity.time_limit; }, filters: { - cardType (val) { + cardType(val) { return val.map((item) => { return item == 1 ? "借记卡" : "信用卡" + " "; }).join(" "); }, }, methods: { - backgoodsFn () { + backgoodsFn() { if (goodsCount > 1) { window.location.replace('./homepage.html'); } else { history.go(-2); } }, - receiveFn () { + receiveFn() { if (this.loading) return; this.loading = true; let self = this; @@ -247,7 +247,7 @@ }, /* 公众号领取 */ - publicCollection (order_number) { + publicCollection(order_number) { let params = { order_number, channel: 2, @@ -269,7 +269,7 @@ }, - toLinkAlipay () { + toLinkAlipay() { //支付宝H5跳转 let self = this; let banklink = encodeURIComponent( @@ -289,18 +289,18 @@ } }, //错误弹出框关闭 - knowFn () { + knowFn() { this.popboxshow = false; this.maskshow = false; }, //错误弹出框 - openErrorDialog (tip) { + openErrorDialog(tip) { this.maskshow = true; this.tiptext = tip; this.popboxshow = true; }, // 单条弹框 - openDialog (tip) { + openDialog(tip) { this.promtshow = true; this.promttip = tip; setTimeout(() => { @@ -310,7 +310,7 @@ }, /* 动态font */ - fonts () { + fonts() { const defaultCss = '0.32rem'; const count = String(parseFloat(this.reduceInfo.reduce_amount)).length + 1; if (count > 4) { @@ -321,7 +321,7 @@ }, //复制文本 - copyFn () { + copyFn() { var textArea = document.createElement("textarea"); textArea.value = this.copyLink; document.body.appendChild(textArea);