123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289 |
- <template>
- <view class="model-22">
- <view class="seckill-list-preview marketing-box marketing-box-two marketing-box-3" :style="{backgroundColor:editablePageConfig.editable_page_config_content.back_color}">
- <view>
- <view class="title-wrap title-wrap-3" v-if="editablePageConfig.editable_page_config_content['if_show_title_icon']==1" @click="goPromotion()">
- <view class="title-left">
- <view class="img">
- <image mode="aspectFit" class="img" :src="title_icon">
- </view>
- </view>
- </view>
- </view>
- <view class="list-wrap">
- <view class="item" v-for="(goods,index) in editablePageConfig.editable_page_config_content.goods_list" :key="index" @click="productClick(goods.goods_id)">
- <view class="img-wrap">
- <image mode="aspectFit" class="img" :src="goods.goods_image">
- </view>
- <view class="content">
- <view class="top">
- <view class="content-desc">{{goods.goods_name}}</view>
- <view class="mprogress">
- <view class="img">
- <view class="img-con" :style="'width:'+goods.order_ratio+'%'">
- </view>
- </view>
- <view class="num">已抢{{goods.order_ratio}}%</view>
- </view>
- </view>
- <view class="bot">
- <view class="content-price">
- <view>¥
- <text class="span">{{parseFloat(goods.goods_promotion_price)}}</text>
- </view>
- <view class="content-num">¥{{parseFloat(goods.goods_price)}}</view>
- </view>
- <view class="layui-btn">立即抢购</view>
- </view>
- </view>
- </view>
- </view>
- <view class="more" @click="goPromotion()">
- <text class="span">更多秒杀</text>
- <text class="i iconfont iconyoujiantou">
- </text>
- </view>
- </view>
- </view>
- </template>
- <script>
- import {
- env
- } from '../../../../static/config'
- export default {
- name: 'Model22',
- data () {
- return {
- }
- },
- components: {
- },
- props: ['editablePageConfig','editablePage'],
- computed: {
- title_icon(){
- if(this.editablePageConfig.editable_page_config_content['title_icon']){
- return this.editablePageConfig.editable_page_config_content['title_icon']
- }else{
- return env.SITE_URL+'/static/home/images/editable_page/seckill_style3_title.png'
- }
- }
- },
- created() {
- },
- methods: {
- productClick(goods_id) {
- uni.navigateTo({url: '/pages/home/goodsdetail/Goodsdetail?goods_id='+goods_id })
- },
- goPromotion(){
- uni.navigateTo({url:'/pages/home/goodslist/Goodslist?xianshi=1'})
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .model-22 .marketing-box-two {
- padding: 20px 15px 5px;
- background-color: #FFFFFF;
- border-radius: 5px;
- }
- .model-22 .marketing-box-two .title-wrap {
- padding-bottom: 5px;
- display: flex;
- align-items: center;
- }
- .model-22 .marketing-box-two .title-wrap-2 {
- justify-content: space-between;
- }
- /* .marketing-box-two .title-wrap-2 .title-left .img {
- display: inline-block;
- width: 103px;
- height: 16px;
- line-height: 16px;
- }
- */
- .model-22 .marketing-box-two .title-wrap .title-left .img {
- width: 103px;
- height: 16px;
- }
- .model-22 .marketing-box-two .title-wrap .title-left .time {
- height: 16px;
- line-height: 16px;
- margin-top: 10px;
- font-size: 12px;
- }
- .model-22 .marketing-box-two .title-wrap .title-left .time {
- color: rgba(255, 69, 68, .5);
- }
- .model-22 .marketing-box-two .title-wrap .title-left .time .font {
- margin-right: 6px;
- }
- .model-22 .marketing-box-two .title-wrap .title-right {
- font-size: 12px;
- color: #909399;
- }
- .model-22 .marketing-box-two .title-wrap .title-right .i {
- font-size: 12px;
- }
- .model-22 .marketing-box-two .list-wrap {
- flex-wrap: wrap;
- }
- .model-22 .marketing-box-two .list-wrap .item {
- width: 100%;
- display: flex;
- height: 125px;
- box-sizing: border-box;
- }
- .model-22 .marketing-box-two .list-wrap .img-wrap {
- width: 95px;
- height: 95px;
- border-radius: 5px;
- overflow: hidden;
- flex-shrink: 0;
- margin-right: 9px;
- margin-top: 15px;
- position: relative;
- }
- .model-22 .marketing-box-two .list-wrap .img-wrap>.img {
- width: 100%;
- height: 100%;
- }
- .model-22 .marketing-box-two .list-wrap .img-wrap .hot {
- position: absolute;
- top: 3px;
- left: 3px;
- width: 30px;
- height: 30px;
- }
- .model-22 .marketing-box-two .list-wrap .img-wrap .hot .div {
- width: 100%;
- height: 100%;
- position: relative;
- }
- .model-22 .marketing-box-two .list-wrap .img-wrap .hot .div .img {
- width: 100%;
- height: 100%;
- }
- .model-22 .marketing-box-two .list-wrap .img-wrap .hot .div .span {
- display: inline-block;
- width: 30px;
- height: 30px;
- line-height: 30px;
- text-align: center;
- font-size: 12px;
- color: #FFFFFF;
- position: absolute;
- top: 0;
- left: 0;
- }
- .model-22 .marketing-box-two .list-wrap .item .content {
- padding: 15px 0;
- border-bottom: 1px solid #EEEEEE;
- display: flex;
- justify-content: space-between;
- flex-direction: column;
- flex:1;
- }
- .model-22 .marketing-box-two .list-wrap .item:last-child .content {
- border-bottom: 0px;
- }
- .model-22 .marketing-box-two .list-wrap .item .content .content-desc {
- height: 32px;
- margin-top: 0;
- font-size: 14px;
- line-height: 14px;
- text-overflow: -o-ellipsis-lastline;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- line-clamp: 2;
- -webkit-box-orient: vertical;
- }
- .model-22 .marketing-box-two .list-wrap .mprogress {
- display: flex;
- align-items: center;
- }
- .model-22 .marketing-box-two .list-wrap .mprogress .img {
- width: 120px;
- height: 10px;
- border-radius: 10px;
- background-color: #FCECD7;
- margin-right: 10px;
- }
- .model-22 .marketing-box-two .list-wrap .mprogress .img .img-con {
- width: 77px;
- height: 10px;
- border-radius: 10px;
- background-color: #FDBE6C;
- }
- .model-22 .marketing-box-two .list-wrap .mprogress .num {
- font-size: 12px;
- color: #909399;
- }
- .model-22 .marketing-box-two .list-wrap .bot {
- display: flex;
- justify-content: space-between;
- align-items: flex-end;
- }
- .model-22 .marketing-box-two .list-wrap .bot .content-price {
- font-size: 12px;
- color: #FF4544;
- margin-top: 10px;
- height: 16px;
- font-weight: 600;
- display: flex;
- align-items: flex-end;
- }
- .model-22 .marketing-box-two .list-wrap .bot .content-price .span {
- font-size: 16px;
- margin-right: 5px;
- }
- .model-22 .marketing-box-two .list-wrap .bot .content-price .content-num {
- font-weight: 500;
- margin-top: 0;
- font-size: 12px;
- line-height: 12px;
- color: #909399;
- text-decoration: line-through;
- }
- .model-22 .marketing-box-two .list-wrap .bot .layui-btn {
- background-color: rgb(255, 69, 68);
- color:#fff;
- font-size: 14px;
- width: 80px;
- height: 25px;
- line-height: 25px;
- text-align: center;
- border-radius: 25px;
- }
- .model-22 .marketing-box-3 {
- padding-bottom: 0;
- }
- .model-22 .marketing-box-two .title-wrap-3 {
- justify-content: center;
- }
- .model-22 .marketing-box-two .title-wrap-3 .title-left .img image {
- width: 174px;
- height: 17px;
- }
- .model-22 .marketing-box-two .title-wrap-3 .title-left .time {
- text-align: center;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .model-22 .marketing-box-two .more {
- text-align: center;
- height: 50px;
- line-height: 50px;
- border-top: 1px solid #EEEEEE;
- }
- .model-22 .marketing-box-two .more .span, .marketing-box-two .more .i {
- font-size: 12px;
- color: #909399;
- }
- </style>
|