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 @@
v-if="i.icon == 'record' && perRecordNumber"
></view>
<view
class="dot"
v-if="i.icon == 'ai' && sopCount"
></view>
<view
class="tip-box"
v-if="i.icon == 'study' && readCount"
>待办事项:{{ readCount }}</view>
......@@ -42,7 +38,7 @@
</template>
</view>
<view class="left-footer">
<view
<!-- <view
class="btn"
@click="openPop"
>
......@@ -51,6 +47,9 @@
class="message-number"
v-if="messageTotal > 0"
></view>
</view> -->
<view class="btn">
<view class="sprite-icon icon-scene-change"></view>
</view>
<view
class="btn"
......@@ -78,7 +77,6 @@
import KfBox from "./KfBox";
import MessagePop from "./MessagePop"
import SettingBox from "./SettingBox";
import { STORAGE_OBJECTkEY } from '@/utils/cache/constantData'
import utils from '@/utils/utils'
export default {
components: { KfBox, SettingBox, MessagePop },
......@@ -96,11 +94,6 @@ export default {
name: 'HomeSlot'
},
{
label: "AI集市",
icon: "ai",
name: 'AIBazaar'
},
{
label: "接待记录",
icon: "record",
name: 'RecordList'
......@@ -111,6 +104,11 @@ export default {
isTrack: true,
name: 'StudyCenter'
},
{
label: "场景集市",
icon: "scene",
name: 'AIBazaar'
}
],
messageData: {
classCountList: [],
......@@ -149,8 +147,9 @@ export default {
this.getMessageInfo();
});
uni.$on('studyCenter', () => {
console.log('studyCenter')
this.changeIndex(3, this.tabs[3])
let { tabs } = this,
index = tabs.findIndex(e => e.name == 'StudyCenter')
this.changeIndex(index, this.tabs[index])
});
this.getUnreadCount()
this.findBeiSenSSOToken().then(() => {
......@@ -191,7 +190,7 @@ export default {
})
},
startTrack () {
if(this.trackInterval) clearInterval(this.trackInterval)
if (this.trackInterval) clearInterval(this.trackInterval)
this.trackInterval = setInterval(() => {
this.leaveTrack()
}, 5000)
......@@ -219,10 +218,9 @@ export default {
console.log(index, 'changeIndex')
// if (this.tabIndex == index) return;
// 点击学习中心要跳从北森回后台配置的学习中心,学习中心为3
if (this.tabIndex == index && index !== 3) return;
if (this.tabIndex == index && !item.isTrack) return;
let jumpUrl
if (item.isTrack) {
// this.readCount = 0
this.$emit('closeTips')
try {
jumpUrl = await this.findBeiSenSSOToken()
......@@ -241,20 +239,21 @@ export default {
clearInterval(this.trackInterval)
}
this.$emit('update:tabIndex', index)
this.$emit("changeTab", index,jumpUrl)
this.$emit("changeTab", item, jumpUrl)
this.getMessageInfo()
},
async haveCustomerAccess (val) {
const { shopMerchantId, sceneType: scene } = val
const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId: shopMerchantId
})
if (res) this.tabs.push({
// const res = await uni.$api.customerApi.haveCustomerAccess({
// merchantId: shopMerchantId
// })
// if (res)
this.tabs.push({
label: "客户档案",
icon: "customer-file",
name: 'CustomerFile'
})
this.$store.state.user.haveCustomerAccess = res
// this.$store.state.user.haveCustomerAccess = res
uni.$api.customerApi.saleOpen({
merchantId: shopMerchantId,
scene
......@@ -354,7 +353,7 @@ export default {
clearInterval(this.trackInterval)
this.trackInterval = null
},
beforeDestroy() {
beforeDestroy () {
clearInterval(this.trackInterval)
this.trackInterval = null
},
......@@ -535,6 +534,9 @@ export default {
margin: toRpx(48) auto 0;
box-sizing: border-box;
padding-left: toRpx(60);
.icon-scene-change{
zoom: 2;
}
.message-number {
position: absolute;
display: flex;
......
......@@ -25,19 +25,29 @@
class="start"
@click="$emit('start')"
>
<image
class="start-btn"
src="../../assets/images/home/start.gif"
alt="开始接待"
/>
<image
class="start-border"
src="../../assets/images/home/start-border.png"
/>
<view class="sprite-icon icon-start-text"></view>
</view>
<view class="module-list">
<slot name="module" />
<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" />
</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 v-else-if="tabIndex == 99">
......@@ -51,7 +61,6 @@
<template v-else>
<component
:is="componentName"
@handleOperation="handleOperation"
ref="pointRef"
:userInfo="userInfo"
@showPage="handleShowPage"
......@@ -135,13 +144,6 @@
:src="jumpUrl"
v-if="showBeisen"
></web-view>
<image
v-if="showLeadPage"
@click="showLeadPage = false"
class="lead-page"
src="../../assets/images/noviceGuide/lead-page.png"
mode="scaleToFill"
/>
</view>
</template>
<script>
......@@ -188,7 +190,6 @@ export default {
pointComponentName: 'Point',
userInfo: {},
tabIndex: 0,
showLeadPage: false,
showBeisen: false,
tipsObject: {}
}
......@@ -197,7 +198,6 @@ export default {
const userInfo = uni.$storage.get('userInfo') || {}
this.userInfo = userInfo
this.checkVersion()
this.checkLead()
},
provide () {
return {
......@@ -218,12 +218,10 @@ export default {
}
},
methods: {
async changeTab($event, jumpUrl) {
console.log(this.isPermission)
console.log($event, 'event')
async changeTab ($event, jumpUrl) {
this.$emit('changeTab', $event)
this.showBeisen = false
if ($event == 3) {
if ($event.isTrack) {
this.jumpUrl = jumpUrl
if (!this.jumpUrl) {
uni.showToast({
......@@ -260,28 +258,6 @@ export default {
this.showHome = false
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) {
console.log(val, data, 'val, data')
const { type } = val;
......@@ -447,7 +423,6 @@ export default {
position: relative;
width: calc(100vw - #{toRpx(240)});
.right-content {
padding-top: toRpx(92);
height: 100vh;
box-sizing: border-box;
position: relative;
......@@ -463,27 +438,54 @@ export default {
}
}
.start {
&-btn {
width: 100%;
height: 100%;
}
&-border {
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
vertical-align: top;
}
height: toRpx(336);
height: toRpx(232);
box-sizing: border-box;
margin-right: toRpx(64);
position: relative;
padding: toRpx(32);
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;
}
}
.module-list {
height: calc(100% - #{toRpx(336)});
.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%;
height: calc(100% - #{toRpx(120)});
}
.content-left,
.content-right {
height: 100%;
}
.content-left {
width: toRpx(1210);
.module-box {
height: toRpx(664);
margin-bottom: toRpx(48);
}
.tool-box{
height: calc(100% - #{toRpx(712)});
}
}
.content-right {
width: toRpx(800);
}
}
.store-addr {
position: absolute;
left: 50%;
......
......@@ -13,7 +13,7 @@
class="module-box"
slot="module"
>
<template v-for="(i, index) in moduleList">
<!-- <template v-for="(i, index) in moduleList">
<view
:key="index"
:class="['item']"
......@@ -32,7 +32,7 @@
/>
</template>
</view>
</template>
</template> -->
</view>
<template slot="detail">
<detail
......@@ -54,14 +54,6 @@
/> -->
</template>
</home-frame>
<!--
<cover-view class="webview-container">
<web-view
@message="handlerMessage"
ref="webview"
src="/hybrid/html/index.html"
></web-view>
</cover-view> -->
</view>
</template>
<script>
......@@ -83,7 +75,7 @@ export default {
tabIndex: 0,
recording: false,
aitoCarModelIds: [],
mediaId: ''
mediaId: '',
}
},
computed: {
......@@ -327,52 +319,6 @@ export default {
</script>
<style scoped lang="scss">
.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 {
width: toRpx(100);
......
......@@ -27,7 +27,7 @@ export default {
carBrands: [],
employeeList: [],
paymentType: [],
haveCustomerAccess: false,
haveCustomerAccess: true, //2025-7月版本 客户档案权限设置为默认为true
boutiqueMediaConfig: {},
receptionTrack: {}, //接待记录埋点
boutiqueDefaultCarBrandId: '',
......
......@@ -67,16 +67,19 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
display: flex;
align-items: center;
}
.flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.flex-between {
display: flex;
align-items: center;
justify-content: space-between;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
......@@ -121,3 +124,42 @@ $margin: 0 calc((100vmax - #{$detailVW}) / 2);
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
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!