临时的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();