commission--yt-commit
This commit is contained in:
parent
b00256ba06
commit
017cb7b0e9
|
@ -14,6 +14,7 @@
|
|||
class="flex-col justify-start items-start text-wrapper view input"
|
||||
placeholder="请输入手机号"
|
||||
maxlength="11"
|
||||
type="number"
|
||||
model:value="{{phone}}"
|
||||
bindinput="onPhoneInput"
|
||||
/>
|
||||
|
@ -26,6 +27,7 @@
|
|||
class="flex-col justify-start items-start text-wrapper_2 view_2 input_1"
|
||||
placeholder="请输入验证码"
|
||||
maxlength="6"
|
||||
type="number"
|
||||
model:value="{{code}}"
|
||||
bindinput="onCodeInput"
|
||||
/>
|
||||
|
|
|
@ -10,7 +10,9 @@ Page({
|
|||
isAgree: false, // 用户协议是否勾选
|
||||
countdown: 0, // 剩余秒数
|
||||
codeButtonText: '获取验证码',
|
||||
_timer: null
|
||||
_timer: null,
|
||||
defaultType: true, //
|
||||
passwordType: true
|
||||
},
|
||||
|
||||
// 切换到“密码登录”,只清空表单字段
|
||||
|
|
|
@ -22,14 +22,18 @@
|
|||
|
||||
<!-- 手机号输入 -->
|
||||
<view class="flex-col self-stretch">
|
||||
<view class="flex-col justify-start relative section">
|
||||
<view class="flex-col justify-start relative section parentstyle ">
|
||||
<view class='centerStyle'>
|
||||
<input
|
||||
class="flex-col justify-start items-start text-wrapper view input"
|
||||
placeholder="请输入手机号"
|
||||
maxlength="11"
|
||||
type="number"
|
||||
model:value="{{phone}}"
|
||||
bindinput="onPhoneInput"
|
||||
/>
|
||||
<image src='{{defaultType? "": ""}}' class='imageStyle' bindtap='eyeStatus'></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 密码 / 验证码 输入 + 获取验证码按钮 -->
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
}
|
||||
.section_2 {
|
||||
margin-right: 4.93rpx;
|
||||
padding: 20.63rpx 16.88rpx 18.75rpx;
|
||||
padding: 12.63rpx 16.88rpx 9.75rpx;
|
||||
background-color: #ffffff;
|
||||
border-radius: 9.38rpx;
|
||||
box-shadow: 0rpx 3.75rpx 7.5rpx #00000040;
|
||||
|
@ -160,4 +160,29 @@
|
|||
.checkbox .wx-checkbox-input {
|
||||
width: 37.5rpx;
|
||||
height: 37.5rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.parentstyle {
|
||||
/* display: flex; */
|
||||
/* align-items: center; */
|
||||
/* border: 1rpx solid #e0e0e0; */
|
||||
border-radius: 10rpx;
|
||||
/* box-shadow: 0 0 5rpx #e0e0e0; */
|
||||
/* margin: 30rpx 38px; */
|
||||
/* padding: 20rpx; */
|
||||
}
|
||||
|
||||
.parentstyle .imageStyle {
|
||||
width: 41rpx;
|
||||
height: 41rpx;
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.parentstyle .centerStyle {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
|
|
|
@ -94,11 +94,11 @@ Page({
|
|||
async onRegister() {
|
||||
// 调用通用校验,失败时已提示并 return
|
||||
if (!validate(this.data, {
|
||||
nickname: '请输入昵称',
|
||||
phone: '请输入手机号',
|
||||
captcha: '请输入验证码',
|
||||
inviteCode: '请输入邀请码',
|
||||
password: '请输入密码'
|
||||
nickname: '昵称不能为空',
|
||||
phone: '手机号不能为空',
|
||||
captcha: '验证码不能为空',
|
||||
inviteCode: '邀请码不能为空',
|
||||
password: '密码不能为空'
|
||||
})) {
|
||||
return;
|
||||
}
|
||||
|
@ -108,6 +108,10 @@ Page({
|
|||
return;
|
||||
}
|
||||
const { nickname, phone, captcha, inviteCode, password } = this.data;
|
||||
wx.showLoading({
|
||||
title: '加载中',
|
||||
mask: true
|
||||
})
|
||||
const res = await requestAsync({
|
||||
url: baseUrl + '/userInfo/register',
|
||||
method: 'POST',
|
||||
|
@ -120,12 +124,14 @@ Page({
|
|||
userPassword: password
|
||||
}
|
||||
});
|
||||
console.log('注册信息---->',res.data);
|
||||
if (res.data.code === 1) {
|
||||
wx.showToast({
|
||||
title: '注册成功',
|
||||
icon: 'success',
|
||||
duration: 1000
|
||||
duration: 1000,
|
||||
});
|
||||
wx.hideLoading()
|
||||
setTimeout(() => {
|
||||
wx.navigateTo({
|
||||
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
||||
|
@ -139,6 +145,7 @@ Page({
|
|||
title: res.data.message || '注册失败',
|
||||
icon: 'none'
|
||||
});
|
||||
wx.hideLoading()
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -122,6 +122,17 @@ Page({
|
|||
return false;
|
||||
}
|
||||
|
||||
// 正则表达式,匹配非汉字字符
|
||||
const reg = /[^\u4e00-\u9fa5]/;
|
||||
// 判断输入的值是否含有非汉字字符
|
||||
if (reg.test(cardHolder)) {
|
||||
wx.showToast({
|
||||
title: '姓名必须为汉字',
|
||||
icon: 'none',
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
// 检查手机号是否为 11 位且只包含数字
|
||||
const phonePattern = /^[0-9]{11}$/;
|
||||
if (!phonePattern.test(phoneNumber)) {
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
placeholder="请输入开户银行"
|
||||
data-field="bankName"
|
||||
bindinput="handleInputChange"
|
||||
type="number"
|
||||
value="{{ bankName }}"
|
||||
/>
|
||||
</view>
|
||||
|
|
|
@ -25,6 +25,22 @@ Page({
|
|||
success: (res) => {
|
||||
console.log('当前账户是---->',res.data);
|
||||
if (res.data.code === 1) {
|
||||
if (res.data.data === null ) {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '当前无账户,请添加',
|
||||
complete: (res) => {
|
||||
if (res.cancel) {
|
||||
wx.navigateBack()
|
||||
} else if (res.confirm) {
|
||||
wx.navigateTo({
|
||||
url: '/pages/personCenter/bindBankCard/bindBankCard',
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
return;
|
||||
}
|
||||
this.setData({
|
||||
cardHolder: res.data.data.cardHolder,
|
||||
idCardNumber: res.data.data.idCardNumber,
|
||||
|
@ -72,7 +88,7 @@ Page({
|
|||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow() {
|
||||
|
||||
this.getAccountInfo()
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
.mt-27 {
|
||||
margin-top: 50.63rpx;
|
||||
margin-top: 32.63rpx;
|
||||
}
|
||||
.page {
|
||||
padding: 65.63rpx 37.5rpx 701.25rpx 58.13rpx;
|
||||
|
@ -17,7 +17,7 @@
|
|||
margin-top: 82.5rpx;
|
||||
}
|
||||
.group_2 {
|
||||
padding-bottom: 41.25rpx;
|
||||
padding-bottom: 29.25rpx;
|
||||
border-bottom: solid 1.88rpx #d1d1d1;
|
||||
}
|
||||
.font {
|
||||
|
@ -48,11 +48,11 @@
|
|||
line-height: 22.76rpx;
|
||||
}
|
||||
.group_3 {
|
||||
padding-bottom: 41.25rpx;
|
||||
padding-bottom: 29.25rpx;
|
||||
}
|
||||
.group_4 {
|
||||
margin-right: 11.25rpx;
|
||||
padding: 30rpx 0;
|
||||
padding: 25rpx 0;
|
||||
border-top: solid 1.88rpx #d1d1d1;
|
||||
border-bottom: solid 1.88rpx #d1d1d1;
|
||||
}
|
||||
|
|
|
@ -53,6 +53,11 @@ Page({
|
|||
return;
|
||||
}
|
||||
|
||||
wx.showLoading({
|
||||
title: '申请中',
|
||||
mask: true
|
||||
})
|
||||
|
||||
const token = wx.getStorageSync('token');
|
||||
wx.request({
|
||||
url: baseUrl + '/promoCodeApply/apply',
|
||||
|
@ -73,6 +78,7 @@ Page({
|
|||
icon: 'success',
|
||||
duration: 1000
|
||||
});
|
||||
wx.hideLoading()
|
||||
setTimeout(() => {
|
||||
wx.navigateBack();
|
||||
}, 1000);
|
||||
|
@ -81,6 +87,7 @@ Page({
|
|||
title: res.data.message || '申请失败',
|
||||
icon: 'none'
|
||||
});
|
||||
wx.hideLoading()
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
|
|
|
@ -41,6 +41,7 @@ Page({
|
|||
id
|
||||
},
|
||||
success: (res) => {
|
||||
console.log('项目详细---->',res.data.data);
|
||||
if (res.data.code === 1) {
|
||||
const detail = res.data.data || {};
|
||||
this.setData({
|
||||
|
@ -85,13 +86,19 @@ Page({
|
|||
});
|
||||
},
|
||||
|
||||
// “结算明细”跳转
|
||||
goToSettlementDetail() {
|
||||
// 跳转结算明细
|
||||
gotoSubSettlement(e) {
|
||||
|
||||
const projectId = e.currentTarget.dataset.id;
|
||||
const url = e.currentTarget.dataset.url;
|
||||
const name = e.currentTarget.dataset.name;
|
||||
|
||||
wx.navigateTo({
|
||||
url: '/pages/projectModule/subSettlement/subSettlement' // 替换为你的页面路径
|
||||
});
|
||||
url: `/pages/projectModule/settlement/settlement?id=${projectId}&picurl=${url}&name=${name}`,
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
// 推广码-查看资料
|
||||
goToPromoMaterial(e) {
|
||||
const id = e.currentTarget.dataset.id; // 项目id
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<text class="self-start font text">{{projectDetail.projectName}}</text>
|
||||
<view class="flex-row items-center self-stretch mt-7">
|
||||
<text class="flex-1 font_2 text_2">{{projectDetail.projectDescription}}</text>
|
||||
<view class="flex-row items-center shrink-0 section ml-13" bindtap="goToSettlementDetail">
|
||||
<view class="flex-row items-center shrink-0 section ml-13" bindtap="gotoSubSettlement" data-id="{{ projectDetail.id }}" data-url="{{ projectDetail.projectImage }}" data-name="{{ projectDetail.projectName }}">
|
||||
<image
|
||||
class="shrink-0 image_2"
|
||||
src="./images/jsmx.png"
|
||||
|
@ -149,7 +149,7 @@
|
|||
data-link="{{item.promoCodeLink}}"
|
||||
>查看推广码</text>
|
||||
<view class="flex-row self-stretch group_12">
|
||||
<view class="flex-col justify-start items-center text-wrapper_3" bindtap="goToSettlementDetail">
|
||||
<view class="flex-col justify-start items-center text-wrapper_3" >
|
||||
<text class="font_14 text_21">结算明细</text>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-center text-wrapper_4 ml-12" bindtap="goToPromoMaterial" data-id="{{item.projectId}}"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export const local='http://localhost:9091';
|
||||
export const ip = 'http://27.30.77.229:9091';
|
||||
export const baseUrl = local;
|
||||
export const baseUrl = ip;
|
||||
|
||||
export const globalImgUrl = baseUrl + '/file/download/'
|
Loading…
Reference in New Issue
Block a user