| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235 |
- import Request from '../common/request.js';
- let request = new Request().http
-
- export function login(data) {
- return request('/app/app/login',data,'POST','application/json;charset=UTF-8');
- }
-
- export function loginByWeChat(data) {
- return request('/app/app/loginByWeChat',data,'POST','application/json;charset=UTF-8');
- }
-
- export function loginByApple(data) {
- return request('/app/app/loginByApple',data,'POST','application/json;charset=UTF-8');
- }
-
- export function loginByMp(data) {
- return request('/app/wx/loginByMp?appId=wx7a3715e6f0d22c56',data,'POST','application/json;charset=UTF-8');
- }
-
- export function setPhone(data) {
- return request('/app/app/setPhone',data,'POST','application/json;charset=UTF-8');
- }
-
-
- export function setIPhoneNumber(data) {
- return request('/app/app/setIPhoneNumber',data,'POST','application/json;charset=UTF-8');
- }
-
- export function bindWechat(data) {
- return request('/app/app/bindWeChat',data,'POST','application/json;charset=UTF-8');
- }
-
-
- export function register(data) {
- return request('/app/app/register',data,'POST','application/json;charset=UTF-8');
- }
-
- export function getUserInfo() {
- return request('/app/user/getUserInfo',null,'GET');
- }
-
- export function checkLogin() {
- return request('/app/app/checkLogin',null,'GET');
- }
- export function getAllUsers(data) {
- return request('/app/app/getAllUsers',data,'GET');
- }
- export function getUserInfoByUserId(data) {
- return request('/app/app/getUserInfoByUserId',data,'GET');
- }
-
- export function setPwd(data) {
- return request('/app/app/setPwd',data,'POST','application/json;charset=UTF-8');
- }
-
- export function setHeadImg(data) {
- return request('/app/app/setHeadImg',data,'POST','application/json;charset=UTF-8');
- }
-
- export function setUserInfo(data) {
- return request('/app/user/editUser',data,'POST','application/json;charset=UTF-8');
- }
-
-
- export function editQrCode(data) {
- return request('/app/app/editQrCode',data,'POST','application/json;charset=UTF-8');
- }
-
-
- export function getAlipayQrImg() {
- return request('/app/storePayment/getAlipayQrImg',null,'GET');
- }
-
-
- export function getMyCardList(data) {
- return request('/app/app/getMyCardList',data,'GET');
- }
-
- export function delMyCard(cId) {
- return request('/app/app/delMyCard?cardId='+cId,null,'POST');
- }
-
- export function getAppletScheme(cId) {
- return request('/app/app/getAppletScheme?cardId='+cId,null,'GET');
- }
-
- export function getShortUrl(url,title) {
- return request('/app/app/getShortUrl?url='+url+'&title='+title,null,'GET');
- }
-
-
- export function getMyCouponList(data) {
- return request('/app/user/getMyCouponList',data,'GET');
- }
-
- export function getMyEnableCouponList(data) {
- return request('/app/user/getMyEnableCouponList',data,'GET');
- }
-
- export function registerDoctor(data) {
- return request('/app/user/registerDoctor',data,'POST','application/json;charset=UTF-8');
- }
-
- export function getMyCouponCount() {
- return request('/app/user/getMyCouponCount',null,'GET');
- }
-
- //查看推送设置
- export function getUserPushSetting() {
- return request('/app/user/getUserPushSetting',null,'GET');
- }
-
-
- export function editUserPushSetting(data) {
- return request('/app/user/editUserPushSetting',data,'POST','application/json;charset=UTF-8');
- }
-
- // 健康管家二维码
- export function getAppContactWay(userId) {
- return request('/app/user/getAppContactWay/'+userId,null,'GET');
- }
-
- // 退出登录 清除jpushId
- export function logoutjpushId() {
- return request('/app/app/logout',null,'GET');
- }
-
- // 最新通知及未读条数
- export function getLastAndReadStatus() {
- return request('/app/uniPushLog/getLastAndReadStatus',null,'GET');
- }
-
- // 查询所有通知
- export function getPushLog(data) {
- return request('/app/uniPushLog/list',data,'GET');
- }
-
- // 通知 一键已读
- export function getPushLogRead(data) {
- return request('/app/uniPushLog/setIsRead',data,'POST','application/json;charset=UTF-8');
- }
-
- // 更新jpushId
- export function updatePushId(data) {
- return request('/app/app/updatePushId',data,'GET');
- }
-
- // 更新用户是否绑定app
- export function updateHistoryApp(data) {
- return request('/app/user/updateHistoryApp',data,'GET');
- }
-
-
- // 账号注销
- export function deleteUser(userId) {
- return request('/app/user/deleteUser/'+userId,null,'POST');
- }
-
-
-
-
- //新增弹窗记录
- export function popAd(data) {
- return request('/app/pop/add',data,'GET');
- }
-
- // 判断是否需要弹窗
- export function isCreateAd(data) {
- return request('/app/pop/isCreate',data,'GET');
- }
-
- // 投诉模板
- export function templateList() {
- return request('/app/complaint/treeList',null,'GET');
- }
- // 投诉
- export function complaint(data) {
- return request('/app/complaint',data,'POST','application/json;charset=UTF-8');
- }
- // 课程投诉模板
- export function getTypeTree() {
- return request('/app/user/complaint/getTypeTree',null,'GET');
- }
- // 课程投诉
- export function complaintRecord(data) {
- return request('/app/user/complaint/record',data,'POST','application/json;charset=UTF-8');
- }
- export function resetPassword(data) {
- return request('/app/app/resetPassword',data,'POST','application/json;charset=UTF-8');
- }
- export function sendCode(data) {
- return request('/app/app/sendCode',data,'POST','application/json;charset=UTF-8');
- }
- export function loginByPhone(data) {
- return request('/app/app/loginByPhone',data,'POST','application/json;charset=UTF-8');
- }
- export function registerSendCode(data) {
- return request('/app/app/registerSendCode',data,'POST','application/json;charset=UTF-8');
- }
- export function registerByPhone(data) {
- return request('/app/app/registerByPhone',data,'POST','application/json;charset=UTF-8');
- }
-
- // 用户注销
- export function removeUser(data) {
- return request('/app/user/removeUser',data,'POST','application/json;charset=UTF-8');
- }
-
- export function loginByUserId(data) {
- return request('/app/app/loginByUserId',data,'POST','application/json;charset=UTF-8');
- }
-
- //用户钱包明细
- export function getWallet(data) {
- return request('/app/common/getWallet/'+data.userId,data,'GET');
- }
- //兑换明细
- export function exchangDetail(data) {
- return request('/app/common/exchangDetail',data,'POST','application/json;charset=UTF-8');
- }
- //用户兑换提现
- export function integralExchange(data) {
- return request('/app/common/integralExchange/'+data.userId,data,'GET','application/json;charset=UTF-8');
- }
- //用户提现到微信
- export function withDrawal(data) {
- return request('/app/integral/withdrawal',data,'POST','application/json;charset=UTF-8');
- }
-
- //购买会员优惠券
- export function getCouponsUnderVipPackage(data) {
- return request('/app/userVip/getCouponsUnderVipPackage',data,'GET');
- }
-
|