From df4dd9f030ac4e830d93f2f64e2379a9b7dad278 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 25 六月 2025 20:41:20 +0800 Subject: [PATCH] 自定义顶部组件、顶部tab对应页面接入该组件 --- pages/tabbar/cart/cartList.vue | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/pages/tabbar/cart/cartList.vue b/pages/tabbar/cart/cartList.vue index 999f74a..c6e1e61 100644 --- a/pages/tabbar/cart/cartList.vue +++ b/pages/tabbar/cart/cartList.vue @@ -1,5 +1,5 @@ <template> - <div class="wrapper"> + <view class="wrapper"> <u-navbar :is-back="false" title="璐墿杞�"> <div slot="right"> <div class="light-color edit" @click="isEdit = !isEdit">{{ !isEdit ? '缂栬緫' : '瀹屾垚'}}</div> @@ -68,7 +68,12 @@ </u-checkbox-group> <span class="invalid" v-else style="font-size: 24rpx">澶辨晥</span> </view> - <u-image border-radius="10" :fade="true" @click="navigateToGoods(skuItem)" width="160rpx" height="160rpx" +<!-- <video border-radius="10" :fade="true" @click="navigateToGoods(skuItem)" + v-if="skuItem.goodsSku.goodsVideo" :src="skuItem.goodsSku.goodsVideo" + style="width: 160rpx;height: 160rpx;" + :initial-time="0" + :controls="false" object-fit="contain" :show-play-btn="false" :show-center-play-btn="false"/> --> + <u-image border-radius="10" :fade="true" @click="navigateToGoods(skuItem)" width="160rpx" height="160rpx" :src="skuItem.goodsSku.thumbnail" /> </view> <view class="goods-content"> @@ -175,14 +180,16 @@ </view> </div> <u-toast ref="uToast" /> - </div> + <custom-tabbar bgColor="#ffffff" selected="buyCar"></custom-tabbar> + </view> </template> <script> + +import '@/components/uview-components/uview-ui'; import * as API_Trade from "@/api/trade"; import { debounce } from "@/utils/tools.js"; -import uniNumberBox from '@/components/uni-number-box' +// import uniNumberBox from '@/components/uni-number-box' export default { - components:{uniNumberBox}, // 鏁伴噺鍔犲噺缁勪欢 data() { return { loading:false, @@ -623,7 +630,7 @@ left: 0; top: 0; width: 100%; - height: 100vh; + height: calc(100vh - 50px); z-index: 99; padding-bottom: var(--window-bottom); display: flex; @@ -688,7 +695,7 @@ } .wrapper { - height: 100%; + height: calc(100% - 50px);; } /deep/ .u-col { @@ -774,7 +781,7 @@ justify-content: space-between; position: fixed; // #ifdef APP-PLUS || MP-WEIXIN - bottom: 0; + bottom: 50px; // #endif // #ifdef H5 bottom: var(--window-bottom); -- Gitblit v1.8.0