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