Browse Source

删除

newStyle
风继续吹 1 year ago
parent
commit
dedccd50d8
8 changed files with 1655 additions and 639 deletions
  1. +32
    -0
      App.vue
  2. +1352
    -497
      pages/center/consumer/index.vue
  3. +38
    -31
      pages/index/consumer/index.vue
  4. +1
    -0
      pages/index/customer.vue
  5. +229
    -110
      pages/index/index.vue
  6. +1
    -0
      pages/index/learning.vue
  7. +1
    -0
      pages/index/personal.vue
  8. +1
    -1
      pages/login/index.vue

+ 32
- 0
App.vue View File

@@ -26,6 +26,38 @@
},

methods: {
//实时统计
getTabBarBadge() {
uni.request({
url: config.service.realTimeStatistics,
method: "POST",
header: {
'content-type': 'application/json',
'Authorization': 'Bearer ' + uni.getStorageSync('weapp_session_login_data').token
},
data: {
houseId: uni.getStorageSync('buildingID').id
},
success: (data) => {
if (data.data.data == null) {
return
} else {
if (data.data.data.receivingCustomer > 0) {
uni.setTabBarBadge({
index: 0,
text: data.data.data.receivingCustomer.toString() || "0"
})
} else {
uni.hideTabBarRedDot({
inndex: 0,
})
}
}
},
fail: () => {}
})
},
upDateBulidIngObj() {
this.bulidIngObj = uni.getStorageSync('buildingID')
},


+ 1352
- 497
pages/center/consumer/index.vue
File diff suppressed because it is too large
View File


+ 38
- 31
pages/index/consumer/index.vue View File

@@ -57,25 +57,27 @@
@click="gotoDetail(item.id)">
<view class="content-first">
<view class="left">
<view class="test">{{item.name}}</view>
<view v-if="item.level.length == 0"></view>
<view class="img A" v-else-if="item.level == 1">A</view>
<view class="img B" v-else-if="item.level == 2">B</view>
<view class="img C" v-else-if="item.level == 3">C</view>
<view class="img D" v-else-if="item.level == 4">D</view>
<view v-if="item.clientStageName" class="clientStageName">{{ item.clientStageName }}</view>
<view class="test">{{item.name}}</view>
</view>
<view class="right">
<image class="right-img" src="../../../static/images/arrow-right.png" mode=""></image>
<view class="clientStageName">
{{ item.frection || 0 }}%
</view>
</view>
</view>

<view class="content-sec">
<view class="content-sec-lab">
<view class="content-sec-lab1">手机号码:{{ item.phone || "--" }}</view>
<view class="content-sec-lab1" style="width: 44%">到访次数:{{ item.visitRecord || 0 }}次/{{
item.mm || 0
}}min</view>
<view class="content-sec-lab1" style="width: 44%">客户阶段:{{ item.clientStageName || '--' }}</view>
</view>
<view class="content-sec-lab">
<view class="content-sec-lab1">负责顾问:{{ item.agentName || "--" }}</view>
</view>
<view class="content-sec-lab">
<view class="content-sec-lab1">
@@ -85,11 +87,10 @@
</view>
</view>
<view class="content-sec-lab">
<view class="content-sec-lab1">所属顾问:{{ item.agentName || "--" }}</view>
<view class="content-sec-lab1" style="width: 44%">客户阶段:{{ item.stageName || "--" }}</view>
</view>
<view class="content-sec-lab">
<view class="content-sec-lab1">上次到访:{{ item.createTime || "--" }}</view>
<view class="content-sec-lab1">最近到访:{{ item.createTime || "--" }}</view>
<view class="content-sec-lab1-min">
到访{{ item.visitRecord || 0 }}次/{{ item.mm || 0 }}min
</view>
</view>
</view>
<view class="content-last">
@@ -108,10 +109,7 @@
</view>
</template>
</view>


</view>

</view>
<!-- 更多筛选 -->
<u-popup v-model="screenShow" mode="top" height="900">
@@ -626,6 +624,7 @@
},

