Authored by 郭成尧

shop-info

... ... @@ -4,23 +4,19 @@
<div class="reds-shop">
{{!--shop-header--}}
<div class="shop-header brand-header" data-id="{{brand.brand_id}}">
<img class="banner" {{#if banner}} src="{{image banner 750 234}}"{{/if}} alt="banner">
<div class="shop-info">
<img class="logo" src="{{image brand.brand_ico 120 120}}" alt="logo">
<div class="shop-info-base">
<h1 class="shopname">{{brand.brand_name}}</h1>
<div class="favs">粉丝数: 534 <i class="iconfont favs-btn like">&#xe605;</i></div>
</div>
{{#shopIntro}}
<div class="shop-intro">
<div id="shortIntro" class="line-clamp-2">{{{short_intro}}}</div>
<div id="shopIntro" class="hide">{{{shop_intro}}}</div>
<div class="shop-intro-folder">
<i id="shopIntrArrw" class="iconfont">&#xe616;</i>
{{#if banner}}
<div class="branner-top">
<img class="shop-back-img" src="{{image banner 750 234}}">
{{#if brand.brand_ico}}
<img class="logo" src="{{image brand.brand_ico 120 120}}">
{{/if}}
<p class="store-name">{{brand.brand_name}}</p>
<div class="fav-box clearfix">
<div class="favs pull-left">粉丝数: 534 </div>
<div class="not-collect buriedpoint pull-left" id="collect" data-bp-id="shop_branner_collect_1"></div>
</div>
</div>
{{/shopIntro}}
</div>
{{/if}}
</div>
{{!--shop-tab-nav: 首页 | 全部商品--}}
<div class="tab">
... ...
const $ = require('yoho-jquery');
const allProduct = require('./shop/all-product');
let Tab = require('../plugin/tab');
require('layout/_swiper.css');
require('product/search/list.page.css');
require('product/shop/redshop.page.css');
const $ = require('yoho-jquery');
const allProduct = require('./shop/all-product');
let Tab = require('../plugin/tab');
let $filterBox = $('.filter-box');
let $goodsContainer = $('#goods-container');
... ...
.shop-header {
.banner {
height: 234px;
.reds-shop {
.pull-left {
float: left;
}
}
.shop-info {
position: relative;
padding-right: 30px;
padding-left: 30px;
.clearfix:after {
content: "";
display: table;
clear: both;
}
.logo {
position: absolute;
top: -40px;
width: 120px;
height: 120px;
box-shadow: 0 0 2px 1px #dedede;
.shop-info {
position: relative;
padding-right: 30px;
padding-left: 30px;
height: 234px;
.logo {
position: absolute;
width: 120px;
height: 120px;
box-shadow: 0 0 2px 1px #dedede;
}
.shopname {
font-size: 32px;
color: #444;
margin-left: 180px;
}
.favs-btn {
margin-left: 30px;
&.like {
color: #e33333;
}
}
}
.shopname {
font-size: 32px;
.shop-intro {
font-size: 28px;
color: #444;
margin-left: 180px;
.hide {
display: none;
}
.active {
display: block;
}
}
.shop-intro-folder {
margin-top: 26px;
margin-bottom: 24px;
text-align: center;
font-size: 18px;
line-height: 1;
}
.favs-btn {
margin-left: 30px;
.branner-top {
width: 100%;
height: 234px;
position: relative;
overflow: hidden;
&.like {
color: #e33333;
.shop-back-img {
height: 100%;
width: 100%;
}
}
}
.shop-info-base {
display: flex;
justify-content: space-between;
line-height: 1;
padding-top: 38px;
padding-bottom: 35px;
.logo {
position: absolute;
overflow: hidden;
left: 30px;
bottom: 30px;
width: 100px;
height: 100px;
}
.favs {
margin-top: -90px;
.store-name {
color: #fff;
font-size: 28px;
position: absolute;
overflow: hidden;
left: 148px;
bottom: 20px;
}
}
.shop-intro {
font-size: 28px;
color: #444;
.fav-box {
position: absolute;
bottom: 30px;
right: 30px;
border-radius: 10px;
text-align: center;
background-size: contain;
color: #fff;
.hide {
display: none;
.favs {
line-height: 48px;
margin-right: 16px;
}
}
.active {
display: block;
.already-collect {
width: 128px;
height: 50px;
border-radius: 10px;
background-image: url("/product/already-collect.png") no-repeat;
background-size: contain;
}
}
.shop-intro-folder {
margin-top: 26px;
margin-bottom: 24px;
text-align: center;
font-size: 18px;
line-height: 1;
.not-collect {
width: 128px;
height: 50px;
border-radius: 10px;
background-image: url("/product/not-collect.png") no-repeat;
background-size: contain;
}
}
... ...