Commit 622a9820 authored by zhanglw's avatar zhanglw

黄页

parent 1ab93515
......@@ -53,7 +53,7 @@
</el-col>
</el-row>
</div>
<div style="padding: 15px 50px;text-align: right"><span class="more touch" title="点击查看更多..." @click="moreTo('product')">更多产品>></span></div>
<div v-show="showMore" style="padding: 15px 50px;text-align: right"><span class="more touch" title="点击查看更多..." @click="moreTo('product')">更多产品>></span></div>
</div>
<!--企业介绍-->
<div class="line-title"><div class="title-point" /><span class="title-text">企业介绍</span></div>
......@@ -278,6 +278,7 @@ export default {
defaultImgProduct: default_product,
imgSrcStart: process.env.VUE_APP_BASE_API,
dialogVisible: false,
showMore: true,
page: 1,
pageSize: 12,
total: 0,
......@@ -352,6 +353,7 @@ export default {
pageSize: this.pageSize,
...this.query
}).then((res) => {
this.showMore = true
this.productList = res.data.hardwareList.data
this.total = res.data.hardwareList.total
})
......@@ -390,6 +392,7 @@ export default {
this.query.type = type
this.query.sort = false
}
this.search()
},
// 点击询价
inquiry(item, type) {
......@@ -424,7 +427,15 @@ export default {
// 点击更多
moreTo(type) {
if (type === 'product') {
this.tabChange('3')
// this.tabChange('3')
HttpReq.webClientApi.productGetHardwareList({
page: 0,
pageSize: 9999
}).then((res) => {
this.showMore = false
this.productList = res.data.hardwareList.data
this.total = res.data.hardwareList.total
})
}
},
loadData() {
......
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