罗世杰:fixed:修复各个使用下拉框处异常请求问题
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user