|
|
@ -37,7 +37,12 @@ Component({ |
|
|
}, |
|
|
}, |
|
|
onConfirm: function(e){ |
|
|
onConfirm: function(e){ |
|
|
this.data.cIndex = e.currentTarget.dataset.index |
|
|
this.data.cIndex = e.currentTarget.dataset.index |
|
|
var item = this.data.paperList[this.data.activeIndex].smallProductCategoryInfoList[this.data.cIndex] |
|
|
|
|
|
|
|
|
var item = null |
|
|
|
|
|
if(this.data.singleList && this.data.singleList.length){ |
|
|
|
|
|
item = this.data.singleList[this.data.cIndex] |
|
|
|
|
|
} else { |
|
|
|
|
|
item = this.data.paperList[this.data.activeIndex].smallProductCategoryInfoList[this.data.cIndex] |
|
|
|
|
|
} |
|
|
wx.nextTick(() => { |
|
|
wx.nextTick(() => { |
|
|
this.setData({ visible: false, cIndex: this.data.cIndex }) |
|
|
this.setData({ visible: false, cIndex: this.data.cIndex }) |
|
|
this.triggerEvent('select', item) |
|
|
this.triggerEvent('select', item) |
|
|
|