Browse Source

首页接口调整

master
kola-web 4 days ago
parent
commit
94ee7c17a5
  1. 11
      src/pages/home/index.ts

11
src/pages/home/index.ts

@ -102,7 +102,7 @@ Page({ @@ -102,7 +102,7 @@ Page({
},
handleSwiperChange(e) {
const current = e.detail.current;
const { Id } = this.data.bannerList[current];
const { Id } = this.data.notice[current];
app.mpBehavior({ PositionId: '4', OperateType: '4', OperateId: Id });
this.setData({
current: e.detail.current,
@ -136,7 +136,7 @@ Page({ @@ -136,7 +136,7 @@ Page({
getBriefingList() {
wx.ajax({
method: 'GET',
url: '?r=xd/doctor/index/get-latest-material',
url: '?r=xd/doctor/index/get-material-list',
data: {
count: 10,
ContentType: 1,
@ -153,7 +153,7 @@ Page({ @@ -153,7 +153,7 @@ Page({
getSopList() {
wx.ajax({
method: 'GET',
url: '?r=xd/doctor/index/get-latest-material',
url: '?r=xd/doctor/index/get-material-list',
data: {
count: 10,
ContentType: 2,
@ -171,10 +171,7 @@ Page({ @@ -171,10 +171,7 @@ Page({
wx.ajax({
method: 'GET',
url: '?r=xd/doctor/index/get-latest-material',
data: {
ContentType: 3,
count: 10,
},
data: {},
}).then((res) => {
res.list.forEach((item) => {
item.PublishTime = dayjs(item.PublishTime).format('YYYY-MM-DD');

Loading…
Cancel
Save