|
|
|
@ -137,7 +137,21 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
getTime(time) { |
|
|
|
let date = new Date(time); |
|
|
|
let year = date.getFullYear(); |
|
|
|
let month = this.checkTime(date.getMonth() + 1); |
|
|
|
let day = this.checkTime(date.getDate()); |
|
|
|
let str = |
|
|
|
year + "-" + month + "-" + day; |
|
|
|
return str; |
|
|
|
}, |
|
|
|
checkTime(i) { |
|
|
|
if (i < 10) { |
|
|
|
i = "0" + i; |
|
|
|
} |
|
|
|
return i; |
|
|
|
}, |
|
|
|
// 立即使用优惠券 |
|
|
|
handleUseCoupon() { |
|
|
|
window.location.href = |
|
|
|
@ -197,13 +211,14 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId |
|
|
|
// let uuniqueId = Qs.parse(location.search.substring(1)).uniqueId |
|
|
|
var url = location.href.split('?')[0] |
|
|
|
if(this.uniqueId !== undefined && this.uniqueId !== null && this.uniqueId !== ""){ |
|
|
|
if(this.uniqueId === undefined || this.uniqueId === null || this.uniqueId === ""){ |
|
|
|
this.uniqueId = '' |
|
|
|
} |
|
|
|
// 初始化 |
|
|
|
this.handleInit(); |
|
|
|
console.log('uniqueId:'+this.uniqueId) |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
var params = { |
|
|
|
salesmanUniqueIdentity: this.uniqueId, |
|
|
|
|