一些静态页面

This commit is contained in:
2025-02-19 01:42:40 +08:00
parent b9ac810146
commit 3f3c0095c8
18 changed files with 373 additions and 5 deletions

View File

@ -10,6 +10,8 @@ export default {
userInfo:()=>request.get('/api/user/info'),
summary:()=>request.get('/api/account/summary'),
incomeList:(data)=>request.get('/api/account/details',data),
getRNAuth:()=>request.get('/api/user/auth'),
setRNAuth:(data)=>request.post('/api/user/auth',data),
uploadImg(file,progress){
return new Promise((rs,rj)=>{

View File

@ -6,7 +6,10 @@
"pages/user/info/index",
"pages/withdraw/index/index",
"pages/withdraw/success/index",
"pages/user/income/index"
"pages/user/income/index",
"pages/user/rnAuth/index",
"pages/user/bank/index/index",
"pages/user/bank/editor/index"
],
"window": {
"navigationBarTextStyle": "black",

BIN
assets/icon/delete.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

View File

@ -114,7 +114,9 @@ Page({
if(item.status==this.data.orderStatus.unpaid||item.status==this.data.orderStatus.completed){
this.data.statusDetail.completed.value += item.count;
}else{
this.data.statusDetail[item.status.toLowerCase()].value = item.count;
if(this.data.statusDetail[item.status.toLowerCase()]){
this.data.statusDetail[item.status.toLowerCase()].value = item.count;
}
}
});
this.setData({

View File

@ -131,7 +131,7 @@
</view>
<view class="page-container income">
<view class="item">
<view class="item" bind:tap="navToUserInfo">
<view class="key">
<label>账户余额</label>
<image class="icon" src="/assets/icon/right-arrow-small.png"/>

View File

@ -0,0 +1,66 @@
// pages/user/bank/editor/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

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

View File

@ -0,0 +1,25 @@
<view class="cells">
<view class="cell">
<view class="cell-hd">持卡姓名</view>
<view class="cell-bd">
<input placeholder="请输入持卡姓名"/>
</view>
</view>
<view class="cell">
<view class="cell-hd">开户银行</view>
<view class="cell-bd">
<input placeholder="请输入开户银行"/>
</view>
</view>
<view class="cell">
<view class="cell-hd">银行卡号</view>
<view class="cell-bd">
<input placeholder="请输入银行卡号"/>
</view>
</view>
</view>
<view class="bottom-bar">
<button type="primary" class="save-btn">提交并认证</button>
</view>

View File

@ -0,0 +1 @@
/* pages/user/bank/editor/index.wxss */

View File

@ -0,0 +1,70 @@
// pages/user/bank/index/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
navToAdd(){
wx.navigateTo({
url: '/pages/user/bank/editor/index',
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "银行卡管理"
}

View File

@ -0,0 +1,23 @@
<view class="bank-card">
<view class="title">
<label>提现用卡</label>
<view class="tag">个人账户</view>
</view>
<view class="card">
<view class="head">
<image class="icon-card" src="/assets/icon/card.png"/>
<view class="name">中国工商银行</view>
<image class="icon-delete" src="/assets/icon/delete.png"/>
</view>
<view class="spliter"></view>
<view class="info-item">
<view class="key">持卡人</view>
<view class="value">仙人模斗</view>
</view>
<view class="info-item">
<view class="key">银行卡号</view>
<view class="value card-no">**** **** **** ***9 009</view>
</view>
</view>
<button bind:tap="navToAdd" class="add-card-btn">添加银行卡</button>
</view>

View File

@ -0,0 +1,65 @@
.bank-card{
min-height: 100vh;
box-sizing: border-box;
background-color: #fff;
padding:60rpx 30rpx;
}
.title{
font-size: 40rpx;
display: flex;
align-items: flex-end;
}
.title .tag{
font-size: 24rpx;
background-color: rgba(255, 195, 0, 0.1);
padding:5rpx 8rpx;
color: #FFC300;
margin-left:22rpx;
}
.card{
background: linear-gradient(298deg, #FFC300 0%, #FFDE74 98%);
box-shadow: 0px 3px 6px 2px rgba(0, 0, 0, 0.1);
border-radius: 20rpx;
padding:30rpx 0 40rpx 30rpx;
margin-top:46rpx;
}
.card .head{
display: flex;
align-items: center;
padding-right:30rpx;
}
.card .head .icon-card{
width:44rpx;height:44rpx;
}
.card .head .name{
font-size: 33rpx;
flex: 1;
margin-left:18rpx;
}
.card .head .icon-delete{
width:32rpx;height:32rpx;
padding:4rpx;
}
.card .spliter{
margin:24rpx 0 0 0;
}
.card .info-item{
margin-top:40rpx;
}
.card .info-item .key{
color: #555555;
font-size: 24rpx;
}
.card .info-item .value{
font-size: 36rpx;
margin-top:24rpx;
}
.card .info-item .card-no{
font-weight: 500;
}
.add-card-btn{
margin-top:40rpx;
background-color: rgba(153, 153, 153, 0.15);
}

View File

@ -26,13 +26,13 @@
<view class="cell-ft"></view>
</navigator>
<navigator url="" class="cell" hover-class="cell-active">
<navigator url="/pages/user/rnAuth/index" class="cell" hover-class="cell-active">
<view class="cell-bd">
<view>实名认证</view>
</view>
<view class="cell-ft"></view>
</navigator>
<navigator url="" class="cell" hover-class="cell-active">
<navigator url="/pages/user/bank/index/index" class="cell" hover-class="cell-active">
<view class="cell-bd">
<view>银行卡管理</view>
</view>

View File

@ -0,0 +1,66 @@
// pages/user/rnAuth/index.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

View File

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "实名认证"
}

View File

@ -0,0 +1,34 @@
<view class="cells">
<view class="cell">
<view class="cell-hd">真实姓名</view>
<view class="cell-bd">
<input placeholder="请输入真实姓名"/>
</view>
</view>
<view class="cell">
<view class="cell-hd">身份证号</view>
<view class="cell-bd">
<input placeholder="请输入身份证号"/>
</view>
</view>
<view class="cell">
<view class="cell-hd">手机号码</view>
<view class="cell-bd">
<input placeholder="请输入手机号码"/>
</view>
<view class="cell-ft">
<button type="primary" size="mini">获取验证码</button>
</view>
</view>
<view class="cell">
<view class="cell-hd">验证码</view>
<view class="cell-bd">
<input placeholder="请输入验证码"/>
</view>
</view>
</view>
<view class="bottom-bar">
<button type="primary" class="save-btn">保存并使用</button>
</view>

View File