接单部分完成

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',

View File

@ -5,7 +5,7 @@
</view>
<view class="flex-col self-stretch group">
<view class="flex-row items-baseline group_2">
<text class="font_3 text_3" bind:tap="showchangeback"
<text class="font_2 text_2" bind:tap="showchangeback"
style="color: {{currentTab == 'password' ? '#ff8d1a' : '#383838'}}; font-weight: {{currentTab == 'password' ? 'bold' : 'normal'}};">密码登录</text>
<text class="font_2 text_2 ml-7" style="color: {{currentTab == 'code' ? '#ff8d1a' : '#383838'}}; font-weight: {{currentTab == 'code' ? 'bold' : 'normal'}};" bind:tap="showchange">验证码登录</text>
</view>

View File

@ -5,7 +5,7 @@
margin-top: 40.38rpx;
}
.page {
padding: 121.15rpx 42.31rpx 440.48rpx 44.23rpx;
padding: 121.15rpx 42.31rpx 180.48rpx 44.23rpx;
background-color: #ffffff;
width: 100%;
overflow-y: hidden;
@ -59,13 +59,14 @@
margin-left: 35.75rpx;
}
.font_4 {
font-size: 26.92rpx;
font-size: 30.92rpx;
font-family: SourceHanSansCN;
color: #808080;
}
.text_1 {
line-height: 24.85rpx;
width: 590rpx;
height: 20px;
}
.section {
padding: 37.27rpx 16.25rpx 35.79rpx 35.75rpx;