diff --git a/src/api/index.ts b/src/api/index.ts index 0cd3afa..96af2b4 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -482,6 +482,21 @@ export async function getcommentlist(data?:any) { const res=await get('comments',data) return res } + +/** + * 发布评论 + */ +interface SendData{ + type?:number, + cid?:number, + teacherid?:number, + score?:number, + content?:string +} +export async function addcomment(data?:any):Promise { + const res=await post('comments',data) + +} /** * 发送验证码 * @param phone 手机号 diff --git a/src/components/ReviewItem.vue b/src/components/ReviewItem.vue index 9872855..44236a4 100644 --- a/src/components/ReviewItem.vue +++ b/src/components/ReviewItem.vue @@ -1,25 +1,25 @@ @@ -88,11 +88,60 @@ } diff --git a/src/components/VideoReview.vue b/src/components/VideoReview.vue index 0f58633..c417bc2 100644 --- a/src/components/VideoReview.vue +++ b/src/components/VideoReview.vue @@ -9,16 +9,24 @@
- - -
+ +
+ @{{uinfo.name}}
发表留言
@@ -85,23 +93,57 @@ }