diff --git a/pages/center/consumer/consumerDetail.vue b/pages/center/consumer/consumerDetail.vue index 1f81aac..e1980cb 100644 --- a/pages/center/consumer/consumerDetail.vue +++ b/pages/center/consumer/consumerDetail.vue @@ -482,6 +482,7 @@ showIntentionRate: false, // 客户意向率命中词弹窗 intentionRateList: [], // 客户意向率列表 + customerIds: '', // 给评分传值的 } }, computed: { @@ -492,9 +493,11 @@ }) == -1 ? false : true } }, + onLoad(options) { this.LOADING = true - this.customerId = options.id; + if (options.id) this.customerId = options.id; + console.log(options, 'ald;ksaldjals') }, onShow() { this.userInfo = uni.getStorageSync('weapp_session_userInfo_data'); @@ -553,7 +556,6 @@ } }) this.intentionRateList = arr1 - console.log(arr, 'asdsaas', arr1) }) }, @@ -564,8 +566,9 @@ // 确认选择销讲业务 templateConfirm(e) { + console.log(e, '莫名其妙被调用') this.showTemplate = false; - this.customerId = e[0].value + this.customerIds = e[0].value this.showBeText = e[0].label this.tabtimetap(2) }, @@ -578,7 +581,7 @@ }).then(res => { if (res) { this.templateList = res - this.customerId = res[0].cusId + this.customerIds = res[0].cusId this.showBeText = res[0].templateName } }) @@ -800,7 +803,7 @@ clickaudeopal(item) { if (item.selected == 0 && item.viewFlag != 1) { uni.navigateTo({ - url: '/pages/mine/ScoringPlaylist?customerId=' + this.customerId + "&id=" + item + url: '/pages/mine/ScoringPlaylist?customerId=' + (this.customerIds == '' ? this.customerId : this.customerIds) + "&id=" + item .marketingId + '&type=0' }) } @@ -818,7 +821,7 @@ // 获取评分 getRatelist() { this.$u.get("/customer/findzkMByCusId", { - cusId: this.customerId + cusId: this.customerIds == '' ? this.customerId : this.customerIds }).then(res => { if (res.length) { let level1 = [] diff --git a/pages/center/consumer/index.vue b/pages/center/consumer/index.vue index 1547ca0..0868309 100644 --- a/pages/center/consumer/index.vue +++ b/pages/center/consumer/index.vue @@ -73,8 +73,9 @@ }}min - 挖掘执行:{{ max100(item.wordFraction) }}% - 挖掘成功:{{ max100(item.wordFinishFraction) }}% + 挖掘执行/成功:{{ max100(item.wordFraction) }}%/{{ max100(item.wordFinishFraction) }}% + + 客户意向率:{{ `${item.levelFraction||'0'}%` }}