Commit 277ffb90 by cen

Merge branch 'SAAS+V5.0.0-1014' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.0.0-1014

2 parents 61353ef5 243ef51a

2.65 MB | W: | H:

2.73 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -6,7 +6,7 @@
animation
class="center-popup"
>
<view class="box">
<view :class="['box',{line:isLine}]">
<view class="title flex">
<view class="text">{{title}}</view>
<view
......@@ -35,8 +35,10 @@
:class="['sprite-icon',i.icon]"
:style="{zoom: i.zoom || 1}"
></view>
<view class="item-title">{{i.title}}</view>
<text class="item-describe">{{i.describe}}</text>
<view class="item-text">
<view class="item-title">{{i.title}}</view>
<text class="item-describe">{{i.describe}}</text>
</view>
</view>
</template>
......@@ -52,7 +54,8 @@ export default {
list: Array,
title: String,
tag: String,
id: [Number, String]
id: [Number, String],
isLine: Boolean
},
data () {
return {
......@@ -91,7 +94,7 @@ export default {
width: 100%;
height: toRpx(160);
background: url('@/assets/images/boutique/customer-type-bg.webp') no-repeat;
background-size: 100%;
background-size: 100% 100%;
position: relative;
.text {
font-weight: 500;
......@@ -126,6 +129,9 @@ export default {
justify-content: center;
position: relative;
overflow: hidden;
&-text {
text-align: center;
}
.tag {
position: absolute;
width: toRpx(192);
......@@ -138,23 +144,6 @@ export default {
font-size: toRpx(28);
justify-content: center;
}
// &::before,
// &::after {
// content: '';
// position: absolute;
// left: 0;
// width: 100%;
// background: #edf5ff;
// filter: blur(toRpx(40));
// }
// &::before {
// top: 0;
// height: toRpx(62);
// }
// &::after {
// bottom: 0;
// height: toRpx(126);
// }
&-title {
font-weight: 500;
font-size: toRpx(40);
......@@ -164,7 +153,6 @@ export default {
&-describe {
font-size: toRpx(32);
color: #808291;
text-align: center;
}
&:first-child {
&::before,
......@@ -175,4 +163,39 @@ export default {
}
}
}
.line {
height: auto;
.content {
flex-wrap: wrap;
gap: 40rpx;
padding: 16rpx 64rpx 64rpx;
.item {
width: 100%;
flex-direction: row;
height: 192rpx;
justify-content: flex-start;
border-radius: 24rpx;
.tag {
right: 0;
left: inherit;
border-radius: 0 0 0 32rpx;
}
&-text {
text-align: left;
}
&-title {
font-size: 36rpx;
text-align: left;
padding: 0 0 12rpx 0;
}
&-describe {
font-size: 28rpx;
color: #999ea8;
}
.sprite-icon {
margin: 0 32rpx 0 40rpx;
}
}
}
}
</style>
\ No newline at end of file
......@@ -81,6 +81,7 @@
title="选择场景"
tag="当前场景"
:id="userInfo.sceneType"
isLine
/>
</view>
</template>
......@@ -100,33 +101,6 @@ export default {
name: '',
data () {
return {
tabs: [
{
label: "首页",
icon: "home",
name: 'HomeSlot'
},
{
label: "接待中心",
icon: "record",
name: 'ReceptionCenter',
eventCode: 'app_reception_center'
},
{
label: "学习中心",
icon: "study",
isTrack: true,
name: 'StudyCenter',
eventCode: 'app_study_center',
hidden: true
},
{
label: "场景集市",
icon: "scene",
name: 'SceneMarket',
eventCode: 'app_scene_market'
}
],
messageData: {
classCountList: [],
recordDetailList: [],
......@@ -146,6 +120,7 @@ export default {
userInfo (n) {
if (n.shopMerchantId) this.haveCustomerAccess(n)
},
// trackId (n) {
// if (!n) {
// clearInterval(this.trackInterval)
......@@ -162,20 +137,27 @@ export default {
title: '轻改',
describe: '太阳膜升级转化',
icon: 'icon-scene-1',
zoom: 2.91,
zoom: 1.1669,
},
0: {
title: '会员权益/升级',
describe: '权益延保',
icon: 'icon-scene-0',
zoom: 2.91,
zoom: 1.1669,
},
4: {
title: '二手车',
describe: '二手车业务',
icon: 'icon-scene-4',
zoom: 1.1669,
}
}
let { openSceneArr } = uni.$storage.get("userInfo")
let result = []
if (openSceneArr && openSceneArr.length) {
openSceneArr.map(e => {
if (e == 1 || e == 0) {
if (e == 1 || e == 0 || e == 4) {
result.push({
...sceneTypeObject[e],
id: e
......@@ -184,6 +166,38 @@ export default {
})
}
return result
},
tabs () {
const tabs = [
{
label: "首页",
icon: "home",
name: 'HomeSlot'
},
{
label: "接待中心",
icon: "record",
name: 'ReceptionCenter',
eventCode: 'app_reception_center'
},
{
label: "学习中心",
icon: "study",
isTrack: true,
name: 'StudyCenter',
eventCode: 'app_study_center',
hidden: true
},
{
label: "场景集市",
icon: "scene",
name: 'SceneMarket',
eventCode: 'app_scene_market'
}
]
let { sceneType } = uni.$storage.get("userInfo")
if(sceneType == 4) tabs[1].hidden = true
return tabs
}
},
created () {
......@@ -274,8 +288,8 @@ export default {
// } catch (error) {
// }
// if (jumpUrl) {
// this.addTrack()
// this.startTrack()
// this.addTrack()
// this.startTrack()
// }
} else {
......@@ -313,7 +327,7 @@ export default {
// uni.$storage.set('isSaleOpen', result)
if (result) {
this.hasPerson = true
}
}
// const channelType = 1
// // 非直营且非鸿蒙智行, 隐藏学习中心tab
// if (result || channelType == 1) {
......@@ -329,7 +343,7 @@ export default {
businessTypeList = [0, 2]
} else if (sceneType == 1) {
businessTypeList = [1]
}
} else businessTypeList = [4]
const res = await uni.$api.commonApi.getUnreadRecord({
// businessType: sceneType,
businessTypeList,
......@@ -356,7 +370,7 @@ export default {
if (res.ids && res.ids.length > 0) {
if (Array.isArray(res.moduleTypeList) && (res.moduleTypeList.includes(3) || res.moduleTypeList.includes(4))
) {
// 3, 4学习任务弹窗
// 3, 4学习任务弹窗
this.messageType = 'study'
this.messageData = res
this.$refs.kfRef.open()
......@@ -408,7 +422,8 @@ export default {
uni.$storage.set('userInfo', userInfo)
let url = {
1: '/pages/boutique/index',
0: '/pages/equity/index'
0: '/pages/equity/index',
4: '/pages/usedCar/index'
}[userInfo.sceneType]
uni.reLaunch({
url
......@@ -421,13 +436,13 @@ export default {
})
},
// 学习中心权限获取
getStudyCenterPermission() {
getStudyCenterPermission () {
const res = uni.$storage.get('studyCenterPermission')
const {directSaleAuth, hmzxAuth, authorizedBusinessList} = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
const { directSaleAuth, hmzxAuth, authorizedBusinessList } = res // 当驻店人员为非直营,且非鸿蒙智行延保业务驻店人员情况下。隐藏左侧【学习中心】图标
const isYb = authorizedBusinessList && authorizedBusinessList.includes(1) // 1.延保 2.轻改 3.权益
if (directSaleAuth || (hmzxAuth && isYb)) {
this.tabs[2].hidden = false
}
}
}
},
beforeCreate () {
......
......@@ -6,7 +6,9 @@
<view class="right-side">
<view :class="['app-content-box right-content', { 'show-content-box': tabIndex == 0 }]">
<view class="start" @click="start">
<view class="sprite-icon icon-start-text"></view>
<template v-if="sceneType != 4">
<view class="sprite-icon icon-start-text"></view>
</template>
</view>
<view class="right-content-box flex">
<view class="content-left">
......@@ -316,6 +318,8 @@ export default {
this.$emit(name)
},
start() {
const { sceneType } = this
if (sceneType == 4) return //二手车无接待功能
uni.$track.add({
eventCode: 'app_reception_begins'
})
......
......@@ -41,6 +41,12 @@ export default {
sceneType: 0,
actived: false
},
{
sceneName: '二手车',
sceneDesc: '二手车业务',
sceneType: 4,
actived: false
},
],
userInfo: {},
openSceneArr: []
......@@ -88,7 +94,7 @@ export default {
sceneList[index].actived = true
this.sceneList = sceneList
userInfo.sceneType = sceneType
userInfo.openSceneArr = openSceneArr
userInfo.openSceneArr = [...openSceneArr, 4]
uni.showLoading({
mask: true
})
......@@ -133,7 +139,8 @@ export default {
uni.$storage.set('userInfo', userInfo)
let url = {
1: '/pages/boutique/index',
0: '/pages/equity/index'
0: '/pages/equity/index',
4: '/pages/usedCar/index'
}[userInfo.sceneType]
uni.reLaunch({
url
......
<template>
<view>
<home-frame
ref="home"
:loadComplete="loadComplete"
>
</home-frame>
</view>
</template>
<script>
import HomeFrame from '@/components/HomeFrame/index.vue'
export default {
components: { HomeFrame },
data () {
return {
loadComplete: true,
requested: false
}
},
computed: {
},
onBackPress (options) {
if (options.from === 'backbutton') {
// 物理返回按钮触发
// 阻止默认行为,即不执行页面返回
uni.navigateBack()
return true
}
// 其他情况允许正常返回
return false
},
async onLoad () {
},
async onShow () {
const userInfo = uni.$storage.get('userInfo')
if (!userInfo.shopMerchantId || !userInfo.shopMerchantName) {
uni.$storage.rm('userInfo')
uni.$storage.rm('sessionId')
uni.reLaunch({
url: '/pages/common/login'
})
return
}
this.$refs.home.updateApp()
this.init()
},
methods: {
init () {
this.$refs.home.$refs.leftBox.getMessageInfo()
},
}
}
</script>
<style scoped lang="scss">
.webview-container {
width: toRpx(100);
height: toRpx(100);
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
transform: translateY(300%);
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!