api.js 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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. zzyDetail:WxApiRoot+'zzyDetail',//招招盈人员明细
  59. zzyPoster:WxApiRoot+'zzyPoster',//招招盈海报
  60. transferIntroductionQrCode:WxApiRoot+'transferIntroductionQrCode',//招招盈二维码短链分享
  61. HmApiArrived: WxApiRoot + 'book/arrivedByMerchant', //我已上门
  62. HmApiConfirm: WxApiRoot + 'book/confirmBookTrade', //服务已完成
  63. HmPyamentOrderDetail: WxApiRoot + 'hmPayment/detail', //盒马订单明细
  64. HmPyamentOrderAddMemo: WxApiRoot + 'hmPayment/addMemo', //盒马订单--添加备注
  65. NewYearReport: WxApiRoot + 'report', //返乡情况汇报
  66. NewYearReported: WxApiRoot + 'reported', //是否已提交过
  67. // NucleicOCR:WxApiRoot+'nucleic/ocrImage',//截图识别
  68. NucleicOCR: function () {
  69. let durs = WxApiRoot + 'ocrImage';
  70. let isUat = wx.getStorageSync('isUat');
  71. if (!isUat) {
  72. durs = durs.replace('uat.', '')
  73. }
  74. return durs;
  75. },
  76. // NucleicList:WxApiRoot+'nucleic/list',//截图列表
  77. NucleicList: WxApiRoot + 'getCalendar', //截图列表
  78. TicketList: WxApiRoot + 'ticket/list', //crm工单列表
  79. TicketAction: WxApiRoot + 'ticket/action', //工单处理明细
  80. TicketCompleted: WxApiRoot + 'ticket/completed', //工单完结
  81. TicketHandle: WxApiRoot + 'ticket/handle', //工单处理
  82. // ServantPerfectOCR:WxApiRoot+ 'perfect/ocr', //临时项目 服务者入职前的信息完善:身份证识别
  83. ServantPerfectOCR: function () {
  84. let durs = WxApiRoot + 'ocrIdCard'; //图片上传,
  85. let isUat = wx.getStorageSync('isUat');
  86. if (!isUat) {
  87. durs = durs.replace('uat.', '')
  88. }
  89. return durs;
  90. },
  91. // ServantPerfect:WxApiRoot+ 'perfect/perfect', //完善信息保存
  92. ServantPerfect: WxApiRoot + 'perfectWorkerInfo',
  93. ServantValid: WxApiRoot + 'getWorkerInfoByPhone', //信息验证
  94. myRebuyInfo: WxApiRoot + 'myRebuyInfo', //我的复购看板
  95. monthCalender: WxApiRoot + 'monthCalender', //每月日历
  96. dayCalender: WxApiRoot + 'dayCalender', //每月日历
  97. computerWorkerSchedule: WxApiRoot + 'computerWorkerSchedule', //档期预估
  98. crmTicket: WxApiRoot + 'crmTicket', //问题工单
  99. arrivedByMerchant: WxApiRoot + 'arrivedByMerchant', //我已上门
  100. confirmBookTrade: WxApiRoot + 'confirmBookTrade', //服务完成
  101. getNotice: WxApiRoot + 'notice/getNotice',
  102. readNotice: WxApiRoot + 'notice/readNotice',
  103. homeInfo: WxApiRoot + 'board/home',
  104. inputSelf: WxApiRoot + 'inputSelf',
  105. getMsgCenter: WxApiRoot + 'notice/getMsgCenter',
  106. getTypelist: WxApiRoot + 'notice/getTypelist',
  107. getDetail: WxApiRoot + 'notice/getDetail',
  108. commitFeedback: WxApiRoot + 'notice/commitFeedback',
  109. commitFeedback: WxApiRoot + 'notice/commitFeedback',
  110. getNewFarmerStatus: WxApiRoot + 'getNewFarmerStatus',
  111. getNewFarmerInfo: WxApiRoot + 'getNewFarmerInfo',
  112. uploadNewFarmer: WxApiRoot + 'uploadNewFarmer',
  113. getCategoryDict: WxApiRoot + 'course/getCategoryDict',
  114. getStudyDuration: WxApiRoot + 'course/getStudyDuration',
  115. getMyCourse: WxApiRoot + 'course/getMyCourse',
  116. getCourseInfo: WxApiRoot + 'course/getCourseInfo',
  117. startStudy: WxApiRoot + 'course/startStudy', //开始学习
  118. addStudyLog: WxApiRoot + 'course/addStudyLog',
  119. complateCourse: WxApiRoot + 'course/complateCourse',
  120. workerCourseScore: WxApiRoot + 'course/workerCourseScore',
  121. discipleFeedback: WxApiRoot + 'discipleFeedback', //徒弟跟单反馈
  122. masterFeedback: WxApiRoot + 'masterFeedback', //师傅打分
  123. getWorkerTips: WxApiRoot + 'course/getWorkerTips',
  124. getStateInfo:WxApiRoot+ 'perfectInfo/getStateInfo',//完善信息
  125. getFuwuhezuoContract:WxApiRoot+ 'perfectInfo/getFuwuhezuoContract',
  126. singFuwuhezuoxieyi:WxApiRoot+ 'workerContract/singFuwuhezuoxieyi',//签约
  127. selectContractSignUrl:WxApiRoot+ 'contractprocedure/selectContractSignUrl',//签约地址
  128. getHealthCert:WxApiRoot+ 'perfectInfo/getHealthCert',
  129. addWorkerCertificate:WxApiRoot+ 'perfectInfo/addWorkerCertificate',
  130. getFaceCheckInfo:WxApiRoot+ 'perfectInfo/getFaceCheckInfo',
  131. workerIndividualFace:WxApiRoot+ 'perfectInfo/workerIndividualFace',
  132. getFaceResult:WxApiRoot+ 'perfectInfo/getFaceResult',
  133. findInvestigation:WxApiRoot+ 'perfectInfo/findInvestigation',
  134. singGerenxinxisouquan:WxApiRoot+ 'workerContract/singGerenxinxisouquan',interview:WxApiRoot+ 'interview',
  135. acceptOrRefuseInterview:WxApiRoot+ 'acceptOrRefuseInterview',
  136. faceAndInvestigation:WxApiRoot+ 'perfectInfo/faceAndInvestigation',
  137. CPQrCode: WxApiRoot + 'cp/qrCode',
  138. createMakeUpQRCode:WxApiRoot+ 'createMakeUpQRCode',
  139. transferIntroductionQrCode:WxApiRoot+ 'transferIntroductionQrCode',//转介绍二维码
  140. transferIntroduction:WxApiRoot+ 'transferIntroduction',//转介绍录入
  141. getTransferIntroductionInfo:WxApiRoot+ 'getTransferIntroductionInfo',//
  142. recordZzyShare:WxApiRoot+ 'board/recordZzyShare',//
  143. getBaomiContract:WxApiRoot+ 'perfectInfo/getBaomiContract',
  144. signBaoMiAndResign:WxApiRoot+ 'workerContract/signBaoMiAndResign',//签约
  145. workerServiceOrderList:WxApiRoot+ 'workerServiceOrderList',//工单列表
  146. getWokerNearTeam:WxApiRoot+ 'team/getWokerNearTeam',//排班
  147. workerServiceMonthOrderCount:WxApiRoot+ 'workerServiceMonthOrderCount',
  148. getSchTeamList:WxApiRoot+ 'team/getSchTeamList',
  149. applyTeam:WxApiRoot+ 'team/applyTeam',
  150. workerServiceOrderDetail: WxApiRoot + 'workerServiceOrderDetail', //工单详情
  151. HmApiConfirm: WxApiRoot + 'book/confirmBookTrade', //服务已完成
  152. arrivedByMerchantNew: WxApiRoot + 'arrivedByMerchantNew', //我已上门
  153. hasReadServiceRemark:WxApiRoot + 'hasReadServiceRemark',
  154. serviceOrderAcceptanceCheck:WxApiRoot + 'serviceOrderAcceptanceCheck',
  155. smsEvaluate:WxApiRoot + 'smsEvaluate',
  156. finishServiceOrder:WxApiRoot + 'finishServiceOrder',
  157. getServantQr:WxApiRoot+'getRzQrUrl'
  158. };