Commit d4e34f51 by 李嘉林

小程序原生问题修改

parent 2cb5e97e
...@@ -386,6 +386,9 @@ export default { ...@@ -386,6 +386,9 @@ export default {
link:linkVal, link:linkVal,
}); });
} }
if(res &&
res.id
){
app.fenxiaoModel.getDistributorHomepage(res).then(ele=>{ app.fenxiaoModel.getDistributorHomepage(res).then(ele=>{
if(ele.id) { if(ele.id) {
this.getDistributorHomepageName = '我的小店'; this.getDistributorHomepageName = '我的小店';
...@@ -393,6 +396,7 @@ export default { ...@@ -393,6 +396,7 @@ export default {
this.getDistributorHomepageName = '一键开店'; this.getDistributorHomepageName = '一键开店';
} }
}); });
}
if( if(
res&& res&&
res.parentSpokesmanDistributionModel == '1'&& res.parentSpokesmanDistributionModel == '1'&&
......
...@@ -351,9 +351,9 @@ const componentOptions = { ...@@ -351,9 +351,9 @@ const componentOptions = {
let linkVal = ""; let linkVal = "";
if (goodsType != 1) { if (goodsType != 1) {
if (style == "list") { if (style == "list") {
linkVal = `/goodsSearch/goodsSearch?categoryName=${categoryName}&categoryId=${categoryId}`; linkVal = `/goods/commodityMenu?categoryName=${categoryName}&categoryId=${categoryId}`;
} else { } else {
linkVal = `/goodsSearch/goodsSearch`; linkVal = `/goods/commodityMenu`;
} }
} else { } else {
linkVal = `/pointShop/productList?categoryName=${categoryName}&categoryId=${categoryId}`; linkVal = `/pointShop/productList?categoryName=${categoryName}&categoryId=${categoryId}`;
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
> >
<goods-item <goods-item
datas="{{datas}}" datas="{{datas}}"
items="{{datas.componentData.goodsList[index]}}" items="{{goodsList[index]}}"
indexs="{{index}}" indexs="{{index}}"
></goods-item> ></goods-item>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment