|
|
@@ -12,7 +12,7 @@
|
|
|
<p class="dynamic-content">
|
|
|
{{ info.title }}
|
|
|
</p>
|
|
|
- <div class="dynamic-link" @click.capture.stop="clickResource(dynamicResources)" v-if="dynamicResources.resources_status == 1">
|
|
|
+ <div class="dynamic-link" @click.capture.stop="clickResource(dynamicResources)" v-if="dynamicResources.resources_status == 1">
|
|
|
<div class="dynamic-link-content">
|
|
|
<p class="dynamic-link-title">
|
|
|
{{ dynamicResources.resources_title }}
|
|
|
@@ -23,7 +23,7 @@
|
|
|
<img :src="dynamicResources.resources_img" alt="" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="dynamic-images" v-if="dynamicImg.length > 0">
|
|
|
+ <div class="dynamic-images" v-if="dynamicImg.length > 0 && init">
|
|
|
<div v-for="(item, index) in dynamicImg" :key="index" class="dynamic-image-item">
|
|
|
<el-image style="width:90px;height:90px" fit="cover" :src="item.img" :preview-src-list="dynamicImgBig">
|
|
|
</el-image>
|
|
|
@@ -45,7 +45,7 @@
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
- props: ["info"],
|
|
|
+ props: ["info", 'init'],
|
|
|
computed: {
|
|
|
dynamicUserInfo() {
|
|
|
return this.info.user_info || {};
|
|
|
@@ -69,10 +69,10 @@ export default {
|
|
|
this.checkLogin(true);
|
|
|
this.$message("请前往APP查看");
|
|
|
},
|
|
|
- clickResource(resources){
|
|
|
- if(resources.resources_status != 1){
|
|
|
+ clickResource(resources) {
|
|
|
+ if (resources.resources_status != 1) {
|
|
|
this.$message.info(resources.resources_text)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
location.href = resources.resources_url
|
|
|
}
|
|
|
},
|