简单粗暴直接 是因为非nvue环境下要使用 u-input
<u--input placeholder="请输入验证码" >
<view slot="suffix">
<u-code ref="uCode" @change="codeChange" seconds="60" changeText="x秒重新获取"></u-code>
<u-text @tap="getCode" :text="tips" type="primary" size="mini"></u-text>
</view>
</u--input>
改一下就好辣
<u-input placeholder="请输入验证码" >
<view slot="suffix">
<u-code ref="uCode" @change="codeChange" seconds="60" changeText="X秒重新获取"></u-code>
<u-text @tap="getCode" :text="tips" type="primary" size="mini"></u-text>
</view>
</u-input>