|
@@ -88,6 +88,7 @@ export default {
|
|
|
isSortFlag: 0,
|
|
|
list: [],
|
|
|
shelfSn: '',
|
|
|
+ shelfName: '',
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
|
noDataText: '暂无数据',
|
|
@@ -99,21 +100,24 @@ export default {
|
|
|
borderColor: this.$config('primaryColor'),
|
|
|
backgroundColor: this.$config('primaryColor'),
|
|
|
color: '#fff'
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.theme = getApp().globalData.theme;
|
|
|
this.shelfSn = options.shelfSn;
|
|
|
+ this.shelfName = options.shelfName;
|
|
|
let ajaxData = {
|
|
|
pageNo: this.pageNo,
|
|
|
pageSize: this.pageSize,
|
|
|
shelfSn: this.shelfSn
|
|
|
};
|
|
|
this.loadData(ajaxData);
|
|
|
+ },
|
|
|
+ onReady() {
|
|
|
uni.setNavigationBarTitle({
|
|
|
- title: options.shelfName
|
|
|
- });
|
|
|
+ title: this.shelfName
|
|
|
+ })
|
|
|
},
|
|
|
onBackPress(e) {
|
|
|
if (this.sortShow) {
|