收藏
回答

点击获取手机验证码,然后怎样获得手机的input的值呢?

            <view class="form-field dis-flex flex-y-center">
              <view class="field-label">手机号:</view>
              <view class="field-input flex-box">
                <input name="mobile" placeholder="请输入手机号" value="{{mobile}}"></input>
              </view>
            </view>
            <view class="form-field dis-flex flex-y-center">
              <view class="field-label">短信验证码:</view>
              <view class="field-input flex-box">
                <input name="sms-code" placeholder="请输入短信验证码" style="float:left;width:230rpx"></input>
                <label style="float:right;margin-top:12rpx;color:#006400;pointer-events: {{isDisabled}};" bindtap="getcode">{{codetime}}</label>
              </view>
            </view>


//获取验证码

getcode:function(){

mobile = ?这里怎么获取到手机字段的值呢,dom不行,这下有点尴尬。


}

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签