181 lines
3.8 KiB
Vue
181 lines
3.8 KiB
Vue
<template>
|
|
<view class="index">
|
|
<view class="onecontenttowone flex-start">
|
|
<view class="onecontenttowone_one">
|
|
{{title}}
|
|
</view>
|
|
</view>
|
|
<view class="indexbox">
|
|
<view class="indexboxitem flex-start" v-for="(item,index) in list" :key="index">
|
|
<image class="indexboxitemimage" :src="item.host_img" mode="aspectFill"></image>
|
|
<view class="indexboxitemleft flex-colum-start">
|
|
<view class="indexboxitemleftone">
|
|
{{item.title}}
|
|
</view>
|
|
<view class="indexboxitemlefttow">
|
|
{{item.intro}}
|
|
</view>
|
|
<view class="indexboxitemleftthere flex-start">
|
|
<view class="indexboxitemleftthere_one">
|
|
<text>¥</text>
|
|
<text>{{item.price}}</text>
|
|
</view>
|
|
<view class="indexboxitemleftthere_tow">
|
|
¥{{item.y_price}}
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="indexboxitembox" @click="mallInfoInfo(item)">
|
|
立即抢购
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {}
|
|
},
|
|
props: {
|
|
list: {
|
|
type: Array,
|
|
default () {
|
|
return []
|
|
}
|
|
},
|
|
title: {
|
|
type: String,
|
|
default: '银收客'
|
|
},
|
|
|
|
},
|
|
methods: {
|
|
mallInfoInfo(e) { //查看订单详情
|
|
uni.pro.navigateTo('mall/mallInfo', {
|
|
id: e.id,
|
|
})
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.index {
|
|
width: 100%;
|
|
padding: 32rpx;
|
|
|
|
.onecontenttowone::before {
|
|
content: '';
|
|
display: inline-block;
|
|
width: 4rpx;
|
|
height: 20rpx;
|
|
background: var(--bg-color-buttonone);
|
|
border-radius: 4rpx;
|
|
}
|
|
|
|
.onecontenttowone {
|
|
.onecontenttowone_one {
|
|
margin-left: 8rpx;
|
|
font-size: 32rpx;
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
font-weight: bold;
|
|
color: #1A1A1A;
|
|
}
|
|
}
|
|
|
|
.indexbox {
|
|
.indexboxitem {
|
|
margin-top: 24rpx;
|
|
position: relative;
|
|
padding: 24rpx;
|
|
width: 100%;
|
|
height: 212rpx;
|
|
background: #FFFFFF;
|
|
box-shadow: 0px 6rpx 12rpx 2rpx rgba(0, 0, 0, 0.16);
|
|
border-radius: 18rpx;
|
|
|
|
.indexboxitemimage {
|
|
width: 164rpx;
|
|
height: 164rpx;
|
|
border-radius: 12rpx;
|
|
}
|
|
|
|
.indexboxitemleft {
|
|
height: 164rpx;
|
|
margin-left: 12rpx;
|
|
width: 60%;
|
|
|
|
.indexboxitemleftone {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
font-size: 32rpx;
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
font-weight: 500;
|
|
color: #1A1A1A;
|
|
}
|
|
|
|
.indexboxitemlefttow {
|
|
width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
margin-top: 12rpx;
|
|
font-size: 24rpx;
|
|
font-family: Source Han Sans CN, Source Han Sans CN;
|
|
font-weight: 400;
|
|
color: #666666;
|
|
}
|
|
|
|
.indexboxitemleftthere {
|
|
margin-top: 20rpx;
|
|
align-items: flex-end;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
|
|
.indexboxitemleftthere_one {
|
|
font-size: 34rpx;
|
|
font-family: SourceHanSansCN-Bold, SourceHanSansCN-Bold;
|
|
font-weight: normal;
|
|
color: #FC5F69;
|
|
|
|
text:nth-child(1) {
|
|
font-size: 24rpx;
|
|
font-family: SourceHanSansCN-Bold, SourceHanSansCN-Bold;
|
|
font-weight: normal;
|
|
color: #FC5F69;
|
|
}
|
|
}
|
|
|
|
.indexboxitemleftthere_tow {
|
|
text-decoration: line-through;
|
|
margin-left: 12rpx;
|
|
font-size: 20rpx;
|
|
font-family: SourceHanSansCN-Regular, SourceHanSansCN-Regular;
|
|
font-weight: normal;
|
|
color: #999999;
|
|
}
|
|
}
|
|
}
|
|
|
|
.indexboxitembox {
|
|
position: absolute;
|
|
right: 24rpx;
|
|
bottom: 24rpx;
|
|
background: var(--bgbuttonqq);
|
|
border-radius: 24rpx;
|
|
padding: 8rpx 22rpx;
|
|
font-size: 24rpx;
|
|
font-family: SourceHanSansCN-Bold, SourceHanSansCN-Bold;
|
|
font-weight: normal;
|
|
color: #FFFFFF;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style> |