onShow() {
this.getTabBarBadge()
this.buildingID = uni.getStorageSync('buildingID').id;
this.updatebuildingID = uni.getStorageSync('updatebuildingID')
if (this.isnorefresh != 'refresh' || this.updatebuildingID == 'updatebuildingID') {
@@ -1369,21 +1368,6 @@
color: #FFFFFF;
}

.clientStageName {
margin-right: 20rpx;
padding: 0 16rpx;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FF981E;
height: 48rpx;
line-height: 48rpx;
background: #FFFFFF;
border-radius: 4rpx;
border: 1rpx solid #FF981E;
box-sizing: border-box;
}

.A {
background: #E6625B;
}
@@ -1417,7 +1401,21 @@
align-items: center;
color: #2671E2;
font-size: 30rpx;

align-items: flex-end;
.clientStageName {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
// color: #FF981E;
height: 48rpx;
line-height: 48rpx;
background: #FFFFFF;
// border-radius: 4rpx;
// border: 1rpx solid #FF981E;
box-sizing: border-box;
}
.right-img {
margin: 5rpx 0 0 10rpx;
width: 14rpx;
@@ -1446,6 +1444,15 @@
color: #333333;
word-break: break-all;
}
.content-sec-lab1-min {
flex-shrink: 0;
margin-bottom: 20rpx;
padding: 0 10rpx;
background: rgba($color: #2671e2, $alpha: 1);
color: #fff;
border-radius: 8rpx;
}

.content-sec-tips {
max-width: 160rpx;


+ 1
- 0
pages/index/customer.vue View File

@@ -179,6 +179,7 @@
},
onShow() {
this.buildingID = uni.getStorageSync('buildingID').id;
this.getTabBarBadge()
const {
addAccount,
dataCode


+ 229
- 110
pages/index/index.vue View File

@@ -134,47 +134,53 @@
</view>
<view class="real-timebox">
<view class="timebox">
<view class="real" @click="tapjumpreception('1')">
<view class="realnum u-flex" style="justify-content: center">{{realtimeobj.fraction || 0}}<text
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text>
<!-- <image class="qushi-icon" src="/static/images/excute.png" mode="" /> -->
</view>
<view class="realtext">平均执行率</view>
</view>
<view class="real" @click="tapjumpreception('6')">
<view class="realnum">{{realtimeobj.wordFraction|| 0}}%</view>
<view class="realtext">平均挖掘执行率</view>
</view>
<view class="real" @click="tapjumpreception('11')">
<view class="real" @click="tapjumpreception(checkParams('1'))">
<view class="realnum">{{realtimeobj.receptionCount || 0}}</view>
<view class="realtext">接待量</view>
</view>
<view class="real" @click="tapjumpreception('2')">
<view class="realnum">{{realtimeobj.receivingCustomer || 0}}</view>
<view class="realtext">正在接待</view>
</view>
</view>
<view class="timebox">
<view class="real" @click="tapjumpreception('6')">


<view class="real" @click="tapjumpreception(checkParams('6'))">
<view class="realnum">{{realtimeobj.activeCustomer|| 0}}</view>
<view class="realtext">有效接待</view>
</view>
<view class="real" @click="tapjumpreception('1')">
<view class="realnum">{{realtimeobj.avgDuration|| 0}}<text
style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view>
<view class="realtext">平均接待时长</view>
</view>
<view class="real" @click="tapjumpreception('4')">

<view class="real" @click="tapjumpreception(checkParams('4'))">
<view class="realnum">{{realtimeobj.tagCustomer || 0}}</view>
<view class="realtext">未标顾问</view>
</view>

<view class="real" @click="prohibitedtap(1)" v-if="methodsisshow">
<view class="realnum" style="color: red;">
{{realtimeobj.prohibitedCustomer || 0}}
</view>
<view class="realtext">违禁预警</view>
<view class="realtext">违禁次数</view>
</view>
</view>

<view class="timebox">
<view class="real" @click="tapjumpreception(checkParams('auth'))">
<view class="realnum u-flex" style="justify-content: center">{{realtimeobj.fraction || 0}}<text
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text>
<!-- <image class="qushi-icon" src="/static/images/excute.png" mode="" /> -->
</view>
<view class="realtext">平均执行率</view>
</view>

<view class="real" @click="tapjumpreception(checkParams('auth'))">
<view class="realnum">{{realtimeobj.avgDuration|| 0}}<text
style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view>
<view class="realtext">平均接待时长</view>
</view>
<view class="real" @click="tapjumpreception(checkParams('6'))">
<view class="realnum">{{realtimeobj.wordFraction|| 0}}%</view>
<view class="realtext">平均挖掘执行率</view>
</view>

<view class="real" @click="toCustomerManagement('dateType')">
<view class="realnum">{{realtimeobj.sumLevelFraction || 0}}%</view>
<view class="realtext">平均意向度</view>
</view>

</view>
</view>
@@ -191,38 +197,50 @@
</view>
<view class="real-timebox">
<view class="timebox">
<view class="real" @click="tapjumpreception('3')">
<view class="realnum u-flex" style="justify-content: center">{{Thisweekobj.fraction || 0}}<text
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text>
</view>
<view class="realtext">平均执行率</view>
</view>
<view class="real" @click="tapjumpreception('7')">
<view class="realnum">{{Thisweekobj.wordFraction || 0}}%</view>
<view class="realtext">平均挖掘执行率</view>
</view>
<view class="real" @click="tapjumpreception('33')">
<view class="real" @click="tapjumpreception(checkParams('3'))">
<view class="realnum">{{Thisweekobj.receptionCount || 0}}</view>
<view class="realtext">接待量</view>
</view>
</view>
<view class="timebox" style="margin-bottom:0;">
<view class="real" @click="tapjumpreception('7')">

<view class="real" @click="tapjumpreception(checkParams('7'))">
<view class="realnum">{{Thisweekobj.activeCustomer|| 0}}</view>
<view class="realtext">有效接待</view>
</view>
<view class="real" @click="tapjumpreception('3')">
<view class="real" @click="tapjumpreception(checkParams('44'))">
<view class="realnum">{{Thisweekobj.tagCustomer || 0}}</view>
<view class="realtext">未标顾问</view>
</view>

<view class="real" @click="prohibitedtap(2)" v-if="methodsisshow">
<view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view>
<view class="realtext">违禁次数</view>
</view>
</view>
<view class="timebox" style="margin-bottom:0;">
<view class="real" @click="tapjumpreception(checkParams('333'))">
<view class="realnum u-flex" style="justify-content: center">{{Thisweekobj.fraction || 0}}<text
style="font-weight: 400;font-family: SimHei;font-size: 30rpx;">%</text>
</view>
<view class="realtext">平均执行率</view>
</view>

<view class="real" @click="tapjumpreception(checkParams('333'))">
<view class="realnum">{{Thisweekobj.avgDuration || 0}}<text
style="font-size: 30rpx;font-weight: 400;font-family: SimHei">min</text></view>
<view class="realtext">平均接待时长</view>
</view>
<view class="real" @click="prohibitedtap(2)" v-if="methodsisshow">
<view class="realnum" style="color: red;">{{Thisweekobj.prohibitedCustomer || 0}}</view>
<view class="realtext">违禁预警</view>

<view class="real" @click="tapjumpreception(checkParams('333'))">
<view class="realnum">{{Thisweekobj.wordFraction || 0}}%</view>
<view class="realtext">平均挖掘执行率</view>
</view>
<view class="real" v-else>
<view class="realnum"></view>
<view class="realtext"></view>

<view class="real" @click="toCustomerManagement()">
<view class="realnum">{{Thisweekobj.sumLevelFraction || 0}}%</view>
<view class="realtext">平均意向度</view>
</view>
</view>
</view>
@@ -403,7 +421,8 @@
prohibitedCustomer: '',
tagCustomer: '',
fraction: '',
receptionCount: ''
receptionCount: '',
sumLevelFraction: '',
},
Thisweekobj: {
sumCustomer: '',
@@ -536,6 +555,31 @@
this.findByHouseIdForRecharge()
},
methods: {
// 跳转客户详情
toCustomerManagement(str) {
console.log(str)
console.log(this.zhixingcenterindex)
if (str != 'dateType') {
// dateType == 2 //
if (this.zhixingcenterindex != 7) {
let index = this.zhixingcenterindex == 6 ? 3 : 2
uni.navigateTo({
url: `/pages/center/consumer/index?refresh=refresh&dateType=${index}`
})
} else {
uni.navigateTo({
url: `/pages/center/consumer/index?refresh=refresh&dateType=4&staTime=${this.statDateStart}&endTime=${this.statDateEnd}`
})
}
} else {
console.log('adasdasljdlks', str)
uni.navigateTo({
url: `/pages/center/consumer/index?refresh=refresh&dateType=0`
})
}
},
// 需求挖掘分析
toRequireAnalysis() {
uni.navigateTo({
@@ -691,6 +735,16 @@
return
} else {
this.realtimeobj = data.data.data
if (data.data.data.receivingCustomer > 0) {
uni.setTabBarBadge({
index: 0,
text: data.data.data.receivingCustomer.toString() || "0"
})
} else {
uni.hideTabBarRedDot({
inndex: 0,
})
}
}
},
fail: () => {
@@ -853,76 +907,141 @@
}
}
},
tapjumpreception(i) {
if (this.permissions.commonly2 == true) {
if (i == 1) {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0'
});
} else if (i == 11) {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=0'
});
} else if (i == 2) {
uni.switchTab({
url: '/pages/index/customer'
});
} else if (i == 3) {
if (this.zhixingcenterindex == 2) { // 近7天
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0'
});
} else if (this.zhixingcenterindex == 6) { //近30天
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0'
});
} else { // 自定义时间段
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' +
this.statDateStart + '&endtime=' + this.statDateEnd
});
// 跳转参数
checkParams(i) {
let str = ''
switch (i) {
case '1':
str = '&activeTotal=0';
break;
case 'auth':
str = '&activeTotal=0&validInvalid=0'
break;
case '3':
// 筛选时间类型后传的参数
if (this.zhixingcenterindex == 2) {
str = '&activeTotal=2'
} else if (this.zhixingcenterindex == 6) {
str = '&activeTotal=3'
} else {
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}`
}
} else if (i == 33) {
if (this.zhixingcenterindex == 2) { // 近7天
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=2'
});
} else if (this.zhixingcenterindex == 6) { //近30天
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=3'
});
} else { // 自定义时间段
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this
.statDateStart + '&endtime=' + this.statDateEnd
});
break;
case '333':
case '7':
if (this.zhixingcenterindex == 2) {
str = '&activeTotal=2&validInvalid=0'
} else if (this.zhixingcenterindex == 6) {
str = '&activeTotal=3&validInvalid=0'
} else {
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0`
}
} else if (i == 6) {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0'
});
} else if (i == 7) {
break;
case '6':
str = '&activeTotal=0&validInvalid=0'
break;
case '4':
str = '&activeTotal=0&markAdvisor=0&validInvalid=0'
break;
case '44':
if (this.zhixingcenterindex == 2) {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0'
});
str = '&activeTotal=2&validInvalid=0&markAdvisor=0'
} else if (this.zhixingcenterindex == 6) {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0'
});
str = '&activeTotal=3&validInvalid=0&markAdvisor=0'
} else {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' +
this.statDateStart + '&endtime=' + this.statDateEnd
});
str = `&activeTotal=4&staTime=${this.statDateStart}&endtime=${this.statDateEnd}&validInvalid=0&markAdvisor=0`
}
} else {
uni.navigateTo({
url: '/pages/center/records/index?refresh=refresh&activeTotal=0&markAdvisor=0&validInvalid=0'
});
}
break;
default:
str = '&activeTotal=0&markAdvisor=0'
break;
}
return str
},
// 跳转
tapjumpreception(params) {
// 校验是否有权限
if (this.permissions.commonly2) {
uni.navigateTo({
url: `/pages/center/records/index?refresh=refresh${params}`
});
}
},
// tapjumpreception(i) {
// if (this.permissions.commonly2 == true) {
// if (i == 1) {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0'
// });
// } else if (i == 11) {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0'
// });
// } else if (i == 2) {
// uni.switchTab({
// url: '/pages/index/customer'
// });
// } else if (i == 3) {
// if (this.zhixingcenterindex == 2) { // 近7天
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0'
// });
// } else if (this.zhixingcenterindex == 6) { //近30天
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0'
// });
// } else { // 自定义时间段
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' +
// this.statDateStart + '&endtime=' + this.statDateEnd
// });
// }
// } else if (i == 33) {
// if (this.zhixingcenterindex == 2) { // 近7天
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=2'
// });
// } else if (this.zhixingcenterindex == 6) { //近30天
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=3'
// });
// } else { // 自定义时间段
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=4&staTime=' + this
// .statDateStart + '&endtime=' + this.statDateEnd
// });
// }
// } else if (i == 6) {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0&validInvalid=0'
// });
// } else if (i == 7) {
// if (this.zhixingcenterindex == 2) {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=2&validInvalid=0'
// });
// } else if (this.zhixingcenterindex == 6) {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=3&validInvalid=0'
// });
// } else {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=4&validInvalid=0&staTime=' +
// this.statDateStart + '&endtime=' + this.statDateEnd
// });
// }
// } else {
// uni.navigateTo({
// url: '/pages/center/records/index?refresh=refresh&activeTotal=0&markAdvisor=0&validInvalid=0'
// });
// }
// }
// },
//集团对比
Groupcontrast() {
uni.navigateTo({


+ 1
- 0
pages/index/learning.vue View File

@@ -196,6 +196,7 @@
},

onShow() {
this.getTabBarBadge()
try {
this.$store.commit('stopAduio')
} catch (e) {


+ 1
- 0
pages/index/personal.vue View File

@@ -105,6 +105,7 @@
};
},
onShow() {
this.getTabBarBadge()
var userInfos = uni.getStorageSync('weapp_session_userInfo_data');
this.name = userInfos.name,
this.photo = userInfos.avatar,


+ 1
- 1
pages/login/index.vue View File

@@ -253,7 +253,7 @@
height: 48rpx;
line-height: 48rpx;
padding: 23rpx 23rpx 23rpx 78rpx;
font-size: 32rpx !important;
font-size: 48rpx !important;
font-family: PingFangSC-Regular, PingFang SC;
color: #000;
}


Loading…
Cancel
Save