From 1efcf2d6756b4a4741a750ca748810772c7d7c45 Mon Sep 17 00:00:00 2001 From: chenghuan Date: Tue, 24 Mar 2026 14:25:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E8=A7=82=E7=9C=8B=E6=97=B6=E9=95=BF=EF=BC=9B=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E8=B5=84=E6=96=99=E5=A2=9E=E5=8A=A0=E8=BA=AB=E4=BB=BD=E9=A1=B9?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将应用版本号更新至1.0.50 - 修改edu-core依赖为git引用,版本更新至1.0.9 - 优化用户资料页面,增加用户信息展示和编辑功能 - 更新请求配置,改善加载动画逻辑 - 添加新权限请求以支持外部存储访问 --- config/requestConfig.js | 5 +- manifest.json | 12 +- package-lock.json | 10 +- package.json | 2 +- pages/curriculum/order/detail.vue | 2 +- pages/my/index.vue | 45 +- pages/my/persData.vue | 1126 +++-------------------------- pages/user/login.vue | 5 +- style/mixin.scss | 3 + 9 files changed, 142 insertions(+), 1068 deletions(-) create mode 100644 style/mixin.scss diff --git a/config/requestConfig.js b/config/requestConfig.js index c9ae610..ca0cf6a 100644 --- a/config/requestConfig.js +++ b/config/requestConfig.js @@ -82,11 +82,12 @@ $http.getAliToken = function (callback) { //请求开始拦截器 $http.requestStart = function (options) { // console.log("请求开始", options); - if (options.load && options.data.loadAnimate != 'none') { + const resData = options.data || {} + if (options.load && resData.loadAnimate != 'none') { //打开加载动画 store.commit("setLoadingShow", true); } - if (options.data.loadAnimate == 'none') { + if (resData.loadAnimate == 'none') { delete options.data.loadAnimate } // 图片、视频上传大小限制 diff --git a/manifest.json b/manifest.json index 18efcfb..15ca8bd 100644 --- a/manifest.json +++ b/manifest.json @@ -2,9 +2,9 @@ "name" : "心灵空间", "appid" : "__UNI__BBBDFD2", "description" : "心灵空间", - "versionName" : "1.0.49", + "versionName" : "1.0.50", "sassImplementationName" : "node-sass", - "versionCode" : 1049, + "versionCode" : 1050, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { @@ -61,12 +61,16 @@ "", "", "", - "" + "", + "", + "", + "" ], "minSdkVersion" : 23, "targetSdkVersion" : 35, "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], - "schemes" : "soulspace" + "schemes" : "soulspace", + "excludePermissions" : [] }, /* ios打包配置 */ "ios" : { diff --git a/package-lock.json b/package-lock.json index 71abbcb..8b89baa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "edu-core": "file:../edu-core", + "edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.9", "jquery": "^3.7.1", "tcplayer.js": "^5.1.0" }, @@ -18,7 +18,8 @@ } }, "../edu-core": { - "version": "1.0.6", + "version": "1.0.8", + "extraneous": true, "license": "ISC", "devDependencies": {} }, @@ -73,8 +74,9 @@ "integrity": "sha512-6QvTW9mrGeIegrFXdtQi9pk7O/nSK6lSdXW2eqUspN5LWD7UTji2Fqw5V2YLjBpHEoU9Xl/eUWNpDeZvoyOv2w==" }, "node_modules/edu-core": { - "resolved": "../edu-core", - "link": true + "version": "1.0.8", + "resolved": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#f815e7660e0645ca4393205b30986c4bc7aa4d9f", + "license": "ISC" }, "node_modules/es5-shim": { "version": "4.6.7", diff --git a/package.json b/package.json index 30779ea..216f897 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ }, "homepage": "https://github.com/dcloudio/hello-uniapp#readme", "dependencies": { - "edu-core": "file:../edu-core", + "edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.9", "jquery": "^3.7.1", "tcplayer.js": "^5.1.0" }, diff --git a/pages/curriculum/order/detail.vue b/pages/curriculum/order/detail.vue index cf160c9..db5bc7d 100644 --- a/pages/curriculum/order/detail.vue +++ b/pages/curriculum/order/detail.vue @@ -12,7 +12,7 @@ diff --git a/pages/my/index.vue b/pages/my/index.vue index 678bec9..4463ed8 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -22,13 +22,20 @@ - {{ userMes.nickname ? userMes.nickname : "未设置" }} + + {{ userMes.nickname ? userMes.nickname : "未设置" }} + + 手机号:({{ userMes.tel }}) {{item}} + + + +
@@ -318,6 +325,9 @@ export default { if (this.userInfo.id != undefined) { this.$http.post("common/user/getUserInfo").then((res) => { this.userMes = res.result; + this.userMes.profile = res.des || ''; + this.userMes.todayWatch = res.todayWatch || ''; + this.userMes.totalWatch = res.totalWatch || ''; }); } }, @@ -432,18 +442,25 @@ export default { view { .name { - font-weight: bold; width: 100%; - font-size: 30rpx; - line-height: 40rpx; + font-weight: bold; + font-size: 32rpx; color: #6990c7 !important; + line-height: 1.2; + } + + .user-profile{ + font-size: 28rpx; + font-weight: normal; + display: inline-block; } .phone { font-size: 26rpx; - line-height: 40rpx; - color: #6990c7; + color: #6990c7 !important; + margin: 6rpx 0; } + .per_user_img { display: inline-block; width: 40upx; @@ -451,6 +468,12 @@ export default { margin-left: 10rpx; vertical-align: super; } + + .watch-time { + margin-top: 10rpx; + display: inline-block; + margin-right: 10rpx; + } } } @@ -732,7 +755,7 @@ export default { } .modal_vip{ - margin-top: 50rpx; + margin-top: 25rpx; padding: 20rpx 20rpx 0; height: auto; display: flex; @@ -1044,9 +1067,9 @@ export default { width: 34rpx; height: 24rpx; } -.vip_infor{ +// .vip_infor{ -} +// } .vip_infor_item{ display: block; color: #fff; @@ -1058,9 +1081,9 @@ export default { .vip_infor_item text{ color: #fff; } -.vip_btn{ +// .vip_btn{ -} +// } .vip_btn button{ background: none; border: 2rpx solid #294a97; diff --git a/pages/my/persData.vue b/pages/my/persData.vue index 493c585..501676e 100644 --- a/pages/my/persData.vue +++ b/pages/my/persData.vue @@ -1,1049 +1,91 @@ \ No newline at end of file +// @import "@/style/mixin.scss"; + diff --git a/pages/user/login.vue b/pages/user/login.vue index 33040e2..d9bd5dd 100644 --- a/pages/user/login.vue +++ b/pages/user/login.vue @@ -828,8 +828,6 @@ export default { color: $themeColor; } - .emaPho {} - .emaPho>view { display: inline-block; padding: 10rpx 0; @@ -904,7 +902,8 @@ export default { border-radius: 50rpx; &.active { - @include theme("btn_bg") color: #fff; + @include theme("btn_bg"); + color: #fff; } } } diff --git a/style/mixin.scss b/style/mixin.scss new file mode 100644 index 0000000..9db2966 --- /dev/null +++ b/style/mixin.scss @@ -0,0 +1,3 @@ +@charset "utf-8"; +//主题色 +$themeColor: #7dc1f0;