提交 5fbe0d1c authored 作者: 刘旭's avatar 刘旭

优化h5

上级 ac566c13
......@@ -18,6 +18,7 @@
shape="circle"
></u-checkbox>
<u-image
v-if="type === 0"
width="140rpx"
height="200rpx"
:src="
......@@ -42,7 +43,7 @@
/>
</block>
</view>
<view style="font-weight: bold;">¥{{ item.price }}</view>
<!-- <view style="font-weight: bold;">¥{{ item.price }}</view> -->
</view>
</view>
<view v-if="delCircle" class="circle" @tap="deleteCart(index)">
......@@ -355,7 +356,7 @@ onShow(() => {
.b-tag {
display: flex;
flex-direction: row;
margin-bottom: 25%;
margin-bottom: 40%;
flex-wrap: wrap;
}
}
......
......@@ -198,7 +198,6 @@ const initIndex = () => {
item.url = baseUrl + item.url;
}
});
console.log(indexData.value.banner);
}
});
};
......@@ -214,6 +213,8 @@ initIndex();
text-overflow: ellipsis;
overflow: hidden;
word-break: break-all;
font-size: 24rpx;
margin-top: 2rpx;
}
}
......@@ -229,7 +230,7 @@ initIndex();
.goods-item {
width: auto;
height: 450rpx;
height: 380rpx;
background-color: #ffffff;
margin: 5rpx;
border-radius: 25rpx;
......
......@@ -172,7 +172,7 @@ let total = ref(0)
let list = ref([
{name: '全部'},
{name: '待推送'},
{name: '待生'},
{name: '待生'},
{name: '待发货'},
{name: '已完成'}// count: 12
])
......
<template>
<u-subsection :list="list" v-model="current" active-color="#ff9900" @change="change" />
<view v-if="collectList.length !== 0">
<goodsItem
v-for="item in collectList"
:src="item?.picUrl"
:name="item.name"
:brief="item.brief"
:retailPrice="item.retailPrice"
@tap="toGoods(item.valueId)"
style="margin-top: 6rpx;"
/>
<view v-if="current === 0" style="margin-top: 6rpx;">
<goodsItem
v-for="item in collectList"
:key="item.id"
:src="item?.picUrl"
:name="item.name"
:brief="item.brief"
:retailPrice="item.retailPrice"
@tap="toGoods(item.valueId)"
/>
</view>
<view v-else>
<view
v-for="item in collectList"
:key="item.id"
style="width: 100%; height: 80rpx; line-height: 80rpx; background-color: #fff; padding: 0 30rpx; margin-bottom: 4rpx;"
>
{{ item.name }}
</view>
</view>
<view style="padding: 20rpx;"><u-loadmore :status="status" icon-type="flower" /></view>
</view>
<u-empty v-else text="收藏为空" mode="list" style="margin: 200rpx auto;"></u-empty>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论