Browse Source

患者端迁移

dev
kola-web 4 weeks ago
parent
commit
82d8ca3bc4
  1. 16
      src/app.ts
  2. 4
      src/patient/pages/adl/index.ts
  3. 10
      src/patient/pages/adlResult/index.ts
  4. 4
      src/patient/pages/adlTest/index.ts
  5. 2
      src/patient/pages/cancellation/index.ts
  6. 2
      src/patient/pages/certPending/index.ts
  7. 4
      src/patient/pages/changePhone/index.ts
  8. 4
      src/patient/pages/changeUser/index.ts
  9. 14
      src/patient/pages/doctor/index.ts
  10. 2
      src/patient/pages/doctorDetail/index.ts
  11. 2
      src/patient/pages/doctorDetailBak/index.ts
  12. 4
      src/patient/pages/drugRecord/index.ts
  13. 2
      src/patient/pages/enterInfo/index.ts
  14. 4
      src/patient/pages/family/index.ts
  15. 4
      src/patient/pages/familyList/index.ts
  16. 4
      src/patient/pages/familyScan/index.ts
  17. 2
      src/patient/pages/getUserInfo/index.ts
  18. 4
      src/patient/pages/hospital/index.ts
  19. 46
      src/patient/pages/index/index.ts
  20. 12
      src/patient/pages/interactivePatient/index.ts
  21. 6
      src/patient/pages/live/index.ts
  22. 8
      src/patient/pages/liveDetail/index.ts
  23. 6
      src/patient/pages/liveResult/index.ts
  24. 6
      src/patient/pages/login/index.ts
  25. 4
      src/patient/pages/my/index.ts
  26. 4
      src/patient/pages/myLive/index.ts
  27. 26
      src/patient/pages/mySave/index.ts
  28. 18
      src/patient/pages/nrdl/index.ts
  29. 4
      src/patient/pages/nrdlDetail/index.ts
  30. 2
      src/patient/pages/nrdlTable/index.ts
  31. 2
      src/patient/pages/personalInformation/index.ts
  32. 10
      src/patient/pages/publishStoryDetail/index.ts
  33. 4
      src/patient/pages/referral/index.ts
  34. 28
      src/patient/pages/repository/index.ts
  35. 16
      src/patient/pages/repositoryDetail/index.ts
  36. 6
      src/patient/pages/signIn/index.ts
  37. 4
      src/patient/pages/story/index.ts
  38. 8
      src/patient/pages/storyDetail/index.ts
  39. 2
      src/patient/pages/storyEnter/index.ts
  40. 4
      src/patient/pages/storyEnterResult/index.ts
  41. 6
      src/patient/pages/storyGuide/index.ts
  42. 2
      src/patient/pages/storyList/index.ts
  43. 2
      src/patient/pages/thePublic/index.ts
  44. 6
      src/patient/pages/uploadCert/index.ts
  45. 6
      src/patient/pages/uploadCertBak/index.ts
  46. 2
      src/patient/pages/vipLogin/index.ts
  47. 4
      src/patient/pages/webview/index.ts

16
src/app.ts

