Browse Source

首页接口调整

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

11
src/pages/home/index.ts

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

Loading…
Cancel
Save