|
|
@@ -83,69 +83,77 @@ export function getWxConfig(data) {
|
|
|
}
|
|
|
|
|
|
// 保存评论数据
|
|
|
- export function saveMsg(data, type) {
|
|
|
+ export function saveMsg(data) {
|
|
|
return request('/app/course/saveMsg', data, 'POST', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
|
// 撤销评论
|
|
|
- export function revokeMsg(data, type) {
|
|
|
+ export function revokeMsg(data) {
|
|
|
return request('/app/course/revokeMsg', data, 'PUT', 'application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
|
// 获取历史评论数据
|
|
|
- export function getComments(data, type) {
|
|
|
+ export function getComments(data) {
|
|
|
return request('/app/course/getComments', data, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
|
// 错误日志未知异常,请联系管理员
|
|
|
- export function errorLogUpload(data, type) {
|
|
|
+ export function errorLogUpload(data) {
|
|
|
return request('/app/common/errorLogUpload', data, 'POST','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
|
- export function getTypeTree(data, type) {
|
|
|
+ export function getTypeTree(data) {
|
|
|
return request('/app/user/complaint/getTypeTree', null, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function complaintRecord(data, type) {
|
|
|
+ export function complaintRecord(data) {
|
|
|
return request('/app/user/complaint/record', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
|
|
|
- export function uploadOSS(data, type) {
|
|
|
+ export function uploadOSS(data) {
|
|
|
return request('/app/common/uploadOSS', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
// 公开课
|
|
|
- export function getAppletCourse(data, type) {
|
|
|
+ export function getAppletCourse(data) {
|
|
|
return request('/app/course/getAppletCourse', null, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function getAppletCourseVideo(data, type) {
|
|
|
+ export function getAppletCourseVideo(data) {
|
|
|
return request('/app/course/getAppletCourseVideo', data, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function getConfigByKey(data, type) {
|
|
|
+ export function getConfigByKey(data) {
|
|
|
return request('/app/common/getConfigByKey',data,'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
// 获取芳华币礼品
|
|
|
-export function getCourseIntegralGoods(data,type) {
|
|
|
+export function getCourseIntegralGoods(data) {
|
|
|
return request('/app/course/getCourseIntegralGoods', null, 'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function claim(data, type) {
|
|
|
+ export function claim(data) {
|
|
|
return request('/app/course/rewardRound/claim', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function isClaim(data, type) {
|
|
|
+ export function isClaim(data) {
|
|
|
return request('/app/course/rewardRound/isClaim', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function getVideoRewardTypes(data, type) {
|
|
|
+ export function getVideoRewardTypes(data) {
|
|
|
return request('/app/course/getVideoRewardTypes', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function getVideoRewardRules(data, type) {
|
|
|
+ export function getVideoRewardRules(data) {
|
|
|
return request('/app/course/getVideoRewardRules', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
- export function getUserPhoneDeviceType(data, type) {
|
|
|
+ export function getUserPhoneDeviceType(data) {
|
|
|
return request('/app/pop/getUserPhoneDeviceType', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
//检查是否有头像以及昵称
|
|
|
export function checkUserInfo(data) {
|
|
|
- return request('/app/user/checkUserInfo',data,'GET','application/json;charset=UTF-8');
|
|
|
+ return request('/app/user/checkUserInfo',data,'GET','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|
|
|
//更改用户头像以及昵称
|
|
|
export function editUser(data) {
|
|
|
return request('/app/user/editUser',data,'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ export function getLuckyBagInfo(data) {
|
|
|
+ return request('/app/luckyBag/getLuckyBagInfo',data,'GET','','https://h5api.his.cdwjyyh.com');
|
|
|
+ }
|
|
|
+ export function receiveLuckyBag(data) {
|
|
|
+ return request('/app/luckyBag/receiveLuckyBag', data, 'POST','application/json;charset=UTF-8','https://h5api.his.cdwjyyh.com');
|
|
|
}
|