|
|
@@ -8,7 +8,7 @@ const props = defineProps<{ categoryList: Api.xsbCategories[], hotText: Api.xsbS
|
|
|
const { statusBarHeight, MenuButtonHeight } = storeToRefs(useSysStore())
|
|
|
const { topNavActive, leftActive, SelectShopInfo } = storeToRefs(useSysXsbStore())
|
|
|
const { userInfo, token } = storeToRefs(useUserStore())
|
|
|
-const { getTotalNum } = storeToRefs(useSmqjhCartStore())
|
|
|
+const { getShopTotalNum } = storeToRefs(useSmqjhCartStore())
|
|
|
const classfiylist = computed(() => props.categoryList)
|
|
|
const sortClassBtn = ref(1)
|
|
|
const show = ref(false)
|
|
|
@@ -245,6 +245,7 @@ onMounted(async () => {
|
|
|
leftActive.value = firstWithChildren.children![0].code
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
goodsLoading.value = 'loading'
|
|
|
if (leftActive.value) {
|
|
|
handleChange({ value: leftActive.value })
|
|
|
@@ -383,7 +384,7 @@ function handlePay() {
|
|
|
router.push({ name: 'xsb-confirmOrder', params: { data: JSON.stringify(totalProduct.value) } })
|
|
|
}
|
|
|
function handleOpen() {
|
|
|
- if (!getTotalNum.value)
|
|
|
+ if (!getShopTotalNum.value)
|
|
|
return
|
|
|
cartPopup.value = true
|
|
|
priceDetailPopup.value = false
|
|
|
@@ -651,12 +652,12 @@ export default {
|
|
|
<view class="ios w-full flex items-center justify-between">
|
|
|
<view class="flex items-center">
|
|
|
<view class="flex items-center" @click="handleOpen">
|
|
|
- <wd-badge :model-value="getTotalNum" :top="20">
|
|
|
- <image v-if="getTotalNum" :src="`${StaticUrl}/cart-lanzi.png`" class="cart-box h100rpx w100rpx" />
|
|
|
+ <wd-badge :model-value="getShopTotalNum" :top="20">
|
|
|
+ <image v-if="getShopTotalNum" :src="`${StaticUrl}/cart-lanzi.png`" class="cart-box h100rpx w100rpx" />
|
|
|
<image v-else :src="`${StaticUrl}/xsb-cart-disabled.png`" class="cart-box h100rpx w100rpx" />
|
|
|
</wd-badge>
|
|
|
</view>
|
|
|
- <view v-if="getTotalNum" class="ml40rpx">
|
|
|
+ <view v-if="getShopTotalNum" class="ml40rpx">
|
|
|
<view class="flex items-center">
|
|
|
<view class="font-semibold">
|
|
|
¥ {{ totalProduct?.amount || 0 }}
|
|
|
@@ -694,7 +695,7 @@ export default {
|
|
|
</view>
|
|
|
</view> -->
|
|
|
<view class="ml20rpx w160rpx">
|
|
|
- <wd-button block size="large" :disabled="!getTotalNum" :type="getTotalNum ? 'primary' : 'info'" @click="handlePay">
|
|
|
+ <wd-button block size="large" :disabled="!getShopTotalNum" :type="getShopTotalNum ? 'primary' : 'info'" @click="handlePay">
|
|
|
结算
|
|
|
</wd-button>
|
|
|
</view>
|
|
|
@@ -766,7 +767,7 @@ export default {
|
|
|
全选
|
|
|
</wd-checkbox>
|
|
|
<text class="ml-16rpx text-24rpx text-[#AAAAAA]">
|
|
|
- 已选{{ selectedCount }}件
|
|
|
+ 已选{{ selectedCount }}件,总重量约为{{ totalProduct?.totalWeight || 0 }}kg
|
|
|
</text>
|
|
|
</view>
|
|
|
<view class="text-24rpx text-[#AAAAAA]" @click="handleClearCart">
|