Browse Source

提交修改

newStyle1
风继续吹 1 year ago
parent
commit
18f426850c
3 changed files with 148 additions and 20 deletions
  1. +2
    -2
      manifest.json
  2. +2
    -2
      pages/center/dataBoard/dataBoard.vue
  3. +144
    -16
      pages/index/consumer/index.vue

+ 2
- 2
manifest.json View File

@@ -1,5 +1,5 @@
{ {
"name" : "云筑数智助手",
"name" : "AI销讲助手",
"appid" : "__UNI__7A1611D", "appid" : "__UNI__7A1611D",
"description" : "AI销讲助手", "description" : "AI销讲助手",
"versionName" : "1.1.0", "versionName" : "1.1.0",
@@ -72,7 +72,7 @@
}, },
"quickapp" : {}, "quickapp" : {},
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx3c3f25187e6b6176",
"appid" : "wx83fec12ec03d9349",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"es6" : true, "es6" : true,


+ 2
- 2
pages/center/dataBoard/dataBoard.vue View File

@@ -52,8 +52,8 @@
<view class="grid4"> <view class="grid4">
<block v-for="(item,index) in ReceptionBriefingArr"> <block v-for="(item,index) in ReceptionBriefingArr">
<view :key="index" class="real" v-if="item.show"> <view :key="index" class="real" v-if="item.show">
<view class="realnum">{{item.data || 0}}</view>
<view class="realtext">{{ item.title }}{{ item.unit }}</view>
<view class="realnum">{{item.data || 0}}{{ item.unit }}</view>
<view class="realtext">{{ item.title }}</view>
</view> </view>
</block> </block>
</view> </view>


+ 144
- 16
pages/index/consumer/index.vue View File

@@ -36,6 +36,10 @@
<view class="tabbox" :class="{activeColor: tagSign}" @click="huaxiangShow = true"> <view class="tabbox" :class="{activeColor: tagSign}" @click="huaxiangShow = true">
画像标签<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon> 画像标签<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view> </view>
<view class="tabbox" :class="{activeColor: trendTagSign}" @click="trendShow=true">
{{ trendShowText }}
<u-icon name="arrow-down" size="24" style="padding-left: 12rpx;"></u-icon>
</view>
</view> </view>


<!-- 筛选后的数量 --> <!-- 筛选后的数量 -->
@@ -65,7 +69,7 @@
<view class="test">{{item.name}}</view> <view class="test">{{item.name}}</view>
</view> </view>
<view class="right"> <view class="right">
<view class="clientStageName"> <view class="clientStageName">
{{ item.fraction || 0 }}% {{ item.fraction || 0 }}%
</view> </view>
@@ -359,6 +363,38 @@
</view> </view>
</view> </view>
</u-popup> </u-popup>

<!-- 销讲话术 -->
<u-popup v-model="trendShow" mode="top" height="850">
<view class="screen">
<scroll-view scroll-y="true" style="height: 700rpx;">
<view class="screen-record" v-if="item.children.length"
v-for="(item,index) in trendAnalysisAllLevelList" :key="index">
<view class="screen-record-text" @click="choice(item)">
{{item.name}}
<image v-if="item.isShow" class="arrow"
src="https://static.quhouse.com/6cf38a2b82694392a7ab6eea24ce76b1.png" mode="" />
<image v-else class="arrow"
src="https://static.quhouse.com/17d69984ec7c4830b43f712016f06807.png" mode="" />
</view>
<view class="screen-record-tab" v-if="item.isShow">
<block v-for="(subitem, ind) in item.children" :key="ind">
<view class="screen-record-item" :class="[
subitem.isShow ? 'screen-record-chose' : 'screen-record-nochose',
]" @click="choices(subitem)">
{{ subitem.name }}
</view>
</block>
</view>
</view>
</scroll-view>
<view class="screen-foot">
<view class="screen-foot-reset" @click="resetHuaShu"> 重置 </view>
<view class="screen-foot-sure" @click="screensures"> 确定 </view>
</view>
</view>
</u-popup>

<!-- 加载组件 --> <!-- 加载组件 -->
<u-loadings v-model="LOADING"></u-loadings> <u-loadings v-model="LOADING"></u-loadings>
</view> </view>
@@ -589,15 +625,15 @@
isRefresh: false, isRefresh: false,
showFilterOption: false, // 筛选 showFilterOption: false, // 筛选
tagSign: false, // 画像标签active tagSign: false, // 画像标签active

