123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512 |
- <template>
- <view>
- <view class="active-plate d-flex justify-content-between">
- <view class="live bg-white radius10">
- <view class="top d-flex align-items-center">
- <view class="title titColor">新品直播</view>
- <view class="sub">采一手新品</view>
- </view>
- <view class="live-box" @click="toVideo">
- <image src="https://shop.xianghuaqi.net.cn/images/live.png"></image>
- <view class="tips d-flex justify-content-between align-items-center">
- <image src="../../static/home/liveicon.png" mode=""></image>
- <text>享限时折扣</text>
- </view>
- <view class="title">直播看新品</view>
- </view>
- <view class="d-flex justify-content-between">
- <view class="goods" v-for="(item, index) in liveGoods" :key="index">
- <image :src="item.image" mode=""></image>
- <!-- <view class="name">
- {{item.name}}
- </view> -->
- </view>
- </view>
- </view>
- <view class="right-wrap d-flex align-content-between flex-wrap">
- <view class="hot-goods bg-white radius10">
- <view class="top d-flex justify-content-between align-items-center">
- <view class="title titColor">爆品火拼</view>
- <view class="count-down d-flex align-items-center">
- <image src="../../static/home/down.png" mode=""></image>
- <view class="num"><u-count-down :time="countDown" format="HH:mm:ss"></u-count-down></view>
- </view>
- </view>
- <view class="goods d-flex align-items-center justify-content-between">
- <view class="item" v-for="(item, index) in hotGoods" :key="index">
- <image :src="item.image" mode=""></image>
- <!-- <view class="price">
- ¥{{item.price}}优惠价
- </view> -->
- </view>
- </view>
- </view>
- <view class="fruits bg-white radius10">
- <view class="top d-flex align-items-center">
- <view class="title titColor">水果生鲜</view>
- <view class="sub">采一手新品</view>
- </view>
- <view class="goods d-flex align-items-center justify-content-between">
- <view class="item" v-for="(item, index) in hotFruits" :key="index">
- <image :src="item.image" mode=""></image>
- <!-- <view class="price">
- ¥{{item.price}}优惠价
- </view> -->
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'hua-active-plate',
- props: {
- liveGoods: {},
- hotGoods: {},
- hotFruits: {},
- countDown: {}
- },
- data() {
- return {};
- },
- methods: {
- toVideo() {
- console.log('跳转视频');
- }
- }
- };
- </script>
- <style lang="scss">
- .active-plate {
- margin: 32upx auto;
- .live {
- width: 334rpx;
- padding: 14rpx 16rpx 30rpx;
- box-sizing: border-box;
- .top {
- height: 44rpx;
- .title {
- font-weight: 700;
- }
- .sub {
- font-size: 24rpx;
- color: #616161;
- margin-left: 10rpx;
- }
- }
- .live-box {
- width: 100%;
- height: 208upx;
- position: relative;
- margin: 10upx auto 20upx;
- image {
- width: 100%;
- height: 100%;
- }
- .tips {
- position: absolute;
- bottom: 60upx;
- left: 14upx;
- padding: 0 10upx;
- height: 34upx;
- background: linear-gradient(142deg, #f16d60 0%, #f8352b 100%);
- border-radius: 4upx;
- image {
- width: 22upx;
- height: 16upx;
- margin-right: 4upx;
- }
- text {
- color: #fff;
- font-size: 20upx;
- }
- }
- .title {
- position: absolute;
- bottom: 20upx;
- left: 14upx;
- color: #fff;
- font-size: 24upx;
- }
- }
- .goods {
- position: relative;
- width: 146upx;
- height: 126upx;
- image {
- position: relative;
- width: 100%;
- height: 100%;
- }
- .name {
- position: absolute;
- color: #f8352b;
- font-size: 20upx;
- padding: 2upx 4upx;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- box-sizing: border-box;
- background-color: #ffe4e3;
- border-radius: 16upx;
- text-align: center;
- font-weight: 500;
- }
- }
- }
- .right-wrap {
- width: 334upx;
- .hot-goods {
- width: 100%;
- padding: 14upx 16upx 20upx;
- box-sizing: border-box;
- .top {
- .title {
- font-weight: 700;
- }
- .count-down {
- background-color: #ffd7de;
- image {
- width: 46upx;
- height: 36upx;
- }
- .num {
- font-size: 24upx !important;
- color: #f8352b;
- padding: 0 8upx;
- border-radius: 8upx;
- /deep/ .u-count-down {
- &__text {
- color: #f8352b !important;
- font-size: 24upx !important;
- line-height: unset !important;
- }
- }
- }
- }
- }
- .goods {
- margin-top: 10upx;
- .item {
- width: 126upx;
- height: 126upx;
- position: relative;
- image {
- width: 100%;
- height: 100%;
- }
- .price {
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- font-size: 20upx;
- color: #f8352b;
- background-color: #ffe4e3;
- border-radius: 16upx;
- white-space: nowrap;
- }
- }
- }
- }
- .fruits {
- width: 100%;
- padding: 14upx 16upx 20upx;
- box-sizing: border-box;
- .title {
- font-weight: 700;
- }
- .sub {
- font-size: 28upx;
- margin-left: 10upx;
- color: #616161;
- }
- .goods {
- margin-top: 10upx;
- .item {
- width: 126upx;
- height: 126upx;
- position: relative;
- image {
- width: 100%;
- height: 100%;
- }
- .price {
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- font-size: 20upx;
- color: #f8352b;
- background-color: #ffe4e3;
- border-radius: 16upx;
- white-space: nowrap;
- }
- }
- }
- }
- }
- }
- </style>
- <template>
- <view>
- <view class="active-plate d-flex justify-content-between">
- <view class="live bg-white radius10">
- <view class="top d-flex align-items-center">
- <view class="title titColor">新品直播</view>
- <view class="sub">采一手新品</view>
- </view>
- <view class="live-box">
- <image src="https://shop.xianghuaqi.net.cn/images/live.png"></image>
- <view class="tips d-flex justify-content-between align-items-center">
- <image src="../../static/home/liveicon.png" mode=""></image>
- <text>享限时折扣</text>
- </view>
- <view class="title">直播看新品</view>
- </view>
- <view class="d-flex justify-content-between">
- <view class="goods" v-for="(item, index) in liveGoods" :key="index">
- <image :src="item.image" mode=""></image>
- <!-- <view class="name">
- {{item.name}}
- </view> -->
- </view>
- </view>
- </view>
- <view class="right-wrap d-flex align-content-between flex-wrap">
- <view class="hot-goods bg-white radius10">
- <view class="top d-flex justify-content-between align-items-center">
- <view class="title titColor">限时抢购</view>
- <view class="count-down d-flex align-items-center">
- <image src="../../static/home/down.png" mode=""></image>
- <view class="num"><u-count-down :timestamp="countDown" format="HH:mm:ss" color="#F8352B" separatorColor="#f8352b"></u-count-down></view>
- </view>
- </view>
- <view class="goods d-flex align-items-center justify-content-between">
- <view class="item" v-for="(item, index) in hotGoods" :key="index">
- <image :src="item.image" mode=""></image>
- <!-- <view class="price">
- ¥{{item.price}}优惠价
- </view> -->
- </view>
- </view>
- </view>
- <view class="fruits bg-white radius10">
- <view class="top d-flex align-items-center">
- <view class="title titColor">火热拼团</view>
- <view class="sub">采一手新品</view>
- </view>
- <view class="goods d-flex align-items-center justify-content-between">
- <view class="item" v-for="(item, index) in hotFruits" :key="index">
- <image :src="item.image" mode=""></image>
- <!-- <view class="price">
- ¥{{item.price}}优惠价
- </view> -->
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'hua-active-plate',
- props: {
- liveGoods: {},
- hotGoods: {},
- hotFruits: {}
- },
- data() {
- return {
- countDown: 86400
- };
- }
- };
- </script>
- <style lang="scss">
- .active-plate {
- margin: 32upx auto;
- .live {
- width: 334upx;
- padding: 14upx 16upx 30upx;
- box-sizing: border-box;
- .top {
- height: 44upx;
- .title {
- font-weight: 700;
- }
- .sub {
- font-size: 28upx;
- color: #616161;
- margin-left: 10upx;
- }
- }
- .live-box {
- width: 100%;
- height: 208upx;
- position: relative;
- margin: 10upx auto 20upx;
- image {
- width: 100%;
- height: 100%;
- }
- .tips {
- position: absolute;
- bottom: 60upx;
- left: 14upx;
- padding: 0 10upx;
- height: 34upx;
- background: linear-gradient(142deg, #f16d60 0%, #f8352b 100%);
- border-radius: 4upx;
- image {
- width: 22upx;
- height: 16upx;
- margin-right: 4upx;
- }
- text {
- color: #fff;
- font-size: 20upx;
- }
- }
- .title {
- position: absolute;
- bottom: 20upx;
- left: 14upx;
- color: #fff;
- font-size: 24upx;
- }
- }
- .goods {
- position: relative;
- width: 146upx;
- height: 126upx;
- image {
- position: relative;
- width: 100%;
- height: 100%;
- }
- .name {
- position: absolute;
- color: #f8352b;
- font-size: 20upx;
- padding: 2upx 4upx;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- box-sizing: border-box;
- background-color: #ffe4e3;
- border-radius: 16upx;
- text-align: center;
- font-weight: 500;
- }
- }
- }
- .right-wrap {
- width: 334upx;
- .hot-goods {
- width: 100%;
- padding: 14upx 16upx 20upx;
- box-sizing: border-box;
- .top {
- .title {
- font-weight: 700;
- }
- .count-down {
- background-color: #ffd7de;
- image {
- width: 46upx;
- height: 36upx;
- }
- .num {
- font-size: 24upx !important;
- color: #f8352b;
- padding: 0 8upx;
- border-radius: 8upx;
- /deep/ .u-count-down {
- &__text {
- color: #f8352b !important;
- font-size: 24upx !important;
- line-height: unset !important;
- }
- }
- }
- }
- }
- .goods {
- margin-top: 10upx;
- .item {
- width: 126upx;
- height: 126upx;
- position: relative;
- image {
- width: 100%;
- height: 100%;
- }
- .price {
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- font-size: 20upx;
- color: #f8352b;
- background-color: #ffe4e3;
- border-radius: 16upx;
- white-space: nowrap;
- }
- }
- }
- }
- .fruits {
- width: 100%;
- padding: 14upx 16upx 20upx;
- box-sizing: border-box;
- .title {
- font-weight: 700;
- }
- .sub {
- font-size: 28upx;
- margin-left: 10upx;
- color: #616161;
- }
- .goods {
- margin-top: 10upx;
- .item {
- width: 126upx;
- height: 126upx;
- position: relative;
- image {
- width: 100%;
- height: 100%;
- }
- .price {
- position: absolute;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- font-size: 20upx;
- color: #f8352b;
- background-color: #ffe4e3;
- border-radius: 16upx;
- white-space: nowrap;
- }
- }
- }
- }
- }
- }
- </style>
|