|
@@ -293,9 +293,13 @@
|
|
|
uni.hideLoading()
|
|
|
if (res.status == 200 && res.data) {
|
|
|
this.shelfPlaceList = res.data
|
|
|
+ // 获取层
|
|
|
for(let a in res.data){
|
|
|
this.placeTab.push(a)
|
|
|
}
|
|
|
+ // 排序
|
|
|
+ this.placeTab.sort(function(a,b){ return (a+'').localeCompare(b+'');});
|
|
|
+ console.log(this.placeTab)
|
|
|
if(!flag || !this.curTab){
|
|
|
this.curTab = this.placeTab[0]
|
|
|
}
|