diff --git a/api/appUser.js b/api/appUser.js index 890e268..710cbbc 100644 --- a/api/appUser.js +++ b/api/appUser.js @@ -373,9 +373,9 @@ export function purchaseGamePass(package_id, count = 1) { } /** - * 绑定抖音订单获取抖音用户ID - * @param {string} shop_order_id - 抖音订单号 + * 绑定抖音ID (Buyer ID) + * @param {string} douyin_id - 抖音号 */ -export function bindDouyinOrder(order_id) { - return authRequest({ url: '/api/app/users/douyin/bind-order', method: 'POST', data: { order_id } }) +export function bindDouyinID(douyin_id) { + return authRequest({ url: '/api/app/users/douyin/bind', method: 'POST', data: { douyin_id } }) } diff --git a/pages-user/points/index.vue b/pages-user/points/index.vue index fd80cbb..5bcd598 100644 --- a/pages-user/points/index.vue +++ b/pages-user/points/index.vue @@ -67,9 +67,8 @@ const pageSize = ref(20) const hasMore = ref(true) function formatPoints(v) { const n = Number(v) || 0 - if (n === 0) return '0.0' - const f = n / 100 - return f.toFixed(1) + if (n === 0) return '0' + return n.toString() } function formatTime(t) { diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 24e0714..7cafb79 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -185,7 +185,7 @@ - {{ douyinUserId ? '已绑定' : '绑定订单' }} + {{ douyinUserId ? '已绑定' : '绑定抖音' }} @@ -474,7 +474,7 @@