Browse Source

页面开发

master
kola-web 3 days ago
parent
commit
ffd5d3bf94
  1. 2
      AGENTS.md
  2. 2
      project.config.json
  3. 22
      src/app.ts
  4. 2
      src/components/referralFrom/index.ts
  5. 2
      src/components/timeOut/index.ts
  6. 4
      src/components/toast/index.ts
  7. 2
      src/custom-tab-bar/index.ts
  8. 2
      src/doctor/components/tabbar/index.ts
  9. 4
      src/doctor/pages/d_changeDoctor/index.ts
  10. 6
      src/doctor/pages/d_changePhone/index.ts
  11. 6
      src/doctor/pages/d_createTask/index.ts
  12. 2
      src/doctor/pages/d_customExport/index.ts
  13. 4
      src/doctor/pages/d_exportList/index.ts
  14. 8
      src/doctor/pages/d_home/index.ts
  15. 4
      src/doctor/pages/d_interactive/index.ts
  16. 14
      src/doctor/pages/d_interactiveDoctor/index.ts
  17. 4
      src/doctor/pages/d_invite/index.ts
  18. 6
      src/doctor/pages/d_login/index.ts
  19. 4
      src/doctor/pages/d_my/index.ts
  20. 6
      src/doctor/pages/d_patient/index.ts
  21. 12
      src/doctor/pages/d_patientDetail/index.ts
  22. 2
      src/doctor/pages/d_patientList/index.ts
  23. 10
      src/doctor/pages/d_taskDetail/index.ts
  24. 8
      src/doctor/pages/d_taskList/index.ts
  25. 2
      src/doctor/pages/d_trans/index.ts
  26. 4
      src/doctor/pages/d_transfer/index.ts
  27. 8
      src/doctor/pages/d_transferDetail/index.ts
  28. 4
      src/doctor/pages/d_transferLog/index.ts
  29. 6
      src/doctor/pages/d_userInfo/index.ts
  30. 6
      src/gift/pages/conformOrder/index.ts
  31. 2
      src/gift/pages/dtpDurg/index.ts
  32. 10
      src/gift/pages/giftDetail/index.ts
  33. 6
      src/gift/pages/giftList/index.ts
  34. 2
      src/gift/pages/myGift/index.ts
  35. 18
      src/gift/pages/myHealthRecord/index.ts
  36. 2
      src/gift/pages/orderDetail/index.ts
  37. 2
      src/gift/pages/orderEnd/index.ts
  38. 4
      src/gift/pages/priceDetail/index.ts
  39. 2
      src/gift/pages/scoreRule/index.ts
  40. 8
      src/gift/pages/siteEdit/index.ts
  41. 2
      src/gift/pages/siteList/index.ts
  42. 4
      src/gift/pages/vipCert/index.ts
  43. 2
      src/gift/pages/vipPending/index.ts
  44. 2
      src/pages/cancellation/index.ts
  45. 2
      src/pages/certPending/index.ts
  46. 4
      src/pages/changePhone/index.ts
  47. 4
      src/pages/changeUser/index.ts
  48. 18
      src/pages/doctor/index.ts
  49. 2
      src/pages/doctorDetail/index.ts
  50. 2
      src/pages/doctorDetailBak/index.ts
  51. 4
      src/pages/drugRecord/index.ts
  52. 2
      src/pages/enterInfo/index.ts
  53. 4
      src/pages/family/index.ts
  54. 4
      src/pages/familyList/index.ts
  55. 4
      src/pages/familyScan/index.ts
  56. 2
      src/pages/getUserInfo/index.ts
  57. 4
      src/pages/hospital/index.ts
  58. 58
      src/pages/index/index.ts
  59. 2
      src/pages/infusionCenter/index.ts
  60. 14
      src/pages/interactivePatient/index.ts
  61. 4
      src/pages/live/index.ts
  62. 12
      src/pages/liveDetail/index.ts
  63. 6
      src/pages/liveResult/index.ts
  64. 6
      src/pages/login/index.ts
  65. 4
      src/pages/my/index.ts
  66. 4
      src/pages/myLive/index.ts
  67. 26
      src/pages/mySave/index.ts
  68. 18
      src/pages/nrdl/index.ts
  69. 4
      src/pages/nrdlDetail/index.ts
  70. 2
      src/pages/nrdlTable/index.ts
  71. 2
      src/pages/personalInformation/index.ts
  72. 10
      src/pages/publishStoryDetail/index.ts
  73. 4
      src/pages/referral/index.ts
  74. 28
      src/pages/repository/index.ts
  75. 16
      src/pages/repositoryDetail/index.ts
  76. 8
      src/pages/repositoryVideoDetail/index.ts
  77. 6
      src/pages/signIn/index.ts
  78. 4
      src/pages/story/index.ts
  79. 8
      src/pages/storyDetail/index.ts
  80. 2
      src/pages/storyEnter/index.ts
  81. 4
      src/pages/storyEnterResult/index.ts
  82. 6
      src/pages/storyGuide/index.ts
  83. 2
      src/pages/storyList/index.ts
  84. 2
      src/pages/thePublic/index.ts
  85. 6
      src/pages/uploadCert/index.ts
  86. 2
      src/pages/vipLogin/index.ts
  87. 4
      src/pages/webview/index.ts
  88. 6
      src/public/pages/informed/index.ts
  89. 2
      src/public/pages/informedResult/index.ts
  90. 2
      src/public/pages/informedStart/index.ts
  91. 11490
      接口文档.md

2
AGENTS.md

@ -204,7 +204,7 @@ IGG4 重症肌无力(MG)患者社区微信小程序。两种用户角色:
- **`noImplicitAny: false`** — 允许隐式 any - **`noImplicitAny: false`** — 允许隐式 any
- **`removeComments: true`**(tsconfig)— 编译输出移除注释 - **`removeComments: true`**(tsconfig)— 编译输出移除注释
- **Prettier**:无分号、单引号、尾逗号、120 字符宽度;`.wxml` 按 HTML 解析,`.wxss` 按 CSS 解析,`.wxs` 按 babel 解析 - **Prettier**:无分号、单引号、尾逗号、120 字符宽度;`.wxml` 按 HTML 解析,`.wxss` 按 CSS 解析,`.wxs` 按 babel 解析
- **API URL 格式**:所有 API 调用使用 `?r=模块/动作` 格式(如 `?r=zd/user/init-login`、`?r=zd/account/info`) - **API URL 格式**:所有 API 调用使用 `?r=模块/动作` 格式(如 `?r=igg4/user/init-login`、`?r=igg4/account/info`)
- **默认分享**:患者端页面分享到 `/pages/index/index`,医生端页面分享到 `/doctor/pages/d_home/index`,标题:"重症肌无力加油站,重拾生活掌控感!" - **默认分享**:患者端页面分享到 `/pages/index/index`,医生端页面分享到 `/doctor/pages/d_home/index`,标题:"重症肌无力加油站,重拾生活掌控感!"
- **客服电话**:全局 `handleMakePhoneCall` 拨打 `4008102299` - **客服电话**:全局 `handleMakePhoneCall` 拨打 `4008102299`

2
project.config.json

