my.js
2.1 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
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
const app = getApp()
Page({
data: {
popup_state: false,
arr:[1,2,3]
},
signIn() {
this.setData({
popup_state: true
})
},
cancleMask() {
this.setData({
popup_state: false
})
},
onLoad: function() {
this.fetchSign();
},
//fetch签到
fetchSign(){
let url ='/wxapp/user/sign';
app.post(url).then(r=>{
console.log(r);
});
},
// 消息中心
get_message(){
wx.navigateTo({
url: '../my/activityInformation/activityInformation',
})
},
// 修改个人信息
getamend_person(){
wx.navigateTo({
url: '../my/modifyPersonInformation/modifyPersonInformation',
})
},
// 兑换码充值
get_activity(){
wx.navigateTo({
url: '../my/charger_code/charger_code',
})
},
//点击积分抵现
integral(){
wx.navigateTo({
url: '../my/personal_center/personal_center'
})
},
// 待付款
get_obligation(){
wx.navigateTo({
url: '../my/orderDetail/orderDetail',
})
},
// 待发货
get_dropshop(){
wx.navigateTo({
url: '../my/orderDetail/orderDetail',
})
},
// 已发货
get_shipped(){
wx.navigateTo({
url: '../my/orderDetail/orderDetail',
})
},
// 待评价
get_evaluate(){
wx.navigateTo({
url: '../my/orderDetail/orderDetail',
})
},
// 售后
get_sale(){
wx.navigateTo({
url: '../my/orderDetail/orderDetail',
})
},
//优惠券
coupons(){
wx.navigateTo({
url: '../my/coupons/coupons',
})
},
// 储值有礼
get_recharge(){
wx.navigateTo({
url: '../my/balance _center2/balance _center2',
})
},
// 分享有礼
get_share() {
wx.navigateTo({
url: 'invitationPolite/invitationPolite',
})
},
// 我的收藏
get_collection() {
wx.navigateTo({
url: '../my/myCollection/myCollection',
})
},
// 地址管理
get_address(){
wx.navigateTo({
url: '../my/myAddress/myAddress',
})
},
// 常见问题
get_issue(){
wx.navigateTo({
url: '../my/editAddress2/editAddress2',
})
}
})