lion 4 weeks ago
parent 737518f9c6
commit 1b8397f475

@ -3,7 +3,7 @@
<!-- 当前头像展示 -->
<view class="avatar-section">
<view class="current-avatar" @click="chooseImage">
<image :src="croppedImage?croppedImage:base.imgHost('login-logo.png')" />
<image :src="croppedImage?croppedImage:base.imgHost('login-user.png')" />
<!-- <view v-else class="avatar-placeholder">
<text class="iconfont icon-user"></text>
</view> -->

@ -14,7 +14,7 @@
uni.showToast({
title: '请保存图片识别二维码',
icon: 'none',
duration: 4000
duration: 5000
})
},
methods:{

@ -5,7 +5,7 @@
<!-- 头像 -->
<view style="display:flex;justify-content:center;align-items:center;padding: 30rpx 0;">
<view @click="changeAvatar" style="width:140rpx;height:140rpx;border-radius:140rpx;overflow:hidden;">
<image style="width:100%;height:100%;" :src="userAvatar?userAvatar:base.imgHost('login-logo.png')"></image>
<image style="width:100%;height:100%;" :src="userAvatar?userAvatar:base.imgHost('login-add.png')"></image>
</view>
</view>
<u-form :model="form" :label-width="140" ref="uForm" :label-align="'left'" :error-type="['message']">

@ -384,16 +384,15 @@
await this.$u.api.saveUser({
open_course_types: open_course_types
})
//
await this.getUserInfo()
uni.showToast({
title: '设置保存成功',
icon: 'success'
})
this.showSetting = false
//
await this.getUserInfo()
await this.getMyCourseTxl()
} catch (error) {
console.error('保存设置失败:', error)
uni.showToast({

@ -10,7 +10,7 @@
<image mode="widthFix" :src="base.imgHost('login-logo.png')"></image>
<view class="userinfo">
<view class="userinfo-img" @click="changeAvatar">
<image :src="userAvatar?userAvatar:base.imgHost('login-logo.png')"></image>
<image :src="userAvatar?userAvatar:base.imgHost('login-add.png')"></image>
</view>
<view>
<view class="usersigns">
@ -128,7 +128,7 @@
</view>
<view class="modal-xyk-item modal-xyk-name">
<view class="modal-xyk-name-img">
<image :src="userAvatar?userAvatar:base.imgHost('login-logo.png')"></image>
<image :src="userAvatar?userAvatar:base.imgHost('login-user.png')"></image>
</view>
<view class="modal-xyk-name-course">
<text>姓名</text>

Loading…
Cancel
Save