Browse Source

bug修改

feature/3.0.0-推广员
lfs3 6 years ago
parent
commit
6409b72811
1 changed files with 18 additions and 3 deletions
  1. 21
      src/view/month-card.vue

21
src/view/month-card.vue

@ -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,

Loading…
Cancel
Save