@ -128,10 +128,17 @@ App<IAppOption>({
showMsg: false, showMsg: false,
}); });
}, },
getMenuInfo(self) {
const menuButtonInfo = wx.getMenuButtonBoundingClientRect();
self.setData({
menuButtonInfo,
});
},
// zd相关函数
zdMpBehavior(data: { PageName: string; doctor?: boolean }) { zdMpBehavior(data: { PageName: string; doctor?: boolean }) {
let url = '?r=xd/mp-behavior/add'; let url = '?r=xd/mp-behavior/add';
if (data.doctor) { if (data.doctor) {
url = '?r=xd/doctor/mp-behavior/add'; url = '?r=zd/doctor/mp-behavior/add';
} }
delete data.doctor; delete data.doctor;
wx.ajax({ wx.ajax({
@ -144,13 +151,6 @@ App<IAppOption>({
console.log('res: ', res); console.log('res: ', res);
}); });
}, },
getMenuInfo(self) {
const menuButtonInfo = wx.getMenuButtonBoundingClientRect();
self.setData({
menuButtonInfo,
});
},
// zd相关函数
zdGetTheme() { zdGetTheme() {
return new Promise((resolve) => { return new Promise((resolve) => {
const checkUserType = () => { const checkUserType = () => {

4
src/patient/pages/adl/index.ts

@ -33,7 +33,7 @@ Page({
if (options.adlPushId) { if (options.adlPushId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/push-click/adl-push-click', url: '?r=zd/push-click/adl-push-click',
data: { adlPushId: options.adlPushId }, data: { adlPushId: options.adlPushId },
}) })
} }
@ -68,7 +68,7 @@ Page({
getAdlScore() { getAdlScore() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/adl/get-score', url: '?r=zd/adl/get-score',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({

10
src/patient/pages/adlResult/index.ts

@ -127,7 +127,7 @@ Page({
getQrCode() { getQrCode() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/adl/qrcode', url: '?r=zd/adl/qrcode',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -138,7 +138,7 @@ Page({
getUnreadCount() { getUnreadCount() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/message-interact/get-unread-count', url: '?r=zd/message-interact/get-unread-count',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -150,7 +150,7 @@ Page({
const { id } = this.data const { id } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/adl/view', url: '?r=zd/adl/view',
data: { data: {
Id: id, Id: id,
}, },
@ -174,7 +174,7 @@ Page({
getOpenPatientList() { getOpenPatientList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/nrdl/open-patient-list', url: '?r=zd/nrdl/open-patient-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -205,7 +205,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/adl/delete', url: '?r=zd/adl/delete',
data: { data: {
Id: id, Id: id,
}, },

4
src/patient/pages/adlTest/index.ts

@ -354,7 +354,7 @@ Page({
const params = this.data.params const params = this.data.params
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/adl/create', url: '?r=zd/adl/create',
data: params, data: params,
}).then((res) => { }).then((res) => {
this.updateAdlImg(res.Id, Url, res) this.updateAdlImg(res.Id, Url, res)
@ -364,7 +364,7 @@ Page({
const { m_d, nrdl } = this.data const { m_d, nrdl } = this.data
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/adl/update-img', url: '?r=zd/adl/update-img',
data: { data: {
Id: id, Id: id,
ImgUrl: Url, ImgUrl: Url,

2
src/patient/pages/cancellation/index.ts

@ -26,7 +26,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/account/cancellation", url: "?r=zd/account/cancellation",
data: {}, data: {},
loading: true, loading: true,
}).then(() => { }).then(() => {

2
src/patient/pages/certPending/index.ts

@ -19,7 +19,7 @@ Page({
getCode() { getCode() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-channel-wx-code", url: "?r=zd/common/get-channel-wx-code",
data: { data: {
ChannelType: "11", ChannelType: "11",
Id: "", Id: "",

4
src/patient/pages/changePhone/index.ts

@ -29,7 +29,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/login/send-verify-code", url: "?r=zd/login/send-verify-code",
data: { data: {
mobile, mobile,
}, },
@ -60,7 +60,7 @@ Page({
const { registrationSource, registChannel, regBusinessId } = app.globalData; const { registrationSource, registChannel, regBusinessId } = app.globalData;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/account/update-telephone", url: "?r=zd/account/update-telephone",
data: { data: {
mobile, mobile,
code, code,

4
src/patient/pages/changeUser/index.ts

@ -29,7 +29,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/login/send-verify-code", url: "?r=zd/login/send-verify-code",
data: { data: {
mobile, mobile,
}, },
@ -60,7 +60,7 @@ Page({
const { registrationSource, registChannel, regBusinessId } = app.globalData; const { registrationSource, registChannel, regBusinessId } = app.globalData;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/login/change-user-login", url: "?r=zd/login/change-user-login",
data: { data: {
mobile, mobile,
code, code,

14
src/patient/pages/doctor/index.ts

@ -190,7 +190,7 @@ Page({
getLocationInfo() { getLocationInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/hospital/location-info', url: '?r=zd/hospital/location-info',
data: { data: {
lng: this.data.LNG, lng: this.data.LNG,
lat: this.data.LAT, lat: this.data.LAT,
@ -222,7 +222,7 @@ Page({
const { Name, LNG, LAT, ProvinceId, CityId } = this.data const { Name, LNG, LAT, ProvinceId, CityId } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/hospital/list', url: '?r=zd/hospital/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -244,7 +244,7 @@ Page({
const { Name, LNG, LAT, ProvinceId, CityId } = this.data const { Name, LNG, LAT, ProvinceId, CityId } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/doctor/list', url: '?r=zd/doctor/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -280,7 +280,7 @@ Page({
const { Name, LNG, LAT, ProvinceId, CityId } = this.data const { Name, LNG, LAT, ProvinceId, CityId } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/dtp-pharmacy/list', url: '?r=zd/dtp-pharmacy/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -298,7 +298,7 @@ Page({
// getDtpAlert() { // getDtpAlert() {
// wx.ajax({ // wx.ajax({
// method: 'GET', // method: 'GET',
// url: '?r=xd/popup/info', // url: '?r=zd/popup/info',
// data: { Type: 3 }, // data: { Type: 3 },
// }).then((res) => { // }).then((res) => {
// if (res.showAlert) { // if (res.showAlert) {
@ -312,7 +312,7 @@ Page({
hideDtpAlert() { hideDtpAlert() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/popup/close-popup', url: '?r=zd/popup/close-popup',
data: { Type: 3 }, data: { Type: 3 },
}).then((_res) => {}) }).then((_res) => {})
}, },
@ -372,7 +372,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/score/send-score', url: '?r=zd/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id: 0, Id: 0,

2
src/patient/pages/doctorDetail/index.ts

@ -99,7 +99,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/doctor/detail', url: '?r=zd/doctor/detail',
data: { data: {
Id: this.data.id, Id: this.data.id,
lng: this.data.LNG, lng: this.data.LNG,

2
src/patient/pages/doctorDetailBak/index.ts

@ -101,7 +101,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/doctor/detail", url: "?r=zd/doctor/detail",
data: { data: {
Id: this.data.id, Id: this.data.id,
lng: this.data.LNG, lng: this.data.LNG,

4
src/patient/pages/drugRecord/index.ts

@ -40,7 +40,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/medication/view', url: '?r=zd/medication/view',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -75,7 +75,7 @@ Page({
}) })
return 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({ wx.ajax({
method: 'POST', method: 'POST',
url, url,

2
src/patient/pages/enterInfo/index.ts

@ -111,7 +111,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/account/reg', url: '?r=zd/account/reg',
data: { data: {
name, name,
gender, gender,

4
src/patient/pages/family/index.ts

@ -26,7 +26,7 @@ Page({
getMpInfo() { getMpInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/account/mp-info', url: '?r=zd/account/mp-info',
}).then((res: IMpInfo) => { }).then((res: IMpInfo) => {
this.setData({ this.setData({
mpInfo: res, mpInfo: res,
@ -36,7 +36,7 @@ Page({
}, },
getQrCode() { getQrCode() {
this.setData({ 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() { handleQrCodeLoad() {

4
src/patient/pages/familyList/index.ts

@ -20,7 +20,7 @@ Page({
getFamilyList(loading = true) { getFamilyList(loading = true) {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/account/relatives", url: "?r=zd/account/relatives",
data: {}, data: {},
loading, loading,
}).then((res) => { }).then((res) => {
@ -42,7 +42,7 @@ Page({
this.handleUnbindCancel(); this.handleUnbindCancel();
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/account/unbind-user", url: "?r=zd/account/unbind-user",
data: { data: {
UserId, UserId,
}, },

4
src/patient/pages/familyScan/index.ts

@ -34,7 +34,7 @@ Page({
const { UserType } = this.data.zdUserInfo; const { UserType } = this.data.zdUserInfo;
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/account/mp-patient-info", url: "?r=zd/account/mp-patient-info",
data: { data: {
PatientId: this.data.PatientId, PatientId: this.data.PatientId,
}, },
@ -94,7 +94,7 @@ Page({
// return; // return;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/account/bind-patient", url: "?r=zd/account/bind-patient",
data: { data: {
PatientId, PatientId,
RelationType, RelationType,

2
src/patient/pages/getUserInfo/index.ts

@ -37,7 +37,7 @@ Page({
let avatarUrl = data.data.Url; let avatarUrl = data.data.Url;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/account/update-user-img", url: "?r=zd/account/update-user-img",
data: { data: {
UserImg: decodeURI(avatarUrl), UserImg: decodeURI(avatarUrl),
}, },

4
src/patient/pages/hospital/index.ts

@ -110,7 +110,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/hospital/detail', url: '?r=zd/hospital/detail',
data: { data: {
Id: this.data.id, Id: this.data.id,
lng: this.data.LNG, lng: this.data.LNG,
@ -163,7 +163,7 @@ Page({
handleTimeOut(Id) { handleTimeOut(Id) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/score/send-score', url: '?r=zd/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id, Id,

46
src/patient/pages/index/index.ts

@ -94,7 +94,7 @@ Page({
getUnreadCount() { getUnreadCount() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/message-interact/get-unread-count', url: '?r=zd/message-interact/get-unread-count',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -105,7 +105,7 @@ Page({
getSystemConfig() { getSystemConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -116,7 +116,7 @@ Page({
getLastRecord() { getLastRecord() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/medication/last-record', url: '?r=zd/medication/last-record',
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
detail: { detail: {
@ -134,7 +134,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: `?r=xd/mini-conf/get-config`, url: `?r=zd/mini-conf/get-config`,
data: { userType: UserType }, data: { userType: UserType },
}).then((res) => { }).then((res) => {
res = res.map((item: any) => { res = res.map((item: any) => {
@ -179,7 +179,7 @@ Page({
async getPopup() { async getPopup() {
const data5 = await wx.ajax({ const data5 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/popup/info', url: '?r=zd/popup/info',
data: { data: {
Type: 5, Type: 5,
}, },
@ -196,7 +196,7 @@ Page({
const data4 = await wx.ajax({ const data4 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/popup/info', url: '?r=zd/popup/info',
data: { data: {
Type: 4, Type: 4,
}, },
@ -212,7 +212,7 @@ Page({
const data1 = await wx.ajax({ const data1 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/popup/info', url: '?r=zd/popup/info',
data: { Type: 1 }, data: { Type: 1 },
}); });
if (!Array.isArray(data1)) { if (!Array.isArray(data1)) {
@ -226,7 +226,7 @@ Page({
const data2 = await wx.ajax({ const data2 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/popup/info', url: '?r=zd/popup/info',
data: { data: {
Type: 2, Type: 2,
}, },
@ -243,7 +243,7 @@ Page({
const data3 = await wx.ajax({ const data3 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/popup/info', url: '?r=zd/popup/info',
data: { data: {
Type: 6, Type: 6,
}, },
@ -258,7 +258,7 @@ Page({
const data6 = await wx.ajax({ const data6 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/re-visit/get-popup-show-status', url: '?r=zd/re-visit/get-popup-show-status',
}); });
if (data6.showStatus === 1) { if (data6.showStatus === 1) {
this.setData({ this.setData({
@ -271,7 +271,7 @@ Page({
setPopupInfo() { setPopupInfo() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/popup/update-click-status', url: '?r=zd/popup/update-click-status',
data: { data: {
Type: 1, Type: 1,
Id: this.data.toastParams.Id, Id: this.data.toastParams.Id,
@ -281,14 +281,14 @@ Page({
setBannerClick() { setBannerClick() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/nrdl/add-banner-click-record', url: '?r=zd/nrdl/add-banner-click-record',
data: {}, data: {},
}); });
}, },
getInfoList(configId: string) { getInfoList(configId: string) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/pic-text/index-list', url: '?r=zd/pic-text/index-list',
data: { data: {
count: 0, count: 0,
ConfigId: configId, ConfigId: configId,
@ -302,7 +302,7 @@ Page({
getStoryList(configId: string) { getStoryList(configId: string) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/story/index-list', url: '?r=zd/story/index-list',
data: { data: {
count: 0, count: 0,
ConfigId: configId, ConfigId: configId,
@ -316,7 +316,7 @@ Page({
getAdl() { getAdl() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/adl/index', url: '?r=zd/adl/index',
data: {}, data: {},
}).then((res) => { }).then((res) => {
const newRecord = res.newRecord; const newRecord = res.newRecord;
@ -334,7 +334,7 @@ Page({
getActivity(ConfigId: string, count: number, key: string) { getActivity(ConfigId: string, count: number, key: string) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/activity/index-list', url: '?r=zd/activity/index-list',
data: { ConfigId, count }, data: { ConfigId, count },
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -449,7 +449,7 @@ Page({
handleSlider() { handleSlider() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/nrdl/add-slide-click-record', url: '?r=zd/nrdl/add-slide-click-record',
data: {}, data: {},
}); });
this.handleNRDL(); this.handleNRDL();
@ -523,7 +523,7 @@ Page({
} else if (toastType === 'dedicatedDoctor') { } else if (toastType === 'dedicatedDoctor') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/popup/close-popup', url: '?r=zd/popup/close-popup',
data: { data: {
Type: 6, Type: 6,
}, },
@ -539,7 +539,7 @@ Page({
}); });
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/re-visit/update-popup-show-status', url: '?r=zd/re-visit/update-popup-show-status',
data: {}, data: {},
}); });
this.handleToastCancel(null, false); this.handleToastCancel(null, false);
@ -550,7 +550,7 @@ Page({
if (toastType === 'doubleStandards' && sure) { if (toastType === 'doubleStandards' && sure) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/popup/close-popup', url: '?r=zd/popup/close-popup',
data: { data: {
Type: 5, Type: 5,
}, },
@ -558,7 +558,7 @@ Page({
} else if (toastType === 'dedicatedDoctor' && sure) { } else if (toastType === 'dedicatedDoctor' && sure) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/popup/close-popup', url: '?r=zd/popup/close-popup',
data: { data: {
Type: 6, Type: 6,
}, },
@ -566,7 +566,7 @@ Page({
} else if (toastType === 'referral-toast') { } else if (toastType === 'referral-toast') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/re-visit/update-popup-show-status', url: '?r=zd/re-visit/update-popup-show-status',
data: {}, data: {},
}); });
} }
@ -590,7 +590,7 @@ Page({
}); });
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/account/add-user-subscribe-guide-record', url: '?r=zd/account/add-user-subscribe-guide-record',
data: {}, data: {},
}); });
}, },

12
src/patient/pages/interactivePatient/index.ts

@ -66,14 +66,14 @@ Page({
if (options.adlPushId) { if (options.adlPushId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/push-click/adl-push-click', url: '?r=zd/push-click/adl-push-click',
data: { adlPushId: options.adlPushId }, data: { adlPushId: options.adlPushId },
}) })
} }
if (options.taskPushId) { if (options.taskPushId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/push-click/task-push-click', url: '?r=zd/push-click/task-push-click',
data: { taskPushId: options.taskPushId }, data: { taskPushId: options.taskPushId },
}) })
} }
@ -92,7 +92,7 @@ Page({
getDoctorDetail() { getDoctorDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/message-interact/get-bind-doctor-info', url: '?r=zd/message-interact/get-bind-doctor-info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -105,7 +105,7 @@ Page({
getQuestionList() { getQuestionList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/message-interact/get-question-list', url: '?r=zd/message-interact/get-question-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -122,7 +122,7 @@ Page({
const nextMsgId = this.data.nextMsgId const nextMsgId = this.data.nextMsgId
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/message-interact/patient-get-message-list', url: '?r=zd/message-interact/patient-get-message-list',
data: { data: {
nextMsgId, nextMsgId,
}, },
@ -208,7 +208,7 @@ Page({
sendQuestion(questionId) { sendQuestion(questionId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/message-interact/send-question-message', url: '?r=zd/message-interact/send-question-message',
data: { data: {
questionId, questionId,
}, },

6
src/patient/pages/live/index.ts

@ -70,7 +70,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
let active = this.data.active let active = this.data.active
@ -89,7 +89,7 @@ Page({
getCateList() { getCateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/activity/cate-list', url: '?r=zd/activity/cate-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -195,7 +195,7 @@ Page({
const { CateId, Search, LNG, LAT } = this.data const { CateId, Search, LNG, LAT } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/activity/list', url: '?r=zd/activity/list',
data: { data: {
Type: Number(active || 0) + 1, Type: Number(active || 0) + 1,
CateId, CateId,

8
src/patient/pages/liveDetail/index.ts

@ -60,7 +60,7 @@ Page({
setView() { setView() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/activity/view', url: '?r=zd/activity/view',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -71,7 +71,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/activity/detail', url: '?r=zd/activity/detail',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -153,7 +153,7 @@ Page({
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/activity/sign-up', url: '?r=zd/activity/sign-up',
data: { data: {
Id: this.data.id, Id: this.data.id,
PreUserIdentity: UserType, PreUserIdentity: UserType,
@ -183,7 +183,7 @@ Page({
const { UserType } = this.data.zdUserInfo const { UserType } = this.data.zdUserInfo
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/activity/share', url: '?r=zd/activity/share',
data: { Id: this.data.id, PreUserIdentity: UserType }, data: { Id: this.data.id, PreUserIdentity: UserType },
}).then((res) => { }).then((res) => {
this.getDetail() this.getDetail()

6
src/patient/pages/liveResult/index.ts

@ -38,7 +38,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/activity/sign-up-detail", url: "?r=zd/activity/sign-up-detail",
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -53,7 +53,7 @@ Page({
getLiveDetail() { getLiveDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/activity/detail", url: "?r=zd/activity/detail",
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -74,7 +74,7 @@ Page({
const { registChannel } = app.globalData; const { registChannel } = app.globalData;
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-channel-wx-code", url: "?r=zd/common/get-channel-wx-code",
data: { data: {
Id: this.data.id, Id: this.data.id,
ChannelType: registChannel, ChannelType: registChannel,

6
src/patient/pages/login/index.ts

@ -40,7 +40,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/login/send-verify-code', url: '?r=zd/login/send-verify-code',
data: { data: {
mobile, mobile,
}, },
@ -71,7 +71,7 @@ Page({
const { registrationSource, registChannel, regBusinessId } = app.globalData; const { registrationSource, registChannel, regBusinessId } = app.globalData;
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/login/reg-login', url: '?r=zd/login/reg-login',
data: { data: {
mobile, mobile,
code, code,
@ -90,7 +90,7 @@ Page({
if (iv && encryptedData) { if (iv && encryptedData) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/login/wx-reg-login', url: '?r=zd/login/wx-reg-login',
data: { data: {
iv: encodeURIComponent(iv), iv: encodeURIComponent(iv),
encryptedData: encodeURIComponent(encryptedData), encryptedData: encodeURIComponent(encryptedData),

4
src/patient/pages/my/index.ts

@ -40,7 +40,7 @@ Page({
getScore() { getScore() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/patient-score/get-self-score', url: '?r=zd/patient-score/get-self-score',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -72,7 +72,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/account/update-adl-notify-switch', url: '?r=zd/account/update-adl-notify-switch',
data: { data: {
AdlNotifySwitch: e.detail ? 1 : 2, AdlNotifySwitch: e.detail ? 1 : 2,
}, },

4
src/patient/pages/myLive/index.ts

@ -37,7 +37,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
let active = 0 let active = 0
@ -65,7 +65,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/activity/sign-up-list', url: '?r=zd/activity/sign-up-list',
data: { data: {
Type: Number(active) == 0 ? '' : Number(active), Type: Number(active) == 0 ? '' : Number(active),
page: newPage, page: newPage,

26
src/patient/pages/mySave/index.ts

@ -19,7 +19,7 @@ Page({
app.zdWaitLogin().then(() => { app.zdWaitLogin().then(() => {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
config: res, config: res,
@ -31,7 +31,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -65,7 +65,7 @@ Page({
getInfoList(newPage = 1) { getInfoList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/pic-text/collection-list', url: '?r=zd/pic-text/collection-list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -88,7 +88,7 @@ Page({
getVideoList(newPage = 1) { getVideoList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/video/collection-list', url: '?r=zd/video/collection-list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -111,7 +111,7 @@ Page({
getQuestionList(newPage = 1) { getQuestionList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/health-question/collection-list', url: '?r=zd/health-question/collection-list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -135,7 +135,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/compliment', url: '?r=zd/pic-text/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -151,7 +151,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/compliment', url: '?r=zd/video/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -180,7 +180,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/view', url: '?r=zd/video/view',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -198,7 +198,7 @@ Page({
handleVideoTime: licia.throttle(function (e: WechatMiniprogram.CustomEvent) { handleVideoTime: licia.throttle(function (e: WechatMiniprogram.CustomEvent) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/video/watch-duration', url: '?r=zd/video/watch-duration',
data: { data: {
HistoryId: this.data.HistoryId, HistoryId: this.data.HistoryId,
WatchDuration: e.detail.currentTime, WatchDuration: e.detail.currentTime,
@ -239,7 +239,7 @@ Page({
if (collect == 1) { if (collect == 1) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/cancel-collection', url: '?r=zd/video/cancel-collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -257,7 +257,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/collection', url: '?r=zd/video/collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -307,7 +307,7 @@ Page({
if (type == 'info') { if (type == 'info') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/share', url: '?r=zd/pic-text/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({
@ -322,7 +322,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/share', url: '?r=zd/video/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({

18
src/patient/pages/nrdl/index.ts

@ -66,7 +66,7 @@ Page({
getAdlScore() { getAdlScore() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/nrdl/get-score", url: "?r=zd/nrdl/get-score",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -77,7 +77,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-config", url: "?r=zd/common/get-config",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -91,7 +91,7 @@ Page({
addOpenRecord() { addOpenRecord() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/nrdl/add-open-record&OpenType=1", url: "?r=zd/nrdl/add-open-record&OpenType=1",
data: {}, data: {},
}).then((res) => { }).then((res) => {
if (res.CanGetScore) { if (res.CanGetScore) {
@ -116,7 +116,7 @@ Page({
getCode() { getCode() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-channel-wx-code", url: "?r=zd/common/get-channel-wx-code",
data: { ChannelType: 12 }, data: { ChannelType: 12 },
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -127,7 +127,7 @@ Page({
getNrdlDetail() { getNrdlDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/nrdl-hospital/detail", url: "?r=zd/nrdl-hospital/detail",
data: {}, data: {},
}).then((res) => { }).then((res) => {
res.last10Records = res.last10Records.map((item) => { res.last10Records = res.last10Records.map((item) => {
@ -309,7 +309,7 @@ Page({
getLocationInfo() { getLocationInfo() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/nrdl-hospital/location-info", url: "?r=zd/nrdl-hospital/location-info",
data: { data: {
lat: this.data.LAT, lat: this.data.LAT,
lng: this.data.LNG, lng: this.data.LNG,
@ -332,7 +332,7 @@ Page({
const areaValue = this.data.areaValue; const areaValue = this.data.areaValue;
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/nrdl-hospital/list", url: "?r=zd/nrdl-hospital/list",
data: { data: {
ProvinceId: areaValue[0], ProvinceId: areaValue[0],
CityId: areaValue[1], CityId: areaValue[1],
@ -391,7 +391,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/nrdl-hospital/add", url: "?r=zd/nrdl-hospital/add",
data: { data: {
ProvinceId: areaValue[0], //省Id ProvinceId: areaValue[0], //省Id
ProvinceName: cascaderName.split("/")[0], //省份名 ProvinceName: cascaderName.split("/")[0], //省份名
@ -431,7 +431,7 @@ Page({
handleDtpRecord() { handleDtpRecord() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/nrdl/add-dtp-pharmacy-click-record", url: "?r=zd/nrdl/add-dtp-pharmacy-click-record",
data: {}, data: {},
}).then((res) => { }).then((res) => {
console.log("res: ", res); console.log("res: ", res);

4
src/patient/pages/nrdlDetail/index.ts

@ -48,7 +48,7 @@ Page({
addOpenRecord() { addOpenRecord() {
wx.ajax({ wx.ajax({
method: 'POST', 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: {}, data: {},
}).then((res) => { }).then((res) => {
if (res.CanGetScore) { if (res.CanGetScore) {
@ -61,7 +61,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({

2
src/patient/pages/nrdlTable/index.ts

@ -863,7 +863,7 @@ Page({
addOpenRecord() { addOpenRecord() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: `?r=xd/nrdl/add-open-record&OpenType=${3}`, url: `?r=zd/nrdl/add-open-record&OpenType=${3}`,
data: {}, data: {},
}).then((res) => { }).then((res) => {
if (res.CanGetScore) { if (res.CanGetScore) {

2
src/patient/pages/personalInformation/index.ts

@ -307,7 +307,7 @@ Page({
const { PatientName, RelationType, Gender, Birth, DiagnosisTime, DiagnoseType, ...zdUserInfo } = this.data.zdUserInfo const { PatientName, RelationType, Gender, Birth, DiagnosisTime, DiagnoseType, ...zdUserInfo } = this.data.zdUserInfo
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/account/update-info', url: '?r=zd/account/update-info',
data: { data: {
name: PatientName, name: PatientName,
relationType: RelationType, relationType: RelationType,

10
src/patient/pages/publishStoryDetail/index.ts

@ -48,7 +48,7 @@ Page({
getInfoDetail(id, star = false) { getInfoDetail(id, star = false) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/story/story-info', url: '?r=zd/story/story-info',
data: { data: {
Id: id, Id: id,
}, },
@ -90,7 +90,7 @@ Page({
handleView(id) { handleView(id) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/story/view', url: '?r=zd/story/view',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -115,7 +115,7 @@ Page({
}, 2000) }, 2000)
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/story/compliment', url: '?r=zd/story/compliment',
data: { data: {
ContentId: this.data.id, ContentId: this.data.id,
}, },
@ -139,7 +139,7 @@ Page({
const { id } = this.data const { id } = this.data
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/story/share', url: '?r=zd/story/share',
data: { ContentId: id }, data: { ContentId: id },
}).then((res) => { }).then((res) => {
console.log('res: ', res) console.log('res: ', res)
@ -151,7 +151,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/score/send-score', url: '?r=zd/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id: this.data.detail.Id, Id: this.data.detail.Id,

4
src/patient/pages/referral/index.ts

@ -29,7 +29,7 @@ Page({
updatePush(id) { updatePush(id) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/push-click/update-click-status', url: '?r=zd/push-click/update-click-status',
data: { data: {
pushId: id, pushId: id,
}, },
@ -38,7 +38,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/re-visit/get-list', url: '?r=zd/re-visit/get-list',
data: { data: {
page: newPage, page: newPage,
}, },

28
src/patient/pages/repository/index.ts

@ -36,7 +36,7 @@ Page({
getConfig(options: any) { getConfig(options: any) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
let active = Number(options.active) || 0 let active = Number(options.active) || 0
@ -63,7 +63,7 @@ Page({
getBanner() { getBanner() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/mini-conf/get-mg-config', url: '?r=zd/mini-conf/get-mg-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -105,7 +105,7 @@ Page({
getInfoCateList() { getInfoCateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/pic-text/cate-list', url: '?r=zd/pic-text/cate-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -116,7 +116,7 @@ Page({
getVideoCateList() { getVideoCateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/video/cate-list', url: '?r=zd/video/cate-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -128,7 +128,7 @@ Page({
const { CateId, Search } = this.data const { CateId, Search } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/pic-text/list', url: '?r=zd/pic-text/list',
data: { data: {
page: newPage, page: newPage,
CateId, CateId,
@ -154,7 +154,7 @@ Page({
const { CateId, Search } = this.data const { CateId, Search } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/video/list', url: '?r=zd/video/list',
data: { data: {
page: newPage, page: newPage,
CateId, CateId,
@ -180,7 +180,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/compliment', url: '?r=zd/pic-text/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -196,7 +196,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/compliment', url: '?r=zd/video/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -224,7 +224,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/view', url: '?r=zd/video/view',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -242,7 +242,7 @@ Page({
handleVideoTime: licia.throttle(function (e: WechatMiniprogram.CustomEvent) { handleVideoTime: licia.throttle(function (e: WechatMiniprogram.CustomEvent) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/watch-duration', url: '?r=zd/video/watch-duration',
data: { data: {
HistoryId: this.data.HistoryId, HistoryId: this.data.HistoryId,
WatchDuration: e.detail.currentTime, WatchDuration: e.detail.currentTime,
@ -276,7 +276,7 @@ Page({
if (collect == 1) { if (collect == 1) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/cancel-collection', url: '?r=zd/video/cancel-collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -294,7 +294,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/collection', url: '?r=zd/video/collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -343,7 +343,7 @@ Page({
if (type == 'info') { if (type == 'info') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/share', url: '?r=zd/pic-text/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({
@ -358,7 +358,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/video/share', url: '?r=zd/video/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({

16
src/patient/pages/repositoryDetail/index.ts

@ -59,7 +59,7 @@ Page({
getDetail(view = false) { getDetail(view = false) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/pic-text/detail', url: '?r=zd/pic-text/detail',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -102,7 +102,7 @@ Page({
handleVideoTime: licia.throttle(function (time) { handleVideoTime: licia.throttle(function (time) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/watch-duration', url: '?r=zd/pic-text/watch-duration',
data: { data: {
HistoryId: this.data.HistoryId, HistoryId: this.data.HistoryId,
WatchDuration: time, WatchDuration: time,
@ -114,7 +114,7 @@ Page({
saveView() { saveView() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/view', url: '?r=zd/pic-text/view',
data: { data: {
ContentId: this.data.id, ContentId: this.data.id,
}, },
@ -160,7 +160,7 @@ Page({
}, 2000) }, 2000)
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/compliment', url: '?r=zd/pic-text/compliment',
data: { data: {
ContentId: this.data.id, ContentId: this.data.id,
}, },
@ -185,7 +185,7 @@ Page({
if (IsCollect == 1) { if (IsCollect == 1) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/cancel-collection', url: '?r=zd/pic-text/cancel-collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -200,7 +200,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/collection', url: '?r=zd/pic-text/collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -241,7 +241,7 @@ Page({
handleShare() { handleShare() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/pic-text/share', url: '?r=zd/pic-text/share',
data: { data: {
ContentId: this.data.id, ContentId: this.data.id,
}, },
@ -255,7 +255,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/score/send-score', url: '?r=zd/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id: this.data.detail.Id, Id: this.data.detail.Id,

6
src/patient/pages/signIn/index.ts

@ -25,7 +25,7 @@ Page({
signIn() { signIn() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/activity/sign-in", url: "?r=zd/activity/sign-in",
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -37,7 +37,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/activity/sign-in-detail", url: "?r=zd/activity/sign-in-detail",
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -51,7 +51,7 @@ Page({
const { registChannel } = app.globalData; const { registChannel } = app.globalData;
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-channel-wx-code", url: "?r=zd/common/get-channel-wx-code",
data: { data: {
Id: this.data.id, Id: this.data.id,
ChannelType: registChannel, ChannelType: registChannel,

4
src/patient/pages/story/index.ts

@ -38,7 +38,7 @@ Page({
const loading = !this.data.list.length const loading = !this.data.list.length
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/story/story-list', url: '?r=zd/story/story-list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -60,7 +60,7 @@ Page({
const { Id, ComplimentNum } = this.data.list[index] const { Id, ComplimentNum } = this.data.list[index]
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/story/compliment', url: '?r=zd/story/compliment',
data: { data: {
ContentId: Id, ContentId: Id,
}, },

8
src/patient/pages/storyDetail/index.ts

@ -26,7 +26,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/story/submit-story-info", url: "?r=zd/story/submit-story-info",
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -82,7 +82,7 @@ Page({
handleOk() { handleOk() {
const id = this.data.detail.Id; const id = this.data.detail.Id;
const type = this.data.toastType; 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({ wx.ajax({
method: "POST", method: "POST",
url, url,
@ -99,7 +99,7 @@ Page({
const id = this.data.detail.Id; const id = this.data.detail.Id;
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/story/delete", url: "?r=zd/story/delete",
data: { data: {
Id: id, Id: id,
}, },
@ -110,7 +110,7 @@ Page({
}, },
handleSwitchChange(e) { handleSwitchChange(e) {
console.log("e: ", 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({ wx.ajax({
method: "POST", method: "POST",
url, url,

2
src/patient/pages/storyEnter/index.ts

@ -263,7 +263,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/story/submit-story', url: '?r=zd/story/submit-story',
data: { data: {
...form, ...form,
StoryLeadIn: this.data.StoryLeadIn, StoryLeadIn: this.data.StoryLeadIn,

4
src/patient/pages/storyEnterResult/index.ts

@ -30,7 +30,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-config", url: "?r=zd/common/get-config",
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
config: res, config: res,
@ -40,7 +40,7 @@ Page({
getCode() { getCode() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-channel-wx-code", url: "?r=zd/common/get-channel-wx-code",
data: { data: {
ChannelType: "5", ChannelType: "5",
Id: "", Id: "",

6
src/patient/pages/storyGuide/index.ts

@ -32,7 +32,7 @@ Page({
setToSee() { setToSee() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/story/to-see', url: '?r=zd/story/to-see',
data: { OriginSource: this.data.OriginSource }, data: { OriginSource: this.data.OriginSource },
}).then((res) => { }).then((res) => {
console.log(res) console.log(res)
@ -41,7 +41,7 @@ Page({
getSettingInfo() { getSettingInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/drugs/setting-info', url: '?r=zd/drugs/setting-info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -52,7 +52,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/common/get-config', url: '?r=zd/common/get-config',
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
config: res, config: res,

2
src/patient/pages/storyList/index.ts

@ -29,7 +29,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/story/submit-story-list', url: '?r=zd/story/submit-story-list',
data: { data: {
page: newPage, page: newPage,
}, },

2
src/patient/pages/thePublic/index.ts

@ -20,7 +20,7 @@ Page({
getCode() { getCode() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=xd/common/get-channel-wx-code", url: "?r=zd/common/get-channel-wx-code",
data: { data: {
ChannelType: "11", ChannelType: "11",
Id: "", Id: "",

6
src/patient/pages/uploadCert/index.ts

@ -36,7 +36,7 @@ Page({
handleAiPass(imgUrl: string) { handleAiPass(imgUrl: string) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/common/image-verify', url: '?r=zd/common/image-verify',
data: { data: {
ImageUrl: imgUrl, ImageUrl: imgUrl,
}, },
@ -87,7 +87,7 @@ Page({
}[urlKey] }[urlKey]
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/account/upload-audit-img', url: '?r=zd/account/upload-audit-img',
data: { data: {
diagnoseImg, diagnoseImg,
aiPass: this.data.aiPass, aiPass: this.data.aiPass,
@ -148,7 +148,7 @@ Page({
const { registrationSource, registChannel, regBusinessId } = app.globalData const { registrationSource, registChannel, regBusinessId } = app.globalData
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=xd/account/upload-audit-img', url: '?r=zd/account/upload-audit-img',
data: { data: {
diagnoseImg: diagnoseImg:
'https://picsissiok-10049618.cos.ap-shanghai.myqcloud.com/bcab677e86765391f6db4d89d9ea3833_16928589877137.jpg', 'https://picsissiok-10049618.cos.ap-shanghai.myqcloud.com/bcab677e86765391f6db4d89d9ea3833_16928589877137.jpg',

6
src/patient/pages/uploadCertBak/index.ts

@ -32,7 +32,7 @@ Page({
handleAiPass(imgUrl: string) { handleAiPass(imgUrl: string) {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/common/image-verify", url: "?r=zd/common/image-verify",
data: { data: {
ImageUrl: imgUrl, ImageUrl: imgUrl,
}, },
@ -83,7 +83,7 @@ Page({
}[urlKey]; }[urlKey];
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/account/upload-audit-img", url: "?r=zd/account/upload-audit-img",
data: { data: {
diagnoseImg, diagnoseImg,
aiPass: this.data.aiPass, aiPass: this.data.aiPass,
@ -131,7 +131,7 @@ Page({
}[urlKey]; }[urlKey];
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/account/upload-audit-img", url: "?r=zd/account/upload-audit-img",
data: { data: {
diagnoseImg, diagnoseImg,
aiPass: 1, aiPass: 1,

2
src/patient/pages/vipLogin/index.ts

@ -52,7 +52,7 @@ Page({
}); });
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=xd/drugs/record-code", url: "?r=zd/drugs/record-code",
data: { data: {
drugsCode: DrugsCode, drugsCode: DrugsCode,
registrationSource, registrationSource,

4
src/patient/pages/webview/index.ts

@ -37,7 +37,7 @@ Page({
getAdl() { getAdl() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/adl/index', url: '?r=zd/adl/index',
data: {}, data: {},
}).then((res) => { }).then((res) => {
const newRecord = res.newRecord const newRecord = res.newRecord
@ -79,7 +79,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=xd/weiyi/url', url: '?r=zd/weiyi/url',
data: { data: {
type: this.data.type, type: this.data.type,
period: this.data.period, period: this.data.period,

Loading…
Cancel
Save