接单部分完成

This commit is contained in:
Ling53666
2025-05-15 09:40:36 +08:00
parent bb84973913
commit 9b8553930b
37 changed files with 611 additions and 265 deletions

View File

@ -72,6 +72,7 @@ submit(){
const that = this
const phone = this.data.inputValue;
const password = this.data.inputValuepassword;
console.log(password,'isdjidasjiodaso');
// 手机号验证6~11位数字
if (!/^\d{6,11}$/.test(phone)) {
wx.showToast({
@ -82,9 +83,9 @@ submit(){
}
// 密码验证6~10位字符
if (!/^.{6,10}$/.test(password)) {
if (!/^[a-zA-Z0-9]{6,10}$/.test(password)) {
wx.showToast({
title: '请输入6到10位密码',
title: '请输入6到10位密码',
icon: 'none'
});
return;
@ -106,11 +107,12 @@ submit(){
userPassword: this.data.inputValuepassword
},
header: {
'content-type': 'application/json'
'content-type': 'application/json',
},
success(res) {
console.log('登录成功', res);
if(res.data.code==1){
console.log(res.data.data,'zhehsidata');
wx.showToast({
title: '登录成功',
icon: 'success',
@ -168,7 +170,7 @@ getcode(){
templateString: this.data.yanzhengphone
},
header: {
'content-type': 'application/json'
'content-type': 'application/json',
},
success(res) {
console.log('发送成功', res);
@ -218,7 +220,7 @@ submityanzhengma(){
verificationCode: this.data.yanzhengcode
},
header: {
'content-type': 'application/json'
'content-type': 'application/json',
},
success(res) {
console.log('登录成功', res);
@ -257,12 +259,14 @@ submityanzhengma(){
});
},
setmessage() {
console.log("diaoyongle ");
const that = this;
wx.getStorage({
key: "logmessage",
success(res) {
console.log(res.data, 'sajlkdlasjdkl');
const userinfo = res.data;
console.log(userinfo,'这是获取的');
wx.request({
url: url + '/userInfo/get/jwt',
method: 'GET',