Authored by 郭成尧

share

<template>
<div class="share-bottom clearfix" v-bind:class="{ 'hidden': close }">
<!-- TODO iconfont 要换-->
<span class="icon close" @click="closeBottom()">&#xe609;</span>
<img v-lazy="">
<span class="icon close" @click="closeBottom()">&#xe610;</span>
<span class="icon blk-icon">&#xe60f;</span>
<a href="javascript:;" class="new-user">新用户送千元礼包</a>
<a href="http://m.yohoblk.com" class="download">立即下载</a>
</div>
... ... @@ -30,10 +28,17 @@
float: left;
}
.blk-icon {
margin-left: 50px;
margin-right: 20px;
float: left;
}
a {
border: #000 solid 2px;
padding: 10px;
border-radius: 40px;
float: left;
}
.new-user {
... ... @@ -43,6 +48,7 @@
.download {
float: right;
margin-right: 20px;
}
}
... ...
<template>
<div class="brand-share">
<div class="brand-top-box" v-bind:style="{ 'background-image': `url(${brandBg})` }"></div>
<div class="brand-title">{{ brandName }}</div>
<div class="brand-intro">{{ brandIntro }}</div>
<div class="brand-top-box" v-bind:style="{ 'background-image': `url(${shopInfo.brandBg})` }"></div>
<div class="brand-title">{{ shopInfo.brandName }}</div>
<div class="brand-intro">{{ shopInfo.brandIntro }}</div>
<div class="tip">进入 BLK 选购潮品</div>
<div class="icon arrow">&#xe602;</div>
<img v-lazy="brandBg | resize 752 365">
<a href="//m.yohoblk.com"><img v-lazy="shopInfo.brandBg | resize 752 365"></a>
</div>
<share-bottom></share-bottom>
</template>
... ... @@ -15,7 +15,7 @@
width: 100%;
height: 468px;
color: #fff;
background-color: #000;
background-color: #ccc;
position: relative;
}
... ... @@ -54,20 +54,36 @@
</style>
<script>
const shareBottom = require('product/shop/share-bottom.vue');
const qs = require('yoho-qs');
const tip = require('common/tip');
module.exports = {
/* TODO 数据需要从接口获取 */
data() {
return {
brandName: 'COLORMAD',
brandBg: 'http://7xwj52.com1.z0.glb.clouddn.com/brandbg.jpg',
brandIntro: 'COLORMAD坚持女性的时尚美丽不应为牺牲健康为代价,以健康,时尚,科技为理念,' +
'研发健康无伤害的新概念甲油。'
shopInfo: {}
};
},
methods: {
/* 获取店铺简介相关数据 */
getShopInfo() {
$.get({
url: '/product/get-shop-info',
data: { domain: qs.domain }
}).done(result => {
this.shopInfo = result;
}).fail(() => {
tip('网络错误');
});
}
},
components: {
shareBottom
},
created() {
this.getShopInfo();
}
};
</script>
... ...