|
|
@@ -8,7 +8,7 @@ definePage({
|
|
|
navigationBarTitleText: '搜索',
|
|
|
},
|
|
|
})
|
|
|
-const { searchList } = storeToRefs(useSysXsbStore())
|
|
|
+const { searchList, SelectShopInfo } = storeToRefs(useSysXsbStore())
|
|
|
const searchText = ref()
|
|
|
const tabbarlist = ref([
|
|
|
{ name: '综合', id: 0 },
|
|
|
@@ -25,7 +25,7 @@ const { data, send, isLastPage, page, error } = usePagination((pageNum, pageSize
|
|
|
pageSize,
|
|
|
priceSort: activeTab.value === 2 ? 'DESC' : '',
|
|
|
salesNum: activeTab.value === 1 ? 'DESC' : '',
|
|
|
- shopId: 1,
|
|
|
+ shopId: SelectShopInfo.value.shopId,
|
|
|
channelId: userInfo.value.channelId || 1,
|
|
|
} }), {
|
|
|
immediate: false,
|
|
|
@@ -150,7 +150,7 @@ function handleSearchText(text: string) {
|
|
|
</view>
|
|
|
</view>
|
|
|
<view v-if="isSearch" class="px24rpx pt20rpx">
|
|
|
- <view v-for="item in data" :key="item.id" class="mb20rpx box-border flex items-center justify-between rounded-16rpx bg-white p24rpx" @click="router.push({ name: 'xsb-goods', params: { id: String(item.id) } })">
|
|
|
+ <view v-for="item in data" :key="item.id" class="mb20rpx box-border flex items-center justify-between rounded-16rpx bg-white p24rpx" @click="router.push({ name: 'xsb-goods', params: { id: String(item.skuList[0].skuId) } })">
|
|
|
<image
|
|
|
:src="item.pic"
|
|
|
class="h200rpx w200rpx flex-shrink-0 rounded-16rpx"
|