|
@@ -255,8 +255,8 @@ export default {
|
|
moreMeunSmalLeft_3: false,
|
|
moreMeunSmalLeft_3: false,
|
|
regionInShowOne: false,
|
|
regionInShowOne: false,
|
|
regionInShowTwo: true,
|
|
regionInShowTwo: true,
|
|
- money: 15389740,
|
|
|
|
- peopleNum: 234856,
|
|
|
|
|
|
+ money: 0,
|
|
|
|
+ peopleNum: 0,
|
|
dataSource: [],
|
|
dataSource: [],
|
|
map:[],
|
|
map:[],
|
|
dateList: [
|
|
dateList: [
|
|
@@ -293,8 +293,9 @@ export default {
|
|
this.getMapByPerson();
|
|
this.getMapByPerson();
|
|
let _this = this;
|
|
let _this = this;
|
|
setInterval(function () {
|
|
setInterval(function () {
|
|
- _this.money += Math.round(Math.random() * 100);
|
|
|
|
- _this.peopleNum += Math.round(Math.random() * 100);
|
|
|
|
|
|
+ let peo = Math.round(Math.random() * 100);
|
|
|
|
+ _this.peopleNum += peo;
|
|
|
|
+ _this.money += (peo*29);
|
|
}, 3000)
|
|
}, 3000)
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -1016,7 +1017,14 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getFirstDigit(num) {
|
|
getFirstDigit(num) {
|
|
- return Number(String(this.money).charAt(num));
|
|
|
|
|
|
+ let ret = 0;
|
|
|
|
+ let strMoney = '';
|
|
|
|
+ for (let i = 0;i < 8-String(this.money).length;i++){
|
|
|
|
+ strMoney += '0';
|
|
|
|
+ }
|
|
|
|
+ strMoney = strMoney + String(this.money);
|
|
|
|
+ ret = Number(strMoney.charAt(num));
|
|
|
|
+ return ret;
|
|
},
|
|
},
|
|
aaa(){
|
|
aaa(){
|
|
this.map.panTo(new BMap.Point(126.607581,43.802168)); // 初始化地图,设置中心点坐标和地图级别
|
|
this.map.panTo(new BMap.Point(126.607581,43.802168)); // 初始化地图,设置中心点坐标和地图级别
|