邓洁 : 注释log

This commit is contained in:
邓洁
2023-12-05 10:48:27 +08:00
parent 20f56b5d8d
commit 0612840cdc
27 changed files with 235 additions and 229 deletions

View File

@@ -46,7 +46,7 @@
matchPageNum: 1,
keyword: '',
refresh: false,
showNull: false,
showNull: false
}
},
onPullDownRefresh() {
@@ -62,7 +62,7 @@
if (this.listId !== 4 && !this.refresh && this.searchListLength !== 0) {
this.pageNum++
this.getMyPublished(this.listId + 1, this.pageSize, this.pageNum)
} else if (this.listId == 4 && !this.refresh &&this.matchListLength !== 0) {
} else if (this.listId == 4 && !this.refresh && this.matchListLength !== 0) {
this.matchPageNum++
this.getMatch(this.matchPageSize, this.matchPageNum)
} else if (this.searchListLength == 0) {
@@ -74,8 +74,8 @@
},
methods: {
getInput(val) {
console.log('搜索值', val);
// console.log('搜索值', val);
if (this.listId !== 4) {
if (this.pageNum !== 1) {
this.pageNum = 1
@@ -86,7 +86,7 @@
pageNum: this.pageNum,
title: val
}).then(res => {
console.log('发布信息', res);
// console.log('发布信息', res);
if (res.data.code == 1) {
this.searchListLength = res.data.data.length
this.searchInfoList = res.data.data
@@ -109,9 +109,9 @@
title: val
}).then(res => {
if (res.data.code == 1) {
this.matchListLength = res.data.data.length
this.matchListLength = res.data.data[0].length
this.matchList = res.data.data[0]
if (res.data.data.length == 0) {
if (res.data.data[0].length == 0) {
this.showNull = true
} else {
this.showNull = false
@@ -151,7 +151,7 @@
})
},
handleDel(shopid) {
console.log('页面删除', this.listId + 1, shopid);
// console.log('页面删除', this.listId + 1, shopid);
var that = this
uni.showModal({
title: '提示',
@@ -176,22 +176,22 @@
})
},
getMatch(pageSize,pageNum) {
getMatch(pageSize, pageNum) {
this.$api.getMyMatch({
pageSize: pageSize,
pageNum: pageNum
}).then(res => {
if (res.data.code == 1) {
this.matchListLength = res.data.data.length
if(this.refresh){
this.matchListLength = res.data.data[0].length
if (this.refresh) {
this.refresh = false
if (res.data.data.length == 0) {
if (res.data.data[0].length == 0) {
this.showNull = true
} else {
this.showNull = false
}
this.matchList = res.data.data[0]
}else{
} else {
this.matchList = [...this.matchList, ...res.data.data[0]]
}
uni.stopPullDownRefresh()
@@ -206,10 +206,10 @@
pageSize: pageSize,
pageNum: pageNum
}).then(res => {
console.log('发布信息l', res, res.data.data.length);
// console.log('发布信息l', res, res.data.data.length);
if (res.data.code == 1) {
this.searchListLength = res.data.data.length
if (isDelete == 1|| this.refresh) {
if (isDelete == 1 || this.refresh) {
this.searchInfoList = res.data.data
this.refresh = false
if (res.data.data.length == 0) {
@@ -228,7 +228,7 @@
}
},
onLoad: function(option) {
console.log('option', option.listId);
// console.log('option', option.listId);
this.listId = option.listId
wx.setNavigationBarTitle({
title: option.titletext