Commit 50d0971b by sunerhu

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

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