api.js 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. // 以下是业务服务器API地址
  2. // var WxApiRoot = 'http://127.0.0.1:19110/jzworkerapiservice/wxservant/';
  3. // uat环境使用
  4. var WxApiRoot = 'https://uat.servant.lifejingzhi.com/jzworkerapiservice/wxservant/';
  5. // 云平台上线时使用
  6. // var WxApiRoot = 'https://servant.lifejingzhi.com/jzworkerapiservice/wxservant/';
  7. const app = getApp();
  8. module.exports = {
  9. WxApiRoot,
  10. AuthRegister: WxApiRoot + 'auth/login', //账号注册
  11. AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin', //微信登录--并注册
  12. AuthLoginUat: WxApiRoot + 'auth/getUatUser', //登录体验版帐号
  13. AuthLogout: WxApiRoot + 'auth/logout', //账号登出
  14. // AuthRegister: WxApiRoot + 'auth/register', //账号注册
  15. AuthBindPhone: WxApiRoot + 'auth/bindPhone', //绑定微信手机号
  16. AuthCaptcha: WxApiRoot + 'auth/regCaptcha', //短信验证码
  17. AuthLoginByCaptcha: WxApiRoot + 'auth/loginByCaptcha', //验证码登录
  18. AuthGetShop: WxApiRoot + 'auth/shop', //获取当前位置
  19. GoodsList: WxApiRoot + "goods/list", //商品列表
  20. GoodsShare: WxApiRoot + "goods/qrcode", //生成分享二维码
  21. BookDetailList: WxApiRoot + "book/list", //我的工单列表
  22. BookDetailProvice: WxApiRoot + "book/provide", //已提供服务 中间态
  23. BookHmList: WxApiRoot + 'book/bookList', //所有盒马服务工单列表
  24. BookHmTradeInfo: WxApiRoot + 'book/bookTradeInfo', //盒马服务单明细
  25. ServantOpenBill: WxApiRoot + "bill/list", //阿姨开单记录
  26. PreCategory: WxApiRoot + "pre/category", //品类预检
  27. PreSave: WxApiRoot + "pre/save", //品类预检保存
  28. PreList: WxApiRoot + "pre/list", //品类预检结果
  29. PreUpdate: WxApiRoot + "pre/update", //品类预检编辑
  30. StorageUpload: function () {
  31. let durs = WxApiRoot + 'storage/addFile'; //图片上传,
  32. let isUat = wx.getStorageSync('isUat');
  33. if (!isUat) {
  34. durs = durs.replace('uat.', '')
  35. }
  36. return durs;
  37. },
  38. PreDetail: WxApiRoot + "pre/detail", //品类预检编辑
  39. AuthCaptchaPre: WxApiRoot + 'pre/regCaptchaPre', //短信验证码 品类预检单
  40. diyPreSave: WxApiRoot + "pre/createPreView", //自定义品类预检保存POST /servant/pre/createPreView
  41. ProblemProblems: WxApiRoot + 'problem/problems', //获取所有问题
  42. ProblemInfo: WxApiRoot + 'problem/info', //获取问题
  43. ProblemAdd: WxApiRoot + 'problem/create', //创建工单
  44. ProblemList: WxApiRoot + 'problem/list', //所有工单列表
  45. ProblemUrge: WxApiRoot + 'problem/urge', //催办
  46. ProblemAction: WxApiRoot + 'problem/action', //工单处理明细
  47. ProblemAddRemark: WxApiRoot + 'problem/addRemark', //追加处理内容
  48. ProblemCancel: WxApiRoot + 'problem/cancel', //取消报备
  49. ProblemReported: WxApiRoot + 'problem/reported', //是否已经报备过
  50. ProblemComment: WxApiRoot + 'problem/comment', //评价工单
  51. Board: WxApiRoot + 'board/board', //看板汇总信息
  52. BoardSalary: WxApiRoot + 'board/salary', //看板工资信息
  53. SalaryDetail: WxApiRoot + 'board/salaryDetail', //总收入的每月明细
  54. ParterCashout: WxApiRoot + 'parter/cashout', //提现申请
  55. ParterAuthCheck: WxApiRoot + 'parter/check', //是否实名
  56. ParterAuth: WxApiRoot + 'parter/auth', //是否实名
  57. ParterCashoutList: WxApiRoot + 'parter/cashoutList', //是否实名
  58. HmApiArrived: WxApiRoot + 'book/arrivedByMerchant', //我已上门
  59. HmApiConfirm: WxApiRoot + 'book/confirmBookTrade', //服务已完成
  60. HmPyamentOrderDetail: WxApiRoot + 'hmPayment/detail', //盒马订单明细
  61. HmPyamentOrderAddMemo: WxApiRoot + 'hmPayment/addMemo', //盒马订单--添加备注
  62. NewYearReport: WxApiRoot + 'report', //返乡情况汇报
  63. NewYearReported: WxApiRoot + 'reported', //是否已提交过
  64. // NucleicOCR:WxApiRoot+'nucleic/ocrImage',//截图识别
  65. NucleicOCR: function () {
  66. let durs = WxApiRoot + 'ocrImage';
  67. let isUat = wx.getStorageSync('isUat');
  68. if (!isUat) {
  69. durs = durs.replace('uat.', '')
  70. }
  71. return durs;
  72. },
  73. // NucleicList:WxApiRoot+'nucleic/list',//截图列表
  74. NucleicList: WxApiRoot + 'getCalendar', //截图列表
  75. TicketList: WxApiRoot + 'ticket/list', //crm工单列表
  76. TicketAction: WxApiRoot + 'ticket/action', //工单处理明细
  77. TicketCompleted: WxApiRoot + 'ticket/completed', //工单完结
  78. TicketHandle: WxApiRoot + 'ticket/handle', //工单处理
  79. // ServantPerfectOCR:WxApiRoot+ 'perfect/ocr', //临时项目 服务者入职前的信息完善:身份证识别
  80. ServantPerfectOCR: function () {
  81. let durs = WxApiRoot + 'ocrIdCard'; //图片上传,
  82. let isUat = wx.getStorageSync('isUat');
  83. if (!isUat) {
  84. durs = durs.replace('uat.', '')
  85. }
  86. return durs;
  87. },
  88. // ServantPerfect:WxApiRoot+ 'perfect/perfect', //完善信息保存
  89. ServantPerfect: WxApiRoot + 'perfectWorkerInfo',
  90. ServantValid: WxApiRoot + 'getWorkerInfoByPhone', //信息验证
  91. myRebuyInfo: WxApiRoot + 'myRebuyInfo', //我的复购看板
  92. monthCalender: WxApiRoot + 'monthCalender', //每月日历
  93. dayCalender: WxApiRoot + 'dayCalender', //每月日历
  94. computerWorkerSchedule: WxApiRoot + 'computerWorkerSchedule', //档期预估
  95. crmTicket: WxApiRoot + 'crmTicket', //问题工单
  96. arrivedByMerchant: WxApiRoot + 'arrivedByMerchant', //我已上门
  97. confirmBookTrade: WxApiRoot + 'confirmBookTrade', //服务完成
  98. getNotice: WxApiRoot + 'notice/getNotice',
  99. readNotice: WxApiRoot + 'notice/readNotice',
  100. homeInfo: WxApiRoot + 'board/home',
  101. inputSelf: WxApiRoot + 'inputSelf',
  102. getMsgCenter: WxApiRoot + 'notice/getMsgCenter',
  103. getTypelist: WxApiRoot + 'notice/getTypelist',
  104. getDetail: WxApiRoot + 'notice/getDetail',
  105. commitFeedback: WxApiRoot + 'notice/commitFeedback',
  106. commitFeedback: WxApiRoot + 'notice/commitFeedback',
  107. getNewFarmerStatus: WxApiRoot + 'getNewFarmerStatus',
  108. getNewFarmerInfo: WxApiRoot + 'getNewFarmerInfo',
  109. uploadNewFarmer: WxApiRoot + 'uploadNewFarmer',
  110. getCategoryDict: WxApiRoot + 'course/getCategoryDict',
  111. getStudyDuration: WxApiRoot + 'course/getStudyDuration',
  112. getMyCourse: WxApiRoot + 'course/getMyCourse',
  113. getCourseInfo: WxApiRoot + 'course/getCourseInfo',
  114. startStudy: WxApiRoot + 'course/startStudy', //开始学习
  115. addStudyLog: WxApiRoot + 'course/addStudyLog',
  116. complateCourse: WxApiRoot + 'course/complateCourse',
  117. workerCourseScore: WxApiRoot + 'course/workerCourseScore',
  118. discipleFeedback: WxApiRoot + 'discipleFeedback', //徒弟跟单反馈
  119. masterFeedback: WxApiRoot + 'masterFeedback', //师傅打分
  120. getWorkerTips: WxApiRoot + 'course/getWorkerTips',
  121. getStateInfo:WxApiRoot+ 'perfectInfo/getStateInfo',//完善信息
  122. getFuwuhezuoContract:WxApiRoot+ 'perfectInfo/getFuwuhezuoContract',
  123. singFuwuhezuoxieyi:WxApiRoot+ 'workerContract/singFuwuhezuoxieyi',//签约
  124. selectContractSignUrl:WxApiRoot+ 'contractprocedure/selectContractSignUrl',//签约地址
  125. getHealthCert:WxApiRoot+ 'perfectInfo/getHealthCert',
  126. addWorkerCertificate:WxApiRoot+ 'perfectInfo/addWorkerCertificate',
  127. getFaceCheckInfo:WxApiRoot+ 'perfectInfo/getFaceCheckInfo',
  128. workerIndividualFace:WxApiRoot+ 'perfectInfo/workerIndividualFace',
  129. getFaceResult:WxApiRoot+ 'perfectInfo/getFaceResult',
  130. findInvestigation:WxApiRoot+ 'perfectInfo/findInvestigation',
  131. singGerenxinxisouquan:WxApiRoot+ 'workerContract/singGerenxinxisouquan',interview:WxApiRoot+ 'interview',
  132. acceptOrRefuseInterview:WxApiRoot+ 'acceptOrRefuseInterview',
  133. faceAndInvestigation:WxApiRoot+ 'perfectInfo/faceAndInvestigation',
  134. CPQrCode: WxApiRoot + 'cp/qrCode',
  135. createMakeUpQRCode:WxApiRoot+ 'createMakeUpQRCode',
  136. transferIntroductionQrCode:WxApiRoot+ 'transferIntroductionQrCode',//转介绍二维码
  137. transferIntroduction:WxApiRoot+ 'transferIntroduction',//转介绍录入
  138. getTransferIntroductionInfo:WxApiRoot+ 'getTransferIntroductionInfo',//
  139. recordZzyShare:WxApiRoot+ 'board/recordZzyShare',//
  140. getBaomiContract:WxApiRoot+ 'perfectInfo/getBaomiContract',
  141. signBaoMiAndResign:WxApiRoot+ 'workerContract/signBaoMiAndResign',//签约
  142. workerServiceOrderList:WxApiRoot+ 'workerServiceOrderList',//工单列表
  143. getWokerNearTeam:WxApiRoot+ 'team/getWokerNearTeam',//排班
  144. workerServiceMonthOrderCount:WxApiRoot+ 'workerServiceMonthOrderCount',
  145. getSchTeamList:WxApiRoot+ 'team/getSchTeamList',
  146. applyTeam:WxApiRoot+ 'team/applyTeam',
  147. workerServiceOrderDetail: WxApiRoot + 'workerServiceOrderDetail', //工单详情
  148. HmApiConfirm: WxApiRoot + 'book/confirmBookTrade', //服务已完成
  149. arrivedByMerchantNew: WxApiRoot + 'arrivedByMerchantNew', //我已上门
  150. hasReadServiceRemark:WxApiRoot + 'hasReadServiceRemark',
  151. serviceOrderAcceptanceCheck:WxApiRoot + 'serviceOrderAcceptanceCheck',
  152. smsEvaluate:WxApiRoot + 'smsEvaluate',
  153. finishServiceOrder:WxApiRoot + 'finishServiceOrder'
  154. };