my.js
1.3 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
getApp(), require("../../utils/util.js");
Page({
data: {
userInfo: []
},
payment: function() {
wx.navigateTo({
url: "../my/payment/payment"
});
},
delivery: function() {
wx.navigateTo({
url: "../my/delivery/delivery"
});
},
shipped: function() {
wx.navigateTo({
url: "../my/shipped/shipped"
});
},
completed: function() {
wx.navigateTo({
url: "../my/completed/completed"
});
},
gotomyoder: function() {
wx.navigateTo({
url: "payment/payment"
});
},
gomyoder: function() {
wx.navigateTo({
url: "myoder/myoder"
});
},
onLoad: function(n) {
var e = this;
wx.getStorage({
key: "userInfo",
success: function(n) {
e.setData({
userInfo: n.data
});
}
}), wx.getStorage({
key: "ouid",
success: function(n) {}
});
},
onReady: function() {},
onShow: function() {},
onHide: function() {},
onUnload: function() {},
onPullDownRefresh: function() {},
onReachBottom: function() {},
onShareAppMessage: function() {}
});