Commit d069c223 by 李伟康

提交

1 parent 38367a55

2.45 MB | W: | H:

2.49 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
v-if="i.icon == 'record' && perRecordNumber" v-if="i.icon == 'record' && perRecordNumber"
></view> ></view>
<view <view
class="dot"
v-if="i.icon == 'ai' && sopCount"
></view>
<view
class="tip-box" class="tip-box"
v-if="i.icon == 'study' && readCount" v-if="i.icon == 'study' && readCount"
>待办事项:{{ readCount }}</view> >待办事项:{{ readCount }}</view>
...@@ -42,7 +38,7 @@ ...@@ -42,7 +38,7 @@
</template> </template>
</view> </view>
<view class="left-footer"> <view class="left-footer">
<view <!-- <view
class="btn" class="btn"
@click="openPop" @click="openPop"
> >
...@@ -51,6 +47,9 @@ ...@@ -51,6 +47,9 @@
class="message-number" class="message-number"
v-if="messageTotal > 0" v-if="messageTotal > 0"
></view> ></view>
</view> -->
<view class="btn">
<view class="sprite-icon icon-scene-change"></view>
</view> </view>
<view <view
class="btn" class="btn"
...@@ -78,7 +77,6 @@ ...@@ -78,7 +77,6 @@
import KfBox from "./KfBox"; import KfBox from "./KfBox";
import MessagePop from "./MessagePop" import MessagePop from "./MessagePop"
import SettingBox from "./SettingBox"; import SettingBox from "./SettingBox";
import { STORAGE_OBJECTkEY } from '@/utils/cache/constantData'
import utils from '@/utils/utils' import utils from '@/utils/utils'
export default { export default {
components: { KfBox, SettingBox, MessagePop }, components: { KfBox, SettingBox, MessagePop },
...@@ -96,11 +94,6 @@ export default { ...@@ -96,11 +94,6 @@ export default {
name: 'HomeSlot' name: 'HomeSlot'
}, },
{ {
label: "AI集市",
icon: "ai",
name: 'AIBazaar'
},
{
label: "接待记录", label: "接待记录",
icon: "record", icon: "record",
name: 'RecordList' name: 'RecordList'
...@@ -111,6 +104,11 @@ export default { ...@@ -111,6 +104,11 @@ export default {
isTrack: true, isTrack: true,
name: 'StudyCenter' name: 'StudyCenter'
}, },
{
label: "场景集市",
icon: "scene",
name: 'AIBazaar'
}
], ],
messageData: { messageData: {
classCountList: [], classCountList: [],
...@@ -149,8 +147,9 @@ export default { ...@@ -149,8 +147,9 @@ export default {
this.getMessageInfo(); this.getMessageInfo();
}); });
uni.$on('studyCenter', () => { uni.$on('studyCenter', () => {
console.log('studyCenter') let { tabs } = this,
this.changeIndex(3, this.tabs[3]) index = tabs.findIndex(e => e.name == 'StudyCenter')
this.changeIndex(index, this.tabs[index])
}); });
this.getUnreadCount() this.getUnreadCount()
this.findBeiSenSSOToken().then(() => { this.findBeiSenSSOToken().then(() => {
...@@ -191,7 +190,7 @@ export default { ...@@ -191,7 +190,7 @@ export default {
}) })
}, },
startTrack () { startTrack () {
if(this.trackInterval) clearInterval(this.trackInterval) if (this.trackInterval) clearInterval(this.trackInterval)
this.trackInterval = setInterval(() => { this.trackInterval = setInterval(() => {
this.leaveTrack() this.leaveTrack()
}, 5000) }, 5000)
...@@ -219,10 +218,9 @@ export default { ...@@ -219,10 +218,9 @@ export default {
console.log(index, 'changeIndex') console.log(index, 'changeIndex')
// if (this.tabIndex == index) return; // if (this.tabIndex == index) return;
// 点击学习中心要跳从北森回后台配置的学习中心,学习中心为3 // 点击学习中心要跳从北森回后台配置的学习中心,学习中心为3
if (this.tabIndex == index && index !== 3) return; if (this.tabIndex == index && !item.isTrack) return;
let jumpUrl let jumpUrl
if (item.isTrack) { if (item.isTrack) {
// this.readCount = 0
this.$emit('closeTips') this.$emit('closeTips')
try { try {
jumpUrl = await this.findBeiSenSSOToken() jumpUrl = await this.findBeiSenSSOToken()
...@@ -241,20 +239,21 @@ export default { ...@@ -241,20 +239,21 @@ export default {
clearInterval(this.trackInterval) clearInterval(this.trackInterval)
} }
this.$emit('update:tabIndex', index) this.$emit('update:tabIndex', index)
this.$emit("changeTab", index,jumpUrl) this.$emit("changeTab", item, jumpUrl)
this.getMessageInfo() this.getMessageInfo()
}, },
async haveCustomerAccess (val) { async haveCustomerAccess (val) {
const { shopMerchantId, sceneType: scene } = val const { shopMerchantId, sceneType: scene } = val
const res = await uni.$api.customerApi.haveCustomerAccess({ // const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId: shopMerchantId // merchantId: shopMerchantId
}) // })
if (res) this.tabs.push({ // if (res)
this.tabs.push({
label: "客户档案", label: "客户档案",
icon: "customer-file", icon: "customer-file",
name: 'CustomerFile' name: 'CustomerFile'
}) })
this.$store.state.user.haveCustomerAccess = res // this.$store.state.user.haveCustomerAccess = res
uni.$api.customerApi.saleOpen({ uni.$api.customerApi.saleOpen({
merchantId: shopMerchantId, merchantId: shopMerchantId,
scene scene
...@@ -354,7 +353,7 @@ export default { ...@@ -354,7 +353,7 @@ export default {
clearInterval(this.trackInterval) clearInterval(this.trackInterval)
this.trackInterval = null this.trackInterval = null
}, },
beforeDestroy() { beforeDestroy () {
clearInterval(this.trackInterval) clearInterval(this.trackInterval)
this.trackInterval = null this.trackInterval = null
}, },
...@@ -535,6 +534,9 @@ export default { ...@@ -535,6 +534,9 @@ export default {
margin: toRpx(48) auto 0; margin: toRpx(48) auto 0;
box-sizing: border-box; box-sizing: border-box;
padding-left: toRpx(60); padding-left: toRpx(60);
.icon-scene-change{
zoom: 2;
}
.message-number { .message-number {
position: absolute; position: absolute;
display: flex; display: flex;
......
...@@ -25,20 +25,30 @@ ...@@ -25,20 +25,30 @@
class="start" class="start"
@click="$emit('start')" @click="$emit('start')"
> >
<image <view class="sprite-icon icon-start-text"></view>
class="start-btn"
src="../../assets/images/home/start.gif"
alt="开始接待"
/>
<image
class="start-border"
src="../../assets/images/home/start-border.png"
/>
</view> </view>
<view class="module-list"> <view class="right-content-box flex">
<view class="content-left">
<view class="module-box box-class">
<view class="common-title">产品介绍</view>
<view class="content-box">
<slot name="module" /> <slot name="module" />
</view> </view>
</view> </view>
<view class="tool-box box-class">
<view class="common-title">展业工具</view>
<view class="content-box">
</view>
</view>
</view>
<view class="content-right box-class">
<view class="common-title">服务中心</view>
<view class="content-box">
</view>
</view>
</view>
</view>
</template> </template>
<template v-else-if="tabIndex == 99"> <template v-else-if="tabIndex == 99">
<component <component
...@@ -51,7 +61,6 @@ ...@@ -51,7 +61,6 @@
<template v-else> <template v-else>
<component <component
:is="componentName" :is="componentName"
@handleOperation="handleOperation"
ref="pointRef" ref="pointRef"
:userInfo="userInfo" :userInfo="userInfo"
@showPage="handleShowPage" @showPage="handleShowPage"
...@@ -135,13 +144,6 @@ ...@@ -135,13 +144,6 @@
:src="jumpUrl" :src="jumpUrl"
v-if="showBeisen" v-if="showBeisen"
></web-view> ></web-view>
<image
v-if="showLeadPage"
@click="showLeadPage = false"
class="lead-page"
src="../../assets/images/noviceGuide/lead-page.png"
mode="scaleToFill"
/>
</view> </view>
</template> </template>
<script> <script>
...@@ -188,7 +190,6 @@ export default { ...@@ -188,7 +190,6 @@ export default {
pointComponentName: 'Point', pointComponentName: 'Point',
userInfo: {}, userInfo: {},
tabIndex: 0, tabIndex: 0,
showLeadPage: false,
showBeisen: false, showBeisen: false,
tipsObject: {} tipsObject: {}
} }
...@@ -197,7 +198,6 @@ export default { ...@@ -197,7 +198,6 @@ export default {
const userInfo = uni.$storage.get('userInfo') || {} const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo this.userInfo = userInfo
this.checkVersion() this.checkVersion()
this.checkLead()
}, },
provide () { provide () {
return { return {
...@@ -218,12 +218,10 @@ export default { ...@@ -218,12 +218,10 @@ export default {
} }
}, },
methods: { methods: {
async changeTab($event, jumpUrl) { async changeTab ($event, jumpUrl) {
console.log(this.isPermission)
console.log($event, 'event')
this.$emit('changeTab', $event) this.$emit('changeTab', $event)
this.showBeisen = false this.showBeisen = false
if ($event == 3) { if ($event.isTrack) {
this.jumpUrl = jumpUrl this.jumpUrl = jumpUrl
if (!this.jumpUrl) { if (!this.jumpUrl) {
uni.showToast({ uni.showToast({
...@@ -260,28 +258,6 @@ export default { ...@@ -260,28 +258,6 @@ export default {
this.showHome = false this.showHome = false
this.pointComponentName = name this.pointComponentName = name
}, },
checkLead () {
let leadPage = uni.$storage.get('leadPage') || []
const { phone } = this.userInfo
const version = plus?.runtime?.version || '' // 平板
// const version = 14.57 // 浏览器
console.log(version, '---version')
if (version == '2.9.0') {
console.log(leadPage, typeof leadPage, '===leadPage')
if (leadPage && leadPage.length) {
if (!leadPage.includes(phone)) {
this.showLeadPage = true
leadPage.push(phone)
uni.$storage.set('leadPage', leadPage)
}
} else {
// 没有值,则直接弹
this.showLeadPage = true
leadPage.push(phone)
uni.$storage.set('leadPage', leadPage)
}
}
},
handleOperation (val, data) { handleOperation (val, data) {
console.log(val, data, 'val, data') console.log(val, data, 'val, data')
const { type } = val; const { type } = val;
...@@ -447,7 +423,6 @@ export default { ...@@ -447,7 +423,6 @@ export default {
position: relative; position: relative;
width: calc(100vw - #{toRpx(240)}); width: calc(100vw - #{toRpx(240)});
.right-content { .right-content {
padding-top: toRpx(92);
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
...@@ -463,27 +438,54 @@ export default { ...@@ -463,27 +438,54 @@ export default {
} }
} }
.start { .start {
&-btn { height: toRpx(232);
width: 100%; box-sizing: border-box;
height: 100%; margin-right: toRpx(64);
position: relative;
background: url('@/assets/images/home/start-btn.png') no-repeat;
background-size: 100% 100%;
padding-top: toRpx(60);
display: flex;
justify-content: center;
.sprite-icon {
zoom: 2;
} }
&-border { }
position: absolute; .right-content-box {
height: calc(100% - #{toRpx(232)});
gap: toRpx(48);
box-sizing: border-box;
padding: toRpx(32) 0 toRpx(80);
.box-class {
background: #ffffff59;
backdrop-filter: blur(toRpx(16));
box-shadow: inset 0 0 toRpx(16) 0 #ffffff;
border-radius: toRpx(48);
overflow: hidden;
}
.content-box {
width: 100%; width: 100%;
height: calc(100% - #{toRpx(120)});
}
.content-left,
.content-right {
height: 100%; height: 100%;
left: 0;
top: 0;
vertical-align: top;
} }
height: toRpx(336); .content-left {
box-sizing: border-box; width: toRpx(1210);
margin-right: toRpx(64); .module-box {
position: relative; height: toRpx(664);
padding: toRpx(32); margin-bottom: toRpx(48);
} }
.module-list { .tool-box{
height: calc(100% - #{toRpx(336)}); height: calc(100% - #{toRpx(712)});
} }
}
.content-right {
width: toRpx(800);
}
}
.store-addr { .store-addr {
position: absolute; position: absolute;
left: 50%; left: 50%;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
class="module-box" class="module-box"
slot="module" slot="module"
> >
<template v-for="(i, index) in moduleList"> <!-- <template v-for="(i, index) in moduleList">
<view <view
:key="index" :key="index"
:class="['item']" :class="['item']"
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
/> />
</template> </template>
</view> </view>
</template> </template> -->
</view> </view>
<template slot="detail"> <template slot="detail">
<detail <detail
...@@ -54,14 +54,6 @@ ...@@ -54,14 +54,6 @@
/> --> /> -->
</template> </template>
</home-frame> </home-frame>
<!--
<cover-view class="webview-container">
<web-view
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
</cover-view> -->
</view> </view>
</template> </template>
<script> <script>
...@@ -83,7 +75,7 @@ export default { ...@@ -83,7 +75,7 @@ export default {
tabIndex: 0, tabIndex: 0,
recording: false, recording: false,
aitoCarModelIds: [], aitoCarModelIds: [],
mediaId: '' mediaId: '',
} }
}, },
computed: { computed: {
...@@ -327,52 +319,6 @@ export default { ...@@ -327,52 +319,6 @@ export default {
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.module-box { .module-box {
padding-top: toRpx(44);
height: calc(100% - #{toRpx(94)});
box-sizing: border-box;
display: flex;
flex-wrap: wrap;
gap: toRpx(48);
&::after {
content: '';
display: block;
clear: both;
}
.item {
// float: left;
width: calc(50% - #{toRpx(48)});
height: calc(50% - #{toRpx(48)});
border-radius: toRpx(48);
overflow: hidden;
&-img {
width: 100%;
height: 100%;
vertical-align: top;
}
&-text {
width: 100%;
height: 100%;
background: #fff;
justify-content: center;
color: #3773f8;
}
&:first-of-type {
width: toRpx(1290);
height: toRpx(372);
}
&:nth-of-type(2) {
width: toRpx(704);
height: toRpx(372);
}
&:nth-of-type(3) {
width: toRpx(712);
height: toRpx(564);
}
&:nth-of-type(4) {
width: toRpx(1282);
height: toRpx(564);
}
}
} }
.webview-container { .webview-container {
width: toRpx(100); width: toRpx(100);
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
carBrands: [], carBrands: [],
employeeList: [], employeeList: [],
paymentType: [], paymentType: [],
haveCustomerAccess: false, haveCustomerAccess: true, //2025-7月版本 客户档案权限设置为默认为true
boutiqueMediaConfig: {}, boutiqueMediaConfig: {},
receptionTrack: {}, //接待记录埋点 receptionTrack: {}, //接待记录埋点
boutiqueDefaultCarBrandId: '', boutiqueDefaultCarBrandId: '',
......
...@@ -67,16 +67,19 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2); ...@@ -67,16 +67,19 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
display: flex; display: flex;
align-items: center; align-items: center;
} }
.flex-center { .flex-center {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.flex-between { .flex-between {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
...@@ -121,3 +124,42 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2); ...@@ -121,3 +124,42 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
opacity: 1; opacity: 1;
} }
} }
.common-title {
width: 100%;
height: toRpx(120);
position: relative;
display: flex;
align-items: center;
padding-left: toRpx(48);
color: #333333;
font-size: toRpx(34);
font-weight: 500;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
z-index: -2;
width: 100%;
height: 100%;
background: linear-gradient(0deg, #94c2ff00 0%, #5294ff 100%);
opacity: .15;
}
&::before {
content: '';
position: absolute;
left: toMinusRpx(20);
top: toMinusRpx(28);
z-index: -1;
width: toRpx(136);
height: toRpx(136);
opacity: .6;
background: linear-gradient(-44.4deg, #94c2ff00 0%, #5294ff 100%);
filter: blur(toRpx(24));
}
}
\ No newline at end of file \ No newline at end of file
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!