diff --git a/api/appUser.js b/api/appUser.js index f7332f0..890e268 100644 --- a/api/appUser.js +++ b/api/appUser.js @@ -372,3 +372,10 @@ export function purchaseGamePass(package_id, count = 1) { return authRequest({ url: '/api/app/game-passes/purchase', method: 'POST', data: { package_id, count } }) } +/** + * 绑定抖音订单获取抖音用户ID + * @param {string} shop_order_id - 抖音订单号 + */ +export function bindDouyinOrder(order_id) { + return authRequest({ url: '/api/app/users/douyin/bind-order', method: 'POST', data: { order_id } }) +} diff --git a/pages/mine/index.vue b/pages/mine/index.vue index ce2bba8..a2a9d47 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -175,12 +175,18 @@ 收货地址 - - - - - 帮助中心 - + + + + + 帮助中心 + + + + + + {{ douyinUserId ? '已绑定' : '绑定订单' }} + @@ -468,7 +474,7 @@