This commit is contained in:
Gdpao
2020-08-04 21:46:52 +08:00
parent 43845b4810
commit 692495f108
10 changed files with 49 additions and 21 deletions

View File

@@ -10,7 +10,7 @@
</swiper-item>
</swiper>
<view class="bottom">
<view class="item">
<view class="item" :style="{ width: photo_len * 20 + 100 + 'rpx' }">
<text>图片</text>
<view v-for="(item,index) in list.photo" :key="index" :style="{'background-color':index == swiper_id ? '#fff' : '#ede8e8'}"></view>
</view>
@@ -46,7 +46,7 @@
<view>
</view>
<view class="more-reply" v-if="item.reply_count">展开更多回复<u-icon name="arrow-down"></u-icon></view>
<!-- <view class="more-reply" v-if="item.reply_count">展开更多回复<u-icon name="arrow-down"></u-icon></view> -->
</view>
</block>
<view class="no-data" v-else>111</view>
@@ -120,7 +120,6 @@
.item{
display: flex;
align-items: center;
width: 50%;
padding: 8rpx 16rpx;
font-size: 24rpx;
color: #fff;
@@ -349,6 +348,7 @@
.content {
height: 60rpx;
margin: 10rpx 0;
line-height: 30rpx;
font-size: 24rpx;
}
.price {
@@ -379,6 +379,7 @@ export default {
send_value: "", // 输入的值
cartList: [],
cart_len: 0,
photo_len: 0,
edit_text: "有爱评论,说点好听的 ~",
edit_text_other: "有爱评论,说点好听的 ~",
commentList: [], // 评论
@@ -408,6 +409,7 @@ export default {
this.$u.api.articleInfo({article_id}).then((res)=>{
this.list = res.data.info;
this.cart_len = res.data.info.goods.length;
this.photo_len = res.data.info.photo.length;
})
},
// 改变swiper