Commit 94f0107d by 李伟康

commit 提交

1 parent f216f8c2
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1026rpx 1020rpx;}
.icon-addr { width: 32rpx; height: 32rpx; background-position: -757rpx -470rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: -495rpx -550rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -479rpx -733rpx;}
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -127rpx -797rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -830rpx -688rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx 0rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -526rpx -733rpx;}
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1028rpx;}
.icon-addr { width: 32rpx; height: 32rpx; background-position: -1261rpx -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;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -111rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
.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: -973rpx -473rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -238rpx -797rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -349rpx -797rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -460rpx -797rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -571rpx -797rpx;}
.icon-feedback { width: 64rpx; height: 64rpx; background-position: -111rpx -924rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -606rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -630rpx -415rpx;}
.icon-home { width: 112rpx; height: 112rpx; background-position: -479rpx -606rpx;}
.icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -573rpx -733rpx;}
.icon-icon-close { width: 72rpx; height: 72rpx; background-position: -733rpx -606rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -620rpx -733rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -667rpx -733rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -714rpx -733rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -830rpx -410rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -761rpx -733rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -965rpx -628rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -419rpx -924rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -466rpx -924rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -513rpx -924rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -560rpx -924rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -830rpx -235rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -830rpx -553rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -495rpx -415rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -682rpx -797rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -973rpx -410rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -606rpx -606rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: 0rpx -797rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -607rpx -924rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -793rpx -797rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -904rpx -797rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -973rpx -688rpx;}
.icon-second-nav { width: 480rpx; height: 176rpx; background-position: 0rpx -415rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: -190rpx -924rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: 0rpx -924rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -965rpx -553rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -269rpx -924rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -344rpx -924rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -654rpx -924rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -757rpx -415rpx;}
\ No newline at end of file
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1041rpx -557rpx;}
.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;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -825rpx -726rpx;}
.icon-feedback { width: 64rpx; height: 64rpx; background-position: -1216rpx -469rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -638rpx -558rpx;}
.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-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-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;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -503rpx -558rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -936rpx -726rpx;}
.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-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-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

972 KB | 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
......@@ -40,6 +40,7 @@
:placeholder="i.placeholder"
:disabled="customerType == 0"
@input="inputCustomer"
placeholder-style="color:#c9c9c9;"
/>
</template>
<template v-else>
......
......@@ -57,7 +57,10 @@
</view>
</view>
</view>
<insurance-table :isPreview="isPreview" :show="show" />
<insurance-table
:isPreview="isPreview"
:show="show"
/>
</template>
</wnCanvas>
<car-brands
......@@ -114,7 +117,7 @@ export default {
],
customerInfo: {},
focusIndex: -1,
insuranceList:[]
insuranceList: []
}
},
watch: {
......@@ -162,10 +165,10 @@ export default {
if (e?.currentTarget && e?.target) {
const { key } = e.currentTarget.dataset
if (key == 'newCarFare') {
let value = Number(e.target.value > 999999.99 ? 999999.99 : e.target.value)
let value = Number(e.target.value >= 999999 ? 999999 : 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 : ''
this.customerInfo[key] = Number(value).toFixed(2) ? value > 0 ? value : '' : ''
this.inputCustomer()
}
}
......@@ -213,6 +216,8 @@ export default {
box-sizing: border-box;
padding: 0 24rpx;
z-index: 2;
display: flex;
align-items: center;
.unit {
position: absolute;
top: 50%;
......@@ -227,21 +232,23 @@ export default {
.input,
.select {
width: 100%;
height: 100%;
height: 60rpx;
border: none !important;
outline: none;
font-size: 28rpx;
color: #333333;
border-radius: 16rpx;
box-sizing: border-box;
line-height: 80rpx;
padding: 0 !important;
display: flex;
align-items: center;
&::placeholder {
color: #999999;
}
}
.placeholderStyle {
color: #999999;
line-height: 80rpx;
}
.arrow {
color: #999 !important;
......
......@@ -2,7 +2,9 @@
<uni-popup
ref="popup"
type="bottom"
>
<!-- :mask-click="false" -->
<view class="detail-box">
<view
class="close-box flex"
......
......@@ -116,6 +116,7 @@ export default {
})
uni.hideLoading()
userInfo.channelType = res.channelType || 1 // 默认1 1问界 2 比亚迪 3 其他
// userInfo.channelType = 3
uni.$storage.set('userInfo', userInfo)
let url = {
1: '/pages/boutique/index',
......
......@@ -83,6 +83,13 @@ export default {
recording: false,
};
},
computed: {
/**是否是问界 */
isAITO () {
const { channelType } = uni.$storage.get("userInfo")
return (channelType != 2 && channelType != 3)
}
},
onBackPress (options) {
if (options.from === "backbutton") {
// 物理返回按钮触发
......@@ -94,10 +101,14 @@ export default {
return false;
},
onLoad () {
const userInfo = uni.$storage.get("userInfo"),
mock_data = uni.$storage.get("mock_data") || {}
this.moduleList = (userInfo.channelType == 3 ? mock_data.default_moduleList : mock_data.moduleList) || [];
this.toolList = (userInfo.channelType == 3 ? mock_data.default_toolList : mock_data.toolList) || [];
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.getSoure();
this.get_Vehicle_Sales_Data();
},
......@@ -159,12 +170,10 @@ export default {
},
// 查询素材
async getSoure () {
const { channelType } = uni.$storage.get("userInfo");
let { moduleList, toolList, default_moduleList, default_toolList } = await uni.$api.systemApi.getMockData(
true
);
if (channelType == 3) default_toolList = await uni.$api.systemApi.imgToBase64(default_toolList, "shortTitleUrl");
else {
if (this.isAITO) {
/**默认问界 */
await moduleList.map(async (e) => {
if (e.receptionSourceDetailList)
......@@ -188,9 +197,9 @@ export default {
toolList,
"shortTitleUrl"
);
}
this.moduleList = channelType == 3 ? default_moduleList : moduleList;
this.toolList = channelType == 3 ? default_toolList : toolList
} 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({
default_moduleList,
default_toolList,
......@@ -202,16 +211,16 @@ export default {
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();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!