|
|
|
@ -13,7 +13,7 @@ Component({ |
|
|
|
height: { type: Number, value: 0 } |
|
|
|
}, |
|
|
|
data: { |
|
|
|
tabList: [ '全部', '华东', '华中', '华南', '西部', '北部'], |
|
|
|
tabList: ['全部', '华东', '华中', '华南', '西部', '北部'], |
|
|
|
tabIndex: 0, |
|
|
|
proviceList: [], |
|
|
|
pIndex: 0, |
|
|
|
@ -53,7 +53,8 @@ Component({ |
|
|
|
} |
|
|
|
this.data.tabIndex = Number(detail.index) |
|
|
|
this.data.form.proviceId = area.list[this.data.tabIndex].data[this.data.pIndex].code |
|
|
|
this.setData({ pIndex: 0, proviceList: this.getProviceListByIndex(this.data.tabIndex), orderList: [], ['form.pageNum']: 1, finished: false, loading: true }) |
|
|
|
var proviceList = this.getProviceListByIndex(this.data.tabIndex) |
|
|
|
this.setData({ pIndex: 0, proviceList, orderList: [], ['form.pageNum']: 1, finished: false, loading: true }) |
|
|
|
this.fetchList() |
|
|
|
}, |
|
|
|
onProviceChange: function({ detail }){ |
|
|
|
|