//.wxml
<van-field model:value="{{ userName }}" placeholder="请输入学号" focus="{{focusUserName}}" />
// .js
this.setData({ focusUserName: true });
vant-field