@ -69,7 +69,7 @@
], ],
"include": [] "include": []
}, },
"appid": "wx9404bbbdaf52c276", "appid": "wxc3cdb3c4d4f62cea",
"scripts": { "scripts": {
"beforeCompile": "pnpm run beforeCompile", "beforeCompile": "pnpm run beforeCompile",
"beforePreview": "pnpm run beforeCompile", "beforePreview": "pnpm run beforeCompile",

22
src/app.ts

@ -17,13 +17,13 @@ App<IAppOption>({
globalData: { globalData: {
// dev // dev
// appid:wxc3cdb3c4d4f62cea // appid:wxc3cdb3c4d4f62cea
// url: 'https://m.igg4.hbraas.com', url: 'https://m.igg4.hbraas.com',
// upFileUrl: 'https://m.igg4.hbraas.com/', upFileUrl: 'https://m.igg4.hbraas.com/',
imageUrl: 'https://m.igg4.hbraas.com/igg4/', imageUrl: 'https://m.igg4.hbraas.com/igg4/',
// appid:wx9404bbbdaf52c276 // appid:wx9404bbbdaf52c276
url: 'https://m.zd.hbraas.com', // url: 'https://m.zd.hbraas.com',
upFileUrl: 'https://m.zd.hbraas.com/', // upFileUrl: 'https://m.zd.hbraas.com/',
// imageUrl: 'https://m.zd.hbraas.com/zd/', // imageUrl: 'https://m.zd.hbraas.com/zd/',
// pro // pro
@ -142,7 +142,7 @@ App<IAppOption>({
success(res) { success(res) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/user/init-login', url: '?r=igg4/user/init-login',
data: { data: {
code: res.code, code: res.code,
}, },
@ -394,7 +394,7 @@ App<IAppOption>({
} }
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/account/info', url: '?r=igg4/account/info',
showMsg: false, showMsg: false,
}).then((res) => { }).then((res) => {
res.UserType = res.UserType || 1 res.UserType = res.UserType || 1
@ -416,7 +416,7 @@ App<IAppOption>({
) { ) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/account/update-doctor', url: '?r=igg4/account/update-doctor',
data: { data: {
inviteDoctorId: doctorId, inviteDoctorId: doctorId,
inviteChannel: inviteChan, inviteChannel: inviteChan,
@ -426,7 +426,7 @@ App<IAppOption>({
if (recommendDoctorId && doctorId) { if (recommendDoctorId && doctorId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor-recommend/add-record', url: '?r=igg4/doctor-recommend/add-record',
data: { data: {
recommendDoctorId: doctorId, recommendDoctorId: doctorId,
beRecommendDoctorId: recommendDoctorId, beRecommendDoctorId: recommendDoctorId,
@ -439,9 +439,9 @@ App<IAppOption>({
}) })
}, },
mpBehavior(data: { PageName: string; doctor?: boolean }) { mpBehavior(data: { PageName: string; doctor?: boolean }) {
// let url = '?r=zd/mp-behavior/add' // let url = '?r=igg4/mp-behavior/add'
// if (data.doctor) { // if (data.doctor) {
// url = '?r=zd/doctor/mp-behavior/add' // url = '?r=igg4/doctor/mp-behavior/add'
// } // }
// delete data.doctor // delete data.doctor
// wx.ajax({ // wx.ajax({
@ -520,7 +520,7 @@ App<IAppOption>({
clickPush() { clickPush() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/nrdl/add-push-click-record', url: '?r=igg4/nrdl/add-push-click-record',
}) })
}, },
watch: function (key, method) { watch: function (key, method) {

2
src/components/referralFrom/index.ts

@ -112,7 +112,7 @@ Component({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/re-visit/save-record', url: '?r=igg4/re-visit/save-record',
data: params, data: params,
}).then(() => { }).then(() => {
if (recordId) { if (recordId) {

2
src/components/timeOut/index.ts

@ -84,7 +84,7 @@ Component({
handleAsideOut() { handleAsideOut() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/score/send-score", url: "?r=igg4/score/send-score",
data: { data: {
Type: this.data.asideType, Type: this.data.asideType,
Id: this.data.detailId, Id: this.data.detailId,

4
src/components/toast/index.ts

@ -115,7 +115,7 @@ Component({
getSettingInfo() { getSettingInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/drugs/setting-info', url: '?r=igg4/drugs/setting-info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -126,7 +126,7 @@ Component({
getOpenPatientList() { getOpenPatientList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/nrdl/open-patient-list', url: '?r=igg4/nrdl/open-patient-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({

2
src/custom-tab-bar/index.ts

@ -68,7 +68,7 @@ Component({
}) })
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/common/get-config', url: '?r=igg4/common/get-config',
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
config: res, config: res,

2
src/doctor/components/tabbar/index.ts

@ -47,7 +47,7 @@ Component({
getList() { getList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/message-interact/get-interact-patient-list', url: '?r=igg4/doctor/message-interact/get-interact-patient-list',
}).then((res: any) => { }).then((res: any) => {
this.setData({ this.setData({
unReadCount: res.unReadCount, unReadCount: res.unReadCount,

4
src/doctor/pages/d_changeDoctor/index.ts

@ -29,7 +29,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/login/send-verify-code', url: '?r=igg4/login/send-verify-code',
data: { data: {
mobile, mobile,
}, },
@ -78,7 +78,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/login/change-doctor-login', url: '?r=igg4/doctor/login/change-doctor-login',
data: { data: {
mobile: this.data.mobile, mobile: this.data.mobile,
code: this.data.code, code: this.data.code,

6
src/doctor/pages/d_changePhone/index.ts

@ -15,7 +15,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -44,7 +44,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/login/send-verify-code', url: '?r=igg4/login/send-verify-code',
data: { data: {
mobile, mobile,
}, },
@ -86,7 +86,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/account/update-telephone', url: '?r=igg4/doctor/account/update-telephone',
data: { data: {
mobile: this.data.mobile, mobile: this.data.mobile,
code: this.data.code, code: this.data.code,

6
src/doctor/pages/d_createTask/index.ts

@ -80,7 +80,7 @@ Page({
getTemplate() { getTemplate() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/task/get-template', url: '?r=igg4/doctor/task/get-template',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -111,7 +111,7 @@ Page({
return wx return wx
.ajax({ .ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/task/filter-patient-num', url: '?r=igg4/doctor/task/filter-patient-num',
data: { data: {
Search: this.data.Search, Search: this.data.Search,
HasAdl: this.data.HasAdl, HasAdl: this.data.HasAdl,
@ -386,7 +386,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/create', url: '?r=igg4/doctor/task/create',
data: params, data: params,
loading: true, loading: true,
}).then(() => { }).then(() => {

2
src/doctor/pages/d_customExport/index.ts

@ -23,7 +23,7 @@ Page({
getList() { getList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/doctor-stat/get-week-record-list', url: '?r=igg4/doctor/doctor-stat/get-week-record-list',
data: { data: {
statId: this.data.id, statId: this.data.id,
count: 0, count: 0,

4
src/doctor/pages/d_exportList/index.ts

@ -29,7 +29,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/doctor-stat/get-week-list', url: '?r=igg4/doctor/doctor-stat/get-week-list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -67,7 +67,7 @@ Page({
const d_export_list_guide = wx.getStorageSync('d_export_list_guide') === '1' || false const d_export_list_guide = wx.getStorageSync('d_export_list_guide') === '1' || false
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/adl-stat/download', url: '?r=igg4/doctor/adl-stat/download',
data: { data: {
statId: id, statId: id,
}, },

8
src/doctor/pages/d_home/index.ts

@ -45,7 +45,7 @@ Page({
getDoctorInfo() { getDoctorInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -57,7 +57,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/doctor-stat/get-last-month', url: '?r=igg4/doctor/doctor-stat/get-last-month',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -92,7 +92,7 @@ Page({
getList1_1() { getList1_1() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/doctor-stat/get-month-list', url: '?r=igg4/doctor/doctor-stat/get-month-list',
data: { data: {
statYear: this.data.year1, statYear: this.data.year1,
}, },
@ -103,7 +103,7 @@ Page({
getList1_2() { getList1_2() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/doctor-stat/get-month-list', url: '?r=igg4/doctor/doctor-stat/get-month-list',
data: { data: {
statYear: this.data.year1, statYear: this.data.year1,
}, },

4
src/doctor/pages/d_interactive/index.ts

@ -42,7 +42,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/message-interact/get-interact-patient-list', url: '?r=igg4/doctor/message-interact/get-interact-patient-list',
data: { data: {
page: newPage, page: newPage,
search: this.data.search, search: this.data.search,
@ -92,7 +92,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/message-interact/read-history', url: '?r=igg4/doctor/message-interact/read-history',
data: {}, data: {},
}).then((_res) => { }).then((_res) => {
this.setData({ this.setData({

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

@ -76,7 +76,7 @@ Page({
getDoctorDetail() { getDoctorDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -87,7 +87,7 @@ Page({
getPatientDetail() { getPatientDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/message-interact/get-patient-info', url: '?r=igg4/doctor/message-interact/get-patient-info',
data: { data: {
patientId: this.data.patientId, patientId: this.data.patientId,
}, },
@ -111,7 +111,7 @@ Page({
const nextMsgId = this.data.nextMsgId const nextMsgId = this.data.nextMsgId
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/message-interact/doctor-get-message-list', url: '?r=igg4/doctor/message-interact/doctor-get-message-list',
data: { data: {
nextMsgId, nextMsgId,
patientId: this.data.patientId, patientId: this.data.patientId,
@ -161,7 +161,7 @@ Page({
getWordList() { getWordList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/message-interact/get-common-word-list', url: '?r=igg4/doctor/message-interact/get-common-word-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -214,7 +214,7 @@ Page({
this.filterCreateTime() this.filterCreateTime()
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/message-interact/send-visit-time', url: '?r=igg4/doctor/message-interact/send-visit-time',
data: { data: {
patientId: this.data.patientId, patientId: this.data.patientId,
}, },
@ -273,7 +273,7 @@ Page({
this.handleView() this.handleView()
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/message-interact/send-word-message', url: '?r=igg4/doctor/message-interact/send-word-message',
data: { data: {
patientId: this.data.patientId, patientId: this.data.patientId,
wordId, wordId,
@ -345,7 +345,7 @@ Page({
const { messageList, patientId } = this.data const { messageList, patientId } = this.data
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/message-interact/send-text-message', url: '?r=igg4/doctor/message-interact/send-text-message',
data: { data: {
text: customMessage, text: customMessage,
patientId, patientId,

4
src/doctor/pages/d_invite/index.ts

@ -28,7 +28,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -116,7 +116,7 @@ Page({
}, },
getQrCode() { getQrCode() {
this.setData({ this.setData({
qrCode: `${app.globalData.url}?r=zd/doctor/account/mp-info&loginState=${app.globalData.loginState}`, qrCode: `${app.globalData.url}?r=igg4/doctor/account/mp-info&loginState=${app.globalData.loginState}`,
}) })
}, },
handleDownload() { handleDownload() {

6
src/doctor/pages/d_login/index.ts

@ -44,7 +44,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/login/send-verify-code', url: '?r=igg4/login/send-verify-code',
data: { data: {
mobile, mobile,
}, },
@ -107,7 +107,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/login/reg-login', url: '?r=igg4/doctor/login/reg-login',
data: { data: {
mobile: this.data.mobile, mobile: this.data.mobile,
code: this.data.code, code: this.data.code,
@ -123,7 +123,7 @@ Page({
if (iv && encryptedData) { if (iv && encryptedData) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/login/wx-reg-login', url: '?r=igg4/doctor/login/wx-reg-login',
data: { data: {
iv: encodeURIComponent(iv), iv: encodeURIComponent(iv),
encryptedData: encodeURIComponent(encryptedData), encryptedData: encodeURIComponent(encryptedData),

4
src/doctor/pages/d_my/index.ts

@ -24,7 +24,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
let weekName = '' let weekName = ''
@ -83,7 +83,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/account/reg-logout', url: '?r=igg4/doctor/account/reg-logout',
data: {}, data: {},
}).then((_res) => { }).then((_res) => {
app.globalData.loginType = 1 app.globalData.loginType = 1

6
src/doctor/pages/d_patient/index.ts

@ -110,9 +110,9 @@ Page({
search: this.data.Search, search: this.data.Search,
} }
const url = { const url = {
0: '?r=zd/doctor/patient/get-need-follow-list', 0: '?r=igg4/doctor/patient/get-need-follow-list',
1: '?r=zd/doctor/patient/get-no-standard-list', 1: '?r=igg4/doctor/patient/get-no-standard-list',
2: '?r=zd/doctor/patient/get-my-list', 2: '?r=igg4/doctor/patient/get-my-list',
}[active] as string }[active] as string
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',

12
src/doctor/pages/d_patientDetail/index.ts

@ -190,7 +190,7 @@ Page({
getDoctorDetail() { getDoctorDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -209,7 +209,7 @@ Page({
return wx return wx
.ajax({ .ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/patient/info', url: '?r=igg4/doctor/patient/info',
data: { patientId: this.data.id }, data: { patientId: this.data.id },
}) })
.then((res) => { .then((res) => {
@ -270,7 +270,7 @@ Page({
getGraph() { getGraph() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/patient/adl-graph', url: '?r=igg4/doctor/patient/adl-graph',
data: { data: {
patientId: this.data.id, patientId: this.data.id,
StartDate: this.data.StartDate, StartDate: this.data.StartDate,
@ -930,7 +930,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/patient/remark', url: '?r=igg4/doctor/patient/remark',
data: { data: {
PatientId: this.data.id, PatientId: this.data.id,
DoctorRemark: this.data.remark, DoctorRemark: this.data.remark,
@ -966,7 +966,7 @@ Page({
const { detail } = this.data const { detail } = this.data
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/patient/update', url: '?r=igg4/doctor/patient/update',
data: { data: {
PatientId: detail.PatientId, //患者Id PatientId: detail.PatientId, //患者Id
AntibodyType: detail.AntibodyType, //抗体类型 1:AChR 2:Musk 3:LRP4 4:RYR AntibodyType: detail.AntibodyType, //抗体类型 1:AChR 2:Musk 3:LRP4 4:RYR
@ -1010,7 +1010,7 @@ Page({
const { detail, EndDate, StartDate, type } = this.data const { detail, EndDate, StartDate, type } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/patient/adl-list', url: '?r=igg4/doctor/patient/adl-list',
data: { data: {
DateType: type, DateType: type,
PatientId: detail.PatientId, PatientId: detail.PatientId,

2
src/doctor/pages/d_patientList/index.ts

@ -38,7 +38,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/patient/get-stat-patient-list', url: '?r=igg4/doctor/patient/get-stat-patient-list',
data: { data: {
page: newPage, page: newPage,
...params, ...params,

10
src/doctor/pages/d_taskDetail/index.ts

@ -33,7 +33,7 @@ Page({
getTemplate() { getTemplate() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/task/get-template', url: '?r=igg4/doctor/task/get-template',
data: {}, data: {},
}).then((res) => { }).then((res) => {
const templateObj = {} const templateObj = {}
@ -48,7 +48,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/task/detail', url: '?r=igg4/doctor/task/detail',
data: { data: {
TaskId: this.data.id, TaskId: this.data.id,
}, },
@ -132,7 +132,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/cancel', url: '?r=igg4/doctor/task/cancel',
data: { data: {
TaskId: Id, TaskId: Id,
}, },
@ -153,7 +153,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/stop', url: '?r=igg4/doctor/task/stop',
data: { data: {
TaskId: Id, TaskId: Id,
}, },
@ -174,7 +174,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/delete', url: '?r=igg4/doctor/task/delete',
data: { data: {
TaskId: Id, TaskId: Id,
}, },

8
src/doctor/pages/d_taskList/index.ts

@ -39,7 +39,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/task/list', url: '?r=igg4/doctor/task/list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -161,7 +161,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/cancel', url: '?r=igg4/doctor/task/cancel',
data: { data: {
TaskId: Id, TaskId: Id,
}, },
@ -183,7 +183,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/stop', url: '?r=igg4/doctor/task/stop',
data: { data: {
TaskId: Id, TaskId: Id,
}, },
@ -205,7 +205,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/task/delete', url: '?r=igg4/doctor/task/delete',
data: { data: {
TaskId: Id, TaskId: Id,
}, },

2
src/doctor/pages/d_trans/index.ts

@ -12,7 +12,7 @@ Page({
handleLoginOut() { handleLoginOut() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/account/reg-logout', url: '?r=igg4/doctor/account/reg-logout',
data: {}, data: {},
}).then((_res) => { }).then((_res) => {
app.globalData.loginType = 1 app.globalData.loginType = 1

4
src/doctor/pages/d_transfer/index.ts

@ -31,7 +31,7 @@ Page({
const { search, ProvinceId, CityId } = this.data const { search, ProvinceId, CityId } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/doctor-recommend/get-doctor-list', url: '?r=igg4/doctor/doctor-recommend/get-doctor-list',
data: { data: {
page: newPage, page: newPage,
search, search,
@ -80,7 +80,7 @@ Page({
const { list } = this.data const { list } = this.data
const { index } = e.currentTarget.dataset const { index } = e.currentTarget.dataset
const item: any = list[index] const item: any = list[index]
const url = `${app.globalData.url}?r=zd/doctor/doctor-recommend/get-rec-code&loginState=${app.globalData.loginState}&recommendDoctorId=${item.doctorId}` const url = `${app.globalData.url}?r=igg4/doctor/doctor-recommend/get-rec-code&loginState=${app.globalData.loginState}&recommendDoctorId=${item.doctorId}`
app.mpBehavior({ doctor: true, PageName: 'BTN_DOCTORRECOMMENDEDREFERRALPAGERECOMMENDCODE' }) app.mpBehavior({ doctor: true, PageName: 'BTN_DOCTORRECOMMENDEDREFERRALPAGERECOMMENDCODE' })
this.setData({ this.setData({
toastShow: true, toastShow: true,

8
src/doctor/pages/d_transferDetail/index.ts

@ -29,8 +29,8 @@ Page({
const { id, type } = this.data const { id, type } = this.data
const url = const url =
type == '1' type == '1'
? '?r=zd/doctor/doctor-recommend/get-rec-stat-doctor' ? '?r=igg4/doctor/doctor-recommend/get-rec-stat-doctor'
: '?r=zd/doctor/doctor-recommend/get-be-rec-stat-doctor' : '?r=igg4/doctor/doctor-recommend/get-be-rec-stat-doctor'
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url, url,
@ -47,8 +47,8 @@ Page({
const { id, type } = this.data const { id, type } = this.data
const url = const url =
type == '1' type == '1'
? '?r=zd/doctor/doctor-recommend/get-rec-record-list' ? '?r=igg4/doctor/doctor-recommend/get-rec-record-list'
: '?r=zd/doctor/doctor-recommend/get-be-rec-record-list' : '?r=igg4/doctor/doctor-recommend/get-be-rec-record-list'
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url, url,

4
src/doctor/pages/d_transferLog/index.ts

@ -38,8 +38,8 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
const { active } = this.data const { active } = this.data
const url = { const url = {
0: '?r=zd/doctor/doctor-recommend/get-rec-stat-list', 0: '?r=igg4/doctor/doctor-recommend/get-rec-stat-list',
1: '?r=zd/doctor/doctor-recommend/get-be-rec-stat-list', 1: '?r=igg4/doctor/doctor-recommend/get-be-rec-stat-list',
}[active] }[active]
if (newPage == 1) { if (newPage == 1) {
app.mpBehavior({ app.mpBehavior({

6
src/doctor/pages/d_userInfo/index.ts

@ -64,7 +64,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor/account/info', url: '?r=igg4/doctor/account/info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
const { ClinicList } = this.data const { ClinicList } = this.data
@ -164,7 +164,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/account/update-info', url: '?r=igg4/doctor/account/update-info',
data: { data: {
Introduce: this.data.doctor.Introduce, Introduce: this.data.doctor.Introduce,
Clinic, Clinic,
@ -214,7 +214,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/doctor/account/reg-logout', url: '?r=igg4/doctor/account/reg-logout',
data: {}, data: {},
}).then((_res) => { }).then((_res) => {
app.globalData.loginType = 1 app.globalData.loginType = 1

6
src/gift/pages/conformOrder/index.ts

@ -28,7 +28,7 @@ Page({
getDefaultAddress() { getDefaultAddress() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-address/get-default-address", url: "?r=igg4/patient-address/get-default-address",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -39,7 +39,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/gift-order/get-order-detail", url: "?r=igg4/gift-order/get-order-detail",
data: { data: {
orderId: this.data.id, orderId: this.data.id,
}, },
@ -70,7 +70,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/gift-order/confirm-order", url: "?r=igg4/gift-order/confirm-order",
data: { data: {
orderId: this.data.id, orderId: this.data.id,
addressId: this.data.addressDetail.addressId, addressId: this.data.addressDetail.addressId,

2
src/gift/pages/dtpDurg/index.ts

@ -17,7 +17,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/dtp-pharmacy/detail", url: "?r=igg4/dtp-pharmacy/detail",
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },

10
src/gift/pages/giftDetail/index.ts

@ -33,7 +33,7 @@ Page({
setView() { setView() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/gift-spu/set-visit-num", url: "?r=igg4/gift-spu/set-visit-num",
data: { spuId: this.data.id }, data: { spuId: this.data.id },
showMsg: false, showMsg: false,
}); });
@ -41,7 +41,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/gift-spu/get-detail", url: "?r=igg4/gift-spu/get-detail",
data: { data: {
spuId: this.data.id, spuId: this.data.id,
}, },
@ -60,7 +60,7 @@ Page({
getProtocol() { getProtocol() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/agreement/get-user-agreement", url: "?r=igg4/agreement/get-user-agreement",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -71,7 +71,7 @@ Page({
setProtocol() { setProtocol() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/agreement/set-user-agreement", url: "?r=igg4/agreement/set-user-agreement",
data: {}, data: {},
}); });
}, },
@ -135,7 +135,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/gift-order/place-order", url: "?r=igg4/gift-order/place-order",
data: { data: {
giftId: this.data.specVecItem.giftId, giftId: this.data.specVecItem.giftId,
count: this.data.num, count: this.data.num,

6
src/gift/pages/giftList/index.ts

@ -34,7 +34,7 @@ Page({
getScore() { getScore() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-score/get-self-score", url: "?r=igg4/patient-score/get-self-score",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -45,7 +45,7 @@ Page({
getCateList() { getCateList() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/gift-spu/get-cate-all-list", url: "?r=igg4/gift-spu/get-cate-all-list",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -63,7 +63,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: `?r=zd/gift-spu/get-list&page=${newPage}`, url: `?r=igg4/gift-spu/get-list&page=${newPage}`,
data: { data: {
cateId: this.data.cateId ? [this.data.cateId] : [], cateId: this.data.cateId ? [this.data.cateId] : [],
}, },

2
src/gift/pages/myGift/index.ts

@ -17,7 +17,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/gift-order/get-order-list", url: "?r=igg4/gift-order/get-order-list",
data: { data: {
page: newPage, page: newPage,
}, },

18
src/gift/pages/myHealthRecord/index.ts

@ -140,7 +140,7 @@ Page({
getCale() { getCale() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/cale', url: '?r=igg4/adl/cale',
data: { data: {
Month: this.data.calendarDate, Month: this.data.calendarDate,
}, },
@ -187,7 +187,7 @@ Page({
getMedicationAlertAdl() { getMedicationAlertAdl() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/medication/medication-alert-adl', url: '?r=igg4/medication/medication-alert-adl',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -288,7 +288,7 @@ Page({
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/composite-list', url: '?r=igg4/adl/composite-list',
data: { data: {
Type: Number(Type) === 4 ? 2 : 1, Type: Number(Type) === 4 ? 2 : 1,
DateType: Number(Type) === 4 ? '' : Number(Type), DateType: Number(Type) === 4 ? '' : Number(Type),
@ -343,7 +343,7 @@ Page({
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/list', url: '?r=igg4/adl/list',
data: { data: {
Type: Number(Type) === 4 ? 2 : 1, Type: Number(Type) === 4 ? 2 : 1,
DateType: Number(Type) === 4 ? '' : Number(Type), DateType: Number(Type) === 4 ? '' : Number(Type),
@ -383,7 +383,7 @@ Page({
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/medication/list', url: '?r=igg4/medication/list',
data: { data: {
Type: Number(Type) === 4 ? 2 : 1, Type: Number(Type) === 4 ? 2 : 1,
DateType: Number(Type) === 4 ? '' : Number(Type), DateType: Number(Type) === 4 ? '' : Number(Type),
@ -423,7 +423,7 @@ Page({
const { BeginMonth, EndMonth, Type, Num } = this.data const { BeginMonth, EndMonth, Type, Num } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/list', url: '?r=igg4/adl/list',
data: { data: {
Type: Number(Type) === 4 ? 2 : 1, Type: Number(Type) === 4 ? 2 : 1,
DateType: Number(Type) === 4 ? '' : Number(Type), DateType: Number(Type) === 4 ? '' : Number(Type),
@ -448,7 +448,7 @@ Page({
if (Number(Type) != 4) { if (Number(Type) != 4) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/graph', url: '?r=igg4/adl/graph',
data: { data: {
Type: Number(Type) === 4 ? 2 : 1, Type: Number(Type) === 4 ? 2 : 1,
DateType: Number(Type) === 4 ? '' : Number(Type), DateType: Number(Type) === 4 ? '' : Number(Type),
@ -989,7 +989,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/adl/delete', url: '?r=igg4/adl/delete',
data: { data: {
Id: id, Id: id,
}, },
@ -1046,7 +1046,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/medication/delete', url: '?r=igg4/medication/delete',
data: { data: {
Id: id, Id: id,
}, },

2
src/gift/pages/orderDetail/index.ts

@ -16,7 +16,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/gift-order/get-order-detail", url: "?r=igg4/gift-order/get-order-detail",
data: { data: {
orderId: this.data.id, orderId: this.data.id,
}, },

2
src/gift/pages/orderEnd/index.ts

@ -16,7 +16,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/gift-order/get-order-detail", url: "?r=igg4/gift-order/get-order-detail",
data: { data: {
orderId: this.data.id, orderId: this.data.id,
}, },

4
src/gift/pages/priceDetail/index.ts

@ -19,7 +19,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-score/get-self-score", url: "?r=igg4/patient-score/get-self-score",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -30,7 +30,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-score/get-self-record-list", url: "?r=igg4/patient-score/get-self-record-list",
data: { page: newPage }, data: { page: newPage },
}).then((res) => { }).then((res) => {
let list = res.page == 1 ? res.list : [...this.data.list, ...res.list]; let list = res.page == 1 ? res.list : [...this.data.list, ...res.list];

2
src/gift/pages/scoreRule/index.ts

@ -19,7 +19,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-score/get-score-explain", url: "?r=igg4/patient-score/get-score-explain",
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({

8
src/gift/pages/siteEdit/index.ts

@ -44,7 +44,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-address/get-address-detail", url: "?r=igg4/patient-address/get-address-detail",
data: { data: {
addressId: this.data.addressId, addressId: this.data.addressId,
}, },
@ -182,7 +182,7 @@ Page({
getLocationInfo() { getLocationInfo() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/nrdl-hospital/location-info", url: "?r=igg4/nrdl-hospital/location-info",
data: { data: {
lat: this.data.LAT, lat: this.data.LAT,
lng: this.data.LNG, lng: this.data.LNG,
@ -236,7 +236,7 @@ Page({
}; };
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/patient-address/save-address", url: "?r=igg4/patient-address/save-address",
data: params, data: params,
}).then(() => { }).then(() => {
wx.navigateBack(); wx.navigateBack();
@ -250,7 +250,7 @@ Page({
if (res.confirm) { if (res.confirm) {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/patient-address/del-address", url: "?r=igg4/patient-address/del-address",
data: { data: {
addressId: this.data.addressId, addressId: this.data.addressId,
}, },

2
src/gift/pages/siteList/index.ts

@ -17,7 +17,7 @@ Page({
getList(newPage = 1) { getList(newPage = 1) {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/patient-address/get-list", url: "?r=igg4/patient-address/get-list",
data: { data: {
page: newPage, page: newPage,
}, },

4
src/gift/pages/vipCert/index.ts

@ -35,7 +35,7 @@ Page({
handleAiPass(imgUrl: string) { handleAiPass(imgUrl: string) {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/common/medicine-image-verify", url: "?r=igg4/common/medicine-image-verify",
data: { data: {
ImageUrl: imgUrl, ImageUrl: imgUrl,
}, },
@ -85,7 +85,7 @@ Page({
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/account/upload-use-drugs-audit-img", url: "?r=igg4/account/upload-use-drugs-audit-img",
data: { data: {
diagnoseImg, diagnoseImg,
aiPass: this.data.aiPass, aiPass: this.data.aiPass,

2
src/gift/pages/vipPending/index.ts

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

2
src/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=zd/account/cancellation", url: "?r=igg4/account/cancellation",
data: {}, data: {},
loading: true, loading: true,
}).then(() => { }).then(() => {

2
src/pages/certPending/index.ts

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

4
src/pages/changePhone/index.ts

@ -29,7 +29,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/login/send-verify-code", url: "?r=igg4/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=zd/account/update-telephone", url: "?r=igg4/account/update-telephone",
data: { data: {
mobile, mobile,
code, code,

4
src/pages/changeUser/index.ts

@ -29,7 +29,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/login/send-verify-code", url: "?r=igg4/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=zd/login/change-user-login", url: "?r=igg4/login/change-user-login",
data: { data: {
mobile, mobile,
code, code,

18
src/pages/doctor/index.ts

@ -208,7 +208,7 @@ Page({
getLocationInfo() { getLocationInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/hospital/location-info', url: '?r=igg4/hospital/location-info',
data: { data: {
lng: this.data.LNG, lng: this.data.LNG,
lat: this.data.LAT, lat: this.data.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=zd/hospital/list', url: '?r=igg4/hospital/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -266,7 +266,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=zd/infusion-center/list', url: '?r=igg4/infusion-center/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -285,7 +285,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=zd/doctor/list', url: '?r=igg4/doctor/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -321,7 +321,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=zd/dtp-pharmacy/list', url: '?r=igg4/dtp-pharmacy/list',
data: { data: {
lng: LNG, lng: LNG,
lat: LAT, lat: LAT,
@ -340,7 +340,7 @@ Page({
const { Name } = this.data const { Name } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/doctor-recommend/get-doctor-list', url: '?r=igg4/doctor-recommend/get-doctor-list',
data: { data: {
count: 0, count: 0,
search: Name, search: Name,
@ -372,7 +372,7 @@ Page({
// getDtpAlert() { // getDtpAlert() {
// wx.ajax({ // wx.ajax({
// method: 'GET', // method: 'GET',
// url: '?r=zd/popup/info', // url: '?r=igg4/popup/info',
// data: { Type: 3 }, // data: { Type: 3 },
// }).then((res) => { // }).then((res) => {
// if (res.showAlert) { // if (res.showAlert) {
@ -386,7 +386,7 @@ Page({
hideDtpAlert() { hideDtpAlert() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/close-popup', url: '?r=igg4/popup/close-popup',
data: { Type: 3 }, data: { Type: 3 },
}).then((_res) => {}) }).then((_res) => {})
}, },
@ -450,7 +450,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/score/send-score', url: '?r=igg4/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id: 0, Id: 0,

2
src/pages/doctorDetail/index.ts

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

2
src/pages/doctorDetailBak/index.ts

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

4
src/pages/drugRecord/index.ts

@ -40,7 +40,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/medication/view', url: '?r=igg4/medication/view',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -75,7 +75,7 @@ Page({
}) })
return return
} }
const url = id ? '?r=zd/medication/update' : '?r=zd/medication/add' const url = id ? '?r=igg4/medication/update' : '?r=igg4/medication/add'
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url, url,

2
src/pages/enterInfo/index.ts

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

4
src/pages/family/index.ts

@ -26,7 +26,7 @@ Page({
getMpInfo() { getMpInfo() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/account/mp-info', url: '?r=igg4/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=zd/account/mp-img&PatientId=${this.data.mpInfo.PatientId}&loginState=${app.globalData.loginState}`, qrCode: `${app.globalData.url}?r=igg4/account/mp-img&PatientId=${this.data.mpInfo.PatientId}&loginState=${app.globalData.loginState}`,
}) })
}, },
handleQrCodeLoad() { handleQrCodeLoad() {

4
src/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=zd/account/relatives", url: "?r=igg4/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=zd/account/unbind-user", url: "?r=igg4/account/unbind-user",
data: { data: {
UserId, UserId,
}, },

4
src/pages/familyScan/index.ts

@ -34,7 +34,7 @@ Page({
const { UserType } = this.data.userInfo; const { UserType } = this.data.userInfo;
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/account/mp-patient-info", url: "?r=igg4/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=zd/account/bind-patient", url: "?r=igg4/account/bind-patient",
data: { data: {
PatientId, PatientId,
RelationType, RelationType,

2
src/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=zd/account/update-user-img", url: "?r=igg4/account/update-user-img",
data: { data: {
UserImg: decodeURI(avatarUrl), UserImg: decodeURI(avatarUrl),
}, },

4
src/pages/hospital/index.ts

@ -110,7 +110,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/hospital/detail', url: '?r=igg4/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=zd/score/send-score', url: '?r=igg4/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id, Id,

58
src/pages/index/index.ts

@ -70,7 +70,7 @@ Page({
options: {}, options: {},
}) })
app.permissionVerification(3, 0).then(() => { app.permissionVerification(3, 0).then(() => {
wx.ajax({ method: 'POST', url: '?r=zd/account/update-aliqiwei', data: {} }).then(() => { wx.ajax({ method: 'POST', url: '?r=igg4/account/update-aliqiwei', data: {} }).then(() => {
if (Object.keys(this.data.userInfo).length > 0) { if (Object.keys(this.data.userInfo).length > 0) {
app.getUserInfo(this, true, (userInfo) => { app.getUserInfo(this, true, (userInfo) => {
this.getConfig(userInfo) this.getConfig(userInfo)
@ -106,7 +106,7 @@ Page({
getUnreadCount() { getUnreadCount() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/message-interact/get-unread-count', url: '?r=igg4/message-interact/get-unread-count',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -117,7 +117,7 @@ Page({
getSystemConfig() { getSystemConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/common/get-config', url: '?r=igg4/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -128,7 +128,7 @@ Page({
getLastRecord() { getLastRecord() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/medication/last-record', url: '?r=igg4/medication/last-record',
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
detail: { detail: {
@ -146,7 +146,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: `?r=zd/mini-conf/get-config`, url: `?r=igg4/mini-conf/get-config`,
data: { userType: UserType }, data: { userType: UserType },
}).then((res) => { }).then((res) => {
res = res.map((item: any) => { res = res.map((item: any) => {
@ -196,7 +196,7 @@ Page({
async getPopup() { async getPopup() {
const data5 = await wx.ajax({ const data5 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/popup/info', url: '?r=igg4/popup/info',
data: { data: {
Type: 5, Type: 5,
}, },
@ -213,7 +213,7 @@ Page({
const data4 = await wx.ajax({ const data4 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/popup/info', url: '?r=igg4/popup/info',
data: { data: {
Type: 4, Type: 4,
}, },
@ -229,7 +229,7 @@ Page({
const data1 = await wx.ajax({ const data1 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/popup/info', url: '?r=igg4/popup/info',
data: { Type: 1 }, data: { Type: 1 },
}) })
if (!Array.isArray(data1)) { if (!Array.isArray(data1)) {
@ -243,7 +243,7 @@ Page({
const data2 = await wx.ajax({ const data2 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/popup/info', url: '?r=igg4/popup/info',
data: { data: {
Type: 2, Type: 2,
}, },
@ -261,7 +261,7 @@ Page({
const data3 = await wx.ajax({ const data3 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/popup/info', url: '?r=igg4/popup/info',
data: { data: {
Type: 6, Type: 6,
}, },
@ -279,7 +279,7 @@ Page({
const data6 = await wx.ajax({ const data6 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/re-visit/get-popup-show-status', url: '?r=igg4/re-visit/get-popup-show-status',
}) })
if (data6.showStatus === 1) { if (data6.showStatus === 1) {
this.setData({ this.setData({
@ -292,7 +292,7 @@ Page({
const data7 = await wx.ajax({ const data7 = await wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/popup/info', url: '?r=igg4/popup/info',
data: { data: {
Type: 7, Type: 7,
}, },
@ -310,7 +310,7 @@ Page({
setPopupInfo() { setPopupInfo() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/update-click-status', url: '?r=igg4/popup/update-click-status',
data: { data: {
Type: 1, Type: 1,
Id: this.data.toastParams.Id, Id: this.data.toastParams.Id,
@ -320,14 +320,14 @@ Page({
setBannerClick() { setBannerClick() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/nrdl/add-banner-click-record', url: '?r=igg4/nrdl/add-banner-click-record',
data: {}, data: {},
}) })
}, },
getInfoList(configId: string) { getInfoList(configId: string) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/pic-text/index-list', url: '?r=igg4/pic-text/index-list',
data: { data: {
count: 0, count: 0,
ConfigId: configId, ConfigId: configId,
@ -341,7 +341,7 @@ Page({
getStoryList(configId: string) { getStoryList(configId: string) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/story/index-list', url: '?r=igg4/story/index-list',
data: { data: {
count: 0, count: 0,
ConfigId: configId, ConfigId: configId,
@ -355,7 +355,7 @@ Page({
getAdl() { getAdl() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/index', url: '?r=igg4/adl/index',
data: {}, data: {},
}).then((res) => { }).then((res) => {
const newRecord = res.newRecord const newRecord = res.newRecord
@ -373,7 +373,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=zd/activity/index-list', url: '?r=igg4/activity/index-list',
data: { ConfigId, count }, data: { ConfigId, count },
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -488,7 +488,7 @@ Page({
handleSlider() { handleSlider() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/nrdl/add-slide-click-record', url: '?r=igg4/nrdl/add-slide-click-record',
data: {}, data: {},
}) })
this.handleNRDL() this.handleNRDL()
@ -562,7 +562,7 @@ Page({
} else if (toastType === 'dedicatedDoctor' || toastType === 'recommendBindDoctor') { } else if (toastType === 'dedicatedDoctor' || toastType === 'recommendBindDoctor') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/close-popup', url: '?r=igg4/popup/close-popup',
data: { data: {
Type: 6, Type: 6,
}, },
@ -581,14 +581,14 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/re-visit/update-popup-show-status', url: '?r=igg4/re-visit/update-popup-show-status',
data: {}, data: {},
}) })
this.handleToastCancel(null, false) this.handleToastCancel(null, false)
} else if (toastType === 'recommendDoctor') { } else if (toastType === 'recommendDoctor') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/close-popup', url: '?r=igg4/popup/close-popup',
data: { data: {
Type: 7, Type: 7,
}, },
@ -605,7 +605,7 @@ Page({
if (toastType === 'doubleStandards' && sure) { if (toastType === 'doubleStandards' && sure) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/close-popup', url: '?r=igg4/popup/close-popup',
data: { data: {
Type: 5, Type: 5,
}, },
@ -613,7 +613,7 @@ Page({
} else if ((toastType === 'dedicatedDoctor' || toastType === 'recommendBindDoctor') && sure) { } else if ((toastType === 'dedicatedDoctor' || toastType === 'recommendBindDoctor') && sure) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/close-popup', url: '?r=igg4/popup/close-popup',
data: { data: {
Type: 6, Type: 6,
}, },
@ -622,13 +622,13 @@ Page({
} else if (toastType === 'referral-toast' && sure) { } else if (toastType === 'referral-toast' && sure) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/re-visit/update-popup-show-status', url: '?r=igg4/re-visit/update-popup-show-status',
data: {}, data: {},
}) })
} else if (toastType === 'recommendDoctor' && sure) { } else if (toastType === 'recommendDoctor' && sure) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/popup/close-popup', url: '?r=igg4/popup/close-popup',
data: { data: {
Type: 7, Type: 7,
}, },
@ -654,7 +654,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/account/add-user-subscribe-guide-record', url: '?r=igg4/account/add-user-subscribe-guide-record',
data: {}, data: {},
}) })
}, },
@ -681,7 +681,7 @@ Page({
const { id, saved } = e.currentTarget.dataset const { id, saved } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/story/save', url: '?r=igg4/story/save',
data: { data: {
id, id,
isSave: saved ? 0 : 1, isSave: saved ? 0 : 1,
@ -708,7 +708,7 @@ Page({
const { id, saved } = e.currentTarget.dataset const { id, saved } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/pic-text/save', url: '?r=igg4/pic-text/save',
data: { data: {
id, id,
isSave: saved ? 0 : 1, isSave: saved ? 0 : 1,

2
src/pages/infusionCenter/index.ts

@ -17,7 +17,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/infusion-center/detail', url: '?r=igg4/infusion-center/detail',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },

14
src/pages/interactivePatient/index.ts

@ -76,14 +76,14 @@ Page({
if (options.adlPushId) { if (options.adlPushId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/push-click/adl-push-click', url: '?r=igg4/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=zd/push-click/task-push-click', url: '?r=igg4/push-click/task-push-click',
data: { taskPushId: options.taskPushId }, data: { taskPushId: options.taskPushId },
}) })
} }
@ -98,7 +98,7 @@ Page({
getDoctorDetail() { getDoctorDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/message-interact/get-bind-doctor-info', url: '?r=igg4/message-interact/get-bind-doctor-info',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -111,7 +111,7 @@ Page({
getQuestionList() { getQuestionList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/message-interact/get-question-list', url: '?r=igg4/message-interact/get-question-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -128,7 +128,7 @@ Page({
const nextMsgId = this.data.nextMsgId const nextMsgId = this.data.nextMsgId
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/message-interact/patient-get-message-list', url: '?r=igg4/message-interact/patient-get-message-list',
data: { data: {
nextMsgId, nextMsgId,
}, },
@ -207,7 +207,7 @@ Page({
sendQuestion(questionId) { sendQuestion(questionId) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/message-interact/send-question-message', url: '?r=igg4/message-interact/send-question-message',
data: { data: {
questionId, questionId,
}, },
@ -355,7 +355,7 @@ Page({
const { messageList } = this.data const { messageList } = this.data
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/message-interact/send-text-message', url: '?r=igg4/message-interact/send-text-message',
data: { data: {
text: customMessage, text: customMessage,
}, },

4
src/pages/live/index.ts

@ -40,7 +40,7 @@ Page({
getCateList() { getCateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/activity/cate-list', url: '?r=igg4/activity/cate-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -68,7 +68,7 @@ Page({
const { CateId, Search } = this.data const { CateId, Search } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/activity/list', url: '?r=igg4/activity/list',
data: { data: {
Type: 1, Type: 1,
CateId, CateId,

12
src/pages/liveDetail/index.ts

@ -49,7 +49,7 @@ Page({
getTmeplateList() { getTmeplateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/activity/get-template-list', url: '?r=igg4/activity/get-template-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -75,7 +75,7 @@ Page({
setView() { setView() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/activity/view', url: '?r=igg4/activity/view',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -86,7 +86,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/activity/detail', url: '?r=igg4/activity/detail',
data: { data: {
Id: this.data.id, Id: this.data.id,
}, },
@ -168,7 +168,7 @@ Page({
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/activity/sign-up', url: '?r=igg4/activity/sign-up',
data: { data: {
Id: this.data.id, Id: this.data.id,
PreUserIdentity: UserType, PreUserIdentity: UserType,
@ -208,7 +208,7 @@ Page({
postSubscribe(subscribe) { postSubscribe(subscribe) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/activity/subscribe', url: '?r=igg4/activity/subscribe',
data: { data: {
ActivityId: this.data.id, ActivityId: this.data.id,
subscribe, subscribe,
@ -226,7 +226,7 @@ Page({
const { UserType } = this.data.userInfo const { UserType } = this.data.userInfo
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/activity/share', url: '?r=igg4/activity/share',
data: { Id: this.data.id, PreUserIdentity: UserType }, data: { Id: this.data.id, PreUserIdentity: UserType },
}).then(() => { }).then(() => {
this.getDetail() this.getDetail()

6
src/pages/liveResult/index.ts

@ -38,7 +38,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/activity/sign-up-detail", url: "?r=igg4/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=zd/activity/detail", url: "?r=igg4/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=zd/common/get-channel-wx-code", url: "?r=igg4/common/get-channel-wx-code",
data: { data: {
Id: this.data.id, Id: this.data.id,
ChannelType: registChannel, ChannelType: registChannel,

6
src/pages/login/index.ts

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

4
src/pages/my/index.ts

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

4
src/pages/myLive/index.ts

@ -37,7 +37,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/common/get-config', url: '?r=igg4/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=zd/activity/sign-up-list', url: '?r=igg4/activity/sign-up-list',
data: { data: {
Type: Number(active) == 0 ? '' : Number(active), Type: Number(active) == 0 ? '' : Number(active),
page: newPage, page: newPage,

26
src/pages/mySave/index.ts

@ -19,7 +19,7 @@ Page({
app.waitLogin().then(() => { app.waitLogin().then(() => {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/common/get-config', url: '?r=igg4/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=zd/common/get-config', url: '?r=igg4/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=zd/pic-text/collection-list', url: '?r=igg4/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=zd/video/collection-list', url: '?r=igg4/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=zd/health-question/collection-list', url: '?r=igg4/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=zd/pic-text/compliment', url: '?r=igg4/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=zd/video/compliment', url: '?r=igg4/video/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -180,7 +180,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/view', url: '?r=igg4/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=zd/video/watch-duration', url: '?r=igg4/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=zd/video/cancel-collection', url: '?r=igg4/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=zd/video/collection', url: '?r=igg4/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=zd/pic-text/share', url: '?r=igg4/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=zd/video/share', url: '?r=igg4/video/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({

18
src/pages/nrdl/index.ts

@ -66,7 +66,7 @@ Page({
getAdlScore() { getAdlScore() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/nrdl/get-score", url: "?r=igg4/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=zd/common/get-config", url: "?r=igg4/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=zd/nrdl/add-open-record&OpenType=1", url: "?r=igg4/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=zd/common/get-channel-wx-code", url: "?r=igg4/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=zd/nrdl-hospital/detail", url: "?r=igg4/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=zd/nrdl-hospital/location-info", url: "?r=igg4/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=zd/nrdl-hospital/list", url: "?r=igg4/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=zd/nrdl-hospital/add", url: "?r=igg4/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=zd/nrdl/add-dtp-pharmacy-click-record", url: "?r=igg4/nrdl/add-dtp-pharmacy-click-record",
data: {}, data: {},
}).then((res) => { }).then((res) => {
console.log("res: ", res); console.log("res: ", res);

4
src/pages/nrdlDetail/index.ts

@ -48,7 +48,7 @@ Page({
addOpenRecord() { addOpenRecord() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: `?r=zd/nrdl/add-open-record&OpenType=${this.data.id}`, url: `?r=igg4/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=zd/common/get-config', url: '?r=igg4/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({

2
src/pages/nrdlTable/index.ts

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

2
src/pages/personalInformation/index.ts

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

10
src/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=zd/story/story-info', url: '?r=igg4/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=zd/story/view', url: '?r=igg4/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=zd/story/compliment', url: '?r=igg4/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=zd/story/share', url: '?r=igg4/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=zd/score/send-score', url: '?r=igg4/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/pages/referral/index.ts

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

28
src/pages/repository/index.ts

@ -35,7 +35,7 @@ Page({
getConfig(options: any) { getConfig(options: any) {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/common/get-config', url: '?r=igg4/common/get-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
let active = Number(options.active) || 0 let active = Number(options.active) || 0
@ -62,7 +62,7 @@ Page({
getBanner() { getBanner() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/mini-conf/get-mg-config', url: '?r=igg4/mini-conf/get-mg-config',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -104,7 +104,7 @@ Page({
getInfoCateList() { getInfoCateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/pic-text/cate-list', url: '?r=igg4/pic-text/cate-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -115,7 +115,7 @@ Page({
getVideoCateList() { getVideoCateList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/video/cate-list', url: '?r=igg4/video/cate-list',
data: {}, data: {},
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
@ -127,7 +127,7 @@ Page({
const { CateId, Search } = this.data const { CateId, Search } = this.data
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/pic-text/list', url: '?r=igg4/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=zd/video/list', url: '?r=igg4/video/list',
data: { data: {
page: newPage, page: newPage,
CateId, CateId,
@ -181,7 +181,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/pic-text/compliment', url: '?r=igg4/pic-text/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -197,7 +197,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/compliment', url: '?r=igg4/video/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -225,7 +225,7 @@ Page({
}) })
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/view', url: '?r=igg4/video/view',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -253,7 +253,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=zd/video/watch-duration', url: '?r=igg4/video/watch-duration',
data: { data: {
HistoryId: this.data.HistoryId, HistoryId: this.data.HistoryId,
WatchDuration: e.detail.currentTime, WatchDuration: e.detail.currentTime,
@ -290,7 +290,7 @@ Page({
if (collect == 1) { if (collect == 1) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/cancel-collection', url: '?r=igg4/video/cancel-collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -308,7 +308,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/collection', url: '?r=igg4/video/collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -357,7 +357,7 @@ Page({
if (type == 'info') { if (type == 'info') {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/pic-text/share', url: '?r=igg4/pic-text/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({
@ -372,7 +372,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/share', url: '?r=igg4/video/share',
data: { ContentId: id }, data: { ContentId: id },
}).then(() => { }).then(() => {
this.setData({ this.setData({

16
src/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=zd/pic-text/detail', url: '?r=igg4/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=zd/pic-text/watch-duration', url: '?r=igg4/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=zd/pic-text/view', url: '?r=igg4/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=zd/pic-text/compliment', url: '?r=igg4/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=zd/pic-text/cancel-collection', url: '?r=igg4/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=zd/pic-text/collection', url: '?r=igg4/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=zd/pic-text/share', url: '?r=igg4/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=zd/score/send-score', url: '?r=igg4/score/send-score',
data: { data: {
Type: this.data.timeToastType, Type: this.data.timeToastType,
Id: this.data.detail.Id, Id: this.data.detail.Id,

8
src/pages/repositoryVideoDetail/index.ts

@ -50,7 +50,7 @@ Page({
return wx return wx
.ajax({ .ajax({
method: 'GET', method: 'GET',
url: '?r=zd/video/list', url: '?r=igg4/video/list',
data: {}, data: {},
}) })
.then((res) => { .then((res) => {
@ -159,7 +159,7 @@ Page({
const { id, index } = e.currentTarget.dataset const { id, index } = e.currentTarget.dataset
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/compliment', url: '?r=igg4/video/compliment',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -178,7 +178,7 @@ Page({
if (collect == 1) { if (collect == 1) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/cancel-collection', url: '?r=igg4/video/cancel-collection',
data: { data: {
ContentId: id, ContentId: id,
}, },
@ -196,7 +196,7 @@ Page({
} else { } else {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/video/collection', url: '?r=igg4/video/collection',
data: { data: {
ContentId: id, ContentId: id,
}, },

6
src/pages/signIn/index.ts

@ -25,7 +25,7 @@ Page({
signIn() { signIn() {
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url: "?r=zd/activity/sign-in", url: "?r=igg4/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=zd/activity/sign-in-detail", url: "?r=igg4/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=zd/common/get-channel-wx-code", url: "?r=igg4/common/get-channel-wx-code",
data: { data: {
Id: this.data.id, Id: this.data.id,
ChannelType: registChannel, ChannelType: registChannel,

4
src/pages/story/index.ts

@ -32,7 +32,7 @@ Page({
const loading = !this.data.list.length const loading = !this.data.list.length
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/story/story-list', url: '?r=igg4/story/story-list',
data: { data: {
page: newPage, page: newPage,
}, },
@ -54,7 +54,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=zd/story/compliment', url: '?r=igg4/story/compliment',
data: { data: {
ContentId: Id, ContentId: Id,
}, },

8
src/pages/storyDetail/index.ts

@ -26,7 +26,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/story/submit-story-info", url: "?r=igg4/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=zd/story/cancel-publish" : "?r=zd/story/recovery-publish"; let url = type === "withdraw" ? "?r=igg4/story/cancel-publish" : "?r=igg4/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=zd/story/delete", url: "?r=igg4/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=zd/story/all-read" : "?r=zd/story/cancel-all-read"; const url = e.detail ? "?r=igg4/story/all-read" : "?r=igg4/story/cancel-all-read";
wx.ajax({ wx.ajax({
method: "POST", method: "POST",
url, url,

2
src/pages/storyEnter/index.ts

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

4
src/pages/storyEnterResult/index.ts

@ -30,7 +30,7 @@ Page({
getConfig() { getConfig() {
wx.ajax({ wx.ajax({
method: "GET", method: "GET",
url: "?r=zd/common/get-config", url: "?r=igg4/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=zd/common/get-channel-wx-code", url: "?r=igg4/common/get-channel-wx-code",
data: { data: {
ChannelType: "5", ChannelType: "5",
Id: "", Id: "",

6
src/pages/storyGuide/index.ts

@ -32,7 +32,7 @@ Page({
setToSee() { setToSee() {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/story/to-see', url: '?r=igg4/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=zd/drugs/setting-info', url: '?r=igg4/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=zd/common/get-config', url: '?r=igg4/common/get-config',
}).then((res) => { }).then((res) => {
this.setData({ this.setData({
config: res, config: res,

2
src/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=zd/story/submit-story-list', url: '?r=igg4/story/submit-story-list',
data: { data: {
page: newPage, page: newPage,
}, },

2
src/pages/thePublic/index.ts

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

6
src/pages/uploadCert/index.ts

@ -32,7 +32,7 @@ Page({
handleAiPass(imgUrl: string) { handleAiPass(imgUrl: string) {
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/common/image-verify', url: '?r=igg4/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=zd/account/upload-audit-img', url: '?r=igg4/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=zd/account/upload-audit-img', url: '?r=igg4/account/upload-audit-img',
data: { data: {
diagnoseImg, diagnoseImg,
aiPass: 1, aiPass: 1,

2
src/pages/vipLogin/index.ts

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

4
src/pages/webview/index.ts

@ -40,7 +40,7 @@ Page({
getAdl() { getAdl() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/adl/check', url: '?r=igg4/adl/check',
data: {}, data: {},
}).then((res) => { }).then((res) => {
if (res.showAdlPop) { if (res.showAdlPop) {
@ -86,7 +86,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/weiyi/url', url: '?r=igg4/weiyi/url',
data: { data: {
type: this.data.type, type: this.data.type,
period: this.data.period, period: this.data.period,

6
src/public/pages/informed/index.ts

@ -20,7 +20,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/agreement/get-entry-agreement', url: '?r=igg4/agreement/get-entry-agreement',
data: {}, data: {},
}).then((res) => { }).then((res) => {
if (res.hospitalId) { if (res.hospitalId) {
@ -62,7 +62,7 @@ Page({
getHosList() { getHosList() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/hospital/get-all-list', url: '?r=igg4/hospital/get-all-list',
data: { data: {
Name: this.data.searchName, Name: this.data.searchName,
}, },
@ -90,7 +90,7 @@ Page({
} }
wx.ajax({ wx.ajax({
method: 'POST', method: 'POST',
url: '?r=zd/agreement/set-entry-agreement', url: '?r=igg4/agreement/set-entry-agreement',
data: { data: {
hospitalId, hospitalId,
doctorName, doctorName,

2
src/public/pages/informedResult/index.ts

@ -14,7 +14,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/agreement/get-entry-agreement', url: '?r=igg4/agreement/get-entry-agreement',
data: {}, data: {},
}).then((res) => { }).then((res) => {
if (res.hospitalId) { if (res.hospitalId) {

2
src/public/pages/informedStart/index.ts

@ -16,7 +16,7 @@ Page({
getDetail() { getDetail() {
wx.ajax({ wx.ajax({
method: 'GET', method: 'GET',
url: '?r=zd/agreement/get-entry-agreement', url: '?r=igg4/agreement/get-entry-agreement',
data: {}, data: {},
}) })
.then((res) => { .then((res) => {

11490
接口文档.md

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save