功能:完善 YumiNail 全栈修复与打包

This commit is contained in:
xiaowang
2026-05-15 21:10:41 +08:00
parent 3d0a859980
commit 1f05e0ab44
42 changed files with 768 additions and 316 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+3 -3
View File
@@ -124,14 +124,14 @@ Page({
const systemInfo = wx.getSystemInfoSync()
if (systemInfo && systemInfo.platform === 'devtools') {
supported = false
disabledReason = '开发者工具暂不支持一键登录,请用真机或其他方式登录'
disabledReason = '当前环境无法使用微信手机号登录,请使用账号密码或验证码登录'
}
} catch (error) {
supported = false
}
if (!supported && !disabledReason) {
disabledReason = '当前环境暂不支持一键登录,请使用其他方式登录'
disabledReason = '当前环境无法使用微信手机号登录,请使用账号密码或验证码登录'
}
this.setData({
@@ -752,7 +752,7 @@ Page({
handleWechatMiniUnavailableTap() {
wx.showToast({
title: this.data.wechatMiniDisabledReason || '当前环境暂不支持一键登录',
title: this.data.wechatMiniDisabledReason || '请使用账号密码或验证码登录',
icon: 'none'
})
},
-38
View File
@@ -17,36 +17,6 @@ const {
const phoneRegex = /^1[3-9]\d{9}$/
const passwordRegex = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d@$!%*#?&]{8,}$/
const SETTINGS_DRAFT_KEY = 'user-settings'
const placeholderEntries = [
{
key: 'notifications',
title: '消息通知'
},
{
key: 'message-push',
title: '消息推送'
},
{
key: 'theme',
title: '主题设置'
},
{
key: 'privacy',
title: '隐私政策'
},
{
key: 'about',
title: '关于我们'
},
{
key: 'help',
title: '帮助中心'
},
{
key: 'clear-cache',
title: '缓存清理'
}
]
Page({
data: Object.assign(createKeyboardSafeData({
@@ -64,7 +34,6 @@ Page({
activeSecurityPanel: '',
userInfo: null,
defaultAvatar: DEFAULT_AVATAR,
placeholderEntries,
form: {
nickname: '',
signature: ''
@@ -734,13 +703,6 @@ Page({
}
},
handleComingSoon() {
wx.showToast({
title: '该功能暂未开放',
icon: 'none'
})
},
async handleDeactivateAccount() {
if (this.data.deactivating) {
return
-11
View File
@@ -277,17 +277,6 @@
</view>
</view>
<view class="page-card settings-card more-card">
<view class="section-title">更多功能</view>
<view wx:for="{{placeholderEntries}}" wx:key="key" class="setting-row" bindtap="handleComingSoon">
<view class="setting-main">
<view class="setting-name">{{item.title}}</view>
</view>
<view class="placeholder-tag">暂未开放</view>
</view>
</view>
<view class="logout-btn" bindtap="handleLogout">退出登录</view>
</block>
</view>
+1 -12
View File
@@ -90,8 +90,7 @@
margin-top: 20rpx;
}
.security-card,
.more-card {
.security-card {
margin-top: 20rpx;
}
@@ -195,16 +194,6 @@
flex: 1;
}
.placeholder-tag {
flex-shrink: 0;
padding: 12rpx 18rpx;
border-radius: 999rpx;
background: #fdf0f4;
color: #c6597d;
font-size: 22rpx;
font-weight: 700;
}
.danger-row {
margin-top: 8rpx;
}
+2 -2
View File
@@ -121,8 +121,8 @@ module.exports = {
signedUrl: 50 * 60 * 1000
},
DEFAULT_AVATAR: 'https://api.dicebear.com/7.x/avataaars/svg?seed=default',
DEFAULT_PRODUCT_IMAGE: 'https://via.placeholder.com/200x200?text=Product',
DEFAULT_SHOP_IMAGE: 'https://via.placeholder.com/200x200?text=Shop',
DEFAULT_PRODUCT_IMAGE: '/assets/images/default-product.png',
DEFAULT_SHOP_IMAGE: '/assets/images/default-shop.png',
NO_COUPON_KEY: 'NONE',
TAB_PAGES: [
'/pages/home/index',
+4 -2
View File
@@ -131,10 +131,12 @@ function buildSignatureHeaders(options) {
return headers
}
const formData = options.formData
const hasFormData = formData && Object.keys(formData).length > 0
const contentType = String((options.header && options.header['Content-Type']) || options.contentType || 'application/json').toLowerCase()
const payload = contentType.includes('application/json')
const payload = contentType.includes('application/json') && !hasFormData
? buildJsonPayload(options.data)
: buildCanonicalParams(options.formData || options.data || options.params)
: buildCanonicalParams(formData || options.data || options.params)
const timestamp = String(Date.now())
const nonce = randomNonce()
const canonical = [