Compare commits

..

4 Commits

Author SHA1 Message Date
kk 558e1380db 正在获取用户信息
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 47s
2026-07-20 17:00:41 +08:00
kk 1b9602f66b 总数量显示订单总数
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 46s
2026-07-20 11:50:41 +08:00
kk a071f760d3 授权回调code支持auth_code
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 48s
2026-07-20 10:30:59 +08:00
kk 445d428d8b 授权获取用户信息scope是auth_user
Uni-app H5 Deploy (Prod + Staging) / deploy (release) Successful in 1m12s
2026-07-17 17:45:24 +08:00
4 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -42,8 +42,8 @@
}
}
// 3. 检查 URL 中是否有授权回调的 code
const code = urlParams.get('code');
// 3. 检查 URL 中是否有授权回调的 code(支付宝用 auth_code,微信用 code
const code = urlParams.get('code') || urlParams.get('auth_code');
if (code) {
// 有 code → 进入授权 Loading 页处理
+1
View File
@@ -67,6 +67,7 @@ export default {
if (this.action === 'userinfo') {
// 获取用户信息流程
this.statusText = '正在获取用户信息...';
if (code) {
this.handleUserInfoCallback(code);
} else {
+2 -2
View File
@@ -350,9 +350,9 @@ export default {
stateObj.device_id = this.deviceId;
}
// 用户信息授权:微信用 snsapi_userinfo,支付宝用 auth_userinfo
// 用户信息授权:微信用 snsapi_userinfo,支付宝用 auth_user
const platform = uni.getStorageSync('platform') || 'wechat';
const scopes = platform === 'alipay' ? 'auth_userinfo' : 'snsapi_userinfo';
const scopes = platform === 'alipay' ? 'auth_user' : 'snsapi_userinfo';
const res = await gatewayGet('/api/v1/user/auth/url', {
app_no: appNo,
+1 -1
View File
@@ -30,7 +30,7 @@
<!-- 数量统计和筛选 -->
<view class="filter-bar">
<text class="total-count">总数量: {{ filteredOrders.length }}</text>
<text class="total-count">总数量: {{ total }}</text>
<view class="search-btn" @click="showFilterSidebar = true">
<text class="search-icon">🔍</text>
</view>