Commit 4fde85ea by 李伟康

commit 比亚迪需求

1 parent f5fcaffa
.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;}
......@@ -8,7 +8,7 @@
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;}
.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;}
......@@ -19,16 +19,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;}
......@@ -37,15 +37,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

1.09 MB | W: | H:

1.09 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -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
},
{
......
......@@ -101,7 +101,7 @@ export default {
maxlength: 11,
},
{
placeholder: '车型',
placeholder: '品牌车型',
key: 'carModel',
type: 'select',
popKey: 'carBrandListVisible',
......
const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 4;
const index = 1;
/**
*
0本地
......
......@@ -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,35 +198,34 @@ 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;
},
async start () {
const result = await this.$permision.requestAndroidPermission(
"android.permission.RECORD_AUDIO"
);
if (result !== 1) {
uni.showToast({
title: "为了记录语音通话,请打开录音权限",
icon: "none",
});
return;
}
// const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO"
// );
// if (result !== 1) {
// uni.showToast({
// title: "为了记录语音通话,请打开录音权限",
// icon: "none",
// });
// return;
// }
this.getSoure();
this.clearHistory();
this.$refs.home.startAudio();
......@@ -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!