临时的ThisCall

// 获取当前定位
changeCity: function () {
let that = this;
that.locationClose();
Upj._changeCity().then((data) => {
if (data.code) {
wx.setStorageSync('cityon', data);
if (data.pCode === 1) {
// setTimeout(function () {
// that.setData({ locationNext: true })
// }, 1500)
}
that.setData({
cityon: data,
sureHaveUser: true
});
that.homeFn();
// setTimeout(function() {
// that.nowCity(data.code);
// }, 1000)
}


})
},
 
that.changeCity();
posted @ 2018-10-26 09:59  ThisCall  阅读(109)  评论(0编辑  收藏  举报