schedule.js
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import {API_HOST, SERVICE_HOST} from '../../libs/config';
import {GET, POST} from '../../libs/request';
import { loginAndRegisterTapped } from '../../utils/login';
var app = getApp()
Page({
data: {
array: [ { 'applyed': false, 'activityId': '123' }, { 'applyed': false, 'activityId': '456' }],
contentArray: [ 'Aug.26', 'Aug.27', 'Aug.28', 'Aug.29', 'Aug.30', 'Aug.31', 'Aug.32', 'Aug.33'],
},
onLoad: function(options) {
//Do some initialize when page load.
},
onReady: function() {
//Do some when page ready.
},
onShow: function() {
//Do some when page show.
},
selectTab(e) {
let select = e.detail.index;
this.setData({
select
})
},
applyAction(e) {
let activityId = e.detail.activityId;
let array = this.data.array;
if (app.globalData.userInfo.uid) {//已登录
} else {
loginAndRegisterTapped();
}
},
jumpMap() {
wx.navigateTo({
url: `../webview/webview?url=https://activity.yoho.cn/feature/507.html?share_id=2647`,
})
},
onHide: function() {
//Do some when page hide.
},
onUnload: function() {
//Do some when page unload.
},
onPullDownRefresh: function() {
//Do some when page pull down.
}
})