| | |
| | | const onSubmit = (values:any) => { |
| | | console.log('submit', values) |
| | | loadingBUt.value=true |
| | | ajaxPost('/patient/info/wechatLogin2',`mobile=${username.value}&password=${password.value}`,config).then((re:any)=>{ |
| | | const openid='odFja56xfwSZDHhAEMn-JotSzlRc' |
| | | ajaxPost('/patient/info/wechatLogin2',`mobile=${username.value}&password=${password.value}&openId=${openid}`,config).then((re:any)=>{ |
| | | console.log(re) |
| | | if (re===''){ |
| | | Toast('登录失败,请重新登录') |
| | |
| | | placeholder="请输入登录名" |
| | | :rules="[{ required: true, message: '请输入登录名' }]" |
| | | /> |
| | | <!-- :rules="[{ required: true, message: '请填写密码' }]" --> |
| | | <van-field |
| | | v-model="password" |
| | | type="password" |
| | | name="密 码" |
| | | label="密  码" |
| | | placeholder="6-16位数字或者字母组合" |
| | | :rules="[{ required: true, message: '请填写密码' }]" |
| | | |
| | | > |
| | | <template #button> |
| | | <van-button size="small" type="default" @click="wjmm">忘记密码</van-button> |