diff --git a/subpages/mine/editUser/editUser.js b/subpages/mine/editUser/editUser.js
index 1979580..9df056f 100644
--- a/subpages/mine/editUser/editUser.js
+++ b/subpages/mine/editUser/editUser.js
@@ -59,12 +59,45 @@ Page({
volunOrgList: [],
showVolunOrg: false,
traceId: "",
+ remainingDays:10
+ },
+ // 上传头像
+
+ chooseAvatar() {
+ wx.chooseMedia({
+ count: 1, // 最多选择 1 张图片
+ mediaType: ['image'], // 只选择图片
+ success: (res) => {
+ if (res.tempFiles.length > 0) {
+ const tempFilePath = res.tempFiles[0].tempFilePath;
+ this.setData({
+ avatarUrl: tempFilePath
+ });
+ // 如果你需要将图片上传到服务器,可以在这里添加上传逻辑
+ // wx.uploadFile({
+ // url: 'your_upload_url',
+ // filePath: tempFilePath,
+ // name: 'avatar',
+ // success: (uploadRes) => {
+ // console.log('上传成功', uploadRes);
+ // },
+ // fail: (err) => {
+ // console.error('上传失败', err);
+ // }
+ // });
+ }
+ },
+ fail: (err) => {
+ console.error('选择图片失败', err);
+ }
+ });
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
+
// this.data.qqMapWX = new QQMapWX({
// key: "CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ",
// });
diff --git a/subpages/mine/editUser/editUser.wxml b/subpages/mine/editUser/editUser.wxml
index 46ad6c1..d72c1e9 100644
--- a/subpages/mine/editUser/editUser.wxml
+++ b/subpages/mine/editUser/editUser.wxml
@@ -1,8 +1,7 @@
-
+
-
-
+
@@ -14,26 +13,25 @@
-
-
-
-
-
-
-
- 重新获取
-
+
+
+
-
-
-
+
+
+
+
+
+
+
-
+
-
- 提交
+
+ 确定
diff --git a/subpages/mine/editUser/editUser.wxss b/subpages/mine/editUser/editUser.wxss
index 4c64def..4fe0645 100644
--- a/subpages/mine/editUser/editUser.wxss
+++ b/subpages/mine/editUser/editUser.wxss
@@ -64,7 +64,8 @@ page {
}
.bot-btn .van-button--primary {
- width: calc(100% - 40rpx);
+ width: calc(100% - 10rpx);
+ height: 80rpx;
}
.van-field__label {
@@ -79,7 +80,7 @@ page {
padding: 20rpx 0 !important;
}
.cus-avatar{
- padding: 0 20rpx !important;
+ padding: 20rpx 40rpx !important;
}
.van-cell--required:before {
left: var(--padding-xs, -7px) !important;
@@ -92,4 +93,10 @@ page {
.van-cell__value {
font-size: 30rpx;
}
-
\ No newline at end of file
+ .day{
+ margin: 20rpx;
+ }
+ .cus-day{
+ padding: 20rpx !important;
+ border-radius: 8rpx;
+ }
\ No newline at end of file