From 3a0df0487ed8b0d031ebb5be2a9f0a408e52cc1e Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Sat, 18 Oct 2025 20:52:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=BF=80=E5=8A=B1?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=AE=B0=E5=BD=95=E5=8A=9F=E8=83=BD=E5=B9=B6?= =?UTF-8?q?=E6=89=A9=E5=B1=95=E8=AF=84=E8=AE=BA=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在rewardedVideoAd混入中添加激励视频记录配置 - 扩展评论和记录接口的类型注释(新增9群聊和10抽奖类型) - 在各页面组件中设置激励视频记录类型和目标ID - 重构productList组件,添加商品编辑和删除功能 - 更新浏览记录接口注释使其更准确 --- api/model/browseRecord.js | 6 +- api/model/comment.js | 2 +- components/user/callPhone.vue | 3 + components/user/productList.vue | 220 +++++++++++++++++++++++++--------- mixins/rewardedVideoAd.js | 11 ++ pages_order/gourmet/gourmetDetail.vue | 6 +- pages_order/group/groupDetail.vue | 3 + pages_order/marketing/turntable.vue | 2 + 8 files changed, 194 insertions(+), 59 deletions(-) diff --git a/api/model/browseRecord.js b/api/model/browseRecord.js index e9f1c60..6841cce 100644 --- a/api/model/browseRecord.js +++ b/api/model/browseRecord.js @@ -1,7 +1,7 @@ -// 评论相关接口 +// 记录相关接口 const api = { - //发布评论 + //添加记录 category 分类 0浏览 1点赞 2转发 3激励视频 addBrowseRecord: { url: '/city/browseRecord/addBrowseRecord', method: 'POST', @@ -9,7 +9,7 @@ const api = { auth : true, showLoading : true, }, - //获取评论列表type-0帖子-1租房-2工作-3景点-4美食-5活动-6人找车-7车找人-8文章 + //获取记录列表type-0帖子-1租房-2工作-3景点-4美食-5活动-6人找车-7车找人-8文章 getBrowseRecordPage: { url: '/city/browseRecord/getBrowseRecordPage', method: 'GET', diff --git a/api/model/comment.js b/api/model/comment.js index 12e68a7..2a90dba 100644 --- a/api/model/comment.js +++ b/api/model/comment.js @@ -15,7 +15,7 @@ const api = { auth : true, showLoading : true, }, - //获取评论列表type-0帖子-1租房-2工作-3景点-4美食-5活动-6人找车-7车找人-8文章 + //获取评论列表type-0帖子-1租房-2工作-3景点-4美食-5活动-6人找车-7车找人-8文章-9群聊-10抽奖 getCommentPage: { url: '/city/getCommentPage', method: 'GET', diff --git a/components/user/callPhone.vue b/components/user/callPhone.vue index 5352fb9..8dd2f96 100644 --- a/components/user/callPhone.vue +++ b/components/user/callPhone.vue @@ -43,6 +43,9 @@ type : this.type, id : this.pid } + + this.rewardedRecordConfig.type = this.type // + this.rewardedRecordConfig.formId = this.pid // console.log(data); diff --git a/components/user/productList.vue b/components/user/productList.vue index f6a7029..322ec05 100644 --- a/components/user/productList.vue +++ b/components/user/productList.vue @@ -1,66 +1,97 @@