trendAnalysisAllLevelList: [], // 销讲执行列表
trendShow: false, // 销讲话术
trendShowText: '销讲话术', // 销讲话术
trendTagSign: false, // 选中内容
resultList: [], // result最终结果数组
} }
}, },


// computed: {
// showFilterOption() {
// return this.sortFilter !== '排序' || this.arriveFilter !== '接待时间' || this.agentIdtext !== '接待顾问'
// }
// },

onLoad(options) { onLoad(options) {
this.LOADING = true this.LOADING = true
this.userInfo = uni.getStorageSync("weapp_session_userInfo_data") this.userInfo = uni.getStorageSync("weapp_session_userInfo_data")
@@ -636,6 +672,7 @@
this.getCustomPhase(); this.getCustomPhase();
this.getFromSource(); this.getFromSource();
this.getMarketingBusiness(); // 销讲业务 this.getMarketingBusiness(); // 销讲业务
this.trendAnalysisAllLevel()
this.isRefresh = false; this.isRefresh = false;
this.isnorefresh = 'refresh'; this.isnorefresh = 'refresh';
uni.setStorageSync('updatebuildingID', ''); uni.setStorageSync('updatebuildingID', '');
@@ -657,6 +694,26 @@
} }
}, },
methods: { 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) { goedit(data) {
@@ -808,6 +865,26 @@
choice(item) { choice(item) {
item.isShow = !item.isShow; 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) { gotoDetail(id) {
if (this.permissions.commonly1 == true) { if (this.permissions.commonly1 == true) {
@@ -862,7 +939,11 @@
this.sourceList.forEach(i => { this.sourceList.forEach(i => {
if (i.isShow) this.screen.sourceIds.push(i.value) 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, pageNum: this.nextPage,
pageSize: 10, pageSize: 10,
query: { query: {
@@ -880,6 +961,7 @@
endTime: this.screen.endTime, endTime: this.screen.endTime,
agentId: this.screen.agentId, // 顾问 agentId: this.screen.agentId, // 顾问
orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序 orderBy: this.screen.orderBy == '' ? '' : this.screen.orderBy, // 排序
result: this.resultList.join(','), // 销讲话术二级的词
}, },
}; };
let ars = [] let ars = []
@@ -1071,6 +1153,20 @@
this.recordList = []; this.recordList = [];
this.isRefresh = false; 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() { resetHuaXiang() {
if (this.huaxiangList.length) { if (this.huaxiangList.length) {
@@ -1111,17 +1207,47 @@
}) })
return a return a
}, },

//筛选确认
screensure() {
this.showFilterOption = this.chooseMores()
this.tagSign = this.chooseMore()
// 重置分页参数
resetPageParams() {
this.nextPage = 1; this.nextPage = 1;
this.recordList = []; this.recordList = [];
this.keywordsIds = [] this.keywordsIds = []
this.resultList = [];
this.screenShow = false; this.screenShow = false;
this.huaxiangShow = false; this.huaxiangShow = false;
this.trendShow = false
this.isRefresh = 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 => { this.huaxiangList.forEach(item => {
if (item.children.length) { if (item.children.length) {
@@ -1132,6 +1258,8 @@
}) })
this.getMyCustom(); this.getMyCustom();
}, },


goSearch() { goSearch() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/center/consumer/consumerSearch' url: '/pages/center/consumer/consumerSearch'
@@ -1401,7 +1529,7 @@
color: #2671E2; color: #2671E2;
font-size: 30rpx; font-size: 30rpx;
align-items: flex-end; align-items: flex-end;
.clientStageName { .clientStageName {
font-size: 38rpx; font-size: 38rpx;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
@@ -1414,7 +1542,7 @@
// border: 1rpx solid #FF981E; // border: 1rpx solid #FF981E;
box-sizing: border-box; box-sizing: border-box;
} }
.right-img { .right-img {
margin: 5rpx 0 0 10rpx; margin: 5rpx 0 0 10rpx;
width: 14rpx; width: 14rpx;
@@ -1443,7 +1571,7 @@
color: #333333; color: #333333;
word-break: break-all; word-break: break-all;
} }
.content-sec-lab1-min { .content-sec-lab1-min {
flex-shrink: 0; flex-shrink: 0;
margin-bottom: 20rpx; margin-bottom: 20rpx;


Loading…
Cancel
Save