diff --git a/api/paint.js b/api/paint.js index 4050e63..582883c 100644 --- a/api/paint.js +++ b/api/paint.js @@ -46,5 +46,13 @@ export function checkUserCanAiPaint(data) { data }) } +//使用兑换cdk +export function useCdk(data) { + return request({ + url: `${serviceTitle}${prefix}/useCdk`, + method: 'post', + data + }) +} diff --git a/pages/userInfo/userInfo.vue b/pages/userInfo/userInfo.vue index 1e1418f..a5c26c1 100644 --- a/pages/userInfo/userInfo.vue +++ b/pages/userInfo/userInfo.vue @@ -50,6 +50,14 @@ + + @@ -57,13 +65,15 @@