Commit 8a154c48 by 李伟康

场景集市&接待中心

1 parent d3bc6ce9
...@@ -34,7 +34,16 @@ module.exports = { ...@@ -34,7 +34,16 @@ module.exports = {
projectName: 'boutique', projectName: 'boutique',
...data ...data
}) })
} },
/**业绩看板 */
getMerchantPerformance(data){
return http.post({
method: 'dj.api.car.boutique.inspection.findMerchantPerformance',
projectName: 'boutique',
...data
})
},
} }
...@@ -63,7 +63,8 @@ ...@@ -63,7 +63,8 @@
</view> </view>
<view class="input-box num-second" v-if="form.goodsTypeList.length"> <view class="input-box num-second" v-if="form.goodsTypeList.length">
<template v-for="(item, index) in form.goodsTypeList"> <template v-for="(item, index) in form.goodsTypeList">
<view class="input-item" :key="index"> <block :key="index">
<view class="input-item" >
<view :class="{ 'label-mark': true, 'label-m': !item.showName }">{{ item.showName }}</view> <view :class="{ 'label-mark': true, 'label-m': !item.showName }">{{ item.showName }}</view>
<view class="input-label">订单数</view> <view class="input-label">订单数</view>
<input type="number" class="input" maxlength="3" @input="item.subOrderCount = item.subOrderCount.replace(/\D/g, '')" placeholder="请输入" v-model="item.subOrderCount" /> <input type="number" class="input" maxlength="3" @input="item.subOrderCount = item.subOrderCount.replace(/\D/g, '')" placeholder="请输入" v-model="item.subOrderCount" />
...@@ -72,6 +73,7 @@ ...@@ -72,6 +73,7 @@
<view class="input-label">产值</view> <view class="input-label">产值</view>
<input type="number" class="input" maxlength="7" @input="item.totalPrice = item.totalPrice.replace(/\D/g, '')" placeholder="请输入" v-model="item.totalPrice" /> <input type="number" class="input" maxlength="7" @input="item.totalPrice = item.totalPrice.replace(/\D/g, '')" placeholder="请输入" v-model="item.totalPrice" />
</view> </view>
</block>
</template> </template>
</view> </view>
</view> </view>
...@@ -117,7 +119,7 @@ ...@@ -117,7 +119,7 @@
</view> </view>
<view class="ratio-panel"> <view class="ratio-panel">
<view class="ratio-item flex-between" v-for="(output, i) in salaryDetail.goodsTypeList"> <view class="ratio-item flex-between" v-for="(output, i) in salaryDetail.goodsTypeList" :key="i">
<view class="ratio-label">{{ output.showName }}提成比例</view> <view class="ratio-label">{{ output.showName }}提成比例</view>
<view class="ratio-num">{{ output.outputCommissionRatio }}%</view> <view class="ratio-num">{{ output.outputCommissionRatio }}%</view>
</view> </view>
...@@ -147,7 +149,7 @@ ...@@ -147,7 +149,7 @@
</view> </view>
<view class="value-detail"> <view class="value-detail">
<template v-for="(output, i) in outputDetail"> <template v-for="(output, i) in outputDetail">
<view class="detail-item"> <view class="detail-item" :key="i">
<view class="detail-label">{{ output.label }}</view> <view class="detail-label">{{ output.label }}</view>
<view class="detail-num">{{ getOutput(output, item) }}{{ output.unit }}</view> <view class="detail-num">{{ getOutput(output, item) }}{{ output.unit }}</view>
</view> </view>
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<view class="sprite-icon icon-customer-flow"></view> <view class="sprite-icon icon-customer-flow"></view>
<view class="deliveries flex"> <view class="deliveries flex">
累计交付数 累计交付数
<view class="num">{{formattedNumber('deliveries')}}</view> <view class="num">{{formattedNumber('cumulativeDeliveryCount')}}</view>
</view> </view>
<view class="touchpoints flex"> <view class="touchpoints flex">
实际触客数 实际触客数
<view class="num">{{formattedNumber('touchpoints')}}</view> <view class="num">{{formattedNumber('actualContactCount')}}</view>
</view> </view>
<view class="touchpoint-rate"> <view class="touchpoint-rate">
实际触客率 实际触客率
<view :class="['num',{'rate-color':dataShow && pageData.touchpointRate}]">{{formattedNumber('touchpointRate', '%')}}</view> <view :class="['num',{'rate-color':dataShow && pageData.contactRate}]">{{formattedNumber('contactRate', '%')}}</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
.touchpoints, .touchpoints,
.touchpoint-rate { .touchpoint-rate {
position: absolute; position: absolute;
font-size: 20rpx; font-size: toRpx(20);
box-sizing: border-box; box-sizing: border-box;
flex-direction: column; flex-direction: column;
.num { .num {
...@@ -78,27 +78,27 @@ export default { ...@@ -78,27 +78,27 @@ export default {
.deliveries, .deliveries,
.touchpoints { .touchpoints {
color: #ffffff; color: #ffffff;
width: 400rpx; width: toRpx(400);
height: 128rpx; height: toRpx(128);
left: 32rpx; left: toRpx(32);
.num { .num {
font-size: 24rpx; font-size: toRpx(24);
font-weight: 500; font-weight: 500;
} }
} }
.deliveries { .deliveries {
top: 108rpx; top: toRpx(108);
padding-top: 54rpx; padding-top: toRpx(54);
} }
.touchpoints { .touchpoints {
top: 236rpx; top: toRpx(236);
padding-top: 37rpx; padding-top: toRpx(37);
} }
.touchpoint-rate { .touchpoint-rate {
top: 208rpx; top: toRpx(208);
left: 424rpx; left: toRpx(424);
.num { .num {
font-size: 28rpx; font-size: toRpx(28);
font-weight: 700; font-weight: 700;
} }
.rate-color { .rate-color {
......
...@@ -23,6 +23,10 @@ export default { ...@@ -23,6 +23,10 @@ export default {
PageTabs PageTabs
}, },
props: { props: {
pageData: {
type: Object,
default: () => { }
},
dataShow: { dataShow: {
type: Boolean, type: Boolean,
default: true default: true
...@@ -79,27 +83,36 @@ export default { ...@@ -79,27 +83,36 @@ export default {
}, },
methods: { methods: {
getServerData () { getServerData () {
//模拟从服务器获取数据时的延时 let { dataShow, tabIndex, pageData } = this,
setTimeout(() => { {
let { dataShow, tabIndex } = this, excellentStoreAvgDealRate,
series = { thisStoreDealRate,
hideData: !dataShow, personalDealRate,
textSize: 14, excellentStoreAvgDeal,
textColor: '#333', thisStoreKdj,
data: [11370, 12370, 10001], personalKdj
} = pageData,
} data = tabIndex == 0 ? [
if (tabIndex == 0) series.afterUnit = '%' excellentStoreAvgDealRate || 0,
else series.beforeUnit = '¥' thisStoreDealRate || 0,
//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接 personalDealRate || 0
let res = { ] : [
categories: ['优秀门店均值', '本门店', '个人'], excellentStoreAvgDeal || 0,
series: [series], thisStoreKdj || 0,
personalKdj || 0
],
series = {
hideData: !dataShow,
textSize: 14,
textColor: '#333',
data
} }
if (tabIndex == 0) series.afterUnit = '%'
this.chartData = JSON.parse(JSON.stringify(res)); else series.beforeUnit = '¥'
this.chartData = {
}, 100); categories: ['优秀门店均值', '本门店', '个人'],
series: [series],
}
}, },
changeTab (index) { changeTab (index) {
this.tabIndex = index this.tabIndex = index
...@@ -115,11 +128,11 @@ export default { ...@@ -115,11 +128,11 @@ export default {
box-sizing: border-box; box-sizing: border-box;
padding: toRpx(24); padding: toRpx(24);
.tabs { .tabs {
width: 544rpx; width: toRpx(544);
height: 64rpx; height: toRpx(64);
} }
.canvas { .canvas {
height: 260rpx; height: toRpx(260);
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
<view class="output-value-title">本月产值</view> <view class="output-value-title">本月产值</view>
<view class="output-value"> <view class="output-value">
<view class="value"> <view class="value">
{{formattedNumber('sumOutput')}}<view class="unit">万</view> {{formattedNumber('actualProduction')}}<view class="unit">万</view>
</view> </view>
<view class="sub-value flex"> <view class="sub-value flex">
个人产值<view class="num">{{formattedNumber('output')}}万</view> 个人产值<view class="num">{{formattedNumber('personalProduction')}}万</view>
</view> </view>
</view> </view>
<view class="output-canvas"> <view class="output-canvas">
...@@ -17,15 +17,16 @@ ...@@ -17,15 +17,16 @@
/> />
</view> </view>
<view class="output-view flex"> <view class="output-view flex">
<view class="item flex">目标<view class="num">{{formattedNumber('target')}}万</view> <view class="item flex">目标<view class="num">{{formattedNumber('targetProduction')}}万</view>
</view> </view>
<view class="item flex">达成比例<view class="num">{{formattedNumber('proportion','%')}}</view> <view class="item flex">达成比例<view class="num">{{formattedNumber('achievementRatio','%')}}</view>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
import NP from 'number-precision'
export default { export default {
name: '', name: '',
props: { props: {
...@@ -42,6 +43,12 @@ export default { ...@@ -42,6 +43,12 @@ export default {
dataShow: { dataShow: {
immediate: true, immediate: true,
handler (newval) { handler (newval) {
if (Object.keys(this.chartData).length) this.getServerData()
}
},
pageData: {
immediate: true,
handler (newval) {
this.getServerData() this.getServerData()
} }
} }
...@@ -57,7 +64,6 @@ export default { ...@@ -57,7 +64,6 @@ export default {
color: "#333" color: "#333"
}, },
subtitle: { subtitle: {
name: "52%",
fontSize: 14, fontSize: 14,
color: "#4673FF" color: "#4673FF"
}, },
...@@ -80,20 +86,16 @@ export default { ...@@ -80,20 +86,16 @@ export default {
}, },
methods: { methods: {
getServerData () { getServerData () {
//模拟从服务器获取数据时的延时 let { dataShow } = this
setTimeout(() => { this.opts.subtitle.name = `${NP.times(this.pageData.productionContribution || 0, 100)}%`
let { dataShow } = this this.chartData = {
//模拟服务器返回数据,如果数据格式和标准格式不同,需自行按下面的格式拼接 series: [
let res = { {
series: [ hideData: !dataShow,
{ data: this.pageData.productionContribution || 0
hideData: !dataShow, }
data: 0.52 ]
} }
]
};
this.chartData = JSON.parse(JSON.stringify(res));
}, 100);
}, },
formattedNumber (key, unit) { formattedNumber (key, unit) {
let { dataShow, pageData } = this, let { dataShow, pageData } = this,
...@@ -116,61 +118,61 @@ export default { ...@@ -116,61 +118,61 @@ export default {
padding: toRpx(24) toRpx(32) 0; padding: toRpx(24) toRpx(32) 0;
} }
.output-value { .output-value {
padding: 54rpx 0 0 52rpx; padding: toRpx(54) 0 0 toRpx(52);
.value { .value {
display: flex; display: flex;
align-items: baseline; align-items: baseline;
color: #4673ff; color: #4673ff;
font-size: 40rpx; font-size: toRpx(40);
line-height: 48rpx; line-height: toRpx(48);
font-weight: 700; font-weight: 700;
margin-bottom: 14rpx; margin-bottom: toRpx(14);
.unit { .unit {
color: #333333; color: #333333;
font-size: 26rpx; font-size: toRpx(26);
font-weight: 400; font-weight: 400;
margin-left: 4rpx; margin-left: toRpx(4);
line-height: 36rpx; line-height: toRpx(36);
} }
} }
.sub-value { .sub-value {
color: #333333; color: #333333;
font-size: 24rpx; font-size: toRpx(24);
.num { .num {
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 700; font-weight: 700;
margin-left: 8rpx; margin-left: toRpx(8);
} }
} }
} }
.output-canvas { .output-canvas {
position: absolute; position: absolute;
right: 40rpx; right: toRpx(40);
top: 60rpx; top: toRpx(60);
width: 200rpx; width: toRpx(200);
height: 200rpx; height: toRpx(200);
} }
.output-view { .output-view {
position: absolute; position: absolute;
left: 50%; left: 50%;
bottom: 32rpx; bottom: toRpx(32);
transform: translateX(-50%); transform: translateX(-50%);
width: 528rpx; width: toRpx(528);
height: 58rpx; height: toRpx(58);
border-radius: 450rpx; border-radius: toRpx(450);
background: #4673ff0d; background: #4673ff0d;
color: #333333; color: #333333;
font-size: 24rpx; font-size: toRpx(24);
&::after { &::after {
position: absolute; position: absolute;
left: 50%; left: 50%;
top: 50%; top: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
content: ''; content: '';
width: 2rpx; width: toRpx(2);
height: 28rpx; height: toRpx(28);
background: #cfd4e3; background: #cfd4e3;
} }
.item { .item {
...@@ -178,9 +180,9 @@ export default { ...@@ -178,9 +180,9 @@ export default {
width: 50%; width: 50%;
flex-shrink: 0; flex-shrink: 0;
.num { .num {
margin-left: 8rpx; margin-left: toRpx(8);
color: #4673ff; color: #4673ff;
font-size: 28rpx; font-size: toRpx(28);
font-weight: 700; font-weight: 700;
} }
} }
......
...@@ -27,6 +27,18 @@ ...@@ -27,6 +27,18 @@
scroll-y scroll-y
@scrolltolower="pageonReachBottom" @scrolltolower="pageonReachBottom"
> >
<view
class="record-tips flex"
v-if="isPrePage && list.length && list[0] && list[0].length"
>
<uni-icons
type="info"
:size="16"
color="#FF9D0A"
class="icon"
></uni-icons>
以下非正常结束的接待记录,需要进行信息确认后才能提交到系统。
</view>
<view class="list"> <view class="list">
<template v-if="flag"> <template v-if="flag">
<template v-if="list.length && list[0] && list[0].length"> <template v-if="list.length && list[0] && list[0].length">
...@@ -38,16 +50,33 @@ ...@@ -38,16 +50,33 @@
:key="item.id" :key="item.id"
@click="jumpDetail(item)" @click="jumpDetail(item)"
> >
<template v-if="tabIndex == 0"> <view class="top-right-box flex">
<view :class="['status flex', { deal: item.orderFinishFlag }]"> <template v-if="tabIndex == 0">
{{item.orderFinishFlag? '成交': '战败'}} <view :class="['status flex',`${item.reviewFlag == 0?'deal':'disabled'}`]">
</view> {{item.reviewFlag == 0 ?'已复盘':'未复盘'}}
</template> </view>
<template v-else> <view :class="['status flex', { 'deal': item.orderFinishFlag }]">
<view :class="['status flex disabled']"> {{item.orderFinishFlag? '成交': '战败'}}
{{isPrePage? '待提交': '待上传'}} </view>
</view> </template>
</template> <template v-else>
<view :class="[
'status flex',
{'disabled':item.receptionStatus !== 1 && item.receptionStatus !== 0 },
{ 'deal': item.receptionStatus == 1 }
]">
<template v-if="item.receptionStatus === 1 || item.receptionStatus === 0">
{{ {
1: '成交',
0: '战败'
}[item.receptionStatus]}}
</template>
<template v-else>
未知
</template>
</view>
</template>
</view>
<view class="name"> <view class="name">
{{ item.customerName ? item.customerName : '未填写姓名' }} {{ item.customerName ? item.customerName : '未填写姓名' }}
</view> </view>
...@@ -59,7 +88,7 @@ ...@@ -59,7 +88,7 @@
:key="ind" :key="ind"
> >
<view class="label">{{ k.label }}</view> <view class="label">{{ k.label }}</view>
<view class="value">{{ formatValue(item[k.key], k.key) || '——' }}</view> <view class="value">{{ formatValue(item[k.key], k.key) || '— —' }}</view>
</view> </view>
</template> </template>
</view> </view>
...@@ -315,6 +344,7 @@ export default { ...@@ -315,6 +344,7 @@ export default {
else this.getPreRecordFail() else this.getPreRecordFail()
}, },
async submitRecord (val) { async submitRecord (val) {
this.flag = false
delete val.duration delete val.duration
delete val.startTime delete val.startTime
const { maxUploadNum = 10 } = uni.$storage.get('mock_data') const { maxUploadNum = 10 } = uni.$storage.get('mock_data')
...@@ -375,6 +405,19 @@ export default { ...@@ -375,6 +405,19 @@ export default {
height: calc(100% - #{toRpx(164)}); height: calc(100% - #{toRpx(164)});
position: relative; position: relative;
z-index: 4; z-index: 4;
.record-tips {
height: toRpx(76);
background: #f58e341a;
border-radius: toRpx(16);
font-size: toRpx(28);
color: #f58e34;
width: calc(100% - #{toRpx(88)});
margin: 0 auto toRpx(40);
justify-content: center;
.icon {
margin-right: toRpx(8);
}
}
} }
.list { .list {
display: flex; display: flex;
...@@ -389,27 +432,32 @@ export default { ...@@ -389,27 +432,32 @@ export default {
position: relative; position: relative;
box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a; box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a;
border-radius: toRpx(16); border-radius: toRpx(16);
.status { .top-right-box {
position: absolute; position: absolute;
top: toRpx(24); top: toRpx(24);
right: toRpx(32); right: toRpx(32);
width: toRpx(88); gap: 0 toRpx(16);
height: toRpx(44); .status {
background: #fdece9; width: toRpx(88);
color: #f24724; height: toRpx(44);
border-radius: toRpx(4); background: #fdece9;
font-weight: 500; color: #f24724;
font-size: toRpx(24); border-radius: toRpx(4);
justify-content: center; font-weight: 500;
&.disabled { font-size: toRpx(24);
justify-content: center;
}
.disabled {
background: #f2f2f2; background: #f2f2f2;
color: #999999; color: #999999;
} }
.deal {
background: #eaf9f1;
color: #35c376;
}
} }
.deal {
background: #eaf9f1;
color: #35c376;
}
.name { .name {
font-weight: 500; font-weight: 500;
font-size: toRpx(32); font-size: toRpx(32);
......
...@@ -28,7 +28,10 @@ ...@@ -28,7 +28,10 @@
/> />
</view> </view>
<view class="linebar-box box"> <view class="linebar-box box">
<line-bar :dataShow="dataShow" /> <line-bar
:dataShow="dataShow"
:pageData="pageData"
/>
</view> </view>
<view class="box"> <view class="box">
<output-value <output-value
...@@ -124,24 +127,37 @@ export default { ...@@ -124,24 +127,37 @@ export default {
showInfo: false, showInfo: false,
customerId: '', customerId: '',
pageData: { pageData: {
deliveries: 1000000, //门店客流
touchpoints: 100000, cumulativeDeliveryCount: 0, //累计交付数
touchpointRate: 1000.6, actualContactCount: 0, // 实际触客数
sumOutput: 188.88, contactRate: 0, // 触客率(实际触客数 / 累计交付数)
output: 88.88,
target: 2008, excellentStoreAvgDealRate: 0, // 优秀门店均值成交率
proportion: 9 thisStoreDealRate: 0, // 本门店成交率
personalDealRate: 0, // 个人成交率
excellentStoreAvgDeal: 0, // 优秀门店均值客单价
thisStoreKdj: 0, // 本门店客单价
personalKdj: 0, // 个人客单价
//本月产值
actualProduction: 0, // 实际完成产值(万元)
personalProduction: 0, // 个人产值(累计成交金额)
targetProduction: 0, // 目标产值(万元)
achievementRatio: 0, // 达成比例 = 实际产值 ÷ 目标产值
productionContribution: 0 // 产值贡献 = 个人产值 ÷ 实际完成产值
} }
} }
}, },
mounted () { mounted () {
this.setTimeProgress() this.setTimeProgress()
this.getMerchantPerformance()
}, },
methods: { methods: {
setTimeProgress () { setTimeProgress () {
let nowNum = dayjs().date(), let nowNum = dayjs().date(),
monthDayNum = dayjs().daysInMonth() monthDayNum = dayjs().daysInMonth()
this.timeProgress = parseInt(nowNum / monthDayNum * 100) this.timeProgress = Math.round(nowNum / monthDayNum * 100)
}, },
changeType (index, name) { changeType (index, name) {
if (this[name] == index) return // 点击同一个 if (this[name] == index) return // 点击同一个
...@@ -165,7 +181,17 @@ export default { ...@@ -165,7 +181,17 @@ export default {
editCustomer (id) { editCustomer (id) {
this.customerId = id this.customerId = id
this.showInfo = true this.showInfo = true
} },
async getMerchantPerformance () {
const { shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
res = await uni.$api.receptionApi.getMerchantPerformance({
merchantIdList: shopMerchantId,
sceneType,
startDate: dayjs().startOf('month').format('YYYY-MM-DD'),
endDate: dayjs().endOf('month').format('YYYY-MM-DD')
})
this.pageData = res
},
} }
} }
</script> </script>
......
...@@ -96,19 +96,19 @@ export default { ...@@ -96,19 +96,19 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
padding: 0 16rpx; padding: 0 toRpx(16);
.status { .status {
position: absolute; position: absolute;
right: 0; right: 0;
top: 0; top: 0;
height: 40rpx; height: toRpx(40);
line-height: 40rpx; line-height: toRpx(40);
width: fit-content; width: fit-content;
padding: 0 12rpx; padding: 0 toRpx(12);
font-size: 22rpx; font-size: toRpx(22);
color: #999999; color: #999999;
background: #9999991a; background: #9999991a;
border-radius: 4rpx; border-radius: toRpx(4);
} }
.status-green { .status-green {
...@@ -117,69 +117,68 @@ export default { ...@@ -117,69 +117,68 @@ export default {
} }
.icon { .icon {
width: 128rpx; width: toRpx(128);
height: 128rpx; height: toRpx(128);
margin-right: 16rpx; margin-right: toRpx(16);
flex-shrink: 0; flex-shrink: 0;
position: relative; position: relative;
.image { .image {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 8rpx; border-radius: toRpx(8);
overflow: hidden; overflow: hidden;
} }
.label { .label {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 6rpx; padding: 0 toRpx(6);
position: absolute; position: absolute;
width: fit-content; width: fit-content;
color: #ffffff; color: #ffffff;
left: 8rpx; left: toRpx(8);
top: 8rpx; top: toRpx(8);
height: 28rpx; height: toRpx(28);
background: #00000066; background: #00000066;
font-size: 20rpx; font-size: toRpx(20);
} }
} }
.text { .text {
width: calc(100% - 144rpx); width: calc(100% - #{toRpx(144)});
.title { .title {
width: 100%; width: 100%;
// width: calc(100% - 98rpx);
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #333333; color: #333333;
font-size: 30rpx; font-size: toRpx(30);
font-weight: 700; font-weight: 700;
} }
.tags { .tags {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 0 8rpx; gap: 0 toRpx(8);
margin: 8rpx 0; margin: toRpx(8) 0;
.tag { .tag {
display: flex; display: flex;
align-items: center; align-items: center;
height: 40rpx; height: toRpx(40);
background: #75bcff1a; background: #75bcff1a;
padding: 0 12rpx; padding: 0 toRpx(12);
width: fit-content; width: fit-content;
color: #2d66f7; color: #2d66f7;
font-size: 22rpx; font-size: toRpx(22);
border-radius: 4rpx; border-radius: toRpx(4);
} }
} }
.date { .date {
color: #999999; color: #999999;
font-size: 24rpx; font-size: toRpx(24);
} }
} }
} }
......
...@@ -88,30 +88,30 @@ export default { ...@@ -88,30 +88,30 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.scene-market-box { .scene-market-box {
height: calc(100vh - 144rpx); height: calc(100vh - #{toRpx(144)});
margin: 64rpx 48rpx 0; margin: toRpx(64) toRpx(48) 0;
border-radius: 48rpx; border-radius: toRpx(48);
background: #ffffff59; background: #ffffff59;
backdrop-filter: blur(16rpx); backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
.scene-market-content { .scene-market-content {
width: 100%; width: 100%;
height: calc(100% - 128rpx); height: calc(100% - #{toRpx(128)});
background: #ffffff; background: #ffffff;
transform: translateY(-32rpx); transform: translateY(toMinusRpx(32));
box-sizing: border-box; box-sizing: border-box;
.tabs { .tabs {
gap: 24rpx; gap: toRpx(24);
padding: 40rpx 44rpx; padding: toRpx(40) toRpx(44);
.tab { .tab {
height: 80rpx; height: toRpx(80);
background: #f2f2f2; background: #f2f2f2;
padding: 0 32rpx; padding: 0 toRpx(32);
color: #666666; color: #666666;
font-size: 28rpx; font-size: toRpx(28);
border-radius: 16rpx; border-radius: toRpx(16);
} }
.active { .active {
background: #2d66f71a; background: #2d66f71a;
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
} }
} }
.scene-list { .scene-list {
height: calc(100% - 160rpx); height: calc(100% - #{toRpx(160)});
} }
} }
} }
......
...@@ -7,12 +7,12 @@ export default { ...@@ -7,12 +7,12 @@ export default {
mounted () { mounted () {
}, },
methods: { methods: {
async getAiagent (options, agentCode = 'AI7') { async getAiagent (options, agentCode = 'AI6') {
const { phone } = uni.$storage.get('userInfo'), const { phone } = uni.$storage.get('userInfo'),
[data] = await uni.$api.sceneMarketApi.getAiagent({ [data] = await uni.$api.sceneMarketApi.getAiagent({
ownerShipType: 1, ownerShipType: 1,
accountPhone: phone, accountPhone: phone,
agentCode//AI6 agentCode
}) })
if (data) { if (data) {
const { sceneType, uuid, phone, channelType = 1 } = uni.$storage.get('userInfo'), const { sceneType, uuid, phone, channelType = 1 } = uni.$storage.get('userInfo'),
......
...@@ -446,7 +446,7 @@ export default { ...@@ -446,7 +446,7 @@ export default {
.left-menu { .left-menu {
position: absolute; position: absolute;
top: 0; top: 0;
left: 2.7; left: 2.7%;
width: 20.4%; width: 20.4%;
height: toRpx(1296); height: toRpx(1296);
border-radius: toRpx(16); border-radius: toRpx(16);
......
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
[data] = await uni.$api.sceneMarketApi.getAiagent({ [data] = await uni.$api.sceneMarketApi.getAiagent({
ownerShipType: 1, ownerShipType: 1,
accountPhone: phone, accountPhone: phone,
agentCode: 'AI7' //AI6 agentCode: 'AI7'
}) })
if (data) { if (data) {
const { sceneType, uuid, phone, channelType = 1 } = uni.$storage.get('userInfo'), const { sceneType, uuid, phone, channelType = 1 } = uni.$storage.get('userInfo'),
...@@ -372,6 +372,7 @@ export default { ...@@ -372,6 +372,7 @@ export default {
if (checkDate) url += `&date=${checkDate}` if (checkDate) url += `&date=${checkDate}`
if (taskStatus) url += `&practice_status=${taskStatus}` if (taskStatus) url += `&practice_status=${taskStatus}`
this.AIUrl = url this.AIUrl = url
// this.AIUrl = 'http://192.168.1.237:3000/chat/fpC9ZzKASEEtzjjD?business_type=12&brand=2444&one_id=266&platformType=1&date=2025-06-25&position=1&businessType=1&brandType=1001&phone=13823254919&no_header=1&practice_status=3&presuppositionProblem=&domain=https%3A%2F%2Faiassistant.glsx.com.cn'
this.setWebviewStyle() this.setWebviewStyle()
} else uni.showToast({ } else uni.showToast({
title: '获取智能体失败', title: '获取智能体失败',
...@@ -391,8 +392,9 @@ export default { ...@@ -391,8 +392,9 @@ export default {
left: '40.85%', left: '40.85%',
top: '16.65%', top: '16.65%',
height: '78.17%', height: '78.17%',
width: '56.52%', width: '56.52%'
}); });
// wv.setCssText( '.chat-panel-bg{background:#f5f9ff !important;}' )
return true; // 成功设置样式 return true; // 成功设置样式
} else { } else {
return false; // 未找到wv return false; // 未找到wv
...@@ -412,10 +414,7 @@ export default { ...@@ -412,10 +414,7 @@ export default {
setTimeout(retrySetWebviewStyle, 100); setTimeout(retrySetWebviewStyle, 100);
}, },
tabClick (item) { tabClick (item) {
if (item.sumScore > item.score && this.wv) { if (item.sumScore > item.score && this.wv) this.wv.evalJS(`sendMessage({type:'reset_chat',payload:{message:'${item.tagGroupName}'}})`)
// item.tagGroupName
// this.wv.evalJS()
}
} }
} }
} }
...@@ -624,8 +623,8 @@ export default { ...@@ -624,8 +623,8 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
.AI-title { .AI-title {
height: 96rpx; height: toRpx(96);
font-size: 36rpx; font-size: toRpx(36);
font-weight: 500; font-weight: 500;
justify-content: center; justify-content: center;
color: #333333; color: #333333;
......
...@@ -5237,7 +5237,7 @@ function drawArcbarDataPoints (series, opts, config, context) { ...@@ -5237,7 +5237,7 @@ function drawArcbarDataPoints (series, opts, config, context) {
context.setStrokeStyle(fillColor); context.setStrokeStyle(fillColor);
context.setLineCap(arcbarOption.lineCap); context.setLineCap(arcbarOption.lineCap);
context.beginPath(); context.beginPath();
context.arc(centerPosition.x, centerPosition.y, radius - (arcbarOption.width * opts.pix + arcbarOption.gap * opts.pix) * i, arcbarOption.startAngle * Math.PI, eachSeries._proportion_ * Math.PI, arcbarOption.direction == 'ccw'); if(eachSeries.data) context.arc(centerPosition.x, centerPosition.y, radius - (arcbarOption.width * opts.pix + arcbarOption.gap * opts.pix) * i, arcbarOption.startAngle * Math.PI, eachSeries._proportion_ * Math.PI, arcbarOption.direction == 'ccw');
context.stroke(); context.stroke();
} }
drawRingTitle(opts, config, context, centerPosition); drawRingTitle(opts, config, context, centerPosition);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!