|
...
|
...
|
@@ -9,7 +9,11 @@ Component({ |
|
|
|
hasSellerShare:{
|
|
|
|
type:Boolean,
|
|
|
|
value:false,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
seller:{
|
|
|
|
type:Object,
|
|
|
|
value:{},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -17,8 +21,17 @@ Component({ |
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
hasShow:false,
|
|
|
|
product:null,
|
|
|
|
},
|
|
|
|
lifetimes: {
|
|
|
|
attached: function () {
|
|
|
|
this.formatProduct()
|
|
|
|
},
|
|
|
|
moved: function () {
|
|
|
|
},
|
|
|
|
detached: function () {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 组件的方法列表
|
|
|
|
*/
|
|
...
|
...
|
@@ -46,5 +59,25 @@ Component({ |
|
|
|
},'/pages/reserve/share')
|
|
|
|
})
|
|
|
|
},
|
|
|
|
formatProduct(){
|
|
|
|
let seller=this.data.seller
|
|
|
|
let product= {
|
|
|
|
item_code:seller.id+"",
|
|
|
|
title:seller.sellername,
|
|
|
|
desc:seller.slogan,
|
|
|
|
category_list:seller.cate,
|
|
|
|
image_list:seller.envi_image,
|
|
|
|
src_mini_program_path:'/pages/reserve/detail?id='+seller.id+'&from=haowu',
|
|
|
|
brand_info:{
|
|
|
|
name:seller.sellername,
|
|
|
|
logo:seller.seller_image,
|
|
|
|
phone:seller.seller_tel,
|
|
|
|
},
|
|
|
|
sku_list:[],
|
|
|
|
}
|
|
|
|
this.setData({
|
|
|
|
product:product,
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}) |
...
|
...
|
|