85 lines
2.4 KiB
JavaScript
85 lines
2.4 KiB
JavaScript
|
Component({
|
|||
|
mixins: [],
|
|||
|
data: {
|
|||
|
registerArray: ['全部省域', '仅限老高考省域', '仅限新高考省域'],
|
|||
|
registerIndex: 0,
|
|||
|
|
|||
|
cityArray1: ['北京', '上海', '广州', '武汉', '四川'],
|
|||
|
cityIndex1: 0,
|
|||
|
cityArray2: ['北京', '上海', '广州', '武汉', '四川'],
|
|||
|
cityIndex2: 0,
|
|||
|
cityArray3: ['北京', '上海', '广州', '武汉', '四川'],
|
|||
|
cityIndex3: 0,
|
|||
|
|
|||
|
priceArray1: ['3980', '4980', '5980', '6980', '7980', '8980', '9980', '10980', '11980', '12980'],
|
|||
|
priceIndex1: 0,
|
|||
|
priceArray2: ['3980', '4980', '5980', '6980', '7980', '8980', '9980', '10980', '11980', '12980'],
|
|||
|
priceIndex2: 0,
|
|||
|
priceArray3: ['3980', '4980', '5980', '6980', '7980', '8980', '9980', '10980', '11980', '12980'],
|
|||
|
priceIndex3: 0,
|
|||
|
priceArray4: ['3980', '4980', '5980', '6980', '7980', '8980', '9980', '10980', '11980', '12980'],
|
|||
|
priceIndex4: 0
|
|||
|
|
|||
|
},
|
|||
|
props: {},
|
|||
|
didMount() {},
|
|||
|
didUpdate() {},
|
|||
|
didUnmount() {},
|
|||
|
methods: {
|
|||
|
// 省域
|
|||
|
bindRegisterChange(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
registerIndex: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
|
|||
|
// 省市
|
|||
|
bindCityChange1(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
cityIndex1: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
bindCityChange2(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
cityIndex2: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
bindCityChange3(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
cityIndex3: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
|
|||
|
// 价格
|
|||
|
bindPriceChange1(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
priceIndex1: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
bindPriceChange2(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
priceIndex2: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
bindPriceChange3(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
priceIndex3: e.detail.value,
|
|||
|
});
|
|||
|
},
|
|||
|
bindPriceChange4(e) {
|
|||
|
// console.log('picker发送选择改变,携带值为', e.detail.value);
|
|||
|
this.setData({
|
|||
|
priceIndex4: e.detail.value,
|
|||
|
});
|
|||
|
}
|
|||
|
},
|
|||
|
});
|
|||
|
|