完成
This commit is contained in:
95
components/informations/notice/notice.vue
Normal file
95
components/informations/notice/notice.vue
Normal file
@@ -0,0 +1,95 @@
|
||||
<template>
|
||||
<view class="notice">
|
||||
<view v-for="(item,index) in notice">
|
||||
<view class="time_notice">2020-05-14 20:11</view>
|
||||
<view class="notice_view">
|
||||
<image :src="item.url" mode="aspectFill" ></image>
|
||||
<view class="text_view">{{item.content}}</view>
|
||||
<view class="notice_list">
|
||||
<text>查看详情</text>
|
||||
<view> > </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
.notice {
|
||||
background: #ECECEC;
|
||||
.notice_view{
|
||||
width: 690rpx;
|
||||
height: 489rpx;
|
||||
border-radius: 20rpx;
|
||||
background: #fff;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.notice_view image{
|
||||
height: 285rpx;
|
||||
width: 100%;
|
||||
border-radius: 20rpx 20rpx 0px 0px;
|
||||
}
|
||||
.text_view{
|
||||
font-size:26rpx;
|
||||
font-weight:400;
|
||||
color:rgba(51,51,51,1);
|
||||
margin: 28rpx 0 30rpx 0;
|
||||
width: 643rpx;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.notice_view > view:nth-child(3){
|
||||
height: 84rpx;
|
||||
line-height: 84rpx;
|
||||
border-top: 1px #F5F5F5 solid;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
}
|
||||
.time_notice{
|
||||
text-align: center;
|
||||
font-size:28rpx;
|
||||
font-weight:400;
|
||||
color:rgba(102,102,102,1);
|
||||
padding: 26rpx 0 39rpx 0;
|
||||
}
|
||||
.notice_list{
|
||||
text-align: left;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
padding: 0 25rpx;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
.notice_list > view{
|
||||
text-align: right;
|
||||
position: absolute;
|
||||
right: 25rpx;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
<script>
|
||||
export default {
|
||||
name: "notice",
|
||||
data() {
|
||||
return {
|
||||
notice : [
|
||||
{
|
||||
time : '2020-05-14 20:11',
|
||||
content:'潮牌1折秒杀!杨幂同款小白鞋今日43元送10000元大红包还有明星限量签名照',
|
||||
url : '../../../pageE/static/mine/23.png'
|
||||
},
|
||||
{
|
||||
time : '2020-05-14 20:11',
|
||||
content:'潮牌1折秒杀!杨幂同款小白鞋今日43元送10000元大红包还有明星限量签名照',
|
||||
url : '../../../pageE/static/mine/23.png'
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
}
|
||||
</script>
|
||||
80
components/informations/titles/titles.vue
Normal file
80
components/informations/titles/titles.vue
Normal file
@@ -0,0 +1,80 @@
|
||||
<template>
|
||||
<view id="info_title">
|
||||
<view>
|
||||
<view class="url_info" v-for="(item,index) in list" :key="index">
|
||||
<image :src="item.url"></image>
|
||||
<text>{{item.text}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<style lang="scss" scoped>
|
||||
.url_info{
|
||||
width: 127rpx;
|
||||
float: left;
|
||||
flex:1;
|
||||
}
|
||||
.url_info image{
|
||||
width: 84rpx;
|
||||
height: 84rpx;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.url_info text{
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size:28rpx;
|
||||
color:rgba(102,102,102,1);
|
||||
}
|
||||
.sousuo {
|
||||
height: 113rpx;
|
||||
border: 1px #f00 solid;
|
||||
}
|
||||
|
||||
#info_title {
|
||||
width: 620rpx;
|
||||
margin: 0 auto;
|
||||
padding: 37rpx 0;
|
||||
|
||||
}
|
||||
#info_title > view {
|
||||
overflow: hidden;
|
||||
zoom: 1;
|
||||
display:flex;
|
||||
flex-wrap:wrap;
|
||||
display: -webkit-flex; /* Safari */
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
export default {
|
||||
name:"info_title",
|
||||
data(){
|
||||
return {
|
||||
list: [{
|
||||
id: 0,
|
||||
url: '../../static/pageD/info(11).png',
|
||||
text : '公告/资讯'
|
||||
},
|
||||
{
|
||||
id: 0,
|
||||
url: '../../static/pageD/info(6).png',
|
||||
text : '活动消息'
|
||||
},
|
||||
{
|
||||
id: 0,
|
||||
url: '../../static/pageD/info(14).png',
|
||||
text : '交易物流'
|
||||
|
||||
},
|
||||
{
|
||||
id: 0,
|
||||
url: '../../static/pageD/info(15).png',
|
||||
text : '关注消息'
|
||||
},
|
||||
|
||||
],
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user