[bugfix] add click feedback of buttons in components (#248)

* [bugfix] CouponList always show empty info

* [bugfix] add click feedback of buttons in components
This commit is contained in:
neverland
2017-10-25 03:03:44 -05:00
committed by GitHub
parent c90f2663ee
commit 7325334734
8 changed files with 38 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
<script>
import { Toast } from 'packages/index';
const citys = {
'浙江': ['杭州', '宁波', '温州', '嘉兴', '湖州', '绍兴', '金华', '衢州', '舟山', '台州', '丽水'],
'福建': ['福州', '厦门', '莆田', '三明', '泉州', '漳州', '南平', '龙岩', '宁德'],
@@ -27,10 +29,10 @@ export default {
picker.setColumnValues(1, citys[values[0]]);
},
handlePickerCancel() {
alert('picker cancel');
Toast('picker cancel');
},
handlePickerConfirm() {
alert('picker confirm');
Toast('picker confirm');
}
}
};

View File

@@ -1,4 +1,6 @@
<script>
import { Toast } from 'packages/index';
const citys = {
'浙江': ['杭州', '宁波', '温州', '嘉兴', '湖州', '绍兴', '金华', '衢州', '舟山', '台州', '丽水'],
'福建': ['福州', '厦门', '莆田', '三明', '泉州', '漳州', '南平', '龙岩', '宁德'],
@@ -27,10 +29,10 @@ export default {
picker.setColumnValues(1, citys[values[0]]);
},
handlePickerCancel() {
alert('picker cancel');
Toast('picker cancel');
},
handlePickerConfirm() {
alert('picker confirm');
Toast('picker confirm');
}
}
};

View File

@@ -1,4 +1,6 @@
<script>
import { Toast } from 'packages/index';
export default {
data() {
return {