小程序提交

This commit is contained in:
2025-07-20 18:22:59 +08:00
parent a1d21c67b8
commit fa2a7b3499
61 changed files with 2505 additions and 944 deletions

View File

@ -33,7 +33,7 @@ Page({
})
setTimeout(() => {
wx.reLaunch({
url: '/pages/loginModule/pwdLogin/pwdLogin',
url: '/pages/welcome/homePage/homePage',
})
}, 1000); // 1000ms = 1秒
} else {

View File

@ -8,18 +8,15 @@ Page({
* 页面的初始数据
*/
data: {
items: [null],
items: [null,null,null],
nickName: "",
userAvatar: "",
phoneNumber: "",
userAccount: "",
invitationCode: "",
currentBalance: "", // 当前余额
withdrawalingBalance: 0, // 提现中的余额
withdrawaledAmount: "", // 已提现的余额
totalIncome:"", // 累计收入
showPopup: false, // 控制弹窗显示与否
qrcode: "https://img.picui.cn/free/2025/05/29/6837c53582068.gif", // 设置二维码图片的路径
userRole: "",
},
// 跳转课程订单页面
@ -114,11 +111,7 @@ Page({
if (res.data.code === 1) {
let result = res.data.data
this.setData({
currentBalance: result.currentBalance, // 当前余额
withdrawalingBalance: result.withdrawalAmount, // 提现中的余额
withdrawaledAmount: result.withdrawnAmount, // 已提现的余额
totalIncome: result.totalIncome, // 累计收入
qrcode: globalImgUrl + result.inviteQrCode
// qrcode: globalImgUrl + result.inviteQrCode
})
} else {
wx.showToast({
@ -140,6 +133,7 @@ Page({
Authorization: token
},
success: res => {
console.log('用户信息---->',res.data);
if (res.data.code === 1) {
this.setData({
nickName: res.data.data.nickName,
@ -147,7 +141,8 @@ Page({
userAvatar: res.data.data.userAvatar,
phoneNumber: res.data.data.phoneNumber,
userAccount: res.data.data.userAccount,
invitationCode: res.data.data.invitationCode
invitationCode: res.data.data.invitationCode,
userRole: res.data.data.userRole,
})
}
}

View File

@ -1,4 +1,4 @@
<view class="flex-col page">
<!-- <view class="flex-col page">
<view class="flex-col relative section">
<view class="flex-row justify-between items-center group">
<view class="flex-col">
@ -89,10 +89,10 @@
/>
<text class="font text_13 mt-6">提现记录</text>
</view>
</view>
</view> -->
<!-- 接单相关 -->
<view class="flex-col list">
<view
<!-- <view class="flex-col list"> -->
<!-- <view
class="flex-row equal-division equal-division_3 mt-15"
wx:for="{{items}}"
wx:for-item="item"
@ -131,9 +131,9 @@
/>
<text class="font mt-11">联系上级</text>
</view>
</view>
</view> -->
<!-- 课程相关 -->
<view
<!-- <view
class="flex-row equal-division equal-division_3 mt-15"
wx:for="{{items}}"
wx:for-item="item"
@ -207,6 +207,111 @@
/>
</view>
</view>
</view> -->
<view class="flex-col page">
<view class="flex-row justify-between section">
<view class="flex-row items-center self-center">
<image
class="image"
src="./images/logo.png"
/>
<view class="flex-col ml-6">
<text class="self-start font text">{{ nickName }}</text>
<view class="flex-row items-center self-stretch group_2 mt-9" bind:tap="gotoCall">
<image
class="image_3"
src="./images/dianhua.png"
mode="aspectFill"
/>
<text class="font_2 text_2 ml-7">{{ phoneNumber }}</text>
</view>
<view class="flex-row items-center self-stretch section_2 mt-9" bind:tap="copyInvitationCode">
<image
class="shrink-0 image_4"
src="./images/fuzhi.png"
mode="aspectFill"
/>
<text class="font_2 text_3">邀请码:{{ invitationCode }}</text>
</view>
</view>
</view>
<view class="flex-col items-start self-start group">
<image
class="image_2"
src="./images/erweima.png"
mode="aspectFill"
bind:tap="showPromoPopup"
/>
<text class="font_2 text_4 mt-6">二维码邀请</text>
</view>
</view>
<view class="flex-col mt-22">
<view class="flex-row items-start equal-division section_3">
<view class="flex-col items-center equal-division-item_1 group_3" >
<image
class="image_5"
src="./images/zhijinxiangqing.png"
/>
<text class="font text_5 mt-6">查看绩效</text>
</view>
<view class="flex-col items-center equal-division-item_2 equal-division-item">
<image
class="image_5"
src="./images/tixianzhanghu.png"
/>
<text class="font text_6 mt-6">主管排名</text>
</view>
<view class="flex-col items-center equal-division-item_3 group_5">
<image
class="image_5"
src="./images/tixianjilu.png"
/>
<text class="font mt-6">员工排名</text>
</view>
</view>
<view class="flex-col list">
<view class="flex-row justify-between items-center section_4">
<view class="flex-row items-center" bind:tap="courseOrder">
<image
class="shrink-0 image_6"
src="./images/zhanghaoshezhi.png"
/>
<text class="font ml-5">我的订单</text>
</view>
<image
class="image_7"
src="./images/xiajiantou.png"
/>
</view>
<view class="flex-row justify-between items-center section_4 mt-11">
<view class="flex-row items-center">
<image
class="shrink-0 image_6"
src="./images/zhanghaoshezhi.png"
/>
<text class="font text_7 ml-5">仪表盘</text>
</view>
<image
class="image_7"
src="./images/xiajiantou.png"
/>
</view>
<view class="flex-row justify-between items-center section_4 mt-11" bind:tap="zhshezhi">
<view class="flex-row items-center">
<image
class="shrink-0 image_6"
src="./images/zhanghaoshezhi.png"
/>
<text class="font text_8 ml-5">账号设置</text>
</view>
<image
class="image_7"
src="./images/xiajiantou.png"
/>
</view>
</view>
</view>
</view>
<!-- 调用弹窗组件 -->

View File

@ -4,9 +4,6 @@
.mt-9 {
margin-top: 16.88rpx;
}
.mt-15 {
margin-top: 28.13rpx;
}
.mt-11 {
margin-top: 20.63rpx;
}
@ -14,26 +11,26 @@
margin-left: 9.38rpx;
}
.page {
padding: 65.63rpx 28.13rpx 331.88rpx;
padding: 65.63rpx 28.13rpx 780rpx;
background-image: linear-gradient(180deg, #ff8d1a -7.3%, #ffffff00 92.1%);
width: 100%;
overflow: hidden;
overflow-y: auto;
overflow-x: hidden;
height: 100%;
}
.section {
padding-left: 31.88rpx;
padding-right: 31.74rpx;
padding: 15rpx 13.13rpx 26.25rpx;
background-color: #ffffff;
border-radius: 18.75rpx;
border-radius: 8.33rpx;
}
.group {
padding: 45.9rpx 30.73rpx 33.75rpx 153.75rpx;
border-bottom: solid 1.88rpx #ededed;
.image {
width: 161.25rpx;
height: 161.25rpx;
}
.font {
font-size: 26.25rpx;
font-family: SourceHanSansCN;
line-height: 24.39rpx;
line-height: 24.34rpx;
color: #000000;
}
.text {
@ -49,246 +46,104 @@
.font_2 {
font-size: 22.5rpx;
font-family: SourceHanSansCN;
line-height: 19.93rpx;
color: #000000;
line-height: 20.68rpx;
color: #ff8d1a;
}
.text_2 {
color: #808080;
line-height: 17.08rpx;
}
.section_2 {
padding: 10.5rpx 14.03rpx 10.5rpx 14.03rpx;
padding: 7.5rpx 13.13rpx 5.63rpx 14.03rpx;
background-color: #fff6de;
border-radius: 31.26rpx;
}
.image_4 {
margin-left: 169.72rpx;
width: 24.38rpx;
height: 24.38rpx;
margin-left: 10rpx;
}
.font_3 {
font-size: 22.5rpx;
font-family: SourceHanSansCN;
line-height: 19.93rpx;
color: #ff8d1a;
}
.text_3 {
line-height: 20.68rpx;
margin-left: -194.1rpx;
margin-right: 21.6rpx;
}
.group {
margin-top: 33.75rpx;
width: 163.72rpx;
}
.image_2 {
margin-left: 17.48rpx;
width: 76.88rpx;
height: 76.88rpx;
}
.text_4 {
line-height: 20.72rpx;
}
.group_3 {
padding-bottom: 28.13rpx;
}
.group_4 {
padding: 29.06rpx 0 32.81rpx 2.59rpx;
}
.group_5 {
line-height: 25.78rpx;
height: 27.21rpx;
}
.text_6 {
line-height: 21rpx;
}
.text_5 {
color: #ff8d1a;
font-size: 33.75rpx;
font-family: SourceHanSansCN;
line-height: 25.78rpx;
}
.section_3 {
padding: 6.43rpx 10.44rpx 6.69rpx 20.77rpx;
background-color: #ffffff;
border-radius: 37.5rpx;
width: 151.88rpx;
height: 46.88rpx;
border: solid 1.88rpx #ff8d1a;
}
.image_5 {
width: 30rpx;
height: 30rpx;
}
.image_6 {
margin-left: 86.91rpx;
}
.text_7 {
margin-left: -116.91rpx;
line-height: 20.91rpx;
}
.equal-division {
position: relative;
}
.equal-division:first-child {
margin-top: 0;
.section_3 {
padding: 6.88rpx 0 13.59rpx;
background-color: #ffffff;
border-radius: 18.75rpx;
}
.section_4 {
padding: 15.96rpx 0 17.32rpx;
background-color: #f7f7f7;
border-radius: 9.38rpx;
.equal-division-item_1 {
margin-left: 8.06rpx;
}
.text_8 {
line-height: 20.77rpx;
.group_3 {
padding: 11.76rpx 0 10.01rpx;
width: 224.59rpx;
}
.font_4 {
font-size: 26.25rpx;
font-family: SourceHanSansCN;
line-height: 19.93rpx;
color: #000000;
.image_5 {
width: 63.99rpx;
height: 63.99rpx;
}
.group_6 {
.text_5 {
line-height: 24.26rpx;
}
.equal-division-item_2 {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.equal-division-item {
padding: 10.01rpx 0 9.99rpx;
width: 208.74rpx;
padding: 11.76rpx 0 10.09rpx;
width: 224.59rpx;
}
.text_9 {
line-height: 20.74rpx;
}
.group_7 {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
}
.equal-division-item_8 {
padding: 9.99rpx 0 9.99rpx;
width: 208.74rpx;
}
.text_10 {
line-height: 20.72rpx;
}
.image {
width: 131.25rpx;
height: 131.25rpx;
}
.pos {
position: absolute;
left: 30.13rpx;
top: 32rpx;
border-radius: 20rpx;
}
.equal-division_2 {
position: relative;
margin-top: 24.38rpx;
}
.section_5 {
padding: 6.88rpx 0 13.52rpx;
background-color: #ffffff;
border-radius: 18.75rpx;
}
.equal-division-item_1 {
margin-left: 8.85rpx;
}
.equal-division-item_2 {
padding: 11.76rpx 0 10.01rpx;
width: 224.06rpx;
}
.image_7 {
width: 63.99rpx;
height: 63.99rpx;
}
.text_11 {
line-height: 24.56rpx;
}
.group_1 {
padding: 11.76rpx 0 10.03rpx;
width: 224.06rpx;
}
.text_12 {
line-height: 24.43rpx;
}
.group_9 {
position: absolute;
right: 10.84rpx;
top: 50%;
transform: translateY(-50%);
}
.group_10 {
padding: 11.76rpx 0 10.11rpx;
width: 224.06rpx;
}
.text_13 {
line-height: 24.21rpx;
}
.list {
padding: 28.13rpx 0 33.75rpx;
}
.equal-division_3 {
padding: 12.51rpx 10.14rpx 17.23rpx;
background-color: #ffffff;
border-radius: 18.75rpx;
}
.image_8 {
border-radius: 9.38rpx;
width: 63.99rpx;
height: 63.99rpx;
}
.text_14 {
line-height: 24.34rpx;
}
.equal-division-item_6 {
padding: 11.76rpx 0 10.18rpx;
width: 167.4rpx;
}
.text_15 {
line-height: 24.3rpx;
}
.group_11 {
position: absolute;
right: 179.53rpx;
top: 50%;
transform: translateY(-50%);
.text_6 {
line-height: 24.28rpx;
}
.equal-division-item_3 {
padding: 11.76rpx 0 10.14rpx;
width: 167.4rpx;
}
.text_16 {
line-height: 24.23rpx;
}
.group_12 {
position: absolute;
right: 12.13rpx;
right: 10.03rpx;
top: 50%;
transform: translateY(-50%);
}
.equal-division-item_7 {
.group_5 {
padding: 11.76rpx 0 9.99rpx;
width: 167.4rpx;
width: 224.59rpx;
}
.list_2 {
.list {
padding-top: 39.38rpx;
}
.section_4 {
padding: 31.88rpx 31.88rpx 30rpx 33.75rpx;
background-color: #ffffff;
border-radius: 17.72rpx;
border-radius: 9.47rpx;
}
.group_13 {
padding: 30rpx 30rpx 28.13rpx 35.63rpx;
}
.image_9 {
.image_6 {
border-radius: 9.38rpx;
width: 41.25rpx;
height: 41.25rpx;
}
.text_17 {
.image_7 {
width: 30rpx;
height: 30rpx;
}
.text_7 {
line-height: 24.47rpx;
}
.text_8 {
line-height: 23.81rpx;
}
.list-divider {
margin-right: 39.43rpx;
background-color: #d4d4d4;
width: 566.17rpx;
height: 1.88rpx;
}
.group_14 {
padding: 22.5rpx 30rpx 28.13rpx 35.63rpx;
}
.text_18 {
line-height: 24.6rpx;
}