随机获得一个数组 形如:
arr = [ {phone:'185****6222',money:'786.25'},... ]
getRandomList() {
let arr = []
let prefixArray = ['130', '131', '132', '133', '135', '137', '138', '170', '187', '189']
for (let i = 0; i < 20; i++) {
let obj = {}
let j = parseInt(10 * Math.random())
let prefix = prefixArray[j] + '****'
for (let j = 0; j < 4; j++) {
prefix = prefix + Math.floor(Math.random() * 10)
}
obj.phone = prefix
obj.money = (500 + Math.random() * 500).toFixed(2)
arr.push(obj)
}
this.targerList= arr
},