连接了我的项目,我的抽成
This commit is contained in:
parent
48e92710d6
commit
bafd46bf63
3
app.json
3
app.json
|
@ -19,7 +19,8 @@
|
|||
"pages/projectModule/applyCode/applyCode",
|
||||
"pages/projectModule/userProject/userProject",
|
||||
"pages/loginModule/forgetPwd/forgetPwd",
|
||||
"pages/personCenter/commissionSetting/commissionSetting"
|
||||
"pages/personCenter/commissionSetting/commissionSetting",
|
||||
"pages/personCenter/resetPwd/resetPwd"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarTextStyle": "black",
|
||||
|
|
|
@ -51,6 +51,7 @@ Page({
|
|||
});
|
||||
},
|
||||
|
||||
// 验证码开始
|
||||
startCountdown() {
|
||||
this.setData({ sending: true, count: 60 });
|
||||
const timer = setInterval(() => {
|
||||
|
|
|
@ -12,6 +12,12 @@ Page({
|
|||
phoneNumber: ""
|
||||
},
|
||||
|
||||
gotoResetPwd() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/personCenter/resetPwd/resetPwd',
|
||||
})
|
||||
},
|
||||
|
||||
logOut() {
|
||||
wx.request({
|
||||
url: baseUrl + '/userInfo/mini/logout',
|
||||
|
|
|
@ -3,14 +3,16 @@
|
|||
<view class="flex-col section_2">
|
||||
<text class="self-start text">账单明细</text>
|
||||
<view class="flex-col self-stretch">
|
||||
<view class="flex-col list-item" wx:for="{{items}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view class="flex-col list-item" wx:for="{{withdrawalList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view class="flex-row justify-between items-baseline">
|
||||
<text class="font text_2">银行卡</text>
|
||||
<text class="font_2">¥2.00</text>
|
||||
<text class="font_2">¥{{ item.withdrawnAmount }}</text>
|
||||
</view>
|
||||
<view class="flex-row justify-between items-center group mt-15">
|
||||
<text class="font_4 text_3">2025-10-20 18:45:15</text>
|
||||
<text class="font_3">待审核</text>
|
||||
<text class="font_3" wx:if="{{ item.withdrawalStatus === 'processing' }}">{{ withdrawalStatus[0] }}</text>
|
||||
<text class="font_3" wx:if="{{ item.withdrawalStatus === 'success' }}">{{ withdrawalStatus[1] }}</text>
|
||||
<text class="font_3" wx:if="{{ item.withdrawalStatus === 'failed' }}">{{ withdrawalStatus[2] }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -12,28 +12,28 @@
|
|||
</view>
|
||||
<image
|
||||
class="image_2"
|
||||
src="https://ide.code.fun/api/image?token=68368d354ae84d001230f4d1&name=f9ca835233e2714bc2418ea181ce0f10.png"
|
||||
src="./images/rightBlack.png"
|
||||
/>
|
||||
</view>
|
||||
<view class="flex-col mt-19">
|
||||
<view class="flex-col list-item mt-20" wx:for="{{items}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view class="flex-col list-item mt-20" wx:for="{{projectList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
||||
<view class="flex-row group_2">
|
||||
<view class="flex-row flex-1 self-center">
|
||||
<image
|
||||
class="shrink-0 image_3"
|
||||
src="https://ide.code.fun/api/image?token=68368d354ae84d001230f4d1&name=141f260ce084d8ec42e28b353cae9b11.png"
|
||||
src="{{ item.projectImage }}"
|
||||
/>
|
||||
<view class="flex-col items-start flex-1 group_3 ml-13">
|
||||
<text class="font">美团神券包-春季活动</text>
|
||||
<text class="font">{{ item.projectName }}</text>
|
||||
<view class="flex-col justify-start items-center text-wrapper mt-14">
|
||||
<text class="font_3 text_4">结算T+2</text>
|
||||
<text class="font_3 text_4">结算T+{{ item.projectSettlementCycle }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-row shrink-0 self-start section_2 ml-21" bind:tap="gotoSubCommission">
|
||||
<image
|
||||
class="image_4 image_5"
|
||||
src="https://ide.code.fun/api/image?token=68368d354ae84d001230f4d1&name=3e6ca90e00849d7326816d816878d186.png"
|
||||
src="./images/right.png"
|
||||
/>
|
||||
<text class="font_2 text_3">下级单价</text>
|
||||
</view>
|
||||
|
@ -47,13 +47,13 @@
|
|||
<view class="flex-col mt-16">
|
||||
<view
|
||||
class="flex-row justify-center items-center relative list-item_2 mt-14"
|
||||
wx:for="{{items_1}}"
|
||||
wx:for-item="item"
|
||||
wx:for="{{item.projectDetailCommissionVOList}}"
|
||||
wx:for-item="commission"
|
||||
wx:for-index="index"
|
||||
wx:key="index"
|
||||
>
|
||||
<text class="font_6 text_6 pos">3.6元购买</text>
|
||||
<text class="font_7 text_9">0.30/0.30/0.00%</text>
|
||||
<text class="font_6 text_6 pos">{{ commission.projectDetailName }}</text>
|
||||
<text class="font_7 text_9">{{ commission.myUnitPrice }}/{{ commission.agentUnitPrice }}/{{ commission.currentCommissionRate }}%</text>
|
||||
<view class="flex-row group_5 pos_2" bindtap="showCommissionRatePop">
|
||||
<image
|
||||
class="image_4 image_6"
|
||||
|
|
BIN
pages/personCenter/commissionSetting/images/right.png
Normal file
BIN
pages/personCenter/commissionSetting/images/right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 182 B |
BIN
pages/personCenter/commissionSetting/images/rightBlack.png
Normal file
BIN
pages/personCenter/commissionSetting/images/rightBlack.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 603 B |
|
@ -2,25 +2,25 @@
|
|||
<view class="flex-col relative section">
|
||||
<view class="flex-row justify-between items-center group">
|
||||
<view class="flex-col">
|
||||
<text class="self-start font text">qingcheng</text>
|
||||
<text class="self-start font text">{{ nickName }}</text>
|
||||
<view class="flex-row items-center self-stretch group_2 mt-9">
|
||||
<image
|
||||
class="image_3"
|
||||
src="./images/dianhua.png"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<text class="font_2 text_2 ml-7">15214547473</text>
|
||||
<text class="font_2 text_2 ml-7">{{ phoneNumber }}</text>
|
||||
</view>
|
||||
<view class="flex-row items-center self-stretch section_2 mt-9">
|
||||
<text class="font_3 text_3">邀请码:123445</text>
|
||||
<image
|
||||
class="shrink-0 image_4"
|
||||
src="./images/fuzhi.png"
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<text class="font_3 text_3">邀请码:{{ invitationCode }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex-col items-center">
|
||||
<view class="flex-col items-center" bind:tap="erweima">
|
||||
<image
|
||||
class="image_2"
|
||||
src="./images/erweima.png"
|
||||
|
@ -34,7 +34,7 @@
|
|||
<view class="flex-row justify-between items-center group_4">
|
||||
<view class="group_5">
|
||||
<text class="font_2 text_6">当前金额:</text>
|
||||
<text class="text_5">¥5.00</text>
|
||||
<text class="text_5">¥{{ currentBalance }}</text>
|
||||
</view>
|
||||
<view class="flex-row items-center section_3" bind:tap="lijitixian">
|
||||
<image
|
||||
|
@ -47,15 +47,15 @@
|
|||
<view class="flex-row items-start equal-division section_4">
|
||||
<view class="flex-col items-center equal-division-item_8">
|
||||
<text class="font_2 text_8">提现中</text>
|
||||
<text class="font_4 mt-15">¥0.00</text>
|
||||
<text class="font_4 mt-15">¥{{ withdrawalAmount }}</text>
|
||||
</view>
|
||||
<view class="flex-col items-center group_6 equal-division-item">
|
||||
<text class="font_2 text_9">已提现</text>
|
||||
<text class="font_4 mt-15">¥0.00</text>
|
||||
<text class="font_4 mt-15">¥{{ withdrawnAmount }}</text>
|
||||
</view>
|
||||
<view class="flex-col items-center group_7 equal-division-item_8">
|
||||
<text class="font_2 text_10">累计收入</text>
|
||||
<text class="font_4 mt-15">¥0.00</text>
|
||||
<text class="font_4 mt-15">¥{{ totalIncome }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
import { baseUrl } from "../../../request";
|
||||
import { formatPassword } from "../../../utils/util"
|
||||
|
||||
// pages/personCenter/resetPwd/resetPwd.js
|
||||
Page({
|
||||
|
||||
|
@ -5,14 +8,118 @@ Page({
|
|||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
phone: '', // 手机号
|
||||
sending: false, // 是否发送验证码
|
||||
count: 60,
|
||||
password: '', // 第一次输入的密码
|
||||
currentPwd: '', // 再次确认密码
|
||||
verificationCode: '' // 验证码
|
||||
},
|
||||
|
||||
resetPwd() {
|
||||
const { phone, verificationCode, password, currentPwd } = this.data;
|
||||
formatPassword(password,currentPwd);
|
||||
wx.request({
|
||||
url: baseUrl + '/userInfo/mini/in/reset/pwd',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
},
|
||||
data: {
|
||||
phoneNumber: phone,
|
||||
verificationCode: verificationCode,
|
||||
userPassword: password,
|
||||
userConfirmPassword: currentPwd
|
||||
},
|
||||
success: res => {
|
||||
console.log('修改密码--->',res);
|
||||
if (res.data.code === 1) {
|
||||
wx.showToast({
|
||||
title: '更改密码成功',
|
||||
icon: 'success'
|
||||
})
|
||||
wx.reLaunch({
|
||||
url: '/pages/loginModule/pwdLogin/pwdLogin',
|
||||
})
|
||||
} else {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: res.data.message
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 获取验证码
|
||||
getVerificationCode() {
|
||||
const { phone } = this.data;
|
||||
wx.request({
|
||||
url: baseUrl + '/userInfo/code/pwd',
|
||||
method: 'POST',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
},
|
||||
data: {
|
||||
templateString: phone
|
||||
},
|
||||
success: res => {
|
||||
if (res.data.code === 1) {
|
||||
wx.showToast({ title: '验证码已发送' });
|
||||
this.startCountdown();
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: '发送失败',
|
||||
icon: 'error'
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 验证码开始
|
||||
startCountdown() {
|
||||
this.setData({ sending: true, count: 60 });
|
||||
const timer = setInterval(() => {
|
||||
let { count } = this.data;
|
||||
if (count <= 1) {
|
||||
clearInterval(timer);
|
||||
this.setData({ sending: false });
|
||||
} else {
|
||||
this.setData({ count: count - 1 });
|
||||
}
|
||||
}, 1000);
|
||||
},
|
||||
|
||||
// 通用输入事件处理函数
|
||||
onInput(e) {
|
||||
const field = e.currentTarget.dataset.field; // 获取字段名
|
||||
console.log(field);
|
||||
const value = e.detail.value; // 获取输入容
|
||||
this.setData({
|
||||
[field]: value // 动态更新应字段
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
|
||||
// 获取用户信息 —— 用于渲染手机号
|
||||
wx.request({
|
||||
url: baseUrl + '/userInfo/get/jwt',
|
||||
method: 'GET',
|
||||
header: {
|
||||
Authorization: wx.getStorageSync('token')
|
||||
},
|
||||
success: res => {
|
||||
if (res.data.code === 1) {
|
||||
this.setData({
|
||||
phone: res.data.data.phoneNumber
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,13 +1,33 @@
|
|||
<view class="flex-col page">
|
||||
<view class="flex-col section">
|
||||
<text class="self-start font text">15888610253</text>
|
||||
<view class="self-start font text">{{ phone }}</view>
|
||||
<view class="flex-row justify-between self-stretch group">
|
||||
<input class="font text_2" placeholder="验证码" />
|
||||
<text class="font text_3">获取验证码</text>
|
||||
<input
|
||||
class="font text_2"
|
||||
placeholder="验证码"
|
||||
bindinput="onInput"
|
||||
data-field="verificationCode"
|
||||
value="{{ verificationCode }}"
|
||||
/>
|
||||
<view bind:tap="{{ sending ? '' : 'getVerificationCode' }}">
|
||||
<text class="font text_3">{{ sending ? count + 's后重发' : '发送验证码' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<input class="text_1 font" placeholder="密码" />
|
||||
<input
|
||||
class="text_1 font"
|
||||
placeholder="密码"
|
||||
bindinput="onInput"
|
||||
data-field="password"
|
||||
value="{{ password }}"
|
||||
/>
|
||||
<view class="self-stretch divider"></view>
|
||||
<input class="text_8 font text_4" placeholder="再输入密码" />
|
||||
<input
|
||||
class="text_8 font text_4"
|
||||
placeholder="再输入密码"
|
||||
bindinput="onInput"
|
||||
data-field="currentPwd"
|
||||
value="{{ currentPwd }}"
|
||||
/>
|
||||
</view>
|
||||
<view class="flex-col justify-start items-center text-wrapper mt-20"><text class="font text_5">重置密码</text></view>
|
||||
<view class="flex-col justify-start items-center text-wrapper mt-20" bind:tap="resetPwd"><text class="font text_5">重置密码</text></view>
|
||||
</view>
|
|
@ -1,20 +1,22 @@
|
|||
<view class="flex-col justify-start page">
|
||||
<view class="flex-col list">
|
||||
<view class="flex-col list-item mt-15" wx:for="{{items}}" wx:for-item="item" wx:for-index="index" wx:key="index" bind:tap="tiaozhuan">
|
||||
<view class="flex-col list-item mt-15" wx:for="{{ userProjectList }}" wx:for-item="item" wx:for-index="index" wx:key="index" >
|
||||
<view class="flex-row justify-between items-center self-stretch">
|
||||
<view class="flex-row items-center">
|
||||
<image
|
||||
class="shrink-0 image"
|
||||
src="./images/xmtp.png"
|
||||
src="{{ item.projectImage }}"
|
||||
/>
|
||||
<view class="ml-18 flex-col shrink-0 group">
|
||||
<text class="font">美团省钱包</text>
|
||||
<text class="mt-12 font_2 text">结算T+1 实时数据</text>
|
||||
<text class="font">{{ item.projectName }}</text>
|
||||
<text class="mt-12 font_2 text">结算T+{{ item.projectSettlementCycle }} 实时数据</text>
|
||||
</view>
|
||||
</view>
|
||||
<image
|
||||
class="image_2"
|
||||
src="./images/yjt.png"
|
||||
bind:tap="gotoProjectDetail"
|
||||
data-id="{{ item.projectId }}"
|
||||
/>
|
||||
</view>
|
||||
<view class="mt-14 flex-row group_2 equal-division">
|
||||
|
@ -25,7 +27,7 @@
|
|||
/>
|
||||
<text class="ml-4 font_3">推广码</text>
|
||||
</view>
|
||||
<view class="ml-14 flex-row items-center section equal-division-item_2">
|
||||
<view class="ml-14 flex-row items-center section equal-division-item_2" bind:tap="gotoSubSettlement">
|
||||
<image
|
||||
class="shrink-0 image_4"
|
||||
src="./images/jsmx.png"
|
||||
|
|
|
@ -14,6 +14,38 @@ const formatNumber = n => {
|
|||
return n[1] ? n : `0${n}`
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
formatTime
|
||||
const formatPassword = (pwd , currentPwd) => {
|
||||
if (pwd === '') {
|
||||
wx.showToast({
|
||||
title: '密码不能为空',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (pwd.length < 6) {
|
||||
wx.showToast({
|
||||
title: '密码不能小于6位',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (currentPwd === '') {
|
||||
wx.showToast({
|
||||
title: '请输入二次确认密码',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
if (currentPwd !== pwd) {
|
||||
wx.showToast({
|
||||
title: '两次密码不一致',
|
||||
icon: 'error'
|
||||
})
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
formatTime,
|
||||
formatPassword
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user