-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.js
136 lines (135 loc) · 3.45 KB
/
app.js
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// app.js
App({
onLaunch() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
},
globalData: {
userInfo: null,
},
trunTime: 3000,
awardsConfig: {
chance: true,
awards: [
{ 'name': "日本料理" },
{ 'name': "火锅" },
{ 'name': "自己多少斤心里没点数" },
{ 'name': "泰国菜" },
{ 'name': "海鲜" },
{ 'name': "烤鱼" },
{ 'name': "拉面" },
{ 'name': "麻辣烫" },
{ 'name': "自助餐" }
],
title: '聚餐吃什么?',
subTitle: "",
},
menuID : 1,
hotSelect: [
{
title: '2023年贺岁片',
display: false,
awards: [
{ 'name': "无名" },
{ 'name': "深海" },
{ 'name': "满江红" },
{ 'name': "交换人生" },
{ 'name': "流浪地球2" },
{ 'name': "熊出没" },
{ 'name': "中国乒乓绝地反击" },
]
},
{
title: '聚餐吃什么?',
display: false,
awards: [
{ 'name': "日本料理" },
{ 'name': "火锅" },
{ 'name': "自己多少斤心里没点数" },
{ 'name': "泰国菜" },
{ 'name': "海鲜" },
{ 'name': "烤鱼" },
{ 'name': "拉面" },
{ 'name': "麻辣烫" },
{ 'name': "自助餐" },
]
},
{
title: '今天谁买单?',
display: false,
awards: [
{ "name": "身高最高的" },
{ "name": "微信好友最多的" },
{ "name": "年龄最小的" },
{ "name": "年龄最大的" },
{ "name": "头发最短的" },
{ "name": "头发最长的" },
]
},
{
title: '真心话',
display: false,
awards: [
{ "name": "描述经历过最尴尬的事" },
{ "name": "带过异性回家吗" },
{ "name": "第一次恋爱几岁" },
{ "name": "做过最疯狂的事是什么" },
{ "name": "单身的感觉好吗" },
{ "name": "讲一下你的最近一次分手" },
{ "name": "与前任还有联系吗" },
{ "name": "你最喜欢的异性风格" },
{ "name": "谈过几次恋爱" },
{ "name": "多久没看片了" },
]
},
{
title: '狼人杀身份牌',
display: false,
awards: [
{ "name": "预言家" },
{ "name": "狼人" },
{ "name": "村民" },
{ "name": "狼人" },
{ "name": "村民" },
{ "name": "狼人" },
{ "name": "村民" },
{ "name": "村民" },
{ "name": "猎人" },
{ "name": "女巫" },
{ "name": "丘比特" },
]
},
{
title: '大冒险',
display: false,
awards: [
{ "name": "公主抱离你最近的异性" },
{ "name": "向一位同性表白3分钟" },
{ "name": "向一位异性表白3分钟" },
{ "name": "脱一件衣服至游戏结束" },
{ "name": "做一个最性感的动作" },
{ "name": "与异性十指相扣,对视十秒" },
]
},
{
title: '骰子',
display: false,
awards: [
{ "name": "1" },
{ "name": "2" },
{ "name": "3" },
{ "name": "4" },
{ "name": "5" },
{ "name": "6" },
]
},
]
})