wxml:
<van-cell-group>
<van-field
label="开始城市"
value="{{ startCity }}"
placeholder="请选择开始城市"
border="{{ false }}"
bind:focus="onFocus"
data-status="1"
/>
</van-cell-group>
js:
onFocus(e) {
// 利用自定义属性即可完成事件的参数传递 data-status
let status = e.currentTarget.dataset['status']; // 1
},