style: 已加购商品弹窗调整
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
</view>
|
||||
<view class="ai-button1 h_80 line80 w_200" @click="go"> 去结算 </view>
|
||||
</view>
|
||||
<view class="popupSpacer" :style="{ height: popupSpacerHeight + 'px' }"></view>
|
||||
</view>
|
||||
</uni-popup>
|
||||
|
||||
@@ -81,7 +82,7 @@
|
||||
</template>
|
||||
|
||||
<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 * as SpuApi from '@/sheep/api/ai/index';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
@@ -111,6 +112,11 @@
|
||||
default: 0
|
||||
}
|
||||
});
|
||||
|
||||
const popupSpacerHeight = computed(() => {
|
||||
const deltaPx = uni.upx2px(30);
|
||||
return Math.max(0, (Number(props.bottomOffset) || 0) - deltaPx);
|
||||
});
|
||||
const cartList = ref([]);
|
||||
let price = ref(0);
|
||||
let num = ref(0);
|
||||
@@ -335,4 +341,8 @@
|
||||
.popupBottom {
|
||||
box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.popupSpacer {
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user