diff --git a/manifest.json b/manifest.json
index d71c108..374cacc 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,5 +1,5 @@
{
- "name" : "云筑数智助手",
+ "name" : "AI销讲助手",
"appid" : "__UNI__7A1611D",
"description" : "AI销讲助手",
"versionName" : "1.1.0",
@@ -72,7 +72,7 @@
},
"quickapp" : {},
"mp-weixin" : {
- "appid" : "wx3c3f25187e6b6176",
+ "appid" : "wx83fec12ec03d9349",
"setting" : {
"urlCheck" : false,
"es6" : true,
diff --git a/pages/center/dataBoard/dataBoard.vue b/pages/center/dataBoard/dataBoard.vue
index 138efaf..c17c0cb 100644
--- a/pages/center/dataBoard/dataBoard.vue
+++ b/pages/center/dataBoard/dataBoard.vue
@@ -52,8 +52,8 @@
- {{item.data || 0}}
- {{ item.title }}{{ item.unit }}
+ {{item.data || 0}}{{ item.unit }}
+ {{ item.title }}
diff --git a/pages/index/consumer/index.vue b/pages/index/consumer/index.vue
index d3d55f1..0c6eed4 100644
--- a/pages/index/consumer/index.vue
+++ b/pages/index/consumer/index.vue
@@ -36,6 +36,10 @@
画像标签
+
+ {{ trendShowText }}
+
+
@@ -65,7 +69,7 @@
{{item.name}}
-
+
{{ item.fraction || 0 }}%
@@ -359,6 +363,38 @@
+
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{ subitem.name }}
+
+
+
+
+
+
+
+
+
@@ -589,15 +625,15 @@
isRefresh: false,
showFilterOption: false, // 筛选
tagSign: false, // 画像标签active
+
+ trendAnalysisAllLevelList: [], // 销讲执行列表
+ trendShow: false, // 销讲话术
+ trendShowText: '销讲话术', // 销讲话术
+ trendTagSign: false, // 选中内容
+ resultList: [], // result最终结果数组
}
},
- // computed: {
- // showFilterOption() {
- // return this.sortFilter !== '排序' || this.arriveFilter !== '接待时间' || this.agentIdtext !== '接待顾问'
- // }
- // },
-
onLoad(options) {
this.LOADING = true
this.userInfo = uni.getStorageSync("weapp_session_userInfo_data")
@@ -636,6 +672,7 @@
this.getCustomPhase();
this.getFromSource();
this.getMarketingBusiness(); // 销讲业务
+ this.trendAnalysisAllLevel()
this.isRefresh = false;
this.isnorefresh = 'refresh';
uni.setStorageSync('updatebuildingID', '');
@@ -657,6 +694,26 @@
}
},
methods: {
+ // 获取一级销讲词
+ trendAnalysisAllLevel() {
+ this.$u.get('customer/trendAnalysisAllLevel', {
+ showStatus: 0,
+ houseId: this.buildingID,
+ }).then(res => {
+ if (res) {
+ res.forEach(item => {
+ item.isShow = true
+ if (item.children) {
+ item.children.forEach(i => {
+ i.isShow = false
+ })
+ }
+ })
+
+ this.trendAnalysisAllLevelList = res
+ }
+ })
+ },
// 跳转编辑
goedit(data) {
@@ -808,6 +865,26 @@
choice(item) {
item.isShow = !item.isShow;
},
+
+ // 销讲
+ choices(item) {
+ item.isShow = !item.isShow;
+
+ let arr = []
+ this.trendAnalysisAllLevelList.filter(item => {
+ if (item.children) {
+ let array = item.children.filter(i => i.isShow)
+ if (array) {
+ arr = [...arr, ...array]
+ }
+ }
+ })
+ if (arr.length > 0) {
+ this.trendTagSign = true
+ } else {
+ this.trendTagSign = false
+ }
+ },
// 客户详情
gotoDetail(id) {
if (this.permissions.commonly1 == true) {
@@ -862,7 +939,11 @@
this.sourceList.forEach(i => {
if (i.isShow) this.screen.sourceIds.push(i.value)
})
- var parames = {
+ // 销讲话术
+ // this.trendAnalysisAllLevelList.forEach(i => {
+ // if (i.isShow) this.screen.sourceIds.push(i.value)
+ // })
+ const parames = {
pageNum: this.nextPage,
pageSize: 10,
query: {
@@ -880,6 +961,7 @@
endTime: this.screen.endTime,
agentId: this.screen.agentId, // 顾问
orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序
+ result: this.resultList.join(','), // 销讲话术二级的词
},
};
let ars = []
@@ -1071,6 +1153,20 @@
this.recordList = [];
this.isRefresh = false;
},
+ // 重置销讲话术
+ resetHuaShu() {
+ if (this.trendAnalysisAllLevelList.length) {
+ this.trendAnalysisAllLevelList.forEach(item => {
+ item.isShow = true;
+ if (item.children.length) {
+ item.children.forEach(subitem => {
+ subitem.isShow = false;
+ })
+ }
+ })
+ }
+ },
+
//重置画像标签选择
resetHuaXiang() {
if (this.huaxiangList.length) {
@@ -1111,17 +1207,47 @@
})
return a
},
-
- //筛选确认
- screensure() {
- this.showFilterOption = this.chooseMores()
- this.tagSign = this.chooseMore()
+ // 重置分页参数
+ resetPageParams() {
this.nextPage = 1;
this.recordList = [];
this.keywordsIds = []
+ this.resultList = [];
this.screenShow = false;
this.huaxiangShow = false;
+ this.trendShow = false
this.isRefresh = false;
+ },
+
+ //筛选确认
+ screensures() {
+ let arr = []
+ this.resetPageParams()
+ this.trendAnalysisAllLevelList.filter(item => {
+ if (item.children) {
+ let array = item.children.filter(i => i.isShow)
+ if (array) {
+ arr = [...arr, ...array]
+ }
+ }
+ })
+ console.log(arr)
+ if (arr.length > 0) {
+ this.trendTagSign = true
+ this.resultList = arr.map(item => {
+ return item.name
+ })
+ console.log(this.resultList)
+ } else {
+ this.trendTagSign = false
+ }
+ this.getMyCustom();
+ },
+ //筛选确认
+ screensure() {
+ this.showFilterOption = this.chooseMores()
+ this.tagSign = this.chooseMore()
+ this.resetPageParams()
// 画像标签
this.huaxiangList.forEach(item => {
if (item.children.length) {
@@ -1132,6 +1258,8 @@
})
this.getMyCustom();
},
+
+
goSearch() {
uni.navigateTo({
url: '/pages/center/consumer/consumerSearch'
@@ -1401,7 +1529,7 @@
color: #2671E2;
font-size: 30rpx;
align-items: flex-end;
-
+
.clientStageName {
font-size: 38rpx;
font-family: PingFangSC-Regular, PingFang SC;
@@ -1414,7 +1542,7 @@
// border: 1rpx solid #FF981E;
box-sizing: border-box;
}
-
+
.right-img {
margin: 5rpx 0 0 10rpx;
width: 14rpx;
@@ -1443,7 +1571,7 @@
color: #333333;
word-break: break-all;
}
-
+
.content-sec-lab1-min {
flex-shrink: 0;
margin-bottom: 20rpx;