Commit e10dcaa9 by baihong

update:整理接口文档

parent 3a845b89
...@@ -17,4 +17,15 @@ export const getActivityConfigByPay = (data) => { ...@@ -17,4 +17,15 @@ export const getActivityConfigByPay = (data) => {
} }
export const deleteConfigAward = (data) => { export const deleteConfigAward = (data) => {
return $http.delete('/cms/configs/configAwards/deleteConfigAward', data) return $http.delete('/cms/configs/configAwards/deleteConfigAward', data)
}
//活动规则
export const getActivityConfigRule = (data) => {
return $http.get('/cms/configs/getActivityConfigRule', data)
}
export const updateRule = (data) => {
return $http.putObj('/cms/configs/updateRule', data)
}
//缴费配置
export const update = (data) => {
return $http.putObj('/cms/configs/update', data)
} }
\ No newline at end of file
...@@ -163,7 +163,8 @@ import { ...@@ -163,7 +163,8 @@ import {
configAwards, configAwards,
addConfigAward, addConfigAward,
editConfigAward, editConfigAward,
deleteConfigAward deleteConfigAward,
getActivityConfigRule
} from "@/api/clock/activityClocks"; } from "@/api/clock/activityClocks";
import Editor from "_c/editor"; import Editor from "_c/editor";
export default { export default {
...@@ -296,6 +297,11 @@ export default { ...@@ -296,6 +297,11 @@ export default {
this.data = res; this.data = res;
}); });
}, },
getRu(){
getActivityConfigRule(1).then(res => {
this.data = res;
});
},
getTime() { getTime() {
getActivityConfigByPay().then(res => { getActivityConfigByPay().then(res => {
this.payData = [res]; this.payData = [res];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment