From ad341977f05a5c95edd7319ae78c7d9f91769e15 Mon Sep 17 00:00:00 2001 From: unknown <331404948@qq.com> Date: Thu, 28 Sep 2023 15:20:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=92=A8=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/api.js | 10 +++ config/site.config.js | 2 +- pages/indexEntry/consult/pubConsult/pubConsult.vue | 35 ++++++++--- .../publicVideo/videoDetail/videoDetail.vue | 71 +++++++++++++++------- pages/tabbar/index/index.vue | 2 +- 5 files changed, 88 insertions(+), 32 deletions(-) diff --git a/config/api.js b/config/api.js index 1ecf84a..a123038 100644 --- a/config/api.js +++ b/config/api.js @@ -22,8 +22,14 @@ export const publicVideoPage = (params) => http.get('business/video/page', {para export const publicGetvideo = (params) => http.get('business/video/getvideo', {params: params}) // 公益视频点赞 export const createUpvote = (data) => http.post('business/contentdata/createUpvote', data) +// 公益视频取消点赞 upvoteId +export const deleteUpvote = (data) => http.delete(`/business/contentdata/deleteUpvote?upvoteId=${data.upvoteId}&mobile=${data.mobile}`) // 公益视频收藏 export const createCollect = (data) => http.post('business/contentdata/createCollect', data) +// 公益视频取消收藏 CollectId +export const deleteRetransmission = (data) => http.delete(`business/contentdata/deleteCollect?collectId=${data.CollectId}&mobile=${data.mobile}`) +// 公益视频分享 +export const createRetransmission = (data) => http.post('business/contentdata/createRetransmission', data) // 公益视频是否点赞收藏 export const getlikesCollection = (params) => http.get('business/users/getContent', {params: params}) // 行业资讯, @@ -32,6 +38,10 @@ export const getarticleList = (params) => http.get('business/video/article', {pa export const getarticlezcList = (params) => http.get('business/video/articlezc', {params: params}) // 行业资讯,行业政策 详情 export const getarticle = (params) => http.get('business/video/getarticle', {params: params}) +// 创建咨询 +export const createconsult = (data) => http.post('business/appcomplain/createconsult', data) +// 上传图片 +export const uploadImg = (data) => http.post('infra/file/upload', data) // 驾照类型 export const licenseType = () => http.get('system/dict/licenseType', ) diff --git a/config/site.config.js b/config/site.config.js index 64abf09..bdce735 100644 --- a/config/site.config.js +++ b/config/site.config.js @@ -2,7 +2,7 @@ const VUE_APP_PLATFORM = process.env.VUE_APP_PLATFORM; // localIp = false module.exports = { H5_API: VUE_APP_PLATFORM === 'h5' ? '/api' : '',//h5代理 - WX_API: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/',//非代理地址 + WX_API: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.36:48080/',//非代理地址 TEMP_HOST: VUE_APP_PLATFORM === 'h5' ? '' : 'http://192.168.1.26:48080/', httpPrefix: 'app-api/', imgUrl: 'http://jxtemp.oss-cn-hangzhou.aliyuncs.com/defaultImages/app/bigImg/' diff --git a/pages/indexEntry/consult/pubConsult/pubConsult.vue b/pages/indexEntry/consult/pubConsult/pubConsult.vue index 684b170..a17f8fd 100644 --- a/pages/indexEntry/consult/pubConsult/pubConsult.vue +++ b/pages/indexEntry/consult/pubConsult/pubConsult.vue @@ -35,20 +35,20 @@ 联系电话 - - - + {{ this.vuex_userInfo.mobile }} - 提交 + 提交