getApiRes.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895
  1. import axios from 'axios';
  2. import global from '../Global.js'
  3. // 基础方法进行封装
  4. function getApiBasic(url, postdata) {
  5. return axios.post(url, postdata).then(function (data) {
  6. let json = data.data;
  7. return json
  8. }, function (response) {
  9. console.info(response);
  10. })
  11. }
  12. // 调用的api改写成方法
  13. export function worldDetail(postdata) {
  14. let url = headapi + 'worldDetail';
  15. return getApiBasic(url, postdata);
  16. }
  17. export function editbasicinfo(postdata) {
  18. let url = headapi + 'editbasicinfo';
  19. return getApiBasic(url, postdata);
  20. }
  21. export function modPwd(postdata) {
  22. let url = headapi + 'modPwd';
  23. return getApiBasic(url, postdata);
  24. }
  25. export function logout(postdata) {
  26. let url = headapi + 'logout';
  27. return getApiBasic(url, postdata);
  28. }
  29. // 调用的api改写成方法
  30. export function testTable(postdata) {
  31. let url = headapi + 'testTable';
  32. return getApiBasic(url, postdata);
  33. }
  34. export function testTableLong(postdata) {
  35. let url = headapi + 'testTableLong';
  36. return getApiBasic(url, postdata);
  37. }
  38. export function testSelect(postdata) {
  39. let url = headapi + 'testSelect';
  40. return getApiBasic(url, postdata);
  41. }
  42. // Auth
  43. // 获取验证图片
  44. export function GenVerifyPic(postdata) {
  45. let url = headapi + 'v1/Auth/GenVerifyPic';
  46. return getApiBasic(url, postdata);
  47. }
  48. // 修改密码 √
  49. export function PassEdit(postdata) {
  50. let url = headapi + 'v1/Auth/PassEdit';
  51. return getApiBasic(url, postdata);
  52. }
  53. // 用户登录 √
  54. export function SignIn(postdata) {
  55. let url = headapi + 'v1/Auth/SignIn';
  56. return getApiBasic(url, postdata);
  57. }
  58. // 用户退出
  59. export function SignOut(postdata) {
  60. let url = headapi + 'v1/Auth/SignOut';
  61. return getApiBasic(url, postdata);
  62. }
  63. // 用户添加
  64. export function SignUp(postdata) {
  65. let url = headapi + 'v1/Auth/SignUp';
  66. return getApiBasic(url, postdata);
  67. }
  68. // 用户微信登录
  69. export function WXSignIn(postdata) {
  70. let url = headapi + 'v1/Auth/WXSignIn';
  71. return getApiBasic(url, postdata);
  72. }
  73. // class
  74. // √ 课程添加
  75. export function ClassAdd(postdata) {
  76. let url = headapi + 'v1/Class/ClassAdd';
  77. return getApiBasic(url, postdata);
  78. }
  79. // 课程统计
  80. export function ClassStatistics(postdata) {
  81. let url = headapi + 'v1/Class/ClassStatistics';
  82. return getApiBasic(url, postdata);
  83. }
  84. // √ 课程颜色修改
  85. export function ClassColorEdit(postdata) {
  86. let url = headapi + 'v1/Class/ClassColorEdit';
  87. return getApiBasic(url, postdata);
  88. }
  89. // 课程单条查询
  90. export function ClassDetailOne(postdata) {
  91. let url = headapi + 'v1/Class/ClassDetailOne';
  92. return getApiBasic(url, postdata);
  93. }
  94. // √ 课程基本信息修改
  95. export function ClassEdit(postdata) {
  96. let url = headapi + 'v1/Class/ClassEdit';
  97. return getApiBasic(url, postdata);
  98. }
  99. // √ 课程列表查询
  100. export function ClassListQuery(postdata) {
  101. let url = headapi + 'v1/Class/ClassListQuery';
  102. return getApiBasic(url, postdata);
  103. }
  104. // √ 课程状态修改
  105. export function ClassStatusEdit(postdata) {
  106. let url = headapi + 'v1/Class/ClassStatusEdit';
  107. return getApiBasic(url, postdata);
  108. }
  109. // 课程会员增删
  110. export function ClassVipuserEdit(postdata) {
  111. let url = headapi + 'v1/Class/ClassVipuserEdit';
  112. return getApiBasic(url, postdata);
  113. }
  114. // 课程会员查询
  115. export function ClassVipuserQuery(postdata) {
  116. let url = headapi + 'v1/Class/ClassVipuserQuery';
  117. return getApiBasic(url, postdata);
  118. }
  119. // 课程微信可见状态修改
  120. export function ClassVisibleStatusEdit(postdata) {
  121. let url = headapi + 'v1/Class/ClassVisibleStatusEdit';
  122. return getApiBasic(url, postdata);
  123. }
  124. // order
  125. // 最新预约列表查询
  126. export function LastOrderQuery(postdata) {
  127. let url = headapi + 'v1/Order/LastOrderQuery';
  128. return getApiBasic(url, postdata);
  129. }
  130. // 管理员今日预约添加
  131. export function OrderAddByManager(postdata) {
  132. let url = headapi + 'v1/Order/OrderAddByManager';
  133. return getApiBasic(url, postdata);
  134. }
  135. // 管理员今日预约取消
  136. export function OrderCancelByManager(postdata) {
  137. let url = headapi + 'v1/Order/OrderCancelByManager';
  138. return getApiBasic(url, postdata);
  139. }
  140. // 预约记录查询
  141. export function OrderListQuery(postdata) {
  142. let url = headapi + 'v1/Order/OrderListQuery';
  143. return getApiBasic(url, postdata);
  144. }
  145. // 今日预约统计
  146. export function OrderStatistics(postdata) {
  147. let url = headapi + 'v1/Order/OrderStatistics';
  148. return getApiBasic(url, postdata);
  149. }
  150. // 今日课程预约总览
  151. export function TodayClassOrderQuery(postdata) {
  152. let url = headapi + 'v1/Order/TodayClassOrderQuery';
  153. return getApiBasic(url, postdata);
  154. }
  155. // 课程预约列表
  156. export function ClassOrderQuery(postdata) {
  157. let url = headapi + 'v1/Order/ClassOrderQuery';
  158. return getApiBasic(url, postdata);
  159. }
  160. // 今日会员预约列表查询
  161. export function TodayVipOrderQuery(postdata) {
  162. let url = headapi + 'v1/Order/TodayVipOrderQuery';
  163. return getApiBasic(url, postdata);
  164. }
  165. // 会员预约列表查询
  166. export function VipUserOrderQuery(postdata) {
  167. let url = headapi + 'v1/Order/VipUserOrderQuery';
  168. return getApiBasic(url, postdata);
  169. }
  170. // SchoolTimeTable
  171. // 正在进行课程列表
  172. export function ClassOngoingList(postdata) {
  173. let url = headapi + 'v1/SchoolTimeTable/ClassOngoingList';
  174. return getApiBasic(url, postdata);
  175. }
  176. // 课程表预览
  177. export function SchoolTimetablePreview(postdata) {
  178. let url = headapi + 'v1/SchoolTimeTable/SchoolTimetablePreview';
  179. return getApiBasic(url, postdata);
  180. }
  181. // 课程详情判断是否可删除
  182. export function STTDetailAllowDelCheck(postdata) {
  183. let url = headapi + 'v1/SchoolTimeTable/STTDetailAllowDelCheck';
  184. return getApiBasic(url, postdata);
  185. }
  186. // 下课记录详情删除
  187. export function ClassOverDetailDel(postdata) {
  188. let url = headapi + 'v1/SchoolTimeTable/ClassOverDetailDel';
  189. return getApiBasic(url, postdata);
  190. }
  191. // 课程表详情微信可预约状态修改
  192. export function STTDetailWxOrderEdit(postdata) {
  193. let url = headapi + 'v1/SchoolTimeTable/STTDetailWxOrderEdit';
  194. return getApiBasic(url, postdata);
  195. }
  196. // 某日课程表查询
  197. export function ClassListByOrderDate(postdata) {
  198. let url = headapi + 'v1/SchoolTimeTable/ClassListByOrderDate';
  199. return getApiBasic(url, postdata);
  200. }
  201. // 确认下课
  202. export function ClassOverConfirm(postdata) {
  203. let url = headapi + 'v1/SchoolTimeTable/ClassOverConfirm';
  204. return getApiBasic(url, postdata);
  205. }
  206. // 下课记录详情添加
  207. export function ClassOverDetailAdd(postdata) {
  208. let url = headapi + 'v1/SchoolTimeTable/ClassOverDetailAdd';
  209. return getApiBasic(url, postdata);
  210. }
  211. // 下课记录详情列表
  212. export function ClassOverDetailListQuery(postdata) {
  213. let url = headapi + 'v1/SchoolTimeTable/ClassOverDetailListQuery';
  214. return getApiBasic(url, postdata);
  215. }
  216. // 下课记录详情状态修改
  217. export function ClassOverDetailStatusEdit(postdata) {
  218. let url = headapi + 'v1/SchoolTimeTable/ClassOverDetailStatusEdit';
  219. return getApiBasic(url, postdata);
  220. }
  221. // 待下课课程列表
  222. export function ClassOverPrepare(postdata) {
  223. let url = headapi + 'v1/SchoolTimeTable/ClassOverPrepare';
  224. return getApiBasic(url, postdata);
  225. }
  226. // 下课准备
  227. export function ClassPreFinishListQuery(postdata) {
  228. let url = headapi + 'v1/SchoolTimeTable/ClassPreFinishListQuery';
  229. return getApiBasic(url, postdata);
  230. }
  231. // 课程表基本信息添加
  232. export function STTBasicAdd(postdata) {
  233. let url = headapi + 'v1/SchoolTimeTable/STTBasicAdd';
  234. return getApiBasic(url, postdata);
  235. }
  236. // 课程表基本信息修改
  237. export function STTBasicEdit(postdata) {
  238. let url = headapi + 'v1/SchoolTimeTable/STTBasicEdit';
  239. return getApiBasic(url, postdata);
  240. }
  241. // 课程表基本列表查询
  242. export function STTBasicListQuery(postdata) {
  243. let url = headapi + 'v1/SchoolTimeTable/STTBasicListQuery';
  244. return getApiBasic(url, postdata);
  245. }
  246. // 课程表上下线状态修改
  247. export function STTBasicOfflineEdit(postdata) {
  248. let url = headapi + 'v1/SchoolTimeTable/STTBasicOfflineEdit';
  249. return getApiBasic(url, postdata);
  250. }
  251. // 课程表状态修改
  252. export function STTBasicStatusEdit(postdata) {
  253. let url = headapi + 'v1/SchoolTimeTable/STTBasicStatusEdit';
  254. return getApiBasic(url, postdata);
  255. }
  256. // 课程表详情批量保存
  257. export function STTDetailBatchSave(postdata) {
  258. let url = headapi + 'v1/SchoolTimeTable/STTDetailBatchSave';
  259. return getApiBasic(url, postdata);
  260. }
  261. // 课程表详情列表查询
  262. export function STTDetailListQuery(postdata) {
  263. let url = headapi + 'v1/SchoolTimeTable/STTDetailListQuery';
  264. return getApiBasic(url, postdata);
  265. }
  266. // 复制课程表
  267. export function SchoolTimeTableCopy(postdata) {
  268. let url = headapi + 'v1/SchoolTimeTable/SchoolTimeTableCopy';
  269. return getApiBasic(url, postdata);
  270. }
  271. // 今日未上课课程列表查询
  272. export function WaitingBeginClassList(postdata) {
  273. let url = headapi + 'v1/SchoolTimeTable/WaitingBeginClassList';
  274. return getApiBasic(url, postdata);
  275. }
  276. // shop
  277. // √ 店铺添加
  278. export function ShopAdd(postdata) {
  279. let url = headapi + 'v1/Shop/ShopAdd';
  280. return getApiBasic(url, postdata);
  281. }
  282. // 店铺微信预约状态修改
  283. export function ShopWxStatusEdit(postdata) {
  284. let url = headapi + 'v1/Shop/ShopWxStatusEdit';
  285. return getApiBasic(url, postdata);
  286. }
  287. // 店铺单条查询
  288. export function ShopDetailOne(postdata) {
  289. let url = headapi + 'v1/Shop/ShopDetailOne';
  290. return getApiBasic(url, postdata);
  291. }
  292. // √ 店铺详情查询
  293. export function ShopDetailQuery(postdata) {
  294. let url = headapi + 'v1/User/ShopDetailQuery';
  295. return getApiBasic(url, postdata);
  296. }
  297. // 操作日志列表查询
  298. export function OptLogListQuery(postdata) {
  299. let url = headapi + 'v1/User/OptLogListQuery';
  300. return getApiBasic(url, postdata);
  301. }
  302. // 店铺修改
  303. export function ShopEdit(postdata) {
  304. let url = headapi + 'v1/Shop/ShopEdit';
  305. return getApiBasic(url, postdata);
  306. }
  307. // 店铺列表查询
  308. export function ShopListQuery(postdata) {
  309. let url = headapi + 'v1/Shop/ShopListQuery';
  310. return getApiBasic(url, postdata);
  311. }
  312. // 店铺状态修改
  313. export function ShopStatusEdit(postdata) {
  314. let url = headapi + 'v1/Shop/ShopStatusEdit';
  315. return getApiBasic(url, postdata);
  316. }
  317. // SttPlan
  318. // 课程表模板基本信息添加
  319. export function SttPlanBasicAdd(postdata) {
  320. let url = headapi + 'v1/SttPlan/SttPlanBasicAdd';
  321. return getApiBasic(url, postdata);
  322. }
  323. // 课程表模板详情预览
  324. export function SttPlanPreview(postdata) {
  325. let url = headapi + 'v1/SttPlan/SttPlanPreview';
  326. return getApiBasic(url, postdata);
  327. }
  328. // 课程表模板基本信息修改
  329. export function SttPlanBasicEdit(postdata) {
  330. let url = headapi + 'v1/SttPlan/SttPlanBasicEdit';
  331. return getApiBasic(url, postdata);
  332. }
  333. // 课程表模板基本信息列表查询
  334. export function SttPlanBasicListQuery(postdata) {
  335. let url = headapi + 'v1/SttPlan/SttPlanBasicListQuery';
  336. return getApiBasic(url, postdata);
  337. }
  338. // 课程表模板店铺通用修改
  339. export function SttPlanBasicShopEdit(postdata) {
  340. let url = headapi + 'v1/SttPlan/SttPlanBasicShopEdit';
  341. return getApiBasic(url, postdata);
  342. }
  343. // 课程表模板复制
  344. export function SttPlanCopy(postdata) {
  345. let url = headapi + 'v1/SttPlan/SttPlanCopy';
  346. return getApiBasic(url, postdata);
  347. }
  348. // 课程表模板基本信息状态修改
  349. export function SttPlanBasicStatusEdit(postdata) {
  350. let url = headapi + 'v1/SttPlan/SttPlanBasicStatusEdit';
  351. return getApiBasic(url, postdata);
  352. }
  353. // 课程表模板详情列表查询
  354. export function SttPlanDetailListQuery(postdata) {
  355. let url = headapi + 'v1/SttPlan/SttPlanDetailListQuery';
  356. return getApiBasic(url, postdata);
  357. }
  358. // 课程表模板发布
  359. export function SttPlanPublish(postdata) {
  360. let url = headapi + 'v1/SttPlan/SttPlanPublish';
  361. return getApiBasic(url, postdata);
  362. }
  363. // 课程表模板详情批量保存
  364. export function SttPlanDetailBatchSave(postdata) {
  365. let url = headapi + 'v1/SttPlan/SttPlanDetailBatchSave';
  366. return getApiBasic(url, postdata);
  367. }
  368. // teacher
  369. // 教练信息添加 √
  370. export function TeacherAdd(postdata) {
  371. let url = headapi + 'v1/Teacher/TeacherAdd';
  372. return getApiBasic(url, postdata);
  373. }
  374. // 教练信息修改 √
  375. export function TeacherEdit(postdata) {
  376. let url = headapi + 'v1/Teacher/TeacherEdit';
  377. return getApiBasic(url, postdata);
  378. }
  379. // 教练信息列表查询 √
  380. export function TeacherListQuery(postdata) {
  381. let url = headapi + 'v1/Teacher/TeacherListQuery';
  382. return getApiBasic(url, postdata);
  383. }
  384. // 教练状态修改 √
  385. export function TeacherStatusEdit(postdata) {
  386. let url = headapi + 'v1/Teacher/TeacherStatusEdit';
  387. return getApiBasic(url, postdata);
  388. }
  389. // User
  390. // √
  391. export function ManagerSelfQuery(postdata) {
  392. let url = headapi + 'v1/User/ManagerSelfQuery';
  393. return getApiBasic(url, postdata);
  394. }
  395. // √ 店铺管理员添加
  396. export function ShopManagerAdd(postdata) {
  397. let url = headapi + 'v1/User/ShopManagerAdd';
  398. return getApiBasic(url, postdata);
  399. }
  400. // 店铺管理员修改
  401. export function ShopManagerEdit(postdata) {
  402. let url = headapi + 'v1/User/ShopManagerEdit';
  403. return getApiBasic(url, postdata);
  404. }
  405. // 店铺管理员列表查询
  406. export function ShopManagerListQuery(postdata) {
  407. let url = headapi + 'v1/User/ShopManagerListQuery';
  408. return getApiBasic(url, postdata);
  409. }
  410. // 店铺管理员状态修改
  411. export function ShopManagerStatusEdit(postdata) {
  412. let url = headapi + 'v1/User/ShopManagerStatusEdit';
  413. return getApiBasic(url, postdata);
  414. }
  415. // 会员用户课时调整
  416. export function VipUserHourEdit(postdata) {
  417. let url = headapi + 'v1/User/VipUserHourEdit';
  418. return getApiBasic(url, postdata);
  419. }
  420. // 会员统计
  421. export function VipUserStatistics(postdata) {
  422. let url = headapi + 'v1/User/VipUserStatistics';
  423. return getApiBasic(url, postdata);
  424. }
  425. // 会员课程增删
  426. export function VipUserClassEdit(postdata) {
  427. let url = headapi + 'v1/User/VipUserClassEdit';
  428. return getApiBasic(url, postdata);
  429. }
  430. // 会员有效期调整
  431. export function VipUserExpEdit(postdata) {
  432. let url = headapi + 'v1/User/VipUserExpEdit';
  433. return getApiBasic(url, postdata);
  434. }
  435. // 会员用户添加
  436. export function VipUserAdd(postdata) {
  437. let url = headapi + 'v1/User/VipUserAdd ';
  438. return getApiBasic(url, postdata);
  439. }
  440. // 会员用户基本信息修改
  441. export function VipUserEdit(postdata) {
  442. let url = headapi + 'v1/User/VipUserEdit ';
  443. return getApiBasic(url, postdata);
  444. }
  445. // 会员消费记录查询
  446. export function VipUserConsumeListQuery(postdata) {
  447. let url = headapi + 'v1/User/VipUserConsumeListQuery ';
  448. return getApiBasic(url, postdata);
  449. }
  450. // 会员消费记录详情查询
  451. export function VipUserConsumeDetailQuery(postdata) {
  452. let url = headapi + 'v1/User/VipUserConsumeDetailQuery ';
  453. return getApiBasic(url, postdata);
  454. }
  455. // 会员用户列表
  456. export function VipUserListQuery(postdata) {
  457. let url = headapi + 'v1/User/VipUserListQuery';
  458. return getApiBasic(url, postdata);
  459. }
  460. // 会员用户基本信息查询
  461. export function VipUserSimpleQuery(postdata) {
  462. let url = headapi + 'v1/User/VipUserSimpleQuery ';
  463. return getApiBasic(url, postdata);
  464. }
  465. // 会员用户状态修改
  466. export function VipUserStatusEdit(postdata) {
  467. let url = headapi + 'v1/User/VipUserStatusEdit ';
  468. return getApiBasic(url, postdata);
  469. }
  470. // 通过Name查询Take用户信息
  471. export function QueryTakeCustomerByName(postdata) {
  472. let url = headapi + 'v1/Take/QueryTakeCustomerByName ';
  473. return getApiBasic(url, postdata);
  474. }
  475. //
  476. // 绑定Take用户
  477. export function BindTakeCustomer(postdata) {
  478. let url = headapi + 'v1/Take/BindTakeCustomer ';
  479. return getApiBasic(url, postdata);
  480. }
  481. // 查询商家区域
  482. export function QueryShopVenue(postdata) {
  483. let url = headbpi + 'v1/Shop/QueryShopVenue ';
  484. return getApiBasic(url, postdata);
  485. }
  486. // 添加商家区域
  487. export function AddShopVenue(postdata) {
  488. let url = headbpi + 'v1/Shop/AddShopVenue ';
  489. return getApiBasic(url, postdata);
  490. }
  491. // 修改商家区域
  492. export function EditShopVenue(postdata) {
  493. let url = headbpi + 'v1/Shop/EditShopVenue ';
  494. return getApiBasic(url, postdata);
  495. }
  496. // 修改商家区域状态
  497. export function ShopVenueStatusEdit(postdata) {
  498. let url = headbpi + 'v1/Shop/ShopVenueStatusEdit ';
  499. return getApiBasic(url, postdata);
  500. }
  501. // 查询商家区域设备
  502. export function QueryVenueEquip(postdata) {
  503. let url = headbpi + 'v1/Shop/QueryVenueEquip ';
  504. return getApiBasic(url, postdata);
  505. }
  506. // 修改场馆设备状态
  507. export function ShopVenueEquipEditStatus(postdata) {
  508. let url = headbpi + 'v1/Shop/ShopVenueEquipEditStatus ';
  509. return getApiBasic(url, postdata);
  510. }
  511. // 添加场馆设备
  512. export function AddShopVenueEquip(postdata) {
  513. let url = headbpi + 'v1/Shop/AddShopVenueEquip ';
  514. return getApiBasic(url, postdata);
  515. }
  516. // 修改场馆设备
  517. export function EditShopVenueEquip(postdata) {
  518. let url = headbpi + 'v1/Shop/EditShopVenueEquip ';
  519. return getApiBasic(url, postdata);
  520. }
  521. // 11/20 新增
  522. // 待下课课程列表
  523. export function ClassDetailQuery(postdata) {
  524. let url = headapi + 'v1/SchoolTimeTable/ClassDetailQuery ';
  525. return getApiBasic(url, postdata);
  526. }
  527. // 上课准备
  528. export function ClassStartPrepare(postdata) {
  529. let url = headapi + 'v1/SchoolTimeTable/ClassStartPrepare ';
  530. return getApiBasic(url, postdata);
  531. }
  532. // HrSensors
  533. // 添加商家公共心率设备
  534. export function AddHrSensors(postdata) {
  535. let url = headapi + 'v1/HrSensors/AddHrSensors ';
  536. return getApiBasic(url, postdata);
  537. }
  538. //
  539. // 心率带绑定用户
  540. export function BindHrSensorsToUser(postdata) {
  541. let url = headapi + 'v1/HrSensors/BindHrSensorsToUser ';
  542. return getApiBasic(url, postdata);
  543. }
  544. // 修改商家公共心率设备信息
  545. export function EditHrSensors(postdata) {
  546. let url = headapi + 'v1/HrSensors/EditHrSensors ';
  547. return getApiBasic(url, postdata);
  548. }
  549. //
  550. // 修改商家公共心率设备状态
  551. export function HrSensorsStatusEdit(postdata) {
  552. let url = headapi + 'v1/HrSensors/HrSensorsStatusEdit ';
  553. return getApiBasic(url, postdata);
  554. }
  555. // 查询商家公共心率设备
  556. export function QueryHrSensors(postdata) {
  557. let url = headapi + 'v1/HrSensors/QueryHrSensors ';
  558. return getApiBasic(url, postdata);
  559. }
  560. // 查询未绑定的心率带--下拉框用
  561. export function SelectHrSensors(postdata) {
  562. let url = headapi + 'v1/HrSensors/SelectHrSensors ';
  563. return getApiBasic(url, postdata);
  564. }
  565. // 心率带解绑用户
  566. export function UnBindHrSensorsToUser(postdata) {
  567. let url = headapi + 'v1/HrSensors/UnBindHrSensorsToUser ';
  568. return getApiBasic(url, postdata);
  569. }
  570. // 上课未预约会员绑定心率带后再确认
  571. export function ClassDetailAndSnAdd(postdata) {
  572. let url = headapi + 'v1/SchoolTimeTable/ClassDetailAndSnAdd ';
  573. return getApiBasic(url, postdata);
  574. }
  575. export function ClassStartConfirm(postdata) {
  576. let url = headapi + 'v1/SchoolTimeTable/ClassStartConfirm ';
  577. return getApiBasic(url, postdata);
  578. }
  579. //关闭课程
  580. export function ClassGiveUpConfirm(postdata) {
  581. let url = headapi + 'v1/SchoolTimeTable/ClassGiveUpConfirm ';
  582. return getApiBasic(url, postdata);
  583. }
  584. // 修改心率系统区域和课程类型
  585. export function DispPlanInfoEdit(postdata) {
  586. let url = headapi + 'v1/SchoolTimeTable/DispPlanInfoEdit ';
  587. return getApiBasic(url, postdata);
  588. }
  589. // 查询心率带绑定历史记录
  590. export function HrSensorsBindHistory(postdata) {
  591. let url = headapi + 'v1/HrSensors/HrSensorsBindHistory ';
  592. return getApiBasic(url, postdata);
  593. }
  594. // 课堂记录(下课后)详情
  595. export function FinshedDispPlanQuery(postdata) {
  596. let url = headapi + 'v1/SchoolTimeTable/FinshedDispPlanQuery ';
  597. return getApiBasic(url, postdata);
  598. }
  599. // 11-24 私有心率设备
  600. // 课堂记录(下课后)详情
  601. export function AddPvtHrSensors(postdata) {
  602. let url = headapi + 'v1/HrSensors/AddPvtHrSensors ';
  603. return getApiBasic(url, postdata);
  604. }
  605. // 查询商家会员私有心率设备
  606. export function QueryPvtHrSensors(postdata) {
  607. let url = headapi + 'v1/HrSensors/QueryPvtHrSensors ';
  608. return getApiBasic(url, postdata);
  609. }
  610. // 12/2 关联手机号
  611. // 会员关联手机添加
  612. export function VipUserAssociatedPhoneAdd(postdata) {
  613. let url = headapi + 'v1/User/VipUserAssociatedPhoneAdd ';
  614. return getApiBasic(url, postdata);
  615. }
  616. // 会员关联手机修改
  617. export function VipUserAssociatedPhoneEdit(postdata) {
  618. let url = headapi + 'v1/User/VipUserAssociatedPhoneEdit ';
  619. return getApiBasic(url, postdata);
  620. }
  621. // 会员关联手机号简单查询
  622. export function VipUserAssociatedPhoneSimpleQuery(postdata) {
  623. let url = headapi + 'v1/User/VipUserAssociatedPhoneSimpleQuery ';
  624. return getApiBasic(url, postdata);
  625. }
  626. // 会员关联手机状态修改
  627. export function VipUserAssociatedPhoneStatusEdit(postdata) {
  628. let url = headapi + 'v1/User/VipUserAssociatedPhoneStatusEdit ';
  629. return getApiBasic(url, postdata);
  630. }
  631. // 12/3 跨店管理
  632. // 跨店会员查询
  633. export function AcrossVipUserQuery(postdata) {
  634. let url = headapi + 'v1/User/AcrossVipUserQuery ';
  635. return getApiBasic(url, postdata);
  636. }
  637. // 跨店会员删除
  638. export function AcrossVipUserDel(postdata) {
  639. let url = headapi + 'v1/User/AcrossVipUserDel ';
  640. return getApiBasic(url, postdata);
  641. }
  642. // 跨店会员添加
  643. export function AcrossVipUserAdd(postdata) {
  644. let url = headapi + 'v1/User/AcrossVipUserAdd ';
  645. return getApiBasic(url, postdata);
  646. }
  647. // 12/4 会员基本信息foradmin
  648. // 跨店会员添加
  649. export function VipUserSimpleQueryByAdmin(postdata) {
  650. let url = headapi + 'v1/User/VipUserSimpleQueryByAdmin ';
  651. return getApiBasic(url, postdata);
  652. }
  653. // 商家分组添加
  654. export function ShopGroupQuery(postdata) {
  655. let url = headapi + 'v1/Shop/ShopGroupQuery ';
  656. return getApiBasic(url, postdata);
  657. }
  658. //
  659. // 剩余课时统计
  660. export function ClassHourStatistics(postdata) {
  661. let url = headapi + 'v1/SchoolTimeTable/ClassHourStatistics ';
  662. return getApiBasic(url, postdata);
  663. }
  664. // 根据手机号码判断用户信息
  665. export function VipUserQueryByPhone(postdata) {
  666. let url = headapi + 'v1/User/VipUserQueryByPhone ';
  667. return getApiBasic(url, postdata);
  668. }
  669. // 关联手机号删除
  670. export function VipUserAssociatedPhoneDel(postdata) {
  671. let url = headapi + 'v1/User/VipUserAssociatedPhoneDel ';
  672. return getApiBasic(url, postdata);
  673. }
  674. export function ClassSimpleQuery(postdata) {
  675. let url = headapi + 'v1/Class/ClassSimpleQuery ';
  676. return getApiBasic(url, postdata);
  677. }
  678. // 2020/12/21
  679. //
  680. // 临时会员添加
  681. export function TmpUserAdd(postdata) {
  682. let url = headapi + 'v1/User/TmpUserAdd ';
  683. return getApiBasic(url, postdata);
  684. }
  685. // 临时会员删除
  686. export function TmpUserDel(postdata) {
  687. let url = headapi + 'v1/User/TmpUserDel ';
  688. return getApiBasic(url, postdata);
  689. }
  690. // 临时会员修改
  691. export function TmpUserEdit(postdata) {
  692. let url = headapi + 'v1/User/TmpUserEdit ';
  693. return getApiBasic(url, postdata);
  694. }
  695. // 临时会员查询
  696. export function TmpUserQuery(postdata) {
  697. let url = headapi + 'v1/User/TmpUserQuery ';
  698. return getApiBasic(url, postdata);
  699. }
  700. // 2020/12/22
  701. // 课堂中临时会员添加
  702. export function ClassOverTmpDetailAdd(postdata) {
  703. let url = headapi + 'v1/SchoolTimeTable/ClassOverTmpDetailAdd ';
  704. return getApiBasic(url, postdata);
  705. }
  706. // 课程中临时会员增加后又删除
  707. export function ClassTmpUserOverDetailDel(postdata) {
  708. let url = headapi + 'v1/SchoolTimeTable/ClassTmpUserOverDetailDel ';
  709. return getApiBasic(url, postdata);
  710. }
  711. // 心率带绑定临时会员
  712. export function BindHrSensorsToTempUser(postdata) {
  713. let url = headapi + 'v1/HrSensors/BindHrSensorsToTempUser ';
  714. return getApiBasic(url, postdata);
  715. }
  716. // 获取心率带电量
  717. export function GetHrSensorsPowerPercent(postdata) {
  718. let url = headapi + 'v1/HrSensors/GetHrSensorsPowerPercent ';
  719. return getApiBasic(url, postdata);
  720. }
  721. // 2021/01/04
  722. // 跨店会员用户基本信息查询(排除本店会员)
  723. export function AcrossUserSimpleQuery(postdata) {
  724. let url = headapi + 'v1/User/AcrossUserSimpleQuery ';
  725. return getApiBasic(url, postdata);
  726. }
  727. // 2021/02/02
  728. // 查询演示设备
  729. export function QueryDemoVenueEquipByLoallout(postdata) {
  730. let url = headbpi + 'v1/Shop/QueryDemoVenueEquipByLoallout';
  731. return getApiBasic(url, postdata);
  732. }
  733. // 小飞龙总管理员查询商家列表
  734. export function QueryShopListByLoallout(postdata) {
  735. let url = headbpi + 'v1/Shop/QueryShopListByLoallout ';
  736. return getApiBasic(url, postdata);
  737. }
  738. // 演示版上课接口
  739. export function getHello(postdata) {
  740. let url = headcpi + 'UserListInfo';
  741. return getApiBasic(url, postdata);
  742. }
  743. // 卡路里场馆统计(分月度、周统计,TV左上角统计)
  744. export function CalorieStatsQuery(postdata) {
  745. let url = headcpi + 'CalorieStatsQuery';
  746. return getApiBasic(url, postdata);
  747. }