diff --git a/App.vue b/App.vue index 0b37504d..fe998356 100644 --- a/App.vue +++ b/App.vue @@ -225,9 +225,11 @@ export default { }, }; - - diff --git a/androidPrivacy.json b/androidPrivacy.json new file mode 100755 index 00000000..0d726ca9 --- /dev/null +++ b/androidPrivacy.json @@ -0,0 +1,3 @@ +{ + "prompt" : "template" +} diff --git a/api/vlog.js b/api/vlog.js index 020d9390..9fafbee3 100644 --- a/api/vlog.js +++ b/api/vlog.js @@ -7,7 +7,38 @@ import { http, Method } from "@/utils/request.js"; import api from "@/config/api.js"; +/** + * 短视频关注列表 + */ +export function vlogDetail(vlogId,userId) { + let data = { + vlogId, + userId + } + return http.request({ + url: api.vlog + "/vlog/detail", + method: Method.GET, + needToken: true, + params: data, + }); +} +/** + * 短视频关注列表 + */ +export function vlogFollowList(page, pageSize,myId) { + let data = { + page, + pageSize, + myId + } + return http.request({ + url: api.vlog + "/vlog/followList", + method: Method.GET, + needToken: true, + params: data, + }); +} /** * 短视频列表-true @@ -52,7 +83,7 @@ export function vlogUnLike({userId,vlogId,vlogerId}) { } /** - * 短视频评论 + * 短视频评论数量统计 */ export function vlogComment(vlogId) { return http.request({ @@ -63,10 +94,14 @@ export function vlogComment(vlogId) { }); } + + + + /** * 短视频关注博主 */ -export function vlogFollow({myId,vlogerId}) { +export function vlogFollow(myId,vlogerId) { return http.request({ url: api.vlog + "/fans/follow", method: Method.POST, @@ -87,85 +122,219 @@ export function vlogTotalLikedCounts(vlogId) { }); } - /** - * 通过cityCode获取地区代码 + * 查询用户信息 */ -export function getAddressCode(cityCode, townName) { +export function vlogUserInfo(userId) { return http.request({ - url: api.common + "/common/region/region", + url: api.vlog + "/userInfo/query", method: Method.GET, needToken: true, - params: { cityCode, townName }, + params: { userId }, }); } /** - * 添加收货地址 - * @param params 地址参数 - * @returns {AxiosPromise} + * 查询我的公开视频 */ -export function addAddress(data) { +export function vlogMyPublicList(page,pageSize,userId) { return http.request({ - url: "/member/address", + url: api.vlog + "/vlog/myPublicList", + method: Method.GET, + needToken: true, + params: { page,pageSize,userId }, + }); +} + +/** + * 查询我的私密视频 + */ +export function vlogMyPrivateList(page,pageSize,userId) { + return http.request({ + url: api.vlog + "/vlog/myPrivateList", + method: Method.GET, + needToken: true, + params: { page,pageSize,userId }, + }); +} + +/** + * 查询我喜欢的视频 + */ +export function vlogMyLikedList(page,pageSize,userId) { + return http.request({ + url: api.vlog + "/vlog/myLikedList", + method: Method.GET, + needToken: true, + params: { page,pageSize,userId }, + }); +} + +/** + * 查询我喜欢的视频 + */ +export function vlogMeTag(path,page,pageSize,userId) { + return http.request({ + url: api.vlog + "/vlog/"+path, + method: Method.GET, + needToken: true, + params: { page,pageSize,userId }, + }); +} + +/** + * 视频评论数量 + */ +export function vlogCommentCounts(vlogId) { + return http.request({ + url: api.vlog + "/comment/counts", + method: Method.GET, + needToken: true, + params: { vlogId }, + }); +} + +/** + * 视频评论不喜欢 + */ +export function vlogCommentUnLike(userId,commentId) { + return http.request({ + url: api.vlog + "/comment/unlike", method: Method.POST, needToken: true, - header: { "content-type": "application/x-www-form-urlencoded" }, - data: data, + params: {userId,commentId} }); } /** - * 编辑地址 - * @param id 地址ID - * @param params 地址参数 - * @returns {AxiosPromise} + * 视频评论喜欢 */ -export function editAddress(params) { +export function vlogCommentLike(userId,commentId) { return http.request({ - url: `/member/address`, - method: Method.PUT, + url: api.vlog + "/comment/like", + method: Method.POST, needToken: true, - header: { "content-type": "application/x-www-form-urlencoded" }, - data: params, + params: {userId,commentId} }); } /** - * 删除收货地址 - * @param id + * 视频评论删除 */ -export function deleteAddress(id) { +export function vlogCommentDelete(vlogId,commentUserId,commentId) { return http.request({ - url: `/member/address/delById/${id}`, + url: api.vlog + "/comment/delete", method: Method.DELETE, needToken: true, + params: {vlogId,commentUserId,commentId} }); } - /** - * 根据ID获取会员收件地址 - * @param id + * 查询视频评论内容 */ -export function getAddressDetail(id) { +export function vlogCommentList(page,pageSize,vlogId,userId) { return http.request({ - url: `/member/address/get/${id}`, + url: api.vlog + "/comment/list", method: Method.GET, - loading: false, needToken: true, + params: { page,pageSize,vlogId,userId }, }); } /** - * + * 发表评论 */ -export function getAddressDefault() { +export function vlogCommentCreate(data) { return http.request({ - url: `/member/address/get/default`, - method: Method.GET, - loading: false, + url: api.vlog + "/comment/create", + method: Method.POST, needToken: true, + data + }); +} + +/** + * 将视频转为公开 + */ +export function vlogChangeToPublic(userId,vlogId) { + return http.request({ + url: api.vlog + "/vlog/changeToPublic", + method: Method.POST, + needToken: true, + params:{userId,vlogId} + }); +} + +/** + * 将视频转为私密 + */ +export function vlogChangeToPrivate(userId,vlogId) { + return http.request({ + url: api.vlog + "/vlog/changeToPrivate", + method: Method.POST, + needToken: true, + params:{userId,vlogId} + }); +} + +/** + * 修改信息 + */ +export function vlogModifyUserInfo(data,type) { + return http.request({ + url: api.vlog + "/userInfo/modifyUserInfo?type="+type, + method: Method.POST, + needToken: true, + data + }); +} + + +/** + * 取关 + */ +export function vlogFansCancel({myId,vlogerId}) { + return http.request({ + url: api.vlog + "/fans/cancel", + method: Method.POST, + needToken: true, + params:{myId,vlogerId} + }); +} +/** + * 关注 + */ +export function vlogFansFollow({myId,vlogerId}) { + return http.request({ + url: api.vlog + "/fans/follow", + method: Method.POST, + needToken: true, + params:{myId,vlogerId} + }); +} + +/** + * 我的粉丝 + */ +export function vlogQueryMyFans({myId,page,pageSize}) { + return http.request({ + url: api.vlog + "/fans/queryMyFans", + method: Method.GET, + needToken: true, + params:{myId,page,pageSize} + }); +} + +/** + * 我的关注 + */ +export function vlogQueryMyFollows({myId,page,pageSize}) { + return http.request({ + url: api.vlog + "/fans/queryMyFollows", + method: Method.GET, + needToken: true, + params:{myId,page,pageSize} }); } diff --git a/components/vlog/videoComp.nvue b/components/vlog/videoComp.vue similarity index 85% rename from components/vlog/videoComp.nvue rename to components/vlog/videoComp.vue index 359b4a06..70961ba2 100755 --- a/components/vlog/videoComp.nvue +++ b/components/vlog/videoComp.vue @@ -1,7 +1,8 @@ - - -