//需求1
toMd5(val) {
var temp = val.replace(/(^\s*)|(\s*$)/g,"")
var num = temp.length / 2
var a = temp.slice(0,num)
var b = temp.slice(num)
var c = a + this.phone + b
return md5(c)
},
需求2
toMd5Lower(val) {
var temp = val.replace(/(^\s*)|(\s*$)/g,"")
var lowTemp = temp.toLowerCase()
var num = lowTemp.length / 2
var a = lowTemp.slice(0,num)
var b = lowTemp.slice(num)
var c = a + this.phone + b
return md5(c)
},