consumerm模块完成度90%,完善消费者和商家端数据库表,商品、聊天、订单数据对接好了supabase,和商家端对接了聊天功能,安卓端编译通过了css样式,剩余几个页面在处理函数规范问题

This commit is contained in:
cyh666666
2026-02-24 17:17:49 +08:00
parent e2f1dfb097
commit e606c597ca
174 changed files with 37917 additions and 4444 deletions

View File

@@ -69,6 +69,7 @@
<view class="protocol">
<checkbox-group @change="handleProtocolChange">
<checkbox
class="protocol-checkbox"
:checked="protocol"
:class="{ 'trembling': inAnimation }"
@animationend="inAnimation = false"
@@ -241,7 +242,8 @@
user = result
console.log('✅ result 本身就是 user 对象:', id)
} else {
console.warn('⚠️ 未找到 user 信息,检查所有字段:', Object.keys(result.toMap() || {}))
// console.warn('⚠️ 未找到 user 信息,检查所有字段:', Object.keys(result.toMap() || {}))
console.warn('⚠️ 未找到 user 信息,检查所有字段')
}
}
@@ -263,7 +265,7 @@
if (code === 500 && errorMsg.includes('confirmation email')) {
throw new Error('注册失败:邮件服务配置错误,请联系管理员或修改 Supabase 配置(设置 ENABLE_EMAIL_AUTOCONFIRM=true')
} else {
throw new Error(errorMsg || '注册失败,请重试')
throw new Error(errorMsg != '' ? errorMsg : '注册失败,请重试')
}
}
@@ -355,12 +357,12 @@
</script>
<style>
page {
/* page {
background: #F5F5F5;
}
} */
.register-wrapper {
min-height: 100vh;
flex: 1;
display: flex;
flex-direction: column;
background: #F5F5F5;
@@ -389,7 +391,7 @@ page {
.title {
font-size: 40rpx;
font-weight: 600;
font-weight: 700;
color: #333333;
text-align: center;
margin-bottom: 50rpx;
@@ -466,7 +468,7 @@ page {
border-radius: 4rpx;
color: #FFFFFF;
font-size: 32rpx;
font-weight: 500;
font-weight: 700;
box-shadow: 0 4rpx 12rpx rgba(255, 77, 79, 0.3);
}
@@ -501,7 +503,7 @@ page {
justify-content: center;
}
.protocol checkbox {
.protocol-checkbox {
margin-right: 10rpx;
}
@@ -514,6 +516,7 @@ page {
color: var(--view-theme, #FF4D4F);
}
/*
.trembling {
animation: shake 0.6s;
}
@@ -523,6 +526,7 @@ page {
10%, 30%, 50%, 70%, 90% { transform: translateX(-10rpx); }
20%, 40%, 60%, 80% { transform: translateX(10rpx); }
}
*/
/* 底部版权 */
.footer {