style: 已加购商品弹窗调整

This commit is contained in:
2026-06-03 16:05:21 +08:00
parent fd851bab83
commit 1bd4efbf68
+11 -1
View File
@@ -71,6 +71,7 @@
</view> </view>
<view class="ai-button1 h_80 line80 w_200" @click="go"> 去结算 </view> <view class="ai-button1 h_80 line80 w_200" @click="go"> 去结算 </view>
</view> </view>
<view class="popupSpacer" :style="{ height: popupSpacerHeight + 'px' }"></view>
</view> </view>
</uni-popup> </uni-popup>
@@ -81,7 +82,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, getCurrentInstance, onMounted, defineProps, watch } from 'vue'; import { ref, computed, getCurrentInstance, onMounted, defineProps, watch } from 'vue';
import CartApi from '@/sheep/api/trade/cart.js'; import CartApi from '@/sheep/api/trade/cart.js';
import * as SpuApi from '@/sheep/api/ai/index'; import * as SpuApi from '@/sheep/api/ai/index';
import { onShow } from '@dcloudio/uni-app'; import { onShow } from '@dcloudio/uni-app';
@@ -111,6 +112,11 @@
default: 0 default: 0
} }
}); });
const popupSpacerHeight = computed(() => {
const deltaPx = uni.upx2px(30);
return Math.max(0, (Number(props.bottomOffset) || 0) - deltaPx);
});
const cartList = ref([]); const cartList = ref([]);
let price = ref(0); let price = ref(0);
let num = ref(0); let num = ref(0);
@@ -335,4 +341,8 @@
.popupBottom { .popupBottom {
box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.04); box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.04);
} }
.popupSpacer {
width: 100%;
}
</style> </style>