You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.4 KiB

// index.js
const defaultAvatarUrl = 'https://mmbiz.qpic.cn/mmbiz/icTdbqWNOwNRna42FI242Lcia07jQodd2FJGIYQfG0LAJGFxM4FbnQP6yfMxBgJ0F3YRqJCJ1aPAK2dQagdusBZg/0'
Page({
data: {
simgUrl:[
"/pages/images/2.png",
"/pages/images/3.png",
"/pages/images/4.png",
"/pages/images/5.png",
"/pages/images/6.png"
],
navList:[
{
iconUrl:"/pages/images/a.png",
iconName:"历史",
},
{
iconUrl:"/data (1)/icons/category/c2.png",
iconName:"电子产品",
},
{
iconUrl:"/data (1)/icons/category/c3.png",
iconName:"化妆品",
},
{
iconUrl:"/data (1)/icons/category/c4.png",
iconName:"鞋类",
},
{
iconUrl:"/data (1)/icons/category/c5.png",
iconName:"衣服",
},
{
iconUrl:"/data (1)/icons/category/c6.png",
iconName:"珠宝",
},
]
},
getUserProfile(e) {
// 推荐使用wx.getUserProfile获取用户信息开发者每次通过该接口获取用户个人信息均需用户确认开发者妥善保管用户快速填写的头像昵称避免重复弹窗
wx.getUserProfile({
desc: '展示用户信息', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写
success: (res) => {
console.log(res)
this.setData({
userInfo: res.userInfo,
hasUserInfo: true
})
}
})
},
})