${{lst.SalePrice}}
$XXXX
${{lst.SpicalPrice}}
$XXXX
{{lst.ProdName}}
{{lst.ProdName}}
${{lst.SalePrice}}
秘密價
門市獨享價
${{lst.SpicalPrice}}
${{lst.SalePrice}}
秘密價
門市獨享價
${{lst.SpicalPrice}}
{{lst.memo}}
{{lst.ProdName}}
-->\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n ", "SDate": "03/20/2021", "EDate": "12/31/2030", "JSPath": "https://img.eclife.com.tw/EDM/images/Bank/Index.V1.js", "Membership": "未登入", "ProdList": [] }; var lsdv = new Vue({ el: "#lsdv", data: vue_data, methods: { checkdate: function () { var sdate = new Date(this.DateFormate(vue_data.SDate)); var edate = new Date(this.DateFormate(vue_data.EDate)); edate = edate.setDate(edate.getDate() + 1); edate = new Date(edate); var today = new Date(); //today if (today < sdate) { alert("活動尚未開始"); location.href = "/"; } if (today > edate) { alert("活動已經結束"); location.href = "/"; } }, DateFormate: function (v) { var re = /(\d{2})\/(\d{2})\/(\d{4})(\w*)/; var str = v; var myArray = str.match(re); var d = myArray[3] + '/' + myArray[1] + '/' + myArray[2]; return d; } }, mounted: function () { this.checkdate(); } }); // 當捲軸大於200時出現 GoTop icon 點即回頂端 window.onscroll = function () { var goTop = document.getElementsByClassName("GoTop"); if (goTop.length > 0) { goTop[0].style.display = document.documentElement.scrollTop >= 200 || document.body.scrollTop >= 200 ? 'block' : 'none'; goTop[0].onclick = function () { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; } } }