Commit b6aaac47 by 梁建民

js

parent 6767420a
......@@ -22,15 +22,20 @@
<p class="t1">{{item.title}}</p>
<div class="bar">
<p class="t2">已下载{{item.download_num}}次</p>
<a class="btn" @click="download(item.data_id)">下载</a>
<template v-if="loginCheck">
<a class="btn" @click="download(item.data_id)">下载</a>
</template>
<template>
<a class="btn" @click="toUrl">下载</a>
</template>
</div>
</li>
</ul>
</div>
<template v-if="articleShowData.length <= 3">
<template v-if="!loginCheck">
<div class="islogin" @click="toUrl">
<img src="../../assets/images/download/loading.png" alt="">
<a href="javascript:;">点击登录查看更多 ></a>
<a href="javascript:;">登录查看更多哦</a>
</div>
</template>
<div class="slide-bar" v-backTopWindow style="cursor: pointer;">
......@@ -63,7 +68,8 @@
computed: {
...mapState({
getfileuploadbanner: state => state.download.getfileuploadbanner,
articleShowData: state => state.download.articleShowData
articleShowData: state => state.download.articleShowData,
loginCheck: state => state.common.loginCheck
})
},
created() {
......@@ -80,6 +86,10 @@
this.$store.dispatch({
type: "articleShowData"
});
this.$store.dispatch({
type: "loginCheck",
is_jump: false
});
},
download(id) {
this.$store.dispatch({
......@@ -94,7 +104,7 @@
});
setTimeout(() => {
window.location.href = '/v3/login?from=download'
window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownoad&from=download'
}, 2000)
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment