|
|
<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"></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> |
...
|
...
|
|