Index/index.js修改
onLoad:修改
修改为:
setTimeout(function() {
a.setData({
areas: i.getCache("cacheset").areas
});
}, 3e3);
if ((typeof (t.id) != "undefined" && t.id > 0) || (typeof (t.mid) != "undefined" && t.mid>0))
i.url(t);
bind:修改
wx.getSetting({
success: function(n) {
var a = n.authSetting["scope.userInfo"];
a && (wx.reLaunch({
url: "/pages/index/index"
},i.getUserInfo()), clearInterval(e), t.setData({
userInfo: a
}));
}
});