first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1 @@
2db76370-bc0e-4770-b102-a39012f7d86f

View File

@@ -0,0 +1,124 @@
// user/cashWithdrawal/cashWithdrawal.js
const app = getApp();
const util = app.loadUtils("util")
const regeneratorRuntime = app.loadAsync()
const model = app.loadModel("index")
const http = app.loadHttp()
Page({
/**
* 页面的初始数据
*/
data: {
system: app.globalData.system, //设备相关信息
pageTitle: "合伙人收益提现", //头部标题
isBack: true,//显示返回
distribution_money: 0,//可提现金额
},
async withDraw(e) {
let money = parseFloat(e.detail.value.money) || 0
if (money <= 0) {
wx.showToast({
title: '请输入正确的金额',
icon: 'none',
duration: 2000
})
return;
}
if (money < 100) {
wx.showToast({
title: '小于100元不能提现哦!!!',
icon: 'none',
duration: 2000
})
return;
}
wx.showModal({
title: '提现',
content: '提现后不能取消,是否提现?',
success(res) {
if (res.confirm) {
wx.showLoading({
title: '提现中,请稍等!!!',
})
http.http.request2({ url: `${http.api.withDraw}`, method: "POST", data: { total_money: money } })
.then(res => {
wx.hideLoading()
wx.showToast({
title: res.data.msg,
icon: 'none',
duration: 2000
})
setTimeout(() => {
wx.navigateBack({
delta: 2
})
}, 2000)
})
}
}
})
},
// 获取当前可提现金额接口
async getDistributionMoney() {
let res = await http.http.request2({ url: `${http.api.getDistributionMoney}`, method: "POST" })
this.setData({
distribution_money: res.data.data.distribution_money
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.getDistributionMoney()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1,29 @@
<!-- 头部 -->
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
<!-- user/cashWithdrawal/cashWithdrawal.wxml -->
<view class="cashWithdrawal">
<form report-submit bindsubmit="withDraw">
<view class="cash_Input pd30 mt20">
<view class="cash_Input_t">提现金额</view>
<view class="dis-flex cash_Input_text mt10">
<view class="cash_Input_m">¥</view>
<view class="cash_Input_money flex1 dis-flex">
<input name="money" class="flex1" type="number" maxlength="6" />
</view>
</view>
<view class="dis-flex mt20">
<view class="flex1 cash_Input_p1">可提现金额:{{distribution_money}}元</view>
<navigator url="/user/withdrawalsRecord/withdrawalsRecord" class="cash_Input_p2">
提现记录
</navigator>
</view>
</view>
<button form-type="submit" class="sub">确认提现</button>
</form>
<view class="cash_tips pd30">
<view>温馨提示:</view>
<view>最低提现金额为100元,提现后收益会自动转入您的微信账户中。</view>
</view>
</view>
<!-- toasta提示 -->
<i-toast id="toast" />

View File

@@ -0,0 +1,52 @@
/* user/cashWithdrawal/cashWithdrawal.wxss */
.cash_Input{
background-color: #ffffff;
padding-top: 36rpx;
padding-bottom: 33rpx;
}
.cash_Input_t{
font-family: PingFang-SC-Medium;
font-size: 32rpx;
letter-spacing: 0px;
color: #000000;
}
.cash_Input_text{
height: 66rpx;
padding-bottom: 20rpx;
border-bottom: 2rpx solid #eaeaea;
box-sizing: initial;
}
.cash_Input_m{
font-family: PingFang-SC-Medium;
font-size: 40rpx;
font-weight: 400;
color: #000000;
}
.cash_Input_money input{
font-family: PingFang-SC-Medium;
font-size: 60rpx;
font-weight: 400;
color: #000000;
height: auto;
}
.cash_Input_p1{
font-family: PingFang-SC-Medium;
font-size: 28rpx;
font-weight: 400;
color: #666666;
}
.cash_Input_p2{
font-family: PingFang-SC-Medium;
font-size: 28rpx;
font-weight: 400;
color: #ff4026;
}
.cash_tips{
margin-top: 40rpx;
font-family: PingFang-SC-Medium;
font-size: 26rpx;
font-weight: 400;
line-height: 45rpx;
letter-spacing: 0px;
color: #999999;
}

View File

@@ -0,0 +1 @@
e88ea39f-2958-4198-8834-42cd3f61b1be

View File

@@ -0,0 +1,73 @@
// user/cashWithdrawal/success/success.js
const app = getApp();
const util = app.loadUtils("util")
const regeneratorRuntime = app.loadAsync()
const model = app.loadModel("index")
const http = app.loadHttp()
Page({
/**
* 页面的初始数据
*/
data: {
system: app.globalData.system, //设备相关信息
pageTitle: "合伙人收益提现", //头部标题
isBack: true,//显示返回
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

View File

@@ -0,0 +1,3 @@
{
"usingComponents": {}
}

View File

@@ -0,0 +1,12 @@
<!-- 头部 -->
<nav-bar isBack="{{isBack}}" pageTitle="{{pageTitle}}" system="{{system}}"></nav-bar>
<!--user/cashWithdrawal/success/success.wxml-->
<view class="success">
<view class="p success_p1 mt100">恭喜,提现成功!</view>
<view class="p success_p2 mt40">余额:0.00元</view>
<view class="sub">确认</view>
<view class="p success_p2 mt40">已成功提现到该账户绑定的微信零钱包</view>
<view class="p success_p2">请注意查看!</view>
</view>
<!-- toasta提示 -->
<i-toast id="toast" />

View File

@@ -0,0 +1,16 @@
/* user/cashWithdrawal/success/success.wxss */
.success .p{
text-align: center;
}
.success_p1{
font-family: PingFang-SC-Medium;
font-size: 40rpx;
font-weight: 400;
color: #000000;
}
.success_p2{
font-family: PingFang-SC-Medium;
font-size: 26rpx;
font-weight: normal;
color: #999999;
}