getMap() {
let that = this;
console.log('=========getMap');
uni.getLocation({
。。。。
success: (res) => {
that.dataList = res.data.data; //这里获取不到函数外面的this,所以一定要that
getMap() {
let that = this;
console.log('=========getMap');
uni.getLocation({
。。。。
success: (res) => {
that.dataList = res.data.data; //这里获取不到函数外面的this,所以一定要that