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

优化h5

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