Commit 50d0971b by sunerhu

1.修改重置密码密码校验

2.订单详情页面传参错误
parent 7d08c3bb
...@@ -285,6 +285,9 @@ ...@@ -285,6 +285,9 @@
console.log(res, 545415) console.log(res, 545415)
if (res['success']) { if (res['success']) {
this.orderId = res['data']['id']; this.orderId = res['data']['id'];
if(this.coursesharing == '1'){
this.userId = localStorage.getItem('h5_userId')?localStorage.getItem('h5_userId'): this.userId
}
uni.navigateTo({ uni.navigateTo({
url: `/pages/orderConfirm/orderConfirm?fileId=${this.fileId}&orderId=${this.orderId}&userId=${this.userId}` url: `/pages/orderConfirm/orderConfirm?fileId=${this.fileId}&orderId=${this.orderId}&userId=${this.userId}`
}) })
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
viewDetail(){ viewDetail(){
// 查看详情 // 查看详情
uni.navigateTo({ uni.navigateTo({
url:`/pages/orderDetail/orderDetail?id=${this.orderId}` url:`/pages/orderDetail/orderDetail?id=${this.orderId}&type=drop`
}) })
}, },
goToCourselist(){ goToCourselist(){
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<text>{{usermobile}}</text> <text>{{usermobile}}</text>
</view> </view>
<view class="input-row"> <view class="input-row">
<input maxlength="11" type="text" v-model="form.password" placeholder="请输入新密码" /> <input maxlength="11" type="password" v-model="form.password" placeholder="请输入新密码" />
</view> </view>
<view class="input-row"> <view class="input-row">
<view style="width: 65%;"><input maxlength="11" type="text" v-model="form.code" placeholder="请输入验证码" /></view> <view style="width: 65%;"><input maxlength="11" type="text" v-model="form.code" placeholder="请输入验证码" /></view>
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
data() { data() {
return { return {
form:{ form:{
mobile: "18335619247", mobile: uni.getStorageSync('user_mobile'),
code:'', code:'',
password:'', password:'',
}, },
...@@ -64,7 +64,10 @@ ...@@ -64,7 +64,10 @@
const params = { const params = {
...this.form ...this.form
} }
console.log(params) if(!common.passwordValid(this.form.password)){
common.errorDialog(2,'请输入6-12位数字字母组合');
return false;
}
api.resetPassword(params).then((res)=>{ api.resetPassword(params).then((res)=>{
if(res['success']){ if(res['success']){
uni.showToast({ uni.showToast({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment