From c75946676a4d99d77048f43da3bae97196f244e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=96=B9=E6=88=90?= Date: Tue, 6 Jan 2026 02:02:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=8A=96=E9=9F=B3?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E9=80=BB=E8=BE=91=E4=B8=BA=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=8A=96=E9=9F=B3ID=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=A7=AF=E5=88=86=E6=98=BE=E7=A4=BA=E6=96=B9=E5=BC=8F?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=88=87=E6=8D=A2=E5=BC=80=E5=8F=91=E7=8E=AF?= =?UTF-8?q?=E5=A2=83API=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/appUser.js | 8 ++++---- pages-user/points/index.vue | 5 ++--- pages/mine/index.vue | 20 ++++++++++---------- utils/request.js | 2 +- 4 files changed, 17 insertions(+), 18 deletions(-) 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 @@