罗世杰:fixed:修复各个使用下拉框处异常请求问题

This commit is contained in:
LuoShijie
2023-11-24 21:44:39 +08:00
parent 67dd393a7f
commit 742f2a7023
9 changed files with 153 additions and 109 deletions

View File

@@ -12,7 +12,7 @@
</view>
<view>
<DropDown @getQueryInfo="getShopList"></DropDown>
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<ShowShopList :showStyle="2" :adlinkPath="adlinkPath" :listType="3" :shopInfoList="shopInfoList" />
@@ -55,6 +55,7 @@
// this.pageNum=1
// }
this.getShopList(q, "refresh")
this.$refs.dropdown.resetInfo()
// }
},
@@ -128,6 +129,10 @@
this.customQuery = q
return q
},
cancelPageNum() {
this.pageNum = 1;
this.refresh = true
}
}
}
</script>

View File

@@ -12,7 +12,7 @@
</view>
<view>
<DropDown @getQueryInfo="getShopList"></DropDown>
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<ShowShopList :showStyle="2" :adlinkPath="adlinkPath" :listType="4" :shopInfoList="shopInfoList" />
@@ -55,6 +55,7 @@
// this.pageNum=1
// }
this.getShopList(q, "refresh")
this.$refs.dropdown.resetInfo()
// }
},
@@ -128,6 +129,10 @@
this.customQuery = q
return q
},
cancelPageNum() {
this.pageNum = 1;
this.refresh = true
}
}
}
</script>

View File

@@ -12,7 +12,7 @@
</view>
<view>
<DropDown @getQueryInfo="getShopList"></DropDown>
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<SearchShopList :showStyle="1" :searchInfoList="searchInfoList" />
@@ -54,7 +54,7 @@
// this.pageNum=1
// }
this.getShopList(q, "refresh")
this.$refs.dropdown.resetInfo()
// }
},
onReachBottom() {
@@ -127,6 +127,10 @@
this.customQuery = q
return q
},
cancelPageNum() {
this.pageNum = 1;
this.refresh = true
}
}
}
</script>

View File

@@ -12,7 +12,7 @@
</view>
<view>
<DropDown @getQueryInfo="getShopList"></DropDown>
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<ShowShopList :showStyle="1" :shopInfoList="shopInfoList" />
@@ -54,6 +54,7 @@
// this.pageNum=1
// }
this.getShopList(q, "refresh")
this.$refs.dropdown.resetInfo()
// }
},
@@ -127,6 +128,10 @@
this.customQuery = q
return q
},
cancelPageNum() {
this.pageNum = 1;
this.refresh = true
}
}
}
</script>

View File

@@ -7,7 +7,7 @@
</view>
<view class="marginLR10">
<DropDown @getQueryInfo="getShopList"></DropDown>
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<SearchShopList :showStyle="1" :searchInfoList="searchInfoList" />
@@ -52,6 +52,7 @@
// this.pageNum=1
// }
this.getShopList(q, "refresh")
this.$refs.dropdown.resetInfo()
// }
},
@@ -133,6 +134,10 @@
...query
})
return q
},
cancelPageNum() {
this.pageNum = 1;
this.refresh = true
}
}

View File

@@ -8,7 +8,7 @@
</view>
<view class="marginLR10">
<DropDown @getQueryInfo="getShopList"></DropDown>
<DropDown @getQueryInfo="getShopList" ref="dropdown" @cancelPageNum="cancelPageNum"></DropDown>
</view>
<view class="marginLR10">
<ShowShopList :showStyle="1" :shopInfoList="shopInfoList"></ShowShopList>
@@ -53,7 +53,7 @@
// this.pageNum=1
// }
this.getShopList(q, "refresh")
this.$refs.dropdown.resetInfo()
// }
},
onReachBottom() {
@@ -133,6 +133,10 @@
...query
})
return q
},
cancelPageNum() {
this.pageNum = 1;
this.refresh = true
}
}
}