diff --git a/App.vue b/App.vue index 6321230..045a58a 100644 --- a/App.vue +++ b/App.vue @@ -3,7 +3,7 @@ onLaunch: function() { }, onShow: function() { - // this.$store.commit('initConfig') + this.$store.commit('initConfig') }, onHide: function() { } diff --git a/api/api.js b/api/api.js index 077b278..c31766a 100644 --- a/api/api.js +++ b/api/api.js @@ -211,10 +211,49 @@ const config = { auth: true, showLoading : true, }, + // 踩type-作品0-演员1-动态2 + infoDislike: { + url: '/api/info/dislike', + method: 'GET', + auth: true, + showLoading : true, + }, + // 点赞type-作品0-演员1-动态2 + infoLike: { + url: '/api/info/like', + method: 'GET', + auth: true, + showLoading : true, + }, + // 举报type-作品0-演员1-动态2 + infoReport: { + url: '/api/info/report', + method: 'GET', + auth: true, + showLoading : true, + }, + // 发布作品 + releaseWorks: { + url: '/api/info/releaseWorks', + method: 'POST', + auth: true, + showLoading : true, + }, //小程序-登录相关接口 - + + // 获取隐私政策 + getPrivacyPolicy: { + url: '/api/login/getPrivacyPolicy', + method: 'GET', + }, + // 获取用户协议 + getUserAgreement: { + url: '/api/login/getUserAgreement', + method: 'GET', + }, + //绑定手机接口 loginBindPhone: { url: '/api/login/bindPhone', @@ -253,6 +292,15 @@ const config = { method: 'GET', showLoading : true, }, + + + // 立即支付 + payOrder: { + url: '/api/order/payOrder', + method: 'POST', + showLoading : true, + }, + } export function api(key, data, callback, loadingTitle) { diff --git a/components/config/configPopup.vue b/components/config/configPopup.vue index f0ed9f8..5b25223 100644 --- a/components/config/configPopup.vue +++ b/components/config/configPopup.vue @@ -9,7 +9,7 @@ diff --git a/components/content/contentControls.vue b/components/content/contentControls.vue index 5c76eef..495c15b 100644 --- a/components/content/contentControls.vue +++ b/components/content/contentControls.vue @@ -1,22 +1,22 @@