This commit is contained in:
zmr900709
2020-08-20 14:23:21 +08:00
parent 30539ddf64
commit c81ee7e961
10 changed files with 50 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
<u-icon name="play-circle-fill" color="#ffffff" size="20"></u-icon>
<text>视频</text>
</view>
<image class="head" :src="item.article_pic"></image>
<image class="head" :src="item.article_pic" mode="aspectFill"></image>
</view>
<view class="title" v-if="">{{ item.article_title }}</view>
<view class="jianjie">{{ item.article_content }}</view>
@@ -103,7 +103,7 @@
}
}
>image{
width: 37rpx;
width: 35rpx;
height: 8rpx;
padding: 20rpx;
}

View File

@@ -1,5 +1,5 @@
<template>
<view class="notice">
<view class="notice" :style="{height : height + 'px'}">
<view v-for="(item,index) in notice" :key="index" @click="gotoInfo(index)">
<view class="time_notice">{{ item.addtime }}</view>
<view class="notice_view">
@@ -36,6 +36,7 @@
margin: 0 auto;
text-align: left;
line-height: 40rpx;
letter-spacing: 2rpx;
}
.notice_view > view:nth-child(3){
height: 84rpx;
@@ -77,7 +78,8 @@
props: ['list'],
data() {
return {
notice : []
notice : [],
height : ''
};
},
watch: {
@@ -86,6 +88,8 @@
this.notice = newVal;
}
},
onLoad() {
},
methods: {
gotoInfo(index) {
console.log(index);

View File

@@ -1,7 +1,7 @@
<template>
<view class="special">
<view v-if="type == 'spike'" @click="spikeGoods">
<image :src="item.groupbuy_image1"></image>
<image :src="item.groupbuy_image1" mode="aspectFill"></image>
<view class="right">
<view class="name u-line-1">{{ item.goods_name }}</view>
<view class="price">