Commit 06c0e607 by 李伟康

commit 提交

1 parent d5d9fd9a
......@@ -138,7 +138,7 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
storageName = `source_${sceneType}_${shopMerchantId}`
if (params.brandId && params.subBrandId) storageName += `_${params.brandId}_${params.subBrandId}`
let insurance = materialInfoList.find(e => e.componentName == 'insurance'),
hasEquity = toolList.find(e => e.id == insurance.id)
hasEquity = toolList.find(e => e.id == insurance.id)
if (insurance && hasEquity) {
let configList
try {
......@@ -164,7 +164,9 @@ const getSoureData = async (shopMerchantId, sceneType, params = {}) => {
showAlt: false,
componentName: 'CaseCenter',
receptionpriproCusCaseList: i.receptionpriproCusCaseList,
hide: true
hide: true,
detailTitle: i.productName,
thumbnail: 'https://img02.glsx.com.cn/weapp/resource/app-tape/common/qsyw.webp'
}
})
materialInfoList = materialInfoList.concat(moduleOtherList)
......
......@@ -44,7 +44,7 @@ export default {
data () {
return {
tabIndex: 0,
tabList: ['本月转化率', '本月客单价'],
tabList: ['本月成交率', '本月客单价'],
chartData: {},
//您可以通过修改 config-ucharts.js 文件中下标为 ['bar'] 的节点来配置全局默认参数,如都是默认参数,此处可以不传 opts 。实际应用过程中 opts 只需传入与全局默认参数中不一致的【某一个属性】即可实现同类型的图表显示不同的样式,达到页面简洁的需求。
opts: {
......
......@@ -130,6 +130,9 @@ export default {
name: '',
components: { SelectComponent, PageTabs },
inject: ['getRecorder'],
props: {
show: Boolean
},
data () {
return {
tabList: Object.freeze([
......@@ -166,13 +169,25 @@ export default {
pageSize: 10,
isPrePage: false,
reviewFlag: 0,
orderFinishFlag: 0
orderFinishFlag: 0,
loaded: false
}
},
watch: {
show: {
immediate: true,
handler (newval) {
if (newval && !this.loaded) {
this.init();
this.getRecordNum()
this.getPreRecordNum()
this.loaded = true
}
}
}
},
mounted () {
this.init();
this.getRecordNum()
this.getPreRecordNum()
},
methods: {
resetData () {
......@@ -186,6 +201,8 @@ export default {
if (this.tabIndex == index) return
this.resetData()
this.tabIndex = index
this.reviewFlag = 0
this.orderFinishFlag = 0
if (index == 0) this.getReceptionList()
else this.getRecordFail()
},
......@@ -376,6 +393,7 @@ export default {
await this.getPreRecordFail()
},
searchReceptionList ({ item }, name) {
if(this[name] == item.value) return
this[name] = item.value
this.resetData()
this.getReceptionList()
......
......@@ -50,12 +50,14 @@
@showSuccess="$refs.successRef.open()"
ref="customerFile"
@editCustomer="editCustomer"
:show="tabIndex == 0"
/>
</view>
<view :class="['right-content',`${tabIndex != 1?'hide-record':'show-record'}`]">
<record-list
@openRecordPage="openRecordPage"
ref="recordListRef"
:show="tabIndex == 1"
/>
</view>
</view>
......
......@@ -65,8 +65,7 @@ export default {
},
async jump () {
let { item, sceneMarketLevelTwoItem } = this,
// params = `id=${item.id}&specialFlag=1`
params = `id=${item.id}&specialFlag=${sceneMarketLevelTwoItem.specialFlag ? 1 : 0}`
params = `id=${item.id}&specialFlag=${sceneMarketLevelTwoItem.specialFlag}`
// 类型:0-图片;1-视频;2-pdf;3-富文本; 4-Excel; 5-Word
let url = `/pages/common/caseDetail?${params}`
uni.$track.add({ eventCode: 'scene_market', businessId: item.id })
......
......@@ -120,7 +120,7 @@ export default {
}
.mask-box {
position: absolute;
height: calc(100% - #{toRpx(128)});
height: 100vh;
width: 100%;
background: #fff;
left: 0;
......
......@@ -23,8 +23,10 @@ export default {
3: '其他'
}[channelType],
title = options.title || ''
let { agentUrl, domainName } = data
this.AIUrl = `${agentUrl}?no_header=1&business_type=${bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}`
let { agentUrl, domainName } = data,
url = `${agentUrl}?no_header=1&business_type=${bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}`
if (options.id) url += `&enter_id=${options.id}`
this.AIUrl = url
this.setWebviewStyle()
} else uni.showToast({
title: '获取智能体失败',
......
......@@ -36,7 +36,6 @@ export default {
}
if (this.visitsId) params.visitsId = this.visitsId
uni.$api.commonApi.leaveRecord(params).then(res => {
console.log(res, 888)
})
}
}
......@@ -29,7 +29,7 @@
import { aiUrlMixin, report } from '@/mixin/index.js'
export default {
name: '',
mixins: [report , aiUrlMixin],
mixins: [report, aiUrlMixin],
data () {
return {
url: '',
......@@ -44,6 +44,7 @@ export default {
else this.url = options.url
if (options.title) this.title = options.title
if (options.specialFlag == 1) this.getAiagent(options)
else this.setWv()
},
mounted () {
},
......@@ -55,6 +56,34 @@ export default {
animationDuration: 100
})
},
setWv () {
const setWebviewStyleWithRetry = () => {
const currentWebview = this.$scope.$getAppWebview()
let [wv] = currentWebview.children(),
wvFlag = false
if (wv) {
wv.setStyle({
left: '0',
top: '9.37%',
height: '90.63%',
width: '100%'
})
wvFlag = true;
}
return wvFlag
}
const retrySetWebviewStyle = () => {
if (!setWebviewStyleWithRetry()) {
// 如果未成功,继续重试
setTimeout(retrySetWebviewStyle, 50);
} else {
// 成功设置样式,结束循环
console.log('Webview样式设置成功');
}
};
setTimeout(retrySetWebviewStyle, 100);
}
}
}
</script>
......
......@@ -123,6 +123,7 @@ export default {
}
},
tabClick (item, index) {
if(this.activeIndex == index) return
this.activeIndex = index
this.$emit('tabClick', item)
}
......
......@@ -414,7 +414,16 @@ export default {
setTimeout(retrySetWebviewStyle, 100);
},
tabClick (item) {
if (item.sumScore > item.score && this.wv) this.wv.evalJS(`sendMessage({type:'reset_chat',payload:{message:'${item.tagGroupName}'}})`)
if (item.sumScore > item.score && this.wv) {
uni.showLoading({
mask: true
})
this.wv.evalJS(`sendMessage({type:'reset_chat',payload:{message:'${item.tagGroupName}'}})`)
setTimeout(()=>{
uni.hideLoading()
},1e3)
}
}
}
}
......
......@@ -22,6 +22,7 @@ class Track {
uuid,
scene,
prePagePath: '/',
pagePath:data.pagePath|| '/',
eventTime: dayjs(Date.now()).format('YYYY-MM-DD HH:mm:ss'),
systemSource: 3,
eventType: data.eventType || 0
......@@ -29,7 +30,6 @@ class Track {
if (data.batchId) item.batchId = data.batchId
if (data.eventCode) item.eventCode = data.eventCode
if (data.businessParam) item.businessParam = JSON.stringify(data.businessParam)
if (data.pagePath) item.pagePath = data.pagePath
if (data.businessId) item.businessId = data.businessId
trackList.push(item)
uni.setStorageSync('TRACK_LIST', trackList)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!