|
@@ -25,9 +25,11 @@ Component({
|
|
|
attached: function () {
|
|
|
// 在组件实例进入页面节点树时执行
|
|
|
let list = wx.getStorageSync('account_list');
|
|
|
- const userList = setData.imageType(list, "headportrait");
|
|
|
+ const userList = setData.imageType(list, "headportrait"),
|
|
|
+ userIndex = (wx.getStorageSync('userData').index) ? wx.getStorageSync('userData').index : 0;
|
|
|
this.setData({
|
|
|
- userList
|
|
|
+ userList,
|
|
|
+ userIndex
|
|
|
});
|
|
|
}
|
|
|
},
|