// 以下是业务服务器API地址 // var WxApiRoot = 'http://127.0.0.1:19110/jzworkerapiservice/wxservant/'; // uat环境使用 var WxApiRoot = 'https://uat.servant.lifejingzhi.com/jzworkerapiservice/wxservant/'; // 云平台上线时使用 // var WxApiRoot = 'https://servant.lifejingzhi.com/jzworkerapiservice/wxservant/'; const app = getApp(); module.exports = { WxApiRoot, AuthRegister: WxApiRoot + 'auth/login', //账号注册 AuthLoginByWeixin: WxApiRoot + 'auth/login_by_weixin', //微信登录--并注册 AuthLoginUat: WxApiRoot + 'auth/getUatUser', //登录体验版帐号 AuthLogout: WxApiRoot + 'auth/logout', //账号登出 // AuthRegister: WxApiRoot + 'auth/register', //账号注册 AuthBindPhone: WxApiRoot + 'auth/bindPhone', //绑定微信手机号 AuthCaptcha: WxApiRoot + 'auth/regCaptcha', //短信验证码 AuthLoginByCaptcha: WxApiRoot + 'auth/loginByCaptcha', //验证码登录 AuthGetShop: WxApiRoot + 'auth/shop', //获取当前位置 GoodsList: WxApiRoot + "goods/list", //商品列表 GoodsShare: WxApiRoot + "goods/qrcode", //生成分享二维码 BookDetailList: WxApiRoot + "book/list", //我的工单列表 BookDetailProvice: WxApiRoot + "book/provide", //已提供服务 中间态 BookHmList: WxApiRoot + 'book/bookList', //所有盒马服务工单列表 BookHmTradeInfo: WxApiRoot + 'book/bookTradeInfo', //盒马服务单明细 ServantOpenBill: WxApiRoot + "bill/list", //阿姨开单记录 PreCategory: WxApiRoot + "pre/category", //品类预检 PreSave: WxApiRoot + "pre/save", //品类预检保存 PreList: WxApiRoot + "pre/list", //品类预检结果 PreUpdate: WxApiRoot + "pre/update", //品类预检编辑 StorageUpload: function () { let durs = WxApiRoot + 'storage/addFile'; //图片上传, let isUat = wx.getStorageSync('isUat'); if (!isUat) { durs = durs.replace('uat.', '') } return durs; }, PreDetail: WxApiRoot + "pre/detail", //品类预检编辑 AuthCaptchaPre: WxApiRoot + 'pre/regCaptchaPre', //短信验证码 品类预检单 diyPreSave: WxApiRoot + "pre/createPreView", //自定义品类预检保存POST /servant/pre/createPreView ProblemProblems: WxApiRoot + 'problem/problems', //获取所有问题 ProblemInfo: WxApiRoot + 'problem/info', //获取问题 ProblemAdd: WxApiRoot + 'problem/create', //创建工单 ProblemList: WxApiRoot + 'problem/list', //所有工单列表 ProblemUrge: WxApiRoot + 'problem/urge', //催办 ProblemAction: WxApiRoot + 'problem/action', //工单处理明细 ProblemAddRemark: WxApiRoot + 'problem/addRemark', //追加处理内容 ProblemCancel: WxApiRoot + 'problem/cancel', //取消报备 ProblemReported: WxApiRoot + 'problem/reported', //是否已经报备过 ProblemComment: WxApiRoot + 'problem/comment', //评价工单 Board: WxApiRoot + 'board/board', //看板汇总信息 BoardSalary: WxApiRoot + 'board/salary', //看板工资信息 SalaryDetail: WxApiRoot + 'board/salaryDetail', //总收入的每月明细 ParterCashout: WxApiRoot + 'parter/cashout', //提现申请 ParterAuthCheck: WxApiRoot + 'parter/check', //是否实名 ParterAuth: WxApiRoot + 'parter/auth', //是否实名 ParterCashoutList: WxApiRoot + 'parter/cashoutList', //是否实名 HmApiArrived: WxApiRoot + 'book/arrivedByMerchant', //我已上门 HmApiConfirm: WxApiRoot + 'book/confirmBookTrade', //服务已完成 HmPyamentOrderDetail: WxApiRoot + 'hmPayment/detail', //盒马订单明细 HmPyamentOrderAddMemo: WxApiRoot + 'hmPayment/addMemo', //盒马订单--添加备注 NewYearReport: WxApiRoot + 'report', //返乡情况汇报 NewYearReported: WxApiRoot + 'reported', //是否已提交过 // NucleicOCR:WxApiRoot+'nucleic/ocrImage',//截图识别 NucleicOCR: function () { let durs = WxApiRoot + 'ocrImage'; let isUat = wx.getStorageSync('isUat'); if (!isUat) { durs = durs.replace('uat.', '') } return durs; }, // NucleicList:WxApiRoot+'nucleic/list',//截图列表 NucleicList: WxApiRoot + 'getCalendar', //截图列表 TicketList: WxApiRoot + 'ticket/list', //crm工单列表 TicketAction: WxApiRoot + 'ticket/action', //工单处理明细 TicketCompleted: WxApiRoot + 'ticket/completed', //工单完结 TicketHandle: WxApiRoot + 'ticket/handle', //工单处理 // ServantPerfectOCR:WxApiRoot+ 'perfect/ocr', //临时项目 服务者入职前的信息完善:身份证识别 ServantPerfectOCR: function () { let durs = WxApiRoot + 'ocrIdCard'; //图片上传, let isUat = wx.getStorageSync('isUat'); if (!isUat) { durs = durs.replace('uat.', '') } return durs; }, // ServantPerfect:WxApiRoot+ 'perfect/perfect', //完善信息保存 ServantPerfect: WxApiRoot + 'perfectWorkerInfo', ServantValid: WxApiRoot + 'getWorkerInfoByPhone', //信息验证 myRebuyInfo: WxApiRoot + 'myRebuyInfo', //我的复购看板 monthCalender: WxApiRoot + 'monthCalender', //每月日历 dayCalender: WxApiRoot + 'dayCalender', //每月日历 computerWorkerSchedule: WxApiRoot + 'computerWorkerSchedule', //档期预估 crmTicket: WxApiRoot + 'crmTicket', //问题工单 arrivedByMerchant: WxApiRoot + 'arrivedByMerchant', //我已上门 confirmBookTrade: WxApiRoot + 'confirmBookTrade', //服务完成 getNotice: WxApiRoot + 'notice/getNotice', readNotice: WxApiRoot + 'notice/readNotice', homeInfo: WxApiRoot + 'board/home', inputSelf: WxApiRoot + 'inputSelf', getMsgCenter: WxApiRoot + 'notice/getMsgCenter', getTypelist: WxApiRoot + 'notice/getTypelist', getDetail: WxApiRoot + 'notice/getDetail', commitFeedback: WxApiRoot + 'notice/commitFeedback', commitFeedback: WxApiRoot + 'notice/commitFeedback', getNewFarmerStatus: WxApiRoot + 'getNewFarmerStatus', getNewFarmerInfo: WxApiRoot + 'getNewFarmerInfo', uploadNewFarmer: WxApiRoot + 'uploadNewFarmer', getCategoryDict: WxApiRoot + 'course/getCategoryDict', getStudyDuration: WxApiRoot + 'course/getStudyDuration', getMyCourse: WxApiRoot + 'course/getMyCourse', getCourseInfo: WxApiRoot + 'course/getCourseInfo', startStudy: WxApiRoot + 'course/startStudy', //开始学习 addStudyLog: WxApiRoot + 'course/addStudyLog', complateCourse: WxApiRoot + 'course/complateCourse', workerCourseScore: WxApiRoot + 'course/workerCourseScore', discipleFeedback: WxApiRoot + 'discipleFeedback', //徒弟跟单反馈 masterFeedback: WxApiRoot + 'masterFeedback', //师傅打分 getWorkerTips: WxApiRoot + 'course/getWorkerTips', getStateInfo:WxApiRoot+ 'perfectInfo/getStateInfo',//完善信息 getFuwuhezuoContract:WxApiRoot+ 'perfectInfo/getFuwuhezuoContract', singFuwuhezuoxieyi:WxApiRoot+ 'workerContract/singFuwuhezuoxieyi',//签约 selectContractSignUrl:WxApiRoot+ 'contractprocedure/selectContractSignUrl',//签约地址 getHealthCert:WxApiRoot+ 'perfectInfo/getHealthCert', addWorkerCertificate:WxApiRoot+ 'perfectInfo/addWorkerCertificate', getFaceCheckInfo:WxApiRoot+ 'perfectInfo/getFaceCheckInfo', workerIndividualFace:WxApiRoot+ 'perfectInfo/workerIndividualFace', getFaceResult:WxApiRoot+ 'perfectInfo/getFaceResult', findInvestigation:WxApiRoot+ 'perfectInfo/findInvestigation', singGerenxinxisouquan:WxApiRoot+ 'workerContract/singGerenxinxisouquan',interview:WxApiRoot+ 'interview', acceptOrRefuseInterview:WxApiRoot+ 'acceptOrRefuseInterview', faceAndInvestigation:WxApiRoot+ 'perfectInfo/faceAndInvestigation', CPQrCode: WxApiRoot + 'cp/qrCode', createMakeUpQRCode:WxApiRoot+ 'createMakeUpQRCode', transferIntroductionQrCode:WxApiRoot+ 'transferIntroductionQrCode',//转介绍二维码 transferIntroduction:WxApiRoot+ 'transferIntroduction',//转介绍录入 getTransferIntroductionInfo:WxApiRoot+ 'getTransferIntroductionInfo',// recordZzyShare:WxApiRoot+ 'board/recordZzyShare',// getBaomiContract:WxApiRoot+ 'perfectInfo/getBaomiContract', signBaoMiAndResign:WxApiRoot+ 'workerContract/signBaoMiAndResign',//签约 workerServiceOrderList:WxApiRoot+ 'workerServiceOrderList',//工单列表 getWokerNearTeam:WxApiRoot+ 'team/getWokerNearTeam',//排班 workerServiceMonthOrderCount:WxApiRoot+ 'workerServiceMonthOrderCount', getSchTeamList:WxApiRoot+ 'team/getSchTeamList', applyTeam:WxApiRoot+ 'team/applyTeam', workerServiceOrderDetail: WxApiRoot + 'workerServiceOrderDetail', //工单详情 HmApiConfirm: WxApiRoot + 'book/confirmBookTrade', //服务已完成 arrivedByMerchantNew: WxApiRoot + 'arrivedByMerchantNew', //我已上门 hasReadServiceRemark:WxApiRoot + 'hasReadServiceRemark', serviceOrderAcceptanceCheck:WxApiRoot + 'serviceOrderAcceptanceCheck', smsEvaluate:WxApiRoot + 'smsEvaluate', finishServiceOrder:WxApiRoot + 'finishServiceOrder' };