|
@@ -4,6 +4,13 @@ import {
|
|
|
toNavigatePage
|
|
|
} from "../../utils/util"
|
|
|
import api from "../../api/index"
|
|
|
+const {
|
|
|
+ globalData: {
|
|
|
+ systemInfo: {
|
|
|
+ windowWidth
|
|
|
+ }
|
|
|
+ }
|
|
|
+} = getApp();
|
|
|
Page({
|
|
|
|
|
|
/**
|
|
@@ -11,7 +18,9 @@ Page({
|
|
|
*/
|
|
|
data: {
|
|
|
news: [],
|
|
|
- meet: {}
|
|
|
+ meet: {},
|
|
|
+ themeHeight: 0,
|
|
|
+ showMD: true
|
|
|
},
|
|
|
|
|
|
openFile(e) {
|
|
@@ -21,6 +30,19 @@ Page({
|
|
|
openFileFunc(url, fileName);
|
|
|
},
|
|
|
|
|
|
+ loadimg(e) {
|
|
|
+ const {
|
|
|
+ detail: {
|
|
|
+ width,
|
|
|
+ height
|
|
|
+ }
|
|
|
+ } = e;
|
|
|
+ this.setData({
|
|
|
+ themeHeight: windowWidth / width * height
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
changeTab(e) {
|
|
|
wx.reLaunch({
|
|
|
url: e.currentTarget.dataset.url
|
|
@@ -35,12 +57,14 @@ Page({
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
// console.log(__wxConfig)
|
|
|
- Promise.all([api.getNewList({}), api.getMeetDetail({})]).then(list=>{
|
|
|
- const meet = list[1] || {};
|
|
|
+ Promise.all([api.getNewList({}), api.getMeetDetail({}), api.getMeetBaseInfo()]).then(list => {
|
|
|
+ const meet = list[1] || {};
|
|
|
meet.time = meet.startTime.split(" ")[0];
|
|
|
meet.sponsor = meet.sponsor.split(",");
|
|
|
meet.organizer = meet.organizer.split(",");
|
|
|
+
|
|
|
this.setData({
|
|
|
+ showMD: (list[2] || {confContent: 'show'}).confContent === 'show',
|
|
|
news: list[0].records || [],
|
|
|
meet: list[1] || {}
|
|
|
})
|