diff --git a/api/creator.js b/api/creator.js index 694d8a3..ed336ad 100644 --- a/api/creator.js +++ b/api/creator.js @@ -8,7 +8,6 @@ export function getBannerList() { return request({ url: `${serviceTitle}/img/mini/tiktok/listBanner`, method: 'get' - }) } //获取小程序用户图片列表 @@ -18,10 +17,58 @@ export function getUserImgList() { method: 'get' }) } -//获取图片详情 +// 获取图片详情 export function detailsTiktokImg(data) { return request({ url: `${serviceTitle}/img/mini/tiktok/detailsTiktokImg/${data}`, method: 'get' }) } +// 查询是否点赞过 +export function judgeTiktokLike(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/judgeTiktokLike`, + method: 'post', + data + }) +} +// 查询是否收藏过 +export function judgeTiktokCollect(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/judgeTiktokCollect`, + method: 'post', + data + }) +} +// 点赞 +export function tiktokLike(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/tiktokLike`, + method: 'post', + data + }) +} +// 取消点赞 +export function tiktokUnLike(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/tiktokUnLike`, + method: 'post', + data + }) +} +// 收藏 +export function tiktokCollect(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/tiktokCollect`, + method: 'post', + data + }) +} +// 取消收藏 +export function tiktokUnCollect(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/tiktokUnCollect`, + method: 'post', + data + }) +} \ No newline at end of file diff --git a/api/index.js b/api/index.js index 96614e5..2409b06 100644 --- a/api/index.js +++ b/api/index.js @@ -27,3 +27,12 @@ export function tiktokUserDetails(data) { }) } +// 用户授权登录 +export function loginTiktok(data) { + return request({ + url: `${serviceTitle}/img/mini/tiktok/loginTiktok`, + method: 'post', + data + }) +} + diff --git a/pages.json b/pages.json index 5c3cb7c..e661d62 100644 --- a/pages.json +++ b/pages.json @@ -79,25 +79,25 @@ //底部跳转tab "tabBar": { "color": "#7A7E83", - "selectedColor": "#007AFF", + "selectedColor": "#1296DB", "borderStyle": "black", "backgroundColor": "#F8F8F8", "list": [{ "pagePath": "pages/index/index", - "iconPath": "static/index-default.svg", - "selectedIconPath": "static/index-select.svg", + "iconPath": "static/index-default.png", + "selectedIconPath": "static/index-select.png", "text": "首页" }, { "pagePath": "pages/creator/creator", - "iconPath": "static/theme-default.svg", - "selectedIconPath": "static/theme-select.svg", + "iconPath": "static/theme-default.png", + "selectedIconPath": "static/theme-select.png", "text": "艺术家" }, { "pagePath": "pages/userInfo/userInfo", - "iconPath": "static/mine-default.svg", - "selectedIconPath": "static/mine-select.svg", + "iconPath": "static/mine-default.png", + "selectedIconPath": "static/mine-select.png", "text": "我的" } ] diff --git a/pages/index/index.vue b/pages/index/index.vue index 161c2fe..0428585 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -32,7 +32,9 @@