Compare commits
4 Commits
v1.0.13-beta
...
v1.0.40
| Author | SHA1 | Date | |
|---|---|---|---|
| 558e1380db | |||
| 1b9602f66b | |||
| a071f760d3 | |||
| 445d428d8b |
+2
-2
@@ -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 页处理
|
||||
|
||||
@@ -67,6 +67,7 @@ export default {
|
||||
|
||||
if (this.action === 'userinfo') {
|
||||
// 获取用户信息流程
|
||||
this.statusText = '正在获取用户信息...';
|
||||
if (code) {
|
||||
this.handleUserInfoCallback(code);
|
||||
} else {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user