Commit 1bdc24d7 authored by 刘殿昕's avatar 刘殿昕

首页卡片不显示详情

parent a8b6569c
......@@ -4,17 +4,9 @@
<img :src="data.cover" width="100%" />
</div>
<div class="shop_card-top">
<p
class="shop_card-title text_clip_2"
v-text="data.name"
:title="data.name"
></p>
<p class="shop_card-title text_clip_2" v-text="data.name" :title="data.name"></p>
<p class="shop_card-text under_text">
<span
class="text_clip"
v-text="data.department_name"
:title="data.department_name"
></span>
<span class="text_clip" v-text="data.department_name" :title="data.department_name"></span>
<span>
<img :src="require('../assets/imgs/shop_ic_star.png')" />
<span v-text="data.score"></span>
......@@ -22,18 +14,12 @@
</p>
</div>
<div class="shop_card-bottom">
<p class="shop_card-text summary text_clip_2" v-if="data.descript">
<p class="shop_card-text summary text_clip_2" v-if="showSummary && data.descript">
<span v-text="data.descript"></span>
</p>
<p class="shop_card-text update_time">
<img
:src="require('@/assets/imgs/shop_ic_updatetime.png')"
style="margin-right: 5px;"
/>
<span
class="text_clip"
v-text="'更新时间:' + helper.dateStringTransform(data.update_date)"
></span>
<img :src="require('@/assets/imgs/shop_ic_updatetime.png')" style="margin-right: 5px;" />
<span class="text_clip" v-text="'更新时间:' + helper.dateStringTransform(data.update_date)"></span>
</p>
<div class="shop_card-text access">
<span>
......@@ -79,6 +65,10 @@ export default {
type: Boolean,
default: false,
},
showSummary: {
type: Boolean,
default: false,
},
},
data() {
return {
......
......@@ -10,6 +10,7 @@
<shop-card
:data="item"
:showImg="showImg"
:showSummary="showSummary"
:detail-path="detailPath"
></shop-card>
</li>
......@@ -45,6 +46,10 @@ export default {
type: Boolean,
default: false,
},
showSummary: {
type: Boolean,
default: false,
}
},
methods: {
goto() {
......
......@@ -32,6 +32,7 @@
detail-path="/shop/sjfwDetail/"
:data="hot_datas"
:showImg="false"
:showSummary="true"
></shop-list>
<!-- 精品地图 -->
......@@ -41,6 +42,7 @@
detail-path="/shop/skfwDetail/"
:data="map_datas"
:showImg="true"
:showSummary="false"
></shop-list>
<!-- 综合应用 -->
......@@ -50,6 +52,7 @@
detail-path="/shop/zhfwDetail/"
:data="comprehensive_datas"
:showImg="true"
:showSummary="false"
></shop-list>
</div>
</template>
......
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 to comment