'登录优化'

This commit is contained in:
unknown 2025-10-25 10:55:02 +08:00
parent c64f5fb799
commit 32311dd201
3 changed files with 56 additions and 44 deletions

View File

@ -397,14 +397,14 @@
uni.hideTabBar({
fail: () => {},
});
this.getdata()
this.config()
// this.getdata()
// this.config()
},
onHide() {
},
onLoad() {
this.getdata()
this.getquestion()
// this.getdata()
// this.getquestion()
this.recycleOrderList()
this.qiangdanlist()
},

View File

@ -45,8 +45,8 @@
export default {
data() {
return {
mobile:'',
password:'',
mobile:'17712855555',
password:'123456',
login_type:0,
logoImage: '/static/img/t2.png',
open_id: '',
@ -57,7 +57,7 @@ export default {
computed: {
},
onLoad() {
this.config()
},
methods: {
loginEn(){
@ -71,6 +71,11 @@ export default {
}, res => {
if (res.code == "1") {
console.log(res,'登录成功')
uni.setStorageSync('userToken', res.data.token);
uni.setStorageSync('userInfo', res.data.userInfo);
uni.switchTab({
url:'/pages/index/index'
})
}else{
}

View File

@ -3,18 +3,41 @@
<view class="moduleWrap">
<view class="moduleBox">
<view class="monthBox">
<view class="text1">2</view>
<text class="text2"></text>
<u-icon class="text3" name="arrow-down-fill" color="#333333" size="12" style="margin-right: 19rpx;"></u-icon>
<view class="text1">身份证信息</view>
<text class="text2">上传本人身份证照片保持图片清晰完整</text>
</view>
<view class="recordBox">
<view class="leftBox flex-center">
<text>充值</text>
<view class="priceBox">+1839.00</view>
<view class="flex-between" style="margin-top: 20rpx;">
<view>
<u-upload
:fileList="fileList1"
@afterRead="afterRead"
@delete="deletePic"
name="1"
multiple
:maxCount="10"
>
<image
:src="path+'/assets/img/icon/IDbgz.png'"
mode="widthFix"
style="width: 300rpx;height: 190rpx;"
></image>
</u-upload>
</view>
<view class="leftBox flex-center" style="margin-left: 113rpx;">
<text>支出</text>
<view class="priceBox">-1839.00</view>
<view>
<u-upload
:fileList="fileList1"
@afterRead="afterRead"
@delete="deletePic"
name="1"
multiple
:maxCount="10"
>
<image
:src="path+'/assets/img/icon/IDbgz.png'"
mode="widthFix"
style="width: 300rpx;height: 190rpx;"
></image>
</u-upload>
</view>
</view>
</view>
@ -68,41 +91,24 @@
}
.monthBox{
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: flex-end;
flex-direction: column;
// justify-content: flex-start;
// align-items: center;
.text1{
font-weight: 500;
font-size: 60rpx;
font-weight: bold;
font-size: 32rpx;
color: #333333;
}
.text2{
font-weight: 500;
font-size: 22rpx;
color: #333333;
padding-bottom: 10rpx;
padding: 0 6rpx 13rpx;
}
.text3{
padding-bottom: 13rpx;
}
}
.recordBox{
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
font-weight: 500;
font-size: 26rpx;
color: #333333;
margin-top: 45rpx;
.priceBox{
margin-left: 13rpx;
font-weight: 400;
font-size: 24rpx;
color: #999999;
margin-top: 10rpx;
}
}
.moduleBox{
background: #fff;
padding: 32rpx 36rpx 45rpx;
padding: 32rpx 30rpx 40rpx;
border-bottom: 1rpx solid #DEDEDE;
.text4{
font-weight: 500;
@ -148,6 +154,7 @@
margin-bottom: 20rpx;
border-radius: 30rpx;
overflow: hidden;
}