Commit 4fde85ea by 李伟康

commit 比亚迪需求

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

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