getApiRes.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807
  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 VipUserListQuery(postdata) {
  452. let url = headapi + 'v1/User/VipUserListQuery';
  453. return getApiBasic(url, postdata);
  454. }
  455. // 会员用户基本信息查询
  456. export function VipUserSimpleQuery(postdata) {
  457. let url = headapi + 'v1/User/VipUserSimpleQuery ';
  458. return getApiBasic(url, postdata);
  459. }
  460. // 会员用户状态修改
  461. export function VipUserStatusEdit(postdata) {
  462. let url = headapi + 'v1/User/VipUserStatusEdit ';
  463. return getApiBasic(url, postdata);
  464. }
  465. // 通过Name查询Take用户信息
  466. export function QueryTakeCustomerByName(postdata) {
  467. let url = headapi + 'v1/Take/QueryTakeCustomerByName ';
  468. return getApiBasic(url, postdata);
  469. }
  470. //
  471. // 绑定Take用户
  472. export function BindTakeCustomer(postdata) {
  473. let url = headapi + 'v1/Take/BindTakeCustomer ';
  474. return getApiBasic(url, postdata);
  475. }
  476. // 查询商家区域
  477. export function QueryShopVenue(postdata) {
  478. let url = headbpi + 'v1/Shop/QueryShopVenue ';
  479. return getApiBasic(url, postdata);
  480. }
  481. // 添加商家区域
  482. export function AddShopVenue(postdata) {
  483. let url = headbpi + 'v1/Shop/AddShopVenue ';
  484. return getApiBasic(url, postdata);
  485. }
  486. // 修改商家区域
  487. export function EditShopVenue(postdata) {
  488. let url = headbpi + 'v1/Shop/EditShopVenue ';
  489. return getApiBasic(url, postdata);
  490. }
  491. // 修改商家区域状态
  492. export function ShopVenueStatusEdit(postdata) {
  493. let url = headbpi + 'v1/Shop/ShopVenueStatusEdit ';
  494. return getApiBasic(url, postdata);
  495. }
  496. // 查询商家区域设备
  497. export function QueryVenueEquip(postdata) {
  498. let url = headbpi + 'v1/Shop/QueryVenueEquip ';
  499. return getApiBasic(url, postdata);
  500. }
  501. // 修改场馆设备状态
  502. export function ShopVenueEquipEditStatus(postdata) {
  503. let url = headbpi + 'v1/Shop/ShopVenueEquipEditStatus ';
  504. return getApiBasic(url, postdata);
  505. }
  506. // 添加场馆设备
  507. export function AddShopVenueEquip(postdata) {
  508. let url = headbpi + 'v1/Shop/AddShopVenueEquip ';
  509. return getApiBasic(url, postdata);
  510. }
  511. // 修改场馆设备
  512. export function EditShopVenueEquip(postdata) {
  513. let url = headbpi + 'v1/Shop/EditShopVenueEquip ';
  514. return getApiBasic(url, postdata);
  515. }
  516. // 11/20 新增
  517. // 待下课课程列表
  518. export function ClassDetailQuery(postdata) {
  519. let url = headapi + 'v1/SchoolTimeTable/ClassDetailQuery ';
  520. return getApiBasic(url, postdata);
  521. }
  522. // 上课准备
  523. export function ClassStartPrepare(postdata) {
  524. let url = headapi + 'v1/SchoolTimeTable/ClassStartPrepare ';
  525. return getApiBasic(url, postdata);
  526. }
  527. // HrSensors
  528. // 添加商家公共心率设备
  529. export function AddHrSensors(postdata) {
  530. let url = headapi + 'v1/HrSensors/AddHrSensors ';
  531. return getApiBasic(url, postdata);
  532. }
  533. //
  534. // 心率带绑定用户
  535. export function BindHrSensorsToUser(postdata) {
  536. let url = headapi + 'v1/HrSensors/BindHrSensorsToUser ';
  537. return getApiBasic(url, postdata);
  538. }
  539. // 修改商家公共心率设备信息
  540. export function EditHrSensors(postdata) {
  541. let url = headapi + 'v1/HrSensors/EditHrSensors ';
  542. return getApiBasic(url, postdata);
  543. }
  544. //
  545. // 修改商家公共心率设备状态
  546. export function HrSensorsStatusEdit(postdata) {
  547. let url = headapi + 'v1/HrSensors/HrSensorsStatusEdit ';
  548. return getApiBasic(url, postdata);
  549. }
  550. // 查询商家公共心率设备
  551. export function QueryHrSensors(postdata) {
  552. let url = headapi + 'v1/HrSensors/QueryHrSensors ';
  553. return getApiBasic(url, postdata);
  554. }
  555. // 查询未绑定的心率带--下拉框用
  556. export function SelectHrSensors(postdata) {
  557. let url = headapi + 'v1/HrSensors/SelectHrSensors ';
  558. return getApiBasic(url, postdata);
  559. }
  560. // 心率带解绑用户
  561. export function UnBindHrSensorsToUser(postdata) {
  562. let url = headapi + 'v1/HrSensors/UnBindHrSensorsToUser ';
  563. return getApiBasic(url, postdata);
  564. }
  565. // 上课未预约会员绑定心率带后再确认
  566. export function ClassDetailAndSnAdd(postdata) {
  567. let url = headapi + 'v1/SchoolTimeTable/ClassDetailAndSnAdd ';
  568. return getApiBasic(url, postdata);
  569. }
  570. export function ClassStartConfirm(postdata) {
  571. let url = headapi + 'v1/SchoolTimeTable/ClassStartConfirm ';
  572. return getApiBasic(url, postdata);
  573. }
  574. // 修改心率系统区域和课程类型
  575. export function DispPlanInfoEdit(postdata) {
  576. let url = headapi + 'v1/SchoolTimeTable/DispPlanInfoEdit ';
  577. return getApiBasic(url, postdata);
  578. }
  579. // 查询心率带绑定历史记录
  580. export function HrSensorsBindHistory(postdata) {
  581. let url = headapi + 'v1/HrSensors/HrSensorsBindHistory ';
  582. return getApiBasic(url, postdata);
  583. }
  584. // 课堂记录(下课后)详情
  585. export function FinshedDispPlanQuery(postdata) {
  586. let url = headapi + 'v1/SchoolTimeTable/FinshedDispPlanQuery ';
  587. return getApiBasic(url, postdata);
  588. }
  589. // 11-24 私有心率设备
  590. // 课堂记录(下课后)详情
  591. export function AddPvtHrSensors(postdata) {
  592. let url = headapi + 'v1/HrSensors/AddPvtHrSensors ';
  593. return getApiBasic(url, postdata);
  594. }
  595. // 查询商家会员私有心率设备
  596. export function QueryPvtHrSensors(postdata) {
  597. let url = headapi + 'v1/HrSensors/QueryPvtHrSensors ';
  598. return getApiBasic(url, postdata);
  599. }
  600. // 12/2 关联手机号
  601. // 会员关联手机添加
  602. export function VipUserAssociatedPhoneAdd(postdata) {
  603. let url = headapi + 'v1/User/VipUserAssociatedPhoneAdd ';
  604. return getApiBasic(url, postdata);
  605. }
  606. // 会员关联手机修改
  607. export function VipUserAssociatedPhoneEdit(postdata) {
  608. let url = headapi + 'v1/User/VipUserAssociatedPhoneEdit ';
  609. return getApiBasic(url, postdata);
  610. }
  611. // 会员关联手机号简单查询
  612. export function VipUserAssociatedPhoneSimpleQuery(postdata) {
  613. let url = headapi + 'v1/User/VipUserAssociatedPhoneSimpleQuery ';
  614. return getApiBasic(url, postdata);
  615. }
  616. // 会员关联手机状态修改
  617. export function VipUserAssociatedPhoneStatusEdit(postdata) {
  618. let url = headapi + 'v1/User/VipUserAssociatedPhoneStatusEdit ';
  619. return getApiBasic(url, postdata);
  620. }
  621. // 12/3 跨店管理
  622. // 跨店会员查询
  623. export function AcrossVipUserQuery(postdata) {
  624. let url = headapi + 'v1/User/AcrossVipUserQuery ';
  625. return getApiBasic(url, postdata);
  626. }
  627. // 跨店会员删除
  628. export function AcrossVipUserDel(postdata) {
  629. let url = headapi + 'v1/User/AcrossVipUserDel ';
  630. return getApiBasic(url, postdata);
  631. }
  632. // 跨店会员添加
  633. export function AcrossVipUserAdd(postdata) {
  634. let url = headapi + 'v1/User/AcrossVipUserAdd ';
  635. return getApiBasic(url, postdata);
  636. }
  637. // 12/4 会员基本信息foradmin
  638. // 跨店会员添加
  639. export function VipUserSimpleQueryByAdmin(postdata) {
  640. let url = headapi + 'v1/User/VipUserSimpleQueryByAdmin ';
  641. return getApiBasic(url, postdata);
  642. }
  643. // 商家分组添加
  644. export function ShopGroupQuery(postdata) {
  645. let url = headapi + 'v1/Shop/ShopGroupQuery ';
  646. return getApiBasic(url, postdata);
  647. }
  648. //
  649. // 剩余课时统计
  650. export function ClassHourStatistics(postdata) {
  651. let url = headapi + 'v1/SchoolTimeTable/ClassHourStatistics ';
  652. return getApiBasic(url, postdata);
  653. }
  654. // 根据手机号码判断用户信息
  655. export function VipUserQueryByPhone(postdata) {
  656. let url = headapi + 'v1/User/VipUserQueryByPhone ';
  657. return getApiBasic(url, postdata);
  658. }
  659. // 关联手机号删除
  660. export function VipUserAssociatedPhoneDel(postdata) {
  661. let url = headapi + 'v1/User/VipUserAssociatedPhoneDel ';
  662. return getApiBasic(url, postdata);
  663. }
  664. export function ClassSimpleQuery(postdata) {
  665. let url = headapi + 'v1/Class/ClassSimpleQuery ';
  666. return getApiBasic(url, postdata);
  667. }