Commit f53c0934 by 前端

Merge branch 'SAAS+V4.44' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.44

2 parents a0dbe19a 672c7d0c
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1028rpx;} .sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1028rpx;}
.icon-addr { width: 32rpx; height: 32rpx; background-position: -1261rpx -557rpx;} .icon-addr { width: 32rpx; height: 32rpx; background-position: -1240rpx -557rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;} .icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1165rpx -617rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1165rpx -617rpx;}
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -381rpx -726rpx;} .icon-avatar { width: 96rpx; height: 96rpx; background-position: -381rpx -726rpx;}
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -415rpx;} .icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -415rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;} .icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;} .icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1041rpx -557rpx;} .icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -492rpx -726rpx;} .icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -492rpx -726rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -603rpx -726rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: -603rpx -726rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -714rpx -726rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -714rpx -726rpx;}
...@@ -20,16 +20,16 @@ ...@@ -20,16 +20,16 @@
.icon-home { width: 112rpx; height: 112rpx; background-position: 0rpx -726rpx;} .icon-home { width: 112rpx; height: 112rpx; background-position: 0rpx -726rpx;}
.icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;} .icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;}
.icon-icon-close { width: 72rpx; height: 72rpx; background-position: -1216rpx -382rpx;} .icon-icon-close { width: 72rpx; height: 72rpx; background-position: -1216rpx -382rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -830rpx -668rpx;} .icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1050rpx -668rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -877rpx -668rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1097rpx -668rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -924rpx -668rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1144rpx -668rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -971rpx -668rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1191rpx -668rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -1096rpx -557rpx;} .icon-invisible { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1018rpx -668rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1238rpx -668rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1065rpx -668rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1112rpx -668rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1159rpx -668rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -765rpx -621rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;}
.icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;} .icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;}
...@@ -38,15 +38,16 @@ ...@@ -38,15 +38,16 @@
.icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;} .icon-record-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;} .icon-record { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -1206rpx -668rpx;} .icon-scan { width: 32rpx; height: 32rpx; background-position: -1269rpx -726rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -1047rpx -726rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -1047rpx -726rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -1158rpx -726rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -1158rpx -726rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1151rpx -557rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;}
.icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;} .icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: 0rpx -964rpx;} .icon-setting { width: 64rpx; height: 64rpx; background-position: 0rpx -964rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -79rpx -964rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -79rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -154rpx -964rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -154rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -229rpx -964rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -229rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -1253rpx -668rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -1206rpx -557rpx;}
\ No newline at end of file \ No newline at end of file
.icon-total { width: 32rpx; height: 32rpx; background-position: -1269rpx -773rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;}
.icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;}
\ No newline at end of file \ No newline at end of file
No preview for this file type
No preview for this file type
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="wn-canvas"> <view class="wn-canvas">
<zoom-pan <zoom-pan
:class="['canvas-box',{fill:custom}]" :class="['canvas-box',{fill:custom}]"
:disabled="drawStatus" :disabled="drawStatus || !scaleSwitch"
:scale-max="5" :scale-max="5"
:scale-min="1" :scale-min="1"
@scale="scale" @scale="scale"
...@@ -169,6 +169,10 @@ export default { ...@@ -169,6 +169,10 @@ export default {
default: 'drawCanvas' default: 'drawCanvas'
}, },
custom: Boolean, //自定义 custom: Boolean, //自定义
scaleSwitch:{
type: Boolean,
default: true
}
}, },
computed: { computed: {
watchStatus () { watchStatus () {
......
...@@ -114,11 +114,11 @@ const formObject_boutique = [{ ...@@ -114,11 +114,11 @@ const formObject_boutique = [{
required: true required: true
}, },
{ {
label: "车型", label: "品牌车型",
key: "carModel", key: "carModel",
type: "select", type: "select",
popKey: "carBrandListVisible", popKey: "carBrandListVisible",
placeholder: '请选择车型' placeholder: '请选择品牌车型'
}, },
{ {
label: "车主电话", label: "车主电话",
...@@ -174,11 +174,11 @@ export default { ...@@ -174,11 +174,11 @@ export default {
required: true required: true
}, },
{ {
label: "车型", label: "品牌车型",
key: "carModel", key: "carModel",
type: "select", type: "select",
popKey: "carBrandListVisible", popKey: "carBrandListVisible",
placeholder: '请选择车型', placeholder: '请选择品牌车型',
required: true required: true
}, },
{ {
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
:drawStatus="penSwitch" :drawStatus="penSwitch"
custom custom
@scale="$emit('scale',$event)" @scale="$emit('scale',$event)"
:scaleSwitch="false"
> >
<template slot="customContent"> <template slot="customContent">
<view class="title"> <view class="title">
...@@ -101,7 +102,7 @@ export default { ...@@ -101,7 +102,7 @@ export default {
maxlength: 11, maxlength: 11,
}, },
{ {
placeholder: '车型', placeholder: '品牌车型',
key: 'carModel', key: 'carModel',
type: 'select', type: 'select',
popKey: 'carBrandListVisible', popKey: 'carBrandListVisible',
...@@ -164,11 +165,13 @@ export default { ...@@ -164,11 +165,13 @@ export default {
this.focusIndex = -1 this.focusIndex = -1
if (e?.currentTarget && e?.target) { if (e?.currentTarget && e?.target) {
const { key } = e.currentTarget.dataset const { key } = e.currentTarget.dataset
if (e.target.value.length == 0) return
if (key == 'newCarFare') { if (key == 'newCarFare') {
let value = Number(e.target.value) >= 9999999 ? 9999999 : e.target.value let value = Number(e.target.value) >= 9999999 ? 9999999 : e.target.value
// 判断是否为整数 // 判断是否为整数
if (!Number.isInteger(value)) value = String(value).replace(/(\d*\.?\d{0,2})\d*/, '$1') if (!Number.isInteger(value)) value = String(value).replace(/(\d*\.?\d{0,2})\d*/, '$1')
this.customerInfo[key] = Number(value).toFixed(2) ? value >= 0 ? value : '' : '' value = Number(String(value).replace(/^0+/, ''))
this.customerInfo[key] = Number(value).toFixed(2) ? Number(value).toFixed(2) >= 0 ? value : '' : ''
this.inputCustomer() this.inputCustomer()
} }
} }
......
...@@ -117,6 +117,7 @@ export default { ...@@ -117,6 +117,7 @@ export default {
color: #292d33; color: #292d33;
line-height: 48rpx; line-height: 48rpx;
overflow-y: auto; overflow-y: auto;
word-break: break-all;
} }
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<view :class="['block',defaultBlock(i)]"></view> <view :class="['block',defaultBlock(i)]"></view>
<view <view
class="name flex" class="name flex"
@click="i.checked = !i.checked" @click="choose(i,index)"
> >
<template v-if="!isPreview"> <template v-if="!isPreview">
<view :class="['check-box flex',{'checked':i.checked}]"> <view :class="['check-box flex',{'checked':i.checked}]">
...@@ -176,9 +176,11 @@ export default { ...@@ -176,9 +176,11 @@ export default {
handleInput (event) { handleInput (event) {
let value = event.target.value, let value = event.target.value,
{ index } = event.currentTarget.dataset { index } = event.currentTarget.dataset
if (value.length == 0) return
value = Number(value) > 999999 ? 999999 : value value = Number(value) > 999999 ? 999999 : value
if (!Number.isInteger(value)) value = String(value).replace(/(\d*\.?\d{0,2})\d*/, '$1') if (!Number.isInteger(value)) value = String(value).replace(/(\d*\.?\d{0,2})\d*/, '$1')
this.insuranceList[index].cost = Number(value).toFixed(2) ? value >= 0 ? value : '' : '' value = Number(String(value).replace(/^0+/, ''))
this.insuranceList[index].cost = Number(value).toFixed(2) ? Number(value).toFixed(2) >= 0 ? value : '' : ''
}, },
defaultBlock (item) { defaultBlock (item) {
return item.main == '交强险' ? (this.isPreview ? 'has-default' : item.show ? 'has-default' : '') : '' return item.main == '交强险' ? (this.isPreview ? 'has-default' : item.show ? 'has-default' : '') : ''
...@@ -207,7 +209,7 @@ export default { ...@@ -207,7 +209,7 @@ export default {
e.checked = true e.checked = true
e.main = e.itemName == '交强险' ? '交强险' : '商业险' e.main = e.itemName == '交强险' ? '交强险' : '商业险'
e.show = false e.show = false
e.itemDesc = this.processHtmlString(e.itemDesc) e.itemDesc = e.itemDesc ? this.processHtmlString(e.itemDesc) : ''
}) })
if (!storageInsuranceList) { if (!storageInsuranceList) {
uni.showLoading({ uni.showLoading({
...@@ -246,12 +248,21 @@ export default { ...@@ -246,12 +248,21 @@ export default {
this.flag = true this.flag = true
}, },
processHtmlString (htmlString) { processHtmlString (htmlString) {
const regexStyle = /style="[^"]*"/g // 移除 `<br>` 及其变体,并用 `<div></div>` 替换
const regexBr = /<\/br>|<br>|<br\/>|\n/g let processedString = htmlString.replace(/<\/?br\s*\/?>|\n/g, '<div></div>')
let processedString = htmlString.replace(regexBr, '<div></div>') // 移除 `style` 属性
let newHtmlString = processedString.replace(regexStyle, '') processedString = processedString.replace(/style="[^"]*"/g, '');
return newHtmlString // 移除 `<strong>`, `</strong>`, `<em>`, `</em>` 和孤立的 `<` 标签
} processedString = processedString.replace(/<strong>|<\/strong>|<em>|<\/em>|<>/g, '');
// 替换非 `div` 和非 `span` 的 HTML 标签
processedString = processedString.replace(/<(?!div|span|p)[^>]*>/g, '</div>');
return processedString
},
choose(item, index) {
if(this.isPreview) return
this.insuranceList[index].checked = !item.checked
},
} }
} }
</script> </script>
......
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 4; const index = 1;
/** /**
* *
0本地 0本地
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name" : "展业助手", "name" : "展业助手",
"appid" : "__UNI__D3BD3DF", "appid" : "__UNI__D3BD3DF",
"description" : "", "description" : "",
"versionName" : "1.5.0", "versionName" : "1.6.0",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
--> -->
<template> <template>
<view <view
class="layout" :class="['layout',{'byd-layout':isByd}]"
@click.prevent="touch" @click.prevent="touch"
> >
<wnCanvas <wnCanvas
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
class="serice-image" class="serice-image"
/> />
<view class="ul"> <view class="ul">
<view class="ul-title">高价值零部件</view> <view class="ul-title">{{isByd?'部分零部件更换成本':'高价值零部件'}}</view>
<view <view
class="li-item" class="li-item"
v-for="i in ulList" v-for="i in ulList"
...@@ -61,7 +61,10 @@ ...@@ -61,7 +61,10 @@
<view class="li-item-content"> <view class="li-item-content">
<view class="li-number">{{ i.index }}</view>{{ i.name }} <view class="li-number">{{ i.index }}</view>{{ i.name }}
</view> </view>
<view v-if="i.hasArrow" class="sprite-icon icon-icon-arrow icon-arrow"></view> <view
v-if="i.hasArrow"
class="sprite-icon icon-icon-arrow icon-arrow"
></view>
<!-- <image <!-- <image
v-if="i.hasArrow" v-if="i.hasArrow"
src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/icon-arrow.webp" src="https://img02.glsx.com.cn/weapp/resource/app-tape/media/guarantee/icon-arrow.webp"
...@@ -93,7 +96,8 @@ export default { ...@@ -93,7 +96,8 @@ export default {
title: String, title: String,
madiaId: Number, madiaId: Number,
ulList: Array, ulList: Array,
screenList: Array screenList: Array,
isByd: Boolean
}, },
components: { partsPop }, components: { partsPop },
data () { data () {
...@@ -306,7 +310,7 @@ export default { ...@@ -306,7 +310,7 @@ export default {
} }
.icon-arrow { .icon-arrow {
margin-left: 12rpx; margin-left: 6rpx;
} }
} }
...@@ -368,4 +372,13 @@ export default { ...@@ -368,4 +372,13 @@ export default {
transform: translateY(100%); transform: translateY(100%);
} }
} }
.byd-layout {
.li-item {
padding-left: 20rpx !important;
}
.li-item-content{
font-size: 26rpx !important;
}
}
</style> </style>
<template> <template>
<view class="layout"> <view :class="['layout',{ 'byd-layout':isByd } ]">
<view class="title">{{ title }}</view> <view class="title">{{ title }}</view>
<template v-if="list.length > 0"> <template v-if="list.length > 0">
<scroll-view <scroll-view
...@@ -82,6 +82,7 @@ export default { ...@@ -82,6 +82,7 @@ export default {
title: String, title: String,
madiaId: Number, madiaId: Number,
show: Boolean, show: Boolean,
isByd: Boolean
}, },
data () { data () {
return { return {
...@@ -92,14 +93,14 @@ export default { ...@@ -92,14 +93,14 @@ export default {
} }
}, },
watch: { watch: {
show(n) { show (n) {
console.log('=======', n, this.list) console.log('=======', n, this.list)
if (n) this.init() if (n) this.init()
else this.scrollTop = 0 else this.scrollTop = 0
}, },
watchStatus: { watchStatus: {
immediate: true, immediate: true,
handler(newval) { handler (newval) {
this.pageNum = 1 this.pageNum = 1
this.scrollTop = 1000 this.scrollTop = 1000
this.list = [] this.list = []
...@@ -169,7 +170,7 @@ export default { ...@@ -169,7 +170,7 @@ export default {
} }
// if (pageNum == 1) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list) // if (pageNum == 1) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
}, },
pageonReachBottom() { pageonReachBottom () {
this.isEnd = false this.isEnd = false
let { pageNum, total, isEnd, pageSize } = this let { pageNum, total, isEnd, pageSize } = this
if (!isEnd) isEnd = false if (!isEnd) isEnd = false
...@@ -194,7 +195,7 @@ export default { ...@@ -194,7 +195,7 @@ export default {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
position: relative; position: relative;
background-image: url("@/assets/images/media/media-bg.webp"); background-image: url('@/assets/images/media/media-bg.webp');
background-size: 100%; background-size: 100%;
.title { .title {
...@@ -295,11 +296,7 @@ export default { ...@@ -295,11 +296,7 @@ export default {
right: 0; right: 0;
width: 252rpx; width: 252rpx;
height: 364rpx; height: 364rpx;
background: linear-gradient( background: linear-gradient(to left, rgba(247, 249, 255, 0) 0%, rgba(247, 249, 255, 1) 100%);
to left,
rgba(247, 249, 255, 0) 0%,
rgba(247, 249, 255, 1) 100%
);
} }
} }
} }
......
<template> <template>
<view class="layout"> <view :class="['layout',{'byd-layout':isByd}]">
<wnCanvas <wnCanvas
saveImageType="3" saveImageType="3"
canvasId="c-1" canvasId="c-1"
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
/> />
</view> </view>
<view class="title"> <view class="title">
<view class="sprite-icon icon-aito"></view> <view :class="['sprite-icon',`${isByd?'icon-byd':'icon-aito'}`]"></view>
<view class="text">{{title}}</view> <view class="text">{{title}}</view>
</view> </view>
<view class="content"> <view class="content">
...@@ -97,7 +97,8 @@ export default { ...@@ -97,7 +97,8 @@ export default {
show: Boolean, show: Boolean,
title: String, title: String,
views: Array, views: Array,
carTypeList: Array carTypeList: Array,
isByd: Boolean
}, },
name: 'Reception', name: 'Reception',
data () { data () {
...@@ -118,7 +119,7 @@ export default { ...@@ -118,7 +119,7 @@ export default {
maxlength: 11 maxlength: 11
}, },
{ {
placeholder: '车型', placeholder: '品牌车型',
key: 'carModel', key: 'carModel',
type: 'select', type: 'select',
popKey: 'carBrandListVisible' popKey: 'carBrandListVisible'
...@@ -137,7 +138,7 @@ export default { ...@@ -137,7 +138,7 @@ export default {
} }
}, },
show (n) { show (n) {
if (n && !this.customerInfo.carModel) this.$refs.carBrandListVisible.autoSelect() if (n && !this.customerInfo.carModel && !this.isByd) this.$refs.carBrandListVisible.autoSelect()
} }
}, },
computed: { computed: {
...@@ -153,7 +154,7 @@ export default { ...@@ -153,7 +154,7 @@ export default {
'问界M7': 1, '问界M7': 1,
'问界M9': 2 '问界M9': 2
}[this.customerInfo.carModel] }[this.customerInfo.carModel]
return this.carTypeList[name || 0].url return this.carTypeList[name || 0]?.url || ''
} }
}, },
methods: { methods: {
...@@ -193,7 +194,7 @@ export default { ...@@ -193,7 +194,7 @@ export default {
position: relative; position: relative;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-image: url("@/assets/images/media/reception-bg.webp"); background-image: url('@/assets/images/media/reception-bg.webp');
background-size: 100%; background-size: 100%;
.carType { .carType {
width: 864rpx; width: 864rpx;
...@@ -276,7 +277,7 @@ export default { ...@@ -276,7 +277,7 @@ export default {
top: -2rpx; top: -2rpx;
width: calc(100% + 4rpx); width: calc(100% + 4rpx);
height: calc(100% + 4rpx); height: calc(100% + 4rpx);
content: ""; content: '';
background-image: linear-gradient(#2f6af7, #75bcff); background-image: linear-gradient(#2f6af7, #75bcff);
box-shadow: 0 0 0 8rpx #2c66f71a; box-shadow: 0 0 0 8rpx #2c66f71a;
border-radius: 16rpx; border-radius: 16rpx;
...@@ -351,4 +352,16 @@ export default { ...@@ -351,4 +352,16 @@ export default {
-webkit-animation: slide-bl 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; -webkit-animation: slide-bl 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
animation: slide-bl 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; animation: slide-bl 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
} }
.byd-layout {
background-image: url('@/assets/images/media/byd-reception-bg.webp') !important;
.content .views-box {
margin-top: 44rpx;
.item {
.img {
height: 960rpx;
}
}
}
}
</style> </style>
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
:screenList="item.screenList" :screenList="item.screenList"
@onProductModel="productModelStatus = $event" @onProductModel="productModelStatus = $event"
:isPreview="type == 'preview'" :isPreview="type == 'preview'"
:isByd="isByd"
/> />
</view> </view>
</template> </template>
...@@ -140,11 +141,15 @@ export default { ...@@ -140,11 +141,15 @@ export default {
name = this.media.find((e) => e.id == id)?.detailTitle || "" name = this.media.find((e) => e.id == id)?.detailTitle || ""
return name; return name;
}, },
finishTips(){ finishTips () {
const {channelType} = uni.$storage.get("userInfo") const { channelType } = uni.$storage.get("userInfo")
let text = '' let text = ''
if(channelType != 1) text = '检测到“汽车保险告知书”中未填写客户档案,请填写后再完成接待。' if (channelType == 3) text = '检测到“汽车保险告知书”中未填写客户档案,请填写后再完成接待。'
return text return text
},
isByd () {
const { channelType } = uni.$storage.get("userInfo")
return channelType == 2
} }
}, },
watch: { watch: {
...@@ -166,7 +171,13 @@ export default { ...@@ -166,7 +171,13 @@ export default {
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
if (this.id == 1) this.$refs.media1[0].closeAllPopup() Object.keys(this.$refs).map(refKey => {
let ref = this.$refs[refKey];
if (ref) {
if (Array.isArray(ref)) ref = ref[0]
ref.closeAllPopup && ref.closeAllPopup()
}
})
this.$emit('update:id', e.id) this.$emit('update:id', e.id)
}, },
back () { back () {
......
...@@ -84,10 +84,9 @@ export default { ...@@ -84,10 +84,9 @@ export default {
}; };
}, },
computed: { computed: {
/**是否是问界 */ channelType () {
isAITO () {
const { channelType } = uni.$storage.get("userInfo") const { channelType } = uni.$storage.get("userInfo")
return (channelType != 2 && channelType != 3) return channelType || 1 //默认问界
} }
}, },
onBackPress (options) { onBackPress (options) {
...@@ -101,14 +100,7 @@ export default { ...@@ -101,14 +100,7 @@ export default {
return false; return false;
}, },
onLoad () { onLoad () {
const { this.setViewInfo()
default_moduleList,
default_toolList,
moduleList,
toolList
} = uni.$storage.get("mock_data") || {}
this.moduleList = (this.isAITO ? moduleList : default_moduleList) || []
this.toolList = (this.isAITO ? toolList : default_toolList) || []
this.getSoure(); this.getSoure();
this.get_Vehicle_Sales_Data(); this.get_Vehicle_Sales_Data();
}, },
...@@ -170,10 +162,24 @@ export default { ...@@ -170,10 +162,24 @@ export default {
}, },
// 查询素材 // 查询素材
async getSoure () { async getSoure () {
let { moduleList, toolList, default_moduleList, default_toolList } = await uni.$api.systemApi.getMockData( let { moduleList, toolList,
true default_moduleList, default_toolList,
); byd_moduleList, byd_toolList
if (this.isAITO) { } = await uni.$api.systemApi.getMockData(true)
/**比亚迪 */
if (this.channelType == 2) {
await byd_moduleList.map(async e => {
if (e.receptionSourceDetailList)
e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(
e.receptionSourceDetailList,
"detailUrl"
);
})
byd_toolList = await uni.$api.systemApi.imgToBase64(byd_toolList, "shortTitleUrl")
} else if (this.channelType == 3) {
/**其他品牌 */
default_toolList = await uni.$api.systemApi.imgToBase64(default_toolList, "shortTitleUrl");
} else {
/**默认问界 */ /**默认问界 */
await moduleList.map(async (e) => { await moduleList.map(async (e) => {
if (e.receptionSourceDetailList) if (e.receptionSourceDetailList)
...@@ -192,20 +198,19 @@ export default { ...@@ -192,20 +198,19 @@ export default {
"url" "url"
) )
}); });
toolList = await uni.$api.systemApi.imgToBase64(toolList, "shortTitleUrl")
toolList = await uni.$api.systemApi.imgToBase64( }
toolList,
"shortTitleUrl"
);
} else default_toolList = await uni.$api.systemApi.imgToBase64(default_toolList, "shortTitleUrl");
this.moduleList = this.isAITO ? moduleList : default_moduleList
this.toolList = this.isAITO ? toolList : default_toolList
uni.$api.systemApi.updateMockData({ uni.$api.systemApi.updateMockData({
default_moduleList, default_moduleList,
default_toolList, default_toolList,
byd_moduleList,
byd_toolList,
moduleList, moduleList,
toolList toolList
}, ["moduleList", 'toolList', 'default_moduleList', 'default_toolList']); }, ["moduleList", 'toolList',
'default_moduleList', 'default_toolList',
'byd_moduleList','byd_toolList'
]);
}, },
errorImg (index) { errorImg (index) {
this.moduleList[index].showAlt = true; this.moduleList[index].showAlt = true;
...@@ -331,6 +336,27 @@ export default { ...@@ -331,6 +336,27 @@ export default {
this.getCarBrandsList(carBrandList, ++index) this.getCarBrandsList(carBrandList, ++index)
} else this.getCarBrandsList(carBrandList, ++index) } else this.getCarBrandsList(carBrandList, ++index)
} }
},
/**素材内容 */
setViewInfo () {
const {
default_moduleList,
default_toolList,
byd_moduleList,
byd_toolList,
moduleList,
toolList
} = uni.$storage.get("mock_data") || {}
this.moduleList = {
3: default_moduleList,
2: byd_moduleList,
1: moduleList
}[this.channelType]
this.toolList = {
3: default_toolList,
2: byd_toolList,
1: toolList
}[this.channelType]
} }
}, },
}; };
......
...@@ -58,4 +58,8 @@ ...@@ -58,4 +58,8 @@
/* 定义文本的行数 */ /* 定义文本的行数 */
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
}
.byd-layout {
background-image: url('@/assets/images/media/byd-media-bg.webp');
} }
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!