Commit 622a9820 authored by zhanglw's avatar zhanglw

黄页

parent 1ab93515
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</el-col> </el-col>
</el-row> </el-row>
</div> </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>
<!--企业介绍--> <!--企业介绍-->
<div class="line-title"><div class="title-point" /><span class="title-text">企业介绍</span></div> <div class="line-title"><div class="title-point" /><span class="title-text">企业介绍</span></div>
...@@ -278,6 +278,7 @@ export default { ...@@ -278,6 +278,7 @@ export default {
defaultImgProduct: default_product, defaultImgProduct: default_product,
imgSrcStart: process.env.VUE_APP_BASE_API, imgSrcStart: process.env.VUE_APP_BASE_API,
dialogVisible: false, dialogVisible: false,
showMore: true,
page: 1, page: 1,
pageSize: 12, pageSize: 12,
total: 0, total: 0,
...@@ -352,6 +353,7 @@ export default { ...@@ -352,6 +353,7 @@ export default {
pageSize: this.pageSize, pageSize: this.pageSize,
...this.query ...this.query
}).then((res) => { }).then((res) => {
this.showMore = true
this.productList = res.data.hardwareList.data this.productList = res.data.hardwareList.data
this.total = res.data.hardwareList.total this.total = res.data.hardwareList.total
}) })
...@@ -390,6 +392,7 @@ export default { ...@@ -390,6 +392,7 @@ export default {
this.query.type = type this.query.type = type
this.query.sort = false this.query.sort = false
} }
this.search()
}, },
// 点击询价 // 点击询价
inquiry(item, type) { inquiry(item, type) {
...@@ -424,7 +427,15 @@ export default { ...@@ -424,7 +427,15 @@ export default {
// 点击更多 // 点击更多
moreTo(type) { moreTo(type) {
if (type === 'product') { 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() { 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