'登录优化'

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({ uni.hideTabBar({
fail: () => {}, fail: () => {},
}); });
this.getdata() // this.getdata()
this.config() // this.config()
}, },
onHide() { onHide() {
}, },
onLoad() { onLoad() {
this.getdata() // this.getdata()
this.getquestion() // this.getquestion()
this.recycleOrderList() this.recycleOrderList()
this.qiangdanlist() this.qiangdanlist()
}, },

View File

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

View File

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