goods details store route 8.14

This commit is contained in:
ghusermoon 2020-08-14 20:45:11 +08:00
parent 41d2258a5d
commit d79b0c5da7
3 changed files with 9 additions and 4 deletions

View File

@ -192,7 +192,7 @@ export default {
}); });
}, },
// 商品搜索 // 商品搜索
ShopSearch({keyword,page = 1,order = 'goods_salenum'}){ ShopSearch({keyword, page = 1, order = 'goods_salenum'}){
return vm.$u.post('ShopSearch/search',{ return vm.$u.post('ShopSearch/search',{
keyword,page,order keyword,page,order
}) })

View File

@ -19,7 +19,7 @@
</view> </view>
<view class="info"> <view class="info">
<view class="title u-line-2"> <view class="title u-line-2">
<text class="store-name">{{ goodsInfo.store_name }}</text> <text class="store-name" @click="toStorePage(goodsInfo.store_id)">{{ goodsInfo.store_name }}</text>
<text class="goods-name">{{ goodsInfo.goods_name }}</text> <text class="goods-name">{{ goodsInfo.goods_name }}</text>
</view> </view>
<view class="price-collect"> <view class="price-collect">
@ -662,7 +662,12 @@ export default {
this.$u.toast(res.message); this.$u.toast(res.message);
} }
}) })
} },
toStorePage(id) {
this.$u.route('pageC/merchant/index', {
id: id
});
},
}, },
} }
</script> </script>

View File

@ -2,7 +2,7 @@
<view class="concerns"> <view class="concerns">
<view> <view>
<u-tabs-swiper ref="uTabs" :list="list" :current="current" @change="tabsChange" :is-scroll="false" <u-tabs-swiper ref="uTabs" :list="list" :current="current" @change="tabsChange" :is-scroll="false"
swiperWidth="750"></u-tabs-swiper> swiperWidth="750" active-color="#FF780F"></u-tabs-swiper>
</view> </view>
<swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" style="width:750rpx" :style="{'height':height}"> <swiper :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish" style="width:750rpx" :style="{'height':height}">
<swiper-item class="swiper-item" > <swiper-item class="swiper-item" >