diff --git a/src/app.ts b/src/app.ts index 60a2e4f..aedb5d1 100644 --- a/src/app.ts +++ b/src/app.ts @@ -128,10 +128,17 @@ App({ showMsg: false, }); }, + getMenuInfo(self) { + const menuButtonInfo = wx.getMenuButtonBoundingClientRect(); + self.setData({ + menuButtonInfo, + }); + }, + // zd相关函数 zdMpBehavior(data: { PageName: string; doctor?: boolean }) { let url = '?r=xd/mp-behavior/add'; if (data.doctor) { - url = '?r=xd/doctor/mp-behavior/add'; + url = '?r=zd/doctor/mp-behavior/add'; } delete data.doctor; wx.ajax({ @@ -144,13 +151,6 @@ App({ console.log('res: ', res); }); }, - getMenuInfo(self) { - const menuButtonInfo = wx.getMenuButtonBoundingClientRect(); - self.setData({ - menuButtonInfo, - }); - }, - // zd相关函数 zdGetTheme() { return new Promise((resolve) => { const checkUserType = () => { diff --git a/src/patient/pages/adl/index.ts b/src/patient/pages/adl/index.ts index 5cad891..c0b597e 100644 --- a/src/patient/pages/adl/index.ts +++ b/src/patient/pages/adl/index.ts @@ -33,7 +33,7 @@ Page({ if (options.adlPushId) { wx.ajax({ method: 'POST', - url: '?r=xd/push-click/adl-push-click', + url: '?r=zd/push-click/adl-push-click', data: { adlPushId: options.adlPushId }, }) } @@ -68,7 +68,7 @@ Page({ getAdlScore() { wx.ajax({ method: 'GET', - url: '?r=xd/adl/get-score', + url: '?r=zd/adl/get-score', data: {}, }).then((res) => { this.setData({ diff --git a/src/patient/pages/adlResult/index.ts b/src/patient/pages/adlResult/index.ts index 0a8ea24..0d30381 100644 --- a/src/patient/pages/adlResult/index.ts +++ b/src/patient/pages/adlResult/index.ts @@ -127,7 +127,7 @@ Page({ getQrCode() { wx.ajax({ method: 'GET', - url: '?r=xd/adl/qrcode', + url: '?r=zd/adl/qrcode', data: {}, }).then((res) => { this.setData({ @@ -138,7 +138,7 @@ Page({ getUnreadCount() { wx.ajax({ method: 'GET', - url: '?r=xd/message-interact/get-unread-count', + url: '?r=zd/message-interact/get-unread-count', data: {}, }).then((res) => { this.setData({ @@ -150,7 +150,7 @@ Page({ const { id } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/adl/view', + url: '?r=zd/adl/view', data: { Id: id, }, @@ -174,7 +174,7 @@ Page({ getOpenPatientList() { wx.ajax({ method: 'GET', - url: '?r=xd/nrdl/open-patient-list', + url: '?r=zd/nrdl/open-patient-list', data: {}, }).then((res) => { this.setData({ @@ -205,7 +205,7 @@ Page({ if (res.confirm) { wx.ajax({ method: 'POST', - url: '?r=xd/adl/delete', + url: '?r=zd/adl/delete', data: { Id: id, }, diff --git a/src/patient/pages/adlTest/index.ts b/src/patient/pages/adlTest/index.ts index aa4ed23..e8af8fa 100644 --- a/src/patient/pages/adlTest/index.ts +++ b/src/patient/pages/adlTest/index.ts @@ -354,7 +354,7 @@ Page({ const params = this.data.params wx.ajax({ method: 'POST', - url: '?r=xd/adl/create', + url: '?r=zd/adl/create', data: params, }).then((res) => { this.updateAdlImg(res.Id, Url, res) @@ -364,7 +364,7 @@ Page({ const { m_d, nrdl } = this.data wx.ajax({ method: 'POST', - url: '?r=xd/adl/update-img', + url: '?r=zd/adl/update-img', data: { Id: id, ImgUrl: Url, diff --git a/src/patient/pages/cancellation/index.ts b/src/patient/pages/cancellation/index.ts index 20ad257..dfcf8bb 100644 --- a/src/patient/pages/cancellation/index.ts +++ b/src/patient/pages/cancellation/index.ts @@ -26,7 +26,7 @@ Page({ if (res.confirm) { wx.ajax({ method: "GET", - url: "?r=xd/account/cancellation", + url: "?r=zd/account/cancellation", data: {}, loading: true, }).then(() => { diff --git a/src/patient/pages/certPending/index.ts b/src/patient/pages/certPending/index.ts index dcdbdde..f1446fd 100644 --- a/src/patient/pages/certPending/index.ts +++ b/src/patient/pages/certPending/index.ts @@ -19,7 +19,7 @@ Page({ getCode() { wx.ajax({ method: "GET", - url: "?r=xd/common/get-channel-wx-code", + url: "?r=zd/common/get-channel-wx-code", data: { ChannelType: "11", Id: "", diff --git a/src/patient/pages/changePhone/index.ts b/src/patient/pages/changePhone/index.ts index 04ba1cb..4a2a05d 100644 --- a/src/patient/pages/changePhone/index.ts +++ b/src/patient/pages/changePhone/index.ts @@ -29,7 +29,7 @@ Page({ } wx.ajax({ method: "POST", - url: "?r=xd/login/send-verify-code", + url: "?r=zd/login/send-verify-code", data: { mobile, }, @@ -60,7 +60,7 @@ Page({ const { registrationSource, registChannel, regBusinessId } = app.globalData; wx.ajax({ method: "POST", - url: "?r=xd/account/update-telephone", + url: "?r=zd/account/update-telephone", data: { mobile, code, diff --git a/src/patient/pages/changeUser/index.ts b/src/patient/pages/changeUser/index.ts index 0a4bc4e..eea7e54 100644 --- a/src/patient/pages/changeUser/index.ts +++ b/src/patient/pages/changeUser/index.ts @@ -29,7 +29,7 @@ Page({ } wx.ajax({ method: "POST", - url: "?r=xd/login/send-verify-code", + url: "?r=zd/login/send-verify-code", data: { mobile, }, @@ -60,7 +60,7 @@ Page({ const { registrationSource, registChannel, regBusinessId } = app.globalData; wx.ajax({ method: "POST", - url: "?r=xd/login/change-user-login", + url: "?r=zd/login/change-user-login", data: { mobile, code, diff --git a/src/patient/pages/doctor/index.ts b/src/patient/pages/doctor/index.ts index 156627e..561b7a1 100644 --- a/src/patient/pages/doctor/index.ts +++ b/src/patient/pages/doctor/index.ts @@ -190,7 +190,7 @@ Page({ getLocationInfo() { wx.ajax({ method: 'GET', - url: '?r=xd/hospital/location-info', + url: '?r=zd/hospital/location-info', data: { lng: this.data.LNG, lat: this.data.LAT, @@ -222,7 +222,7 @@ Page({ const { Name, LNG, LAT, ProvinceId, CityId } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/hospital/list', + url: '?r=zd/hospital/list', data: { lng: LNG, lat: LAT, @@ -244,7 +244,7 @@ Page({ const { Name, LNG, LAT, ProvinceId, CityId } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/doctor/list', + url: '?r=zd/doctor/list', data: { lng: LNG, lat: LAT, @@ -280,7 +280,7 @@ Page({ const { Name, LNG, LAT, ProvinceId, CityId } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/dtp-pharmacy/list', + url: '?r=zd/dtp-pharmacy/list', data: { lng: LNG, lat: LAT, @@ -298,7 +298,7 @@ Page({ // getDtpAlert() { // wx.ajax({ // method: 'GET', - // url: '?r=xd/popup/info', + // url: '?r=zd/popup/info', // data: { Type: 3 }, // }).then((res) => { // if (res.showAlert) { @@ -312,7 +312,7 @@ Page({ hideDtpAlert() { wx.ajax({ method: 'POST', - url: '?r=xd/popup/close-popup', + url: '?r=zd/popup/close-popup', data: { Type: 3 }, }).then((_res) => {}) }, @@ -372,7 +372,7 @@ Page({ }) wx.ajax({ method: 'POST', - url: '?r=xd/score/send-score', + url: '?r=zd/score/send-score', data: { Type: this.data.timeToastType, Id: 0, diff --git a/src/patient/pages/doctorDetail/index.ts b/src/patient/pages/doctorDetail/index.ts index cd5a8d6..c6821bb 100644 --- a/src/patient/pages/doctorDetail/index.ts +++ b/src/patient/pages/doctorDetail/index.ts @@ -99,7 +99,7 @@ Page({ getDetail() { wx.ajax({ method: 'GET', - url: '?r=xd/doctor/detail', + url: '?r=zd/doctor/detail', data: { Id: this.data.id, lng: this.data.LNG, diff --git a/src/patient/pages/doctorDetailBak/index.ts b/src/patient/pages/doctorDetailBak/index.ts index e109044..a9749f5 100644 --- a/src/patient/pages/doctorDetailBak/index.ts +++ b/src/patient/pages/doctorDetailBak/index.ts @@ -101,7 +101,7 @@ Page({ getDetail() { wx.ajax({ method: "GET", - url: "?r=xd/doctor/detail", + url: "?r=zd/doctor/detail", data: { Id: this.data.id, lng: this.data.LNG, diff --git a/src/patient/pages/drugRecord/index.ts b/src/patient/pages/drugRecord/index.ts index b8523ee..30923d1 100644 --- a/src/patient/pages/drugRecord/index.ts +++ b/src/patient/pages/drugRecord/index.ts @@ -40,7 +40,7 @@ Page({ getDetail() { wx.ajax({ method: 'GET', - url: '?r=xd/medication/view', + url: '?r=zd/medication/view', data: { Id: this.data.id, }, @@ -75,7 +75,7 @@ Page({ }) return } - const url = id ? '?r=xd/medication/update' : '?r=xd/medication/add' + const url = id ? '?r=zd/medication/update' : '?r=zd/medication/add' wx.ajax({ method: 'POST', url, diff --git a/src/patient/pages/enterInfo/index.ts b/src/patient/pages/enterInfo/index.ts index 17a3aa3..3f5ecfa 100644 --- a/src/patient/pages/enterInfo/index.ts +++ b/src/patient/pages/enterInfo/index.ts @@ -111,7 +111,7 @@ Page({ }) wx.ajax({ method: 'POST', - url: '?r=xd/account/reg', + url: '?r=zd/account/reg', data: { name, gender, diff --git a/src/patient/pages/family/index.ts b/src/patient/pages/family/index.ts index b3e7551..51fd07f 100644 --- a/src/patient/pages/family/index.ts +++ b/src/patient/pages/family/index.ts @@ -26,7 +26,7 @@ Page({ getMpInfo() { wx.ajax({ method: 'GET', - url: '?r=xd/account/mp-info', + url: '?r=zd/account/mp-info', }).then((res: IMpInfo) => { this.setData({ mpInfo: res, @@ -36,7 +36,7 @@ Page({ }, getQrCode() { this.setData({ - qrCode: `${app.globalData.url}?r=xd/account/mp-img&PatientId=${this.data.mpInfo.PatientId}&loginState=${app.globalData.loginState}`, + qrCode: `${app.globalData.url}?r=zd/account/mp-img&PatientId=${this.data.mpInfo.PatientId}&loginState=${app.globalData.loginState}`, }) }, handleQrCodeLoad() { diff --git a/src/patient/pages/familyList/index.ts b/src/patient/pages/familyList/index.ts index 72163e0..3adeaef 100644 --- a/src/patient/pages/familyList/index.ts +++ b/src/patient/pages/familyList/index.ts @@ -20,7 +20,7 @@ Page({ getFamilyList(loading = true) { wx.ajax({ method: "GET", - url: "?r=xd/account/relatives", + url: "?r=zd/account/relatives", data: {}, loading, }).then((res) => { @@ -42,7 +42,7 @@ Page({ this.handleUnbindCancel(); wx.ajax({ method: "POST", - url: "?r=xd/account/unbind-user", + url: "?r=zd/account/unbind-user", data: { UserId, }, diff --git a/src/patient/pages/familyScan/index.ts b/src/patient/pages/familyScan/index.ts index 419e517..2804865 100644 --- a/src/patient/pages/familyScan/index.ts +++ b/src/patient/pages/familyScan/index.ts @@ -34,7 +34,7 @@ Page({ const { UserType } = this.data.zdUserInfo; wx.ajax({ method: "GET", - url: "?r=xd/account/mp-patient-info", + url: "?r=zd/account/mp-patient-info", data: { PatientId: this.data.PatientId, }, @@ -94,7 +94,7 @@ Page({ // return; wx.ajax({ method: "POST", - url: "?r=xd/account/bind-patient", + url: "?r=zd/account/bind-patient", data: { PatientId, RelationType, diff --git a/src/patient/pages/getUserInfo/index.ts b/src/patient/pages/getUserInfo/index.ts index e8c60b4..bd172b5 100644 --- a/src/patient/pages/getUserInfo/index.ts +++ b/src/patient/pages/getUserInfo/index.ts @@ -37,7 +37,7 @@ Page({ let avatarUrl = data.data.Url; wx.ajax({ method: "POST", - url: "?r=xd/account/update-user-img", + url: "?r=zd/account/update-user-img", data: { UserImg: decodeURI(avatarUrl), }, diff --git a/src/patient/pages/hospital/index.ts b/src/patient/pages/hospital/index.ts index f534932..6dd811c 100644 --- a/src/patient/pages/hospital/index.ts +++ b/src/patient/pages/hospital/index.ts @@ -110,7 +110,7 @@ Page({ getDetail() { wx.ajax({ method: 'GET', - url: '?r=xd/hospital/detail', + url: '?r=zd/hospital/detail', data: { Id: this.data.id, lng: this.data.LNG, @@ -163,7 +163,7 @@ Page({ handleTimeOut(Id) { wx.ajax({ method: 'POST', - url: '?r=xd/score/send-score', + url: '?r=zd/score/send-score', data: { Type: this.data.timeToastType, Id, diff --git a/src/patient/pages/index/index.ts b/src/patient/pages/index/index.ts index 901ecca..f55a841 100644 --- a/src/patient/pages/index/index.ts +++ b/src/patient/pages/index/index.ts @@ -94,7 +94,7 @@ Page({ getUnreadCount() { wx.ajax({ method: 'GET', - url: '?r=xd/message-interact/get-unread-count', + url: '?r=zd/message-interact/get-unread-count', data: {}, }).then((res) => { this.setData({ @@ -105,7 +105,7 @@ Page({ getSystemConfig() { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', data: {}, }).then((res) => { this.setData({ @@ -116,7 +116,7 @@ Page({ getLastRecord() { wx.ajax({ method: 'GET', - url: '?r=xd/medication/last-record', + url: '?r=zd/medication/last-record', }).then((res) => { this.setData({ detail: { @@ -134,7 +134,7 @@ Page({ } wx.ajax({ method: 'GET', - url: `?r=xd/mini-conf/get-config`, + url: `?r=zd/mini-conf/get-config`, data: { userType: UserType }, }).then((res) => { res = res.map((item: any) => { @@ -179,7 +179,7 @@ Page({ async getPopup() { const data5 = await wx.ajax({ method: 'GET', - url: '?r=xd/popup/info', + url: '?r=zd/popup/info', data: { Type: 5, }, @@ -196,7 +196,7 @@ Page({ const data4 = await wx.ajax({ method: 'GET', - url: '?r=xd/popup/info', + url: '?r=zd/popup/info', data: { Type: 4, }, @@ -212,7 +212,7 @@ Page({ const data1 = await wx.ajax({ method: 'GET', - url: '?r=xd/popup/info', + url: '?r=zd/popup/info', data: { Type: 1 }, }); if (!Array.isArray(data1)) { @@ -226,7 +226,7 @@ Page({ const data2 = await wx.ajax({ method: 'GET', - url: '?r=xd/popup/info', + url: '?r=zd/popup/info', data: { Type: 2, }, @@ -243,7 +243,7 @@ Page({ const data3 = await wx.ajax({ method: 'GET', - url: '?r=xd/popup/info', + url: '?r=zd/popup/info', data: { Type: 6, }, @@ -258,7 +258,7 @@ Page({ const data6 = await wx.ajax({ method: 'GET', - url: '?r=xd/re-visit/get-popup-show-status', + url: '?r=zd/re-visit/get-popup-show-status', }); if (data6.showStatus === 1) { this.setData({ @@ -271,7 +271,7 @@ Page({ setPopupInfo() { wx.ajax({ method: 'POST', - url: '?r=xd/popup/update-click-status', + url: '?r=zd/popup/update-click-status', data: { Type: 1, Id: this.data.toastParams.Id, @@ -281,14 +281,14 @@ Page({ setBannerClick() { wx.ajax({ method: 'POST', - url: '?r=xd/nrdl/add-banner-click-record', + url: '?r=zd/nrdl/add-banner-click-record', data: {}, }); }, getInfoList(configId: string) { wx.ajax({ method: 'GET', - url: '?r=xd/pic-text/index-list', + url: '?r=zd/pic-text/index-list', data: { count: 0, ConfigId: configId, @@ -302,7 +302,7 @@ Page({ getStoryList(configId: string) { wx.ajax({ method: 'GET', - url: '?r=xd/story/index-list', + url: '?r=zd/story/index-list', data: { count: 0, ConfigId: configId, @@ -316,7 +316,7 @@ Page({ getAdl() { wx.ajax({ method: 'GET', - url: '?r=xd/adl/index', + url: '?r=zd/adl/index', data: {}, }).then((res) => { const newRecord = res.newRecord; @@ -334,7 +334,7 @@ Page({ getActivity(ConfigId: string, count: number, key: string) { wx.ajax({ method: 'GET', - url: '?r=xd/activity/index-list', + url: '?r=zd/activity/index-list', data: { ConfigId, count }, }).then((res) => { this.setData({ @@ -449,7 +449,7 @@ Page({ handleSlider() { wx.ajax({ method: 'POST', - url: '?r=xd/nrdl/add-slide-click-record', + url: '?r=zd/nrdl/add-slide-click-record', data: {}, }); this.handleNRDL(); @@ -523,7 +523,7 @@ Page({ } else if (toastType === 'dedicatedDoctor') { wx.ajax({ method: 'POST', - url: '?r=xd/popup/close-popup', + url: '?r=zd/popup/close-popup', data: { Type: 6, }, @@ -539,7 +539,7 @@ Page({ }); wx.ajax({ method: 'POST', - url: '?r=xd/re-visit/update-popup-show-status', + url: '?r=zd/re-visit/update-popup-show-status', data: {}, }); this.handleToastCancel(null, false); @@ -550,7 +550,7 @@ Page({ if (toastType === 'doubleStandards' && sure) { wx.ajax({ method: 'POST', - url: '?r=xd/popup/close-popup', + url: '?r=zd/popup/close-popup', data: { Type: 5, }, @@ -558,7 +558,7 @@ Page({ } else if (toastType === 'dedicatedDoctor' && sure) { wx.ajax({ method: 'POST', - url: '?r=xd/popup/close-popup', + url: '?r=zd/popup/close-popup', data: { Type: 6, }, @@ -566,7 +566,7 @@ Page({ } else if (toastType === 'referral-toast') { wx.ajax({ method: 'POST', - url: '?r=xd/re-visit/update-popup-show-status', + url: '?r=zd/re-visit/update-popup-show-status', data: {}, }); } @@ -590,7 +590,7 @@ Page({ }); wx.ajax({ method: 'POST', - url: '?r=xd/account/add-user-subscribe-guide-record', + url: '?r=zd/account/add-user-subscribe-guide-record', data: {}, }); }, diff --git a/src/patient/pages/interactivePatient/index.ts b/src/patient/pages/interactivePatient/index.ts index 9f6ade5..d83cb47 100644 --- a/src/patient/pages/interactivePatient/index.ts +++ b/src/patient/pages/interactivePatient/index.ts @@ -66,14 +66,14 @@ Page({ if (options.adlPushId) { wx.ajax({ method: 'POST', - url: '?r=xd/push-click/adl-push-click', + url: '?r=zd/push-click/adl-push-click', data: { adlPushId: options.adlPushId }, }) } if (options.taskPushId) { wx.ajax({ method: 'POST', - url: '?r=xd/push-click/task-push-click', + url: '?r=zd/push-click/task-push-click', data: { taskPushId: options.taskPushId }, }) } @@ -92,7 +92,7 @@ Page({ getDoctorDetail() { wx.ajax({ method: 'GET', - url: '?r=xd/message-interact/get-bind-doctor-info', + url: '?r=zd/message-interact/get-bind-doctor-info', data: {}, }).then((res) => { this.setData({ @@ -105,7 +105,7 @@ Page({ getQuestionList() { wx.ajax({ method: 'GET', - url: '?r=xd/message-interact/get-question-list', + url: '?r=zd/message-interact/get-question-list', data: {}, }).then((res) => { this.setData({ @@ -122,7 +122,7 @@ Page({ const nextMsgId = this.data.nextMsgId wx.ajax({ method: 'GET', - url: '?r=xd/message-interact/patient-get-message-list', + url: '?r=zd/message-interact/patient-get-message-list', data: { nextMsgId, }, @@ -208,7 +208,7 @@ Page({ sendQuestion(questionId) { wx.ajax({ method: 'POST', - url: '?r=xd/message-interact/send-question-message', + url: '?r=zd/message-interact/send-question-message', data: { questionId, }, diff --git a/src/patient/pages/live/index.ts b/src/patient/pages/live/index.ts index 6f77847..8314620 100644 --- a/src/patient/pages/live/index.ts +++ b/src/patient/pages/live/index.ts @@ -70,7 +70,7 @@ Page({ getConfig() { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', data: {}, }).then((res) => { let active = this.data.active @@ -89,7 +89,7 @@ Page({ getCateList() { wx.ajax({ method: 'GET', - url: '?r=xd/activity/cate-list', + url: '?r=zd/activity/cate-list', data: {}, }).then((res) => { this.setData({ @@ -195,7 +195,7 @@ Page({ const { CateId, Search, LNG, LAT } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/activity/list', + url: '?r=zd/activity/list', data: { Type: Number(active || 0) + 1, CateId, diff --git a/src/patient/pages/liveDetail/index.ts b/src/patient/pages/liveDetail/index.ts index c44d1bf..dd8db37 100644 --- a/src/patient/pages/liveDetail/index.ts +++ b/src/patient/pages/liveDetail/index.ts @@ -60,7 +60,7 @@ Page({ setView() { wx.ajax({ method: 'POST', - url: '?r=xd/activity/view', + url: '?r=zd/activity/view', data: { Id: this.data.id, }, @@ -71,7 +71,7 @@ Page({ getDetail() { wx.ajax({ method: 'GET', - url: '?r=xd/activity/detail', + url: '?r=zd/activity/detail', data: { Id: this.data.id, }, @@ -153,7 +153,7 @@ Page({ wx.ajax({ method: 'POST', - url: '?r=xd/activity/sign-up', + url: '?r=zd/activity/sign-up', data: { Id: this.data.id, PreUserIdentity: UserType, @@ -183,7 +183,7 @@ Page({ const { UserType } = this.data.zdUserInfo wx.ajax({ method: 'POST', - url: '?r=xd/activity/share', + url: '?r=zd/activity/share', data: { Id: this.data.id, PreUserIdentity: UserType }, }).then((res) => { this.getDetail() diff --git a/src/patient/pages/liveResult/index.ts b/src/patient/pages/liveResult/index.ts index 1ccee68..68efc22 100644 --- a/src/patient/pages/liveResult/index.ts +++ b/src/patient/pages/liveResult/index.ts @@ -38,7 +38,7 @@ Page({ getDetail() { wx.ajax({ method: "GET", - url: "?r=xd/activity/sign-up-detail", + url: "?r=zd/activity/sign-up-detail", data: { Id: this.data.id, }, @@ -53,7 +53,7 @@ Page({ getLiveDetail() { wx.ajax({ method: "GET", - url: "?r=xd/activity/detail", + url: "?r=zd/activity/detail", data: { Id: this.data.id, }, @@ -74,7 +74,7 @@ Page({ const { registChannel } = app.globalData; wx.ajax({ method: "GET", - url: "?r=xd/common/get-channel-wx-code", + url: "?r=zd/common/get-channel-wx-code", data: { Id: this.data.id, ChannelType: registChannel, diff --git a/src/patient/pages/login/index.ts b/src/patient/pages/login/index.ts index 0d7a97d..c4cf553 100644 --- a/src/patient/pages/login/index.ts +++ b/src/patient/pages/login/index.ts @@ -40,7 +40,7 @@ Page({ } wx.ajax({ method: 'POST', - url: '?r=xd/login/send-verify-code', + url: '?r=zd/login/send-verify-code', data: { mobile, }, @@ -71,7 +71,7 @@ Page({ const { registrationSource, registChannel, regBusinessId } = app.globalData; wx.ajax({ method: 'POST', - url: '?r=xd/login/reg-login', + url: '?r=zd/login/reg-login', data: { mobile, code, @@ -90,7 +90,7 @@ Page({ if (iv && encryptedData) { wx.ajax({ method: 'POST', - url: '?r=xd/login/wx-reg-login', + url: '?r=zd/login/wx-reg-login', data: { iv: encodeURIComponent(iv), encryptedData: encodeURIComponent(encryptedData), diff --git a/src/patient/pages/my/index.ts b/src/patient/pages/my/index.ts index e49aac1..6a6fe38 100644 --- a/src/patient/pages/my/index.ts +++ b/src/patient/pages/my/index.ts @@ -40,7 +40,7 @@ Page({ getScore() { wx.ajax({ method: 'GET', - url: '?r=xd/patient-score/get-self-score', + url: '?r=zd/patient-score/get-self-score', data: {}, }).then((res) => { this.setData({ @@ -72,7 +72,7 @@ Page({ } wx.ajax({ method: 'POST', - url: '?r=xd/account/update-adl-notify-switch', + url: '?r=zd/account/update-adl-notify-switch', data: { AdlNotifySwitch: e.detail ? 1 : 2, }, diff --git a/src/patient/pages/myLive/index.ts b/src/patient/pages/myLive/index.ts index a8c1e06..3f050a8 100644 --- a/src/patient/pages/myLive/index.ts +++ b/src/patient/pages/myLive/index.ts @@ -37,7 +37,7 @@ Page({ getConfig() { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', data: {}, }).then((res) => { let active = 0 @@ -65,7 +65,7 @@ Page({ } wx.ajax({ method: 'GET', - url: '?r=xd/activity/sign-up-list', + url: '?r=zd/activity/sign-up-list', data: { Type: Number(active) == 0 ? '' : Number(active), page: newPage, diff --git a/src/patient/pages/mySave/index.ts b/src/patient/pages/mySave/index.ts index 309a83d..b42ccd3 100644 --- a/src/patient/pages/mySave/index.ts +++ b/src/patient/pages/mySave/index.ts @@ -19,7 +19,7 @@ Page({ app.zdWaitLogin().then(() => { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', }).then((res) => { this.setData({ config: res, @@ -31,7 +31,7 @@ Page({ getConfig() { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', data: {}, }).then((res) => { this.setData({ @@ -65,7 +65,7 @@ Page({ getInfoList(newPage = 1) { wx.ajax({ method: 'GET', - url: '?r=xd/pic-text/collection-list', + url: '?r=zd/pic-text/collection-list', data: { page: newPage, }, @@ -88,7 +88,7 @@ Page({ getVideoList(newPage = 1) { wx.ajax({ method: 'GET', - url: '?r=xd/video/collection-list', + url: '?r=zd/video/collection-list', data: { page: newPage, }, @@ -111,7 +111,7 @@ Page({ getQuestionList(newPage = 1) { wx.ajax({ method: 'GET', - url: '?r=xd/health-question/collection-list', + url: '?r=zd/health-question/collection-list', data: { page: newPage, }, @@ -135,7 +135,7 @@ Page({ const { id, index } = e.currentTarget.dataset wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/compliment', + url: '?r=zd/pic-text/compliment', data: { ContentId: id, }, @@ -151,7 +151,7 @@ Page({ const { id, index } = e.currentTarget.dataset wx.ajax({ method: 'POST', - url: '?r=xd/video/compliment', + url: '?r=zd/video/compliment', data: { ContentId: id, }, @@ -180,7 +180,7 @@ Page({ }) wx.ajax({ method: 'POST', - url: '?r=xd/video/view', + url: '?r=zd/video/view', data: { ContentId: id, }, @@ -198,7 +198,7 @@ Page({ handleVideoTime: licia.throttle(function (e: WechatMiniprogram.CustomEvent) { wx.ajax({ method: 'GET', - url: '?r=xd/video/watch-duration', + url: '?r=zd/video/watch-duration', data: { HistoryId: this.data.HistoryId, WatchDuration: e.detail.currentTime, @@ -239,7 +239,7 @@ Page({ if (collect == 1) { wx.ajax({ method: 'POST', - url: '?r=xd/video/cancel-collection', + url: '?r=zd/video/cancel-collection', data: { ContentId: id, }, @@ -257,7 +257,7 @@ Page({ } else { wx.ajax({ method: 'POST', - url: '?r=xd/video/collection', + url: '?r=zd/video/collection', data: { ContentId: id, }, @@ -307,7 +307,7 @@ Page({ if (type == 'info') { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/share', + url: '?r=zd/pic-text/share', data: { ContentId: id }, }).then(() => { this.setData({ @@ -322,7 +322,7 @@ Page({ } else { wx.ajax({ method: 'POST', - url: '?r=xd/video/share', + url: '?r=zd/video/share', data: { ContentId: id }, }).then(() => { this.setData({ diff --git a/src/patient/pages/nrdl/index.ts b/src/patient/pages/nrdl/index.ts index b62581d..fae0463 100644 --- a/src/patient/pages/nrdl/index.ts +++ b/src/patient/pages/nrdl/index.ts @@ -66,7 +66,7 @@ Page({ getAdlScore() { wx.ajax({ method: "GET", - url: "?r=xd/nrdl/get-score", + url: "?r=zd/nrdl/get-score", data: {}, }).then((res) => { this.setData({ @@ -77,7 +77,7 @@ Page({ getConfig() { wx.ajax({ method: "GET", - url: "?r=xd/common/get-config", + url: "?r=zd/common/get-config", data: {}, }).then((res) => { this.setData({ @@ -91,7 +91,7 @@ Page({ addOpenRecord() { wx.ajax({ method: "POST", - url: "?r=xd/nrdl/add-open-record&OpenType=1", + url: "?r=zd/nrdl/add-open-record&OpenType=1", data: {}, }).then((res) => { if (res.CanGetScore) { @@ -116,7 +116,7 @@ Page({ getCode() { wx.ajax({ method: "GET", - url: "?r=xd/common/get-channel-wx-code", + url: "?r=zd/common/get-channel-wx-code", data: { ChannelType: 12 }, }).then((res) => { this.setData({ @@ -127,7 +127,7 @@ Page({ getNrdlDetail() { wx.ajax({ method: "GET", - url: "?r=xd/nrdl-hospital/detail", + url: "?r=zd/nrdl-hospital/detail", data: {}, }).then((res) => { res.last10Records = res.last10Records.map((item) => { @@ -309,7 +309,7 @@ Page({ getLocationInfo() { wx.ajax({ method: "GET", - url: "?r=xd/nrdl-hospital/location-info", + url: "?r=zd/nrdl-hospital/location-info", data: { lat: this.data.LAT, lng: this.data.LNG, @@ -332,7 +332,7 @@ Page({ const areaValue = this.data.areaValue; wx.ajax({ method: "GET", - url: "?r=xd/nrdl-hospital/list", + url: "?r=zd/nrdl-hospital/list", data: { ProvinceId: areaValue[0], CityId: areaValue[1], @@ -391,7 +391,7 @@ Page({ } wx.ajax({ method: "POST", - url: "?r=xd/nrdl-hospital/add", + url: "?r=zd/nrdl-hospital/add", data: { ProvinceId: areaValue[0], //省Id ProvinceName: cascaderName.split("/")[0], //省份名 @@ -431,7 +431,7 @@ Page({ handleDtpRecord() { wx.ajax({ method: "POST", - url: "?r=xd/nrdl/add-dtp-pharmacy-click-record", + url: "?r=zd/nrdl/add-dtp-pharmacy-click-record", data: {}, }).then((res) => { console.log("res: ", res); diff --git a/src/patient/pages/nrdlDetail/index.ts b/src/patient/pages/nrdlDetail/index.ts index 9110e51..4aecd9a 100644 --- a/src/patient/pages/nrdlDetail/index.ts +++ b/src/patient/pages/nrdlDetail/index.ts @@ -48,7 +48,7 @@ Page({ addOpenRecord() { wx.ajax({ method: 'POST', - url: `?r=xd/nrdl/add-open-record&OpenType=${this.data.id}`, + url: `?r=zd/nrdl/add-open-record&OpenType=${this.data.id}`, data: {}, }).then((res) => { if (res.CanGetScore) { @@ -61,7 +61,7 @@ Page({ getConfig() { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', data: {}, }).then((res) => { this.setData({ diff --git a/src/patient/pages/nrdlTable/index.ts b/src/patient/pages/nrdlTable/index.ts index 4264366..2699032 100644 --- a/src/patient/pages/nrdlTable/index.ts +++ b/src/patient/pages/nrdlTable/index.ts @@ -863,7 +863,7 @@ Page({ addOpenRecord() { wx.ajax({ method: "POST", - url: `?r=xd/nrdl/add-open-record&OpenType=${3}`, + url: `?r=zd/nrdl/add-open-record&OpenType=${3}`, data: {}, }).then((res) => { if (res.CanGetScore) { diff --git a/src/patient/pages/personalInformation/index.ts b/src/patient/pages/personalInformation/index.ts index 8cb1001..22932c6 100644 --- a/src/patient/pages/personalInformation/index.ts +++ b/src/patient/pages/personalInformation/index.ts @@ -307,7 +307,7 @@ Page({ const { PatientName, RelationType, Gender, Birth, DiagnosisTime, DiagnoseType, ...zdUserInfo } = this.data.zdUserInfo wx.ajax({ method: 'POST', - url: '?r=xd/account/update-info', + url: '?r=zd/account/update-info', data: { name: PatientName, relationType: RelationType, diff --git a/src/patient/pages/publishStoryDetail/index.ts b/src/patient/pages/publishStoryDetail/index.ts index eaca2ec..5adaae3 100644 --- a/src/patient/pages/publishStoryDetail/index.ts +++ b/src/patient/pages/publishStoryDetail/index.ts @@ -48,7 +48,7 @@ Page({ getInfoDetail(id, star = false) { wx.ajax({ method: 'GET', - url: '?r=xd/story/story-info', + url: '?r=zd/story/story-info', data: { Id: id, }, @@ -90,7 +90,7 @@ Page({ handleView(id) { wx.ajax({ method: 'POST', - url: '?r=xd/story/view', + url: '?r=zd/story/view', data: { ContentId: id, }, @@ -115,7 +115,7 @@ Page({ }, 2000) wx.ajax({ method: 'POST', - url: '?r=xd/story/compliment', + url: '?r=zd/story/compliment', data: { ContentId: this.data.id, }, @@ -139,7 +139,7 @@ Page({ const { id } = this.data wx.ajax({ method: 'POST', - url: '?r=xd/story/share', + url: '?r=zd/story/share', data: { ContentId: id }, }).then((res) => { console.log('res: ', res) @@ -151,7 +151,7 @@ Page({ } wx.ajax({ method: 'POST', - url: '?r=xd/score/send-score', + url: '?r=zd/score/send-score', data: { Type: this.data.timeToastType, Id: this.data.detail.Id, diff --git a/src/patient/pages/referral/index.ts b/src/patient/pages/referral/index.ts index 182c189..a83c01c 100644 --- a/src/patient/pages/referral/index.ts +++ b/src/patient/pages/referral/index.ts @@ -29,7 +29,7 @@ Page({ updatePush(id) { wx.ajax({ method: 'POST', - url: '?r=xd/push-click/update-click-status', + url: '?r=zd/push-click/update-click-status', data: { pushId: id, }, @@ -38,7 +38,7 @@ Page({ getList(newPage = 1) { wx.ajax({ method: 'GET', - url: '?r=xd/re-visit/get-list', + url: '?r=zd/re-visit/get-list', data: { page: newPage, }, diff --git a/src/patient/pages/repository/index.ts b/src/patient/pages/repository/index.ts index 5610249..f3e2c6b 100644 --- a/src/patient/pages/repository/index.ts +++ b/src/patient/pages/repository/index.ts @@ -36,7 +36,7 @@ Page({ getConfig(options: any) { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', data: {}, }).then((res) => { let active = Number(options.active) || 0 @@ -63,7 +63,7 @@ Page({ getBanner() { wx.ajax({ method: 'GET', - url: '?r=xd/mini-conf/get-mg-config', + url: '?r=zd/mini-conf/get-mg-config', data: {}, }).then((res) => { this.setData({ @@ -105,7 +105,7 @@ Page({ getInfoCateList() { wx.ajax({ method: 'GET', - url: '?r=xd/pic-text/cate-list', + url: '?r=zd/pic-text/cate-list', data: {}, }).then((res) => { this.setData({ @@ -116,7 +116,7 @@ Page({ getVideoCateList() { wx.ajax({ method: 'GET', - url: '?r=xd/video/cate-list', + url: '?r=zd/video/cate-list', data: {}, }).then((res) => { this.setData({ @@ -128,7 +128,7 @@ Page({ const { CateId, Search } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/pic-text/list', + url: '?r=zd/pic-text/list', data: { page: newPage, CateId, @@ -154,7 +154,7 @@ Page({ const { CateId, Search } = this.data wx.ajax({ method: 'GET', - url: '?r=xd/video/list', + url: '?r=zd/video/list', data: { page: newPage, CateId, @@ -180,7 +180,7 @@ Page({ const { id, index } = e.currentTarget.dataset wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/compliment', + url: '?r=zd/pic-text/compliment', data: { ContentId: id, }, @@ -196,7 +196,7 @@ Page({ const { id, index } = e.currentTarget.dataset wx.ajax({ method: 'POST', - url: '?r=xd/video/compliment', + url: '?r=zd/video/compliment', data: { ContentId: id, }, @@ -224,7 +224,7 @@ Page({ }) wx.ajax({ method: 'POST', - url: '?r=xd/video/view', + url: '?r=zd/video/view', data: { ContentId: id, }, @@ -242,7 +242,7 @@ Page({ handleVideoTime: licia.throttle(function (e: WechatMiniprogram.CustomEvent) { wx.ajax({ method: 'POST', - url: '?r=xd/video/watch-duration', + url: '?r=zd/video/watch-duration', data: { HistoryId: this.data.HistoryId, WatchDuration: e.detail.currentTime, @@ -276,7 +276,7 @@ Page({ if (collect == 1) { wx.ajax({ method: 'POST', - url: '?r=xd/video/cancel-collection', + url: '?r=zd/video/cancel-collection', data: { ContentId: id, }, @@ -294,7 +294,7 @@ Page({ } else { wx.ajax({ method: 'POST', - url: '?r=xd/video/collection', + url: '?r=zd/video/collection', data: { ContentId: id, }, @@ -343,7 +343,7 @@ Page({ if (type == 'info') { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/share', + url: '?r=zd/pic-text/share', data: { ContentId: id }, }).then(() => { this.setData({ @@ -358,7 +358,7 @@ Page({ } else { wx.ajax({ method: 'POST', - url: '?r=xd/video/share', + url: '?r=zd/video/share', data: { ContentId: id }, }).then(() => { this.setData({ diff --git a/src/patient/pages/repositoryDetail/index.ts b/src/patient/pages/repositoryDetail/index.ts index c9dbaa2..720c59a 100644 --- a/src/patient/pages/repositoryDetail/index.ts +++ b/src/patient/pages/repositoryDetail/index.ts @@ -59,7 +59,7 @@ Page({ getDetail(view = false) { wx.ajax({ method: 'GET', - url: '?r=xd/pic-text/detail', + url: '?r=zd/pic-text/detail', data: { Id: this.data.id, }, @@ -102,7 +102,7 @@ Page({ handleVideoTime: licia.throttle(function (time) { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/watch-duration', + url: '?r=zd/pic-text/watch-duration', data: { HistoryId: this.data.HistoryId, WatchDuration: time, @@ -114,7 +114,7 @@ Page({ saveView() { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/view', + url: '?r=zd/pic-text/view', data: { ContentId: this.data.id, }, @@ -160,7 +160,7 @@ Page({ }, 2000) wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/compliment', + url: '?r=zd/pic-text/compliment', data: { ContentId: this.data.id, }, @@ -185,7 +185,7 @@ Page({ if (IsCollect == 1) { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/cancel-collection', + url: '?r=zd/pic-text/cancel-collection', data: { ContentId: id, }, @@ -200,7 +200,7 @@ Page({ } else { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/collection', + url: '?r=zd/pic-text/collection', data: { ContentId: id, }, @@ -241,7 +241,7 @@ Page({ handleShare() { wx.ajax({ method: 'POST', - url: '?r=xd/pic-text/share', + url: '?r=zd/pic-text/share', data: { ContentId: this.data.id, }, @@ -255,7 +255,7 @@ Page({ } wx.ajax({ method: 'POST', - url: '?r=xd/score/send-score', + url: '?r=zd/score/send-score', data: { Type: this.data.timeToastType, Id: this.data.detail.Id, diff --git a/src/patient/pages/signIn/index.ts b/src/patient/pages/signIn/index.ts index 69fac12..09a788e 100644 --- a/src/patient/pages/signIn/index.ts +++ b/src/patient/pages/signIn/index.ts @@ -25,7 +25,7 @@ Page({ signIn() { wx.ajax({ method: "POST", - url: "?r=xd/activity/sign-in", + url: "?r=zd/activity/sign-in", data: { Id: this.data.id, }, @@ -37,7 +37,7 @@ Page({ getDetail() { wx.ajax({ method: "GET", - url: "?r=xd/activity/sign-in-detail", + url: "?r=zd/activity/sign-in-detail", data: { Id: this.data.id, }, @@ -51,7 +51,7 @@ Page({ const { registChannel } = app.globalData; wx.ajax({ method: "GET", - url: "?r=xd/common/get-channel-wx-code", + url: "?r=zd/common/get-channel-wx-code", data: { Id: this.data.id, ChannelType: registChannel, diff --git a/src/patient/pages/story/index.ts b/src/patient/pages/story/index.ts index 8a20d8c..61380b3 100644 --- a/src/patient/pages/story/index.ts +++ b/src/patient/pages/story/index.ts @@ -38,7 +38,7 @@ Page({ const loading = !this.data.list.length wx.ajax({ method: 'GET', - url: '?r=xd/story/story-list', + url: '?r=zd/story/story-list', data: { page: newPage, }, @@ -60,7 +60,7 @@ Page({ const { Id, ComplimentNum } = this.data.list[index] wx.ajax({ method: 'POST', - url: '?r=xd/story/compliment', + url: '?r=zd/story/compliment', data: { ContentId: Id, }, diff --git a/src/patient/pages/storyDetail/index.ts b/src/patient/pages/storyDetail/index.ts index cb6b8ca..3fbc4e4 100644 --- a/src/patient/pages/storyDetail/index.ts +++ b/src/patient/pages/storyDetail/index.ts @@ -26,7 +26,7 @@ Page({ getDetail() { wx.ajax({ method: "GET", - url: "?r=xd/story/submit-story-info", + url: "?r=zd/story/submit-story-info", data: { Id: this.data.id, }, @@ -82,7 +82,7 @@ Page({ handleOk() { const id = this.data.detail.Id; const type = this.data.toastType; - let url = type === "withdraw" ? "?r=xd/story/cancel-publish" : "?r=xd/story/recovery-publish"; + let url = type === "withdraw" ? "?r=zd/story/cancel-publish" : "?r=zd/story/recovery-publish"; wx.ajax({ method: "POST", url, @@ -99,7 +99,7 @@ Page({ const id = this.data.detail.Id; wx.ajax({ method: "POST", - url: "?r=xd/story/delete", + url: "?r=zd/story/delete", data: { Id: id, }, @@ -110,7 +110,7 @@ Page({ }, handleSwitchChange(e) { console.log("e: ", e); - const url = e.detail ? "?r=xd/story/all-read" : "?r=xd/story/cancel-all-read"; + const url = e.detail ? "?r=zd/story/all-read" : "?r=zd/story/cancel-all-read"; wx.ajax({ method: "POST", url, diff --git a/src/patient/pages/storyEnter/index.ts b/src/patient/pages/storyEnter/index.ts index f6f6c32..6d405e5 100644 --- a/src/patient/pages/storyEnter/index.ts +++ b/src/patient/pages/storyEnter/index.ts @@ -263,7 +263,7 @@ Page({ } wx.ajax({ method: 'POST', - url: '?r=xd/story/submit-story', + url: '?r=zd/story/submit-story', data: { ...form, StoryLeadIn: this.data.StoryLeadIn, diff --git a/src/patient/pages/storyEnterResult/index.ts b/src/patient/pages/storyEnterResult/index.ts index 1b4cdf1..f8e295c 100644 --- a/src/patient/pages/storyEnterResult/index.ts +++ b/src/patient/pages/storyEnterResult/index.ts @@ -30,7 +30,7 @@ Page({ getConfig() { wx.ajax({ method: "GET", - url: "?r=xd/common/get-config", + url: "?r=zd/common/get-config", }).then((res) => { this.setData({ config: res, @@ -40,7 +40,7 @@ Page({ getCode() { wx.ajax({ method: "GET", - url: "?r=xd/common/get-channel-wx-code", + url: "?r=zd/common/get-channel-wx-code", data: { ChannelType: "5", Id: "", diff --git a/src/patient/pages/storyGuide/index.ts b/src/patient/pages/storyGuide/index.ts index c81f8bc..e19ab8c 100644 --- a/src/patient/pages/storyGuide/index.ts +++ b/src/patient/pages/storyGuide/index.ts @@ -32,7 +32,7 @@ Page({ setToSee() { wx.ajax({ method: 'POST', - url: '?r=xd/story/to-see', + url: '?r=zd/story/to-see', data: { OriginSource: this.data.OriginSource }, }).then((res) => { console.log(res) @@ -41,7 +41,7 @@ Page({ getSettingInfo() { wx.ajax({ method: 'GET', - url: '?r=xd/drugs/setting-info', + url: '?r=zd/drugs/setting-info', data: {}, }).then((res) => { this.setData({ @@ -52,7 +52,7 @@ Page({ getConfig() { wx.ajax({ method: 'GET', - url: '?r=xd/common/get-config', + url: '?r=zd/common/get-config', }).then((res) => { this.setData({ config: res, diff --git a/src/patient/pages/storyList/index.ts b/src/patient/pages/storyList/index.ts index 7983bc1..bd96487 100644 --- a/src/patient/pages/storyList/index.ts +++ b/src/patient/pages/storyList/index.ts @@ -29,7 +29,7 @@ Page({ getList(newPage = 1) { wx.ajax({ method: 'GET', - url: '?r=xd/story/submit-story-list', + url: '?r=zd/story/submit-story-list', data: { page: newPage, }, diff --git a/src/patient/pages/thePublic/index.ts b/src/patient/pages/thePublic/index.ts index 402f8ac..9f61d8b 100644 --- a/src/patient/pages/thePublic/index.ts +++ b/src/patient/pages/thePublic/index.ts @@ -20,7 +20,7 @@ Page({ getCode() { wx.ajax({ method: "GET", - url: "?r=xd/common/get-channel-wx-code", + url: "?r=zd/common/get-channel-wx-code", data: { ChannelType: "11", Id: "", diff --git a/src/patient/pages/uploadCert/index.ts b/src/patient/pages/uploadCert/index.ts index 11263c0..8cfa3fd 100644 --- a/src/patient/pages/uploadCert/index.ts +++ b/src/patient/pages/uploadCert/index.ts @@ -36,7 +36,7 @@ Page({ handleAiPass(imgUrl: string) { wx.ajax({ method: 'POST', - url: '?r=xd/common/image-verify', + url: '?r=zd/common/image-verify', data: { ImageUrl: imgUrl, }, @@ -87,7 +87,7 @@ Page({ }[urlKey] wx.ajax({ method: 'POST', - url: '?r=xd/account/upload-audit-img', + url: '?r=zd/account/upload-audit-img', data: { diagnoseImg, aiPass: this.data.aiPass, @@ -148,7 +148,7 @@ Page({ const { registrationSource, registChannel, regBusinessId } = app.globalData wx.ajax({ method: 'POST', - url: '?r=xd/account/upload-audit-img', + url: '?r=zd/account/upload-audit-img', data: { diagnoseImg: 'https://picsissiok-10049618.cos.ap-shanghai.myqcloud.com/bcab677e86765391f6db4d89d9ea3833_16928589877137.jpg', diff --git a/src/patient/pages/uploadCertBak/index.ts b/src/patient/pages/uploadCertBak/index.ts index a09520c..bb142a5 100644 --- a/src/patient/pages/uploadCertBak/index.ts +++ b/src/patient/pages/uploadCertBak/index.ts @@ -32,7 +32,7 @@ Page({ handleAiPass(imgUrl: string) { wx.ajax({ method: "POST", - url: "?r=xd/common/image-verify", + url: "?r=zd/common/image-verify", data: { ImageUrl: imgUrl, }, @@ -83,7 +83,7 @@ Page({ }[urlKey]; wx.ajax({ method: "POST", - url: "?r=xd/account/upload-audit-img", + url: "?r=zd/account/upload-audit-img", data: { diagnoseImg, aiPass: this.data.aiPass, @@ -131,7 +131,7 @@ Page({ }[urlKey]; wx.ajax({ method: "POST", - url: "?r=xd/account/upload-audit-img", + url: "?r=zd/account/upload-audit-img", data: { diagnoseImg, aiPass: 1, diff --git a/src/patient/pages/vipLogin/index.ts b/src/patient/pages/vipLogin/index.ts index 7379406..62e2d2b 100644 --- a/src/patient/pages/vipLogin/index.ts +++ b/src/patient/pages/vipLogin/index.ts @@ -52,7 +52,7 @@ Page({ }); wx.ajax({ method: "POST", - url: "?r=xd/drugs/record-code", + url: "?r=zd/drugs/record-code", data: { drugsCode: DrugsCode, registrationSource, diff --git a/src/patient/pages/webview/index.ts b/src/patient/pages/webview/index.ts index 9c9c0e0..238bb0d 100644 --- a/src/patient/pages/webview/index.ts +++ b/src/patient/pages/webview/index.ts @@ -37,7 +37,7 @@ Page({ getAdl() { wx.ajax({ method: 'GET', - url: '?r=xd/adl/index', + url: '?r=zd/adl/index', data: {}, }).then((res) => { const newRecord = res.newRecord @@ -79,7 +79,7 @@ Page({ getDetail() { wx.ajax({ method: 'GET', - url: '?r=xd/weiyi/url', + url: '?r=zd/weiyi/url', data: { type: this.data.type, period: this.data.period,