修改并优化了一些功能及bug
This commit is contained in:
@@ -3,6 +3,14 @@ const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const request_request = require("../../request/request.js");
|
||||
const request_three_one_api_info = require("../../request/three_one_api/info.js");
|
||||
if (!Array) {
|
||||
const _easycom_u_navbar2 = common_vendor.resolveComponent("u-navbar");
|
||||
_easycom_u_navbar2();
|
||||
}
|
||||
const _easycom_u_navbar = () => "../../uni_modules/uview-plus/components/u-navbar/u-navbar.js";
|
||||
if (!Math) {
|
||||
_easycom_u_navbar();
|
||||
}
|
||||
const defaultAvatar = "https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg";
|
||||
const _sfc_main = {
|
||||
__name: "my",
|
||||
@@ -26,7 +34,7 @@ const _sfc_main = {
|
||||
userInfo.phonenumber = res.data.phonenumber || "";
|
||||
}
|
||||
} catch (e) {
|
||||
common_vendor.index.__f__("error", "at pages/personalcenter/my.vue:124", "获取用户信息失败:", e);
|
||||
common_vendor.index.__f__("error", "at pages/personalcenter/my.vue:135", "获取用户信息失败:", e);
|
||||
}
|
||||
};
|
||||
common_vendor.onShow(() => {
|
||||
@@ -48,29 +56,40 @@ const _sfc_main = {
|
||||
content: "确定要退出登录吗?",
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
common_vendor.index.__f__("log", "at pages/personalcenter/my.vue:170", "用户点击确定");
|
||||
common_vendor.index.__f__("log", "at pages/personalcenter/my.vue:181", "用户点击确定");
|
||||
common_vendor.index.clearStorageSync();
|
||||
common_vendor.index.reLaunch({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
} else if (res.cancel) {
|
||||
common_vendor.index.__f__("log", "at pages/personalcenter/my.vue:176", "用户点击取消");
|
||||
common_vendor.index.__f__("log", "at pages/personalcenter/my.vue:187", "用户点击取消");
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: getImageUrl(userInfo.avatar) || defaultAvatar,
|
||||
b: common_vendor.t(userInfo.nickName || "未设置昵称"),
|
||||
c: common_vendor.t(userInfo.phonenumber || "未绑定手机"),
|
||||
d: common_vendor.o(($event) => editinfo()),
|
||||
a: common_vendor.p({
|
||||
title: "我的",
|
||||
placeholder: false,
|
||||
fixed: false,
|
||||
safeAreaInsetTop: true,
|
||||
bgColor: "transparent",
|
||||
titleColor: "#fff",
|
||||
border: false,
|
||||
leftIcon: ""
|
||||
}),
|
||||
b: getImageUrl(userInfo.avatar) || defaultAvatar,
|
||||
c: common_vendor.t(userInfo.nickName || "未设置昵称"),
|
||||
d: common_vendor.t(userInfo.phonenumber || "未绑定手机"),
|
||||
e: common_assets._imports_0$2,
|
||||
f: common_vendor.o(($event) => editinfo()),
|
||||
g: common_assets._imports_1$1,
|
||||
h: common_vendor.o(($event) => Account()),
|
||||
i: common_vendor.o(($event) => handleLogout()),
|
||||
j: common_vendor.gei(_ctx, "")
|
||||
h: common_vendor.o(($event) => editinfo()),
|
||||
i: common_assets._imports_2,
|
||||
j: common_vendor.o(($event) => Account()),
|
||||
k: common_vendor.o(($event) => handleLogout()),
|
||||
l: common_vendor.gei(_ctx, "")
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "我的",
|
||||
"usingComponents": {}
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"u-navbar": "../../uni_modules/uview-plus/components/u-navbar/u-navbar"
|
||||
}
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
<view class="{{['page-wrapper', 'data-v-02345808', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{j}}"><view class="header-bg data-v-02345808"><view class="blur-circle circle-1 data-v-02345808"></view><view class="blur-circle circle-2 data-v-02345808"></view><view class="blur-circle circle-3 data-v-02345808"></view><view class="user-info-section data-v-02345808"><view class="user-avatar data-v-02345808"><image class="avatar-img data-v-02345808" src="{{a}}" mode="aspectFill"></image></view><view class="user-details data-v-02345808"><view class="user-name data-v-02345808">{{b}}</view><view class="user-phone data-v-02345808">{{c}}</view></view><button class="edit-btn data-v-02345808" bindtap="{{d}}">编辑资料</button></view></view><view class="content-area data-v-02345808"><view class="menu-card data-v-02345808"><view class="menu-item data-v-02345808" bindtap="{{f}}"><view class="menu-left data-v-02345808"><image src="{{e}}" class="menu-icon data-v-02345808"></image><text class="menu-text data-v-02345808">编辑个人信息</text></view><text class="cuIcon-right menu-arrow data-v-02345808"></text></view><view class="menu-item data-v-02345808" bindtap="{{h}}"><view class="menu-left data-v-02345808"><image src="{{g}}" class="menu-icon data-v-02345808"></image><text class="menu-text data-v-02345808">修改登录密码</text></view><text class="cuIcon-right menu-arrow data-v-02345808"></text></view></view><button class="logout-btn data-v-02345808" bindtap="{{i}}">退出登录</button></view></view>
|
||||
<view class="{{['page-wrapper', 'data-v-02345808', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{l}}"><view class="header-bg data-v-02345808"><u-navbar wx:if="{{a}}" class="data-v-02345808" virtualHostClass="data-v-02345808" u-i="02345808-0" bind:__l="__l" u-p="{{a}}"></u-navbar><view class="user-info-section data-v-02345808"><view class="user-avatar data-v-02345808"><image class="avatar-img data-v-02345808" src="{{b}}" mode="aspectFill"></image></view><view class="user-details data-v-02345808"><view class="user-name data-v-02345808">{{c}}</view><view class="user-phone data-v-02345808">{{d}}</view></view><image class="edit-icon data-v-02345808" src="{{e}}" mode="aspectFit" bindtap="{{f}}"></image></view></view><view class="content-area data-v-02345808"><view class="menu-card data-v-02345808"><view class="menu-item data-v-02345808" bindtap="{{h}}"><view class="menu-left data-v-02345808"><image src="{{g}}" class="menu-icon data-v-02345808"></image><text class="menu-text data-v-02345808">编辑个人信息</text></view><text class="cuIcon-right menu-arrow data-v-02345808"></text></view><view class="menu-item data-v-02345808" bindtap="{{j}}"><view class="menu-left data-v-02345808"><image src="{{i}}" class="menu-icon data-v-02345808"></image><text class="menu-text data-v-02345808">修改登录密码</text></view><text class="cuIcon-right menu-arrow data-v-02345808"></text></view></view><button class="logout-btn data-v-02345808" bindtap="{{k}}">退出登录</button></view></view>
|
||||
@@ -26,13 +26,13 @@
|
||||
/* 文章场景相关 */
|
||||
.page-wrapper.data-v-02345808 {
|
||||
min-height: 100vh;
|
||||
background: #EBF2FC;
|
||||
background: #fff;
|
||||
}
|
||||
.header-bg.data-v-02345808 {
|
||||
position: relative;
|
||||
height: 400rpx;
|
||||
background: linear-gradient(180deg, #3B7FED 0%, #007AFF 50%, #8BB8F8 100%);
|
||||
padding-top: 60rpx;
|
||||
height: 480rpx;
|
||||
background: #2667E9;
|
||||
padding-top: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
.header-bg .blur-circle.data-v-02345808 {
|
||||
@@ -103,29 +103,26 @@
|
||||
font-size: 26rpx;
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
.user-info-section .edit-btn.data-v-02345808 {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
border: 2rpx solid rgba(255, 255, 255, 0.5);
|
||||
border-radius: 32rpx;
|
||||
font-size: 26rpx;
|
||||
color: #fff;
|
||||
-webkit-backdrop-filter: blur(10rpx);
|
||||
backdrop-filter: blur(10rpx);
|
||||
}
|
||||
.user-info-section .edit-btn.data-v-02345808::after {
|
||||
border: none;
|
||||
.user-info-section .edit-icon.data-v-02345808 {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.content-area.data-v-02345808 {
|
||||
position: relative;
|
||||
margin-top: -60rpx;
|
||||
padding: 0 30rpx 50rpx;
|
||||
margin-top: -40rpx;
|
||||
padding: 40rpx 30rpx 50rpx;
|
||||
z-index: 10;
|
||||
background: #fff;
|
||||
border-top-left-radius: 40rpx;
|
||||
border-top-right-radius: 40rpx;
|
||||
min-height: calc(100vh - 360rpx);
|
||||
}
|
||||
.menu-card.data-v-02345808 {
|
||||
background: #fff;
|
||||
border-radius: 24rpx;
|
||||
padding: 10rpx 0;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0, 0, 0, 0.06);
|
||||
box-shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.menu-item.data-v-02345808 {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user