diff --git a/project.config.json b/project.config.json index c722415..dacd5e0 100644 --- a/project.config.json +++ b/project.config.json @@ -22,7 +22,7 @@ "disablePlugins": [], "outputPath": "" }, - "useCompilerModule": true, + "useCompilerModule": false, "userConfirmedUseCompilerModuleSwitch": false, "compileHotReLoad": false, "useIsolateContext": true diff --git a/subpages/heart/pages/heartDetail/heartDetail.js b/subpages/heart/pages/heartDetail/heartDetail.js index 4228b60..cf21efd 100644 --- a/subpages/heart/pages/heartDetail/heartDetail.js +++ b/subpages/heart/pages/heartDetail/heartDetail.js @@ -26,6 +26,7 @@ Page({ preloadVisible: true, timeJudge: false,//根据当前时间比较活动结束时间,判断活动是否已经结束,用以判断显示订单多多里面的志愿者 defaultGridId:"",//默认网格 + actType: "" }, onLoad: function (options) { console.log("当前时间" + getTimestamp()) @@ -34,6 +35,7 @@ Page({ actCurrentState: options.actcurrentstate, signupFlag: options.signupflag, selectedTab: options.selectedTab, + actType: options.selectedTab==undefined?'':options.selectedTab=='tab0'?'0':options.selectedTab=='tab2'?'1':'' }) // this.getDetail();//活动详情 // this.clockList();//打卡列表 @@ -45,8 +47,12 @@ Page({ }, // 获取详情信息 getDetail () { - let id = this.data.id - api.detail(id).then(res => { + // let id = this.data.id + const param = { + id: this.data.id, + actType: this.data.actType + } + api.detail(param).then(res => { if (res.code === 0 && res.msg === "success") { this.setData({ detail: res.data, diff --git a/utils/api.js b/utils/api.js index a7e143c..620c78e 100644 --- a/utils/api.js +++ b/utils/api.js @@ -323,8 +323,11 @@ function leaderboard () { /** * 活动详情 */ -function detail (id) { - return fly.get(`heart/act/detail/${id}`) +function detail ({id,actType}) { + return fly.get(`heart/act/detail`,{ + id: id, + actType: actType + }) } /** diff --git a/utils/config.js b/utils/config.js index 58acdf1..7bd1014 100644 --- a/utils/config.js +++ b/utils/config.js @@ -6,13 +6,13 @@ module.exports = { }; function BASEURL() { - // return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境 + return 'https://eug-test.elinkit.com.cn/js/epdc-api/api/' // 锦水测试环境 // return 'https://eug-test.elinkit.com.cn/epdc-api/api/' // 测试环境 接口地址 // return "http://192.168.43.19:9094/epdc-api/api/" // 测试环境 ip接口地址 // return "https://epdc.elinkservice.cn/epdc-api/api/" // 正式环境 接口地址 // return 'https://epdc-app.qingdaoshibei.cn/epdc-api/api/' // 电政办 正式环境 接口地址 // return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 电政办 正式环境 接口地址 - return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址 + // return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址 // return 'http://10.10.10.63:9094/epdc-api/api/' }