|  |  |  | 
|---|
|  |  |  | <view class="login_list"> | 
|---|
|  |  |  | <view class="login_list_item"> | 
|---|
|  |  |  | <image src="@/static/login_ic_phone@2x.png" mode="widthFix" /> | 
|---|
|  |  |  | <input v-model="form.phone" maxlength="18" placeholder="请输入手机号" /> | 
|---|
|  |  |  | <input v-model="form.phone" :maxlength="11" placeholder="请输入手机号" /> | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="login_list_item"> | 
|---|
|  |  |  | <image src="@/static/ic_captcha.png" mode="widthFix"></image> | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | onLoad() { | 
|---|
|  |  |  | onLoad(option) { | 
|---|
|  |  |  | if(option.phone){ | 
|---|
|  |  |  | this.$set(this.form, 'phone', option.phone) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | 
|---|
|  |  |  | ...form | 
|---|
|  |  |  | }).then(res => { | 
|---|
|  |  |  | if (res && res.code == 200) { | 
|---|
|  |  |  | this.showToast('密码修改成功,请重新登录') | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | uni.showToast({ | 
|---|
|  |  |  | title: '密码修改成功,请重新登录', | 
|---|
|  |  |  | icon: 'success', | 
|---|
|  |  |  | duration: 2000 | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | uni.redirectTo({ | 
|---|
|  |  |  | url: "/pages/staffLogin/login" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | uni.redirectTo({ | 
|---|
|  |  |  | url: "/pages/driver/login" | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, 500) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|