|
|
@@ -21,21 +21,23 @@
|
|
|
<div class="cellContent">
|
|
|
<div class="topInfo">
|
|
|
<div class="topLeft">
|
|
|
- <img src="https://inn.proginn.com/useralbum/449101/avatar4491011590931131.jpg" alt="">
|
|
|
+ <img :src="item.provider.images" alt="">
|
|
|
</div>
|
|
|
<div class="topRight">
|
|
|
- <div class="title">YO云服务客服大数据解决方案</div>
|
|
|
+ <div class="title">{{item.provider.title}}</div>
|
|
|
<div class="tapList">
|
|
|
- <div class="tapCell"><p>软件服务</p></div>
|
|
|
- <div class="tapCell"><p>软件1</p></div>
|
|
|
- <div class="tapCell"><p>软件2</p></div>
|
|
|
+ <div class="tapCell"><p>{{item.provider.industryName}}</p></div>
|
|
|
+ <div class="tapCell"><p>{{item.provider.techTypeName}}</p></div>
|
|
|
</div>
|
|
|
- <div class="desc">60+人核心研发团队,BAT一线大厂研发工程师</div>
|
|
|
+ <div class="desc">{{item.provider.description}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="companyInfo">
|
|
|
- <div class="companyImg"><div class="icon company"></div></div>
|
|
|
- <div class="companyName">湖南无限创新网络科技有限公司</div>
|
|
|
+ <div class="bottomArea">
|
|
|
+ <div class="companyInfo">
|
|
|
+ <div class="companyImg"><div class="icon company"></div></div>
|
|
|
+ <div class="companyName">{{item.provider.companyInfo.name}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="time">{{item.contactCreatedAtFormat}}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -86,7 +88,7 @@
|
|
|
total: 0,
|
|
|
size: 20,
|
|
|
},
|
|
|
- dataList: [{}, {}, {}],
|
|
|
+ dataList: [],
|
|
|
error: false,
|
|
|
finished: false, //移动端列表是否完全加载完成
|
|
|
loading: false, //web端列表首次加载loading todo true
|
|
|
@@ -99,25 +101,24 @@
|
|
|
computed: {},
|
|
|
async created() {
|
|
|
this.checkLogin()
|
|
|
- // this.getList()
|
|
|
+ this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
- const { page, selectedTypeIndex } = this
|
|
|
- let url = "/api/collection_center/list"
|
|
|
+ const { page } = this
|
|
|
+ let url = "/api/kaifawu/getMyContactList"
|
|
|
if (this.isLoading) {
|
|
|
return
|
|
|
}
|
|
|
let data = {
|
|
|
...page,
|
|
|
- type: selectedTypeIndex
|
|
|
}
|
|
|
this.loading = true
|
|
|
this.isLoading = true
|
|
|
this.$axios.post(url, data).then(res => {
|
|
|
if (Number(res.data.status) === 1) {
|
|
|
let data = res.data.data
|
|
|
- let list = data.list || []
|
|
|
+ let list = data.lists || []
|
|
|
this.page.total = data.total
|
|
|
if (this.page.page === 1 || !this.mobile) {
|
|
|
this.dataList = [ ...list ]
|
|
|
@@ -127,7 +128,7 @@
|
|
|
if (this.mobile) {
|
|
|
this.page.page += 1
|
|
|
}
|
|
|
- if (this.page.total <= this.dataList.length) {
|
|
|
+ if (Number(this.page.total) <= this.dataList.length) {
|
|
|
this.finished = true
|
|
|
}
|
|
|
this.error = false
|
|
|
@@ -149,7 +150,6 @@
|
|
|
},
|
|
|
/** 移动端下拉刷新 **/
|
|
|
onRefresh() {
|
|
|
- console.log("refresh")
|
|
|
// 清空列表数据
|
|
|
this.finished = false;
|
|
|
this.page.page = 1
|
|
|
@@ -158,7 +158,7 @@
|
|
|
},
|
|
|
onLoad() {
|
|
|
console.log('onLoad')
|
|
|
- // this.getList()
|
|
|
+ this.getList()
|
|
|
},
|
|
|
}
|
|
|
}
|