|
|
|
@ -341,7 +341,15 @@ |
|
|
|
isbest:0, |
|
|
|
popImg:'', |
|
|
|
countdownTime: 6, |
|
|
|
popUrl:'' |
|
|
|
popUrl:'', |
|
|
|
myMes:{ |
|
|
|
_action:'getmessagelist', |
|
|
|
type:0, |
|
|
|
// importance:'', |
|
|
|
// label:'', |
|
|
|
page_index:1, |
|
|
|
page_size:10 |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
onPullDownRefresh() { |
|
|
|
@ -545,32 +553,50 @@ |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
gotoSearch(){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:'./search' |
|
|
|
}) |
|
|
|
}, |
|
|
|
goDetails(id){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages/productDetails/index?goodid='+id |
|
|
|
}) |
|
|
|
}, |
|
|
|
getMes(){ |
|
|
|
let data ={ _action:'getpagedata',pagecode:'006-PERSONALCENTERPAGE' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
let a=0, b =0 |
|
|
|
defaultRequest(data).then(res =>{ |
|
|
|
// //console.log(res,'个人页面配置信息') |
|
|
|
res.data.zones.map(item =>{ |
|
|
|
|
|
|
|
let list = res.data.zones |
|
|
|
|
|
|
|
list.map(item =>{ |
|
|
|
if(item.zone_code =='XIAOXI'){ |
|
|
|
let list = item |
|
|
|
this.mesNum = list.blocks.length |
|
|
|
this.list = item |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
console.log(this.list.blocks.length) |
|
|
|
a = this.list.blocks.length |
|
|
|
let str = this.list.blocks[0].block_avaiable_from |
|
|
|
|
|
|
|
}) |
|
|
|
defaultRequest(this.myMes).then(res =>{ |
|
|
|
console.log(res) |
|
|
|
if(res.error ==0){ |
|
|
|
this.app_Mes = res.data.message_list |
|
|
|
b = this.app_Mes.length |
|
|
|
console.log(this.app_Mes.length) |
|
|
|
} |
|
|
|
let sum = parseInt(a) + parseInt(b) |
|
|
|
console.log(sum) |
|
|
|
this.mesNum= sum |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
gotoSearch(){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:'./search' |
|
|
|
}) |
|
|
|
}, |
|
|
|
goDetails(id){ |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages/productDetails/index?goodid='+id |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getList(){ |
|
|
|
|
|
|
|
|
|
|
|
|