person.js
1.61 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
Page({
data:{
blocks:[1,2,3],
setting:[
{
title:'我的晒宠',
iconurl:'/pages/image/pub-msg.svg'
},
{
title:'大头贴',
iconurl:'/pages/image/pub-picture.svg'
},
{
title:'分享邀请',
iconurl:'/pages/image/pub-share.svg'
},
{
title:'消息',
iconurl:'/pages/image/pub-reminder.svg'
},
{
title:'积分兑换',
iconurl:'/pages/image/pub-transfrom.svg'
}
],
mesetting:[
{
title:'关注',
count:98,
},
{
title:'粉丝',
count:100,
},
// {
// title:'卡券',
// count:2,
// },
{
title:'积分',
count:200,
}
]
},
onLoad:function(){
},
onShow:function(){
},
petlist:function(e){
var index=e.currentTarget.dataset.idx;
if(index==0){
wx.navigateTo({
url:'p_list'
})
}else{
if(index==1){
wx.navigateTo({
url:'p_photo'
})
}
}
},
petdetail:function () {
wx.navigateTo({
url:'../pet/p_detail'
})
},
addpet:function () {
wx.navigateTo({
url:'../pet/p_add'
})
}
})