|
|
@@ -6,7 +6,7 @@
|
|
|
</div>-->
|
|
|
<div class="detail">
|
|
|
<div class="component-img">
|
|
|
- <img :src="list.img?list.img:list.brand.logoUrl?list.brand.logoUrl:'/images/component/default.png'"/>
|
|
|
+ <img :src="list.img||'/images/component/default.png'"/>
|
|
|
</div>
|
|
|
<div class="component-message">
|
|
|
<div class="message-code">
|
|
|
@@ -37,7 +37,7 @@
|
|
|
<div class="form-group row">
|
|
|
<div class="message-item">下载</div>
|
|
|
<div class="colon">:</div>
|
|
|
- <div class="message-body"><a :href="list.attach" v-if="list.attach">规格书</a><span v-if="!list.attach">暂无规格书</span></div>
|
|
|
+ <div class="message-body"><a @click="toAttach(list.attach)" v-if="list.attach">规格书</a><span v-if="!list.attach">暂无规格书</span></div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<button type="text" v-if="!collectList" @click="collect(list.id)" class="btn btn-default btn-stroe" style="line-height: 26px;">加入收藏</button>
|
|
|
@@ -115,6 +115,18 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ toAttach: function (url) {
|
|
|
+ console.log(url)
|
|
|
+ if (url === '1') {
|
|
|
+ this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
|
|
|
+ if (response.data) {
|
|
|
+ this.$router.push('/auth/login')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ window.open(url)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|