|
@@ -4,6 +4,7 @@ const app = getApp()
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
|
+ //直推积分
|
|
|
integralList: [
|
|
|
{
|
|
|
id:1,
|
|
@@ -17,7 +18,7 @@ Page({
|
|
|
{
|
|
|
id:2,
|
|
|
status:'未结算',
|
|
|
- name:'张三哈',
|
|
|
+ name:'李光洁',
|
|
|
money:'900.00',
|
|
|
grade:'一级',
|
|
|
time:'2020-10-2',
|
|
@@ -26,13 +27,14 @@ Page({
|
|
|
{
|
|
|
id:3,
|
|
|
status:'未结算',
|
|
|
- name:'张三哈',
|
|
|
+ name:'霍晓彤',
|
|
|
money:'200.00',
|
|
|
grade:'一级',
|
|
|
time:'2020-10-2',
|
|
|
num:'11111111111'
|
|
|
},
|
|
|
],
|
|
|
+ //开卡量
|
|
|
cardList:[
|
|
|
{
|
|
|
id:1,
|
|
@@ -73,7 +75,7 @@ Page({
|
|
|
time:'2020-10-2',
|
|
|
num:'11111111111'
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
},
|
|
|
//事件处理函数
|
|
|
bindViewTap: function () {
|
|
@@ -82,5 +84,56 @@ Page({
|
|
|
})
|
|
|
},
|
|
|
onLoad: function () {
|
|
|
+ //处理直推积分
|
|
|
+ let integralList1=this.data.integralList;
|
|
|
+ let aa1;
|
|
|
+ let phone1;
|
|
|
+ var that=this;
|
|
|
+ integralList1.forEach(function(curr, index){
|
|
|
+ //处理名字
|
|
|
+ aa1= curr.name.substring(0,1) + new Array(curr.name.length).join('*');
|
|
|
+ that.setData({
|
|
|
+ [`integralList[${index}].name`]: aa1
|
|
|
+ })
|
|
|
+ //处理电话
|
|
|
+ phone1=curr.num.substring(0,3) + new Array(5).join('*')+curr.num.substring(7,11);
|
|
|
+ that.setData({
|
|
|
+ [`integralList[${index}].num`]: phone1
|
|
|
+ })
|
|
|
+ })
|
|
|
+ //处理开卡量
|
|
|
+ let cardList1=this.data.cardList;
|
|
|
+ let aa2;
|
|
|
+ let phone2;
|
|
|
+ var that=this;
|
|
|
+ cardList1.forEach(function(curr, index){
|
|
|
+ //处理名字
|
|
|
+ aa2= curr.name.substring(0,1) + new Array(curr.name.length).join('*');
|
|
|
+ that.setData({
|
|
|
+ [`cardList[${index}].name`]: aa2
|
|
|
+ })
|
|
|
+ //处理电话
|
|
|
+ phone2=curr.num.substring(0,3) + new Array(5).join('*')+curr.num.substring(7,11);
|
|
|
+ that.setData({
|
|
|
+ [`cardList[${index}].num`]: phone2
|
|
|
+ })
|
|
|
+ })
|
|
|
+ //处理卡单分红
|
|
|
+ let bonusList1=this.data.bonusList;
|
|
|
+ let aa3;
|
|
|
+ let phone3;
|
|
|
+ var that=this;
|
|
|
+ bonusList1.forEach(function(curr, index){
|
|
|
+ //处理名字
|
|
|
+ aa3= curr.name.substring(0,1) + new Array(curr.name.length).join('*');
|
|
|
+ that.setData({
|
|
|
+ [`bonusList[${index}].name`]: aa3
|
|
|
+ })
|
|
|
+ //处理电话
|
|
|
+ phone3=curr.num.substring(0,3) + new Array(5).join('*')+curr.num.substring(7,11);
|
|
|
+ that.setData({
|
|
|
+ [`bonusList[${index}].num`]: phone3
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
})
|