|
|
const app = getApp();
|
|
|
Component({
|
|
|
|
|
|
properties: {
|
|
|
pickerData: {
|
|
|
type: Object,
|
|
|
value: null,
|
|
|
observer: function (value) {
|
|
|
observer: function (value, oldValue) {
|
|
|
if (!value.sourceType)
|
|
|
this.setData({pickerData: value})
|
|
|
}
|
...
|
...
|
@@ -21,7 +22,7 @@ Component({ |
|
|
}
|
|
|
}
|
|
|
},
|
|
|
data: {_show: false, colorSelected: false, storageNumber: 0, selectedSKU: '', pickerData: null},
|
|
|
data: {_show: false, colorSelected: false, storageNumber: 0, selectedSKU: ''},
|
|
|
methods: {
|
|
|
colorTap(event) {
|
|
|
var that = this;
|
...
|
...
|
@@ -29,7 +30,6 @@ Component({ |
|
|
//先遍历将所有颜色、尺码置为未选中状态
|
|
|
// console.log('color')
|
|
|
// console.log(tempData.view.goodsList)
|
|
|
|
|
|
tempData.view.goodsList && tempData.view.goodsList.map((item, index) => {
|
|
|
item.selected = false
|
|
|
item.size_list.map((subItem, index) => {
|
...
|
...
|
|