@@ -13,7 +13,7 @@
placeholder="请输入卡牌名称"
is-link
readonly
- @click="show = true"
+ @click="pickerShow('show')"
>
</van-field>
<van-field
@@ -30,7 +30,7 @@
:value="form.startTime"
placeholder="请输入结束日期"
- @click="newShow = true"
+ @click="pickerShow('newShow')"
@@ -506,6 +506,10 @@ export default {
title: e.error
});
+ },
+ pickerShow(key = 'show') {
+ this[key] = true;
+ wx.hideKeyboard();
}
};