-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
executable file
·182 lines (176 loc) · 5.82 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
// app.js
App({
globalData: {
// fundamental datas
authorization: false,
openId: '',//wechat id
avatarUrl: '../../assets/images/avatar_default.png',
loginStatus: false,
isIpX: false,
// user datas
userInfo: {
'name': '韩乐乐',
'phone': '12345678910',
'birthday': '1997-04-04',
'province': ['上海市', '上海市', '嘉定区'],
'address': '同济大学'
},
booksInfo:[
{
id:0,
name:'',
isbn:'',
coverUrl:'',
price:0,
discount:1.0,
stock:0,
author:'',
publisher:'',
description:'',
sales:0,
category:''
}
],
// booksInfo: [
// {
// id: 0,
// name: "追风筝的人",
// author: "卡勒德·胡塞尼",
// price: 20.48,
// isbn: "9787208061644",
// cover_url: "/assets/images/img/img_kite.png",
// publisher: "上海人民出版社",
// discription: "然而,在一场风筝比赛后,发生了一件悲惨不堪的事,阿米尔为自己的懦弱感到自责和痛苦,逼走了哈桑。",
// discount: 0.7,
// isSelect: false,
// count: 2,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 1,
// title: "活着",
// name: "余华",
// price: 23.04,
// isbn: "9787506365437",
// cover_url: "/assets/images/img/img_live.png",
// publisher: "作家出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.9,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 2,
// name: "罗生门",
// author: "芥川龙之介",
// price: 30.52,
// isbn: "9787208061644",
// cover_url: "/assets/images/img/img_lsm.png",
// publisher: "上海人民出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.7,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 3,
// name: "月亮与六便士",
// author: "毛姆",
// price: 18.99,
// isbn: "9787506365437",
// cover_url: "/assets/images/img/img_moon.png",
// publisher: "作家出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.9,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 4,
// name: "皮囊",
// author: "蔡崇达",
// price: 22.49,
// isbn: "9787208061644",
// cover_url: "/assets/images/img/img_pn.png",
// publisher: "上海人民出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.8,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 5,
// name: "人间失格",
// author: "太宰治",
// price: 15.66,
// isbn: "9787506365437",
// cover_url: "/assets/images/img/img_rjsg.png",
// publisher: "作家出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.8,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 6,
// name: "小王子",
// author: "安托万·德·圣埃克苏佩里",
// price: 19.77,
// isbn: "9787208061644",
// cover_url: "/assets/images/img/img_prince.png",
// publisher: "上海人民出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.7,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// },
// {
// id: 7,
// name: "挪威的森林",
// author: "村上春树",
// price: 28.99,
// isbn: "9787506365437",
// cover_url: "/assets/images/img/img_norway.png",
// publisher: "作家出版社",
// discription: "《活着》是一部充满血泪的小说。余华通过一位中国农民的苦难生活 讲述了人如何去承受巨大的苦难;讲述了眼泪的丰富和宽广。",
// discount: 0.9,
// isSelect: false,
// count: 1,
// stock: 50,
// sales: 15,
// txtStyle: "",
// catagory: "小说",
// }]
},
// when app launchs
onLaunch: function(e) {
console.log("应用启动:", e)
},
})