Commit aa0e9e01 by 李伟康

提交

1 parent a37540eb
...@@ -22,6 +22,7 @@ const getMockData = async (immediate = false) => { ...@@ -22,6 +22,7 @@ const getMockData = async (immediate = false) => {
const data = await http.uni_request({ url: configUrl }); const data = await http.uni_request({ url: configUrl });
data.createTime = Date.now(); data.createTime = Date.now();
data.moduleList = await imgToBase64(data.moduleList, 'thumbnail') data.moduleList = await imgToBase64(data.moduleList, 'thumbnail')
data.default_moduleList = await imgToBase64(data.default_moduleList, 'thumbnail')
serverConfig.mockCache = data; serverConfig.mockCache = data;
uni.$storage.set("mock_data", data); uni.$storage.set("mock_data", data);
return Promise.resolve(data); return Promise.resolve(data);
......
...@@ -60,4 +60,25 @@ module.exports = { ...@@ -60,4 +60,25 @@ module.exports = {
data.projectName = 'boutique' data.projectName = 'boutique'
return http.fetch('dj.api.smartcarlife.logout', data); return http.fetch('dj.api.smartcarlife.logout', data);
}, },
/**
* 查询门店品牌 "渠道标识channelType 1.问界 2.比亚迪 3.其他"
*/
getMerchantBrand (data = {}) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantBrand",
...data,
});
},
/**
* 查询门店保险权益
*/
getMerchantInsuranceList (data = {}) {
data.projectName = "boutique";
return http.post({
method: "dj.api.smartcarlife.recepiton.findMerchantItem",
...data,
});
},
}; };
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1029rpx 940rpx;} .sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1026rpx 1020rpx;}
.icon-addr { width: 32rpx; height: 32rpx; background-position: -957rpx -643rpx;} .icon-addr { width: 32rpx; height: 32rpx; background-position: -757rpx -470rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: -479rpx -741rpx;} .icon-aito { width: 320rpx; height: 36rpx; background-position: -495rpx -550rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -957rpx -690rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -479rpx -733rpx;}
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -830rpx -508rpx;} .icon-avatar { width: 96rpx; height: 96rpx; background-position: -127rpx -797rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -777rpx -797rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -830rpx -688rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -957rpx -737rpx;} .icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx 0rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -526rpx -733rpx;}
.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: -957rpx -533rpx;} .icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -973rpx -473rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -830rpx -619rpx;} .icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -238rpx -797rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -797rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: -349rpx -797rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -111rpx -797rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -460rpx -797rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -222rpx -797rpx;} .icon-face-success { width: 96rpx; height: 96rpx; background-position: -571rpx -797rpx;}
.icon-feedback { width: 64rpx; height: 64rpx; background-position: -957rpx -87rpx;} .icon-feedback { width: 64rpx; height: 64rpx; background-position: -111rpx -924rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -606rpx;} .icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -606rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -830rpx 0rpx;} .icon-home-active { width: 112rpx; height: 112rpx; background-position: -630rpx -415rpx;}
.icon-home { width: 112rpx; height: 112rpx; background-position: -830rpx -127rpx;} .icon-home { width: 112rpx; height: 112rpx; background-position: -479rpx -606rpx;}
.icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -957rpx -784rpx;} .icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -573rpx -733rpx;}
.icon-icon-close { width: 72rpx; height: 72rpx; background-position: -957rpx 0rpx;} .icon-icon-close { width: 72rpx; height: 72rpx; background-position: -733rpx -606rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -957rpx -831rpx;} .icon-icon-female { width: 32rpx; height: 32rpx; background-position: -620rpx -733rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -830rpx -730rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -667rpx -733rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -877rpx -730rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -714rpx -733rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -670rpx -415rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -830rpx -410rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -749rpx -606rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -761rpx -733rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -749rpx -653rpx;} .icon-invisible { width: 40rpx; height: 40rpx; background-position: -965rpx -628rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: 0rpx -908rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -419rpx -924rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -47rpx -908rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -466rpx -924rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -94rpx -908rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -513rpx -924rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -495rpx -415rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -560rpx -924rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -479rpx -606rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -830rpx -235rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -614rpx -606rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -830rpx -553rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -333rpx -797rpx;} .icon-pen { width: 120rpx; height: 120rpx; background-position: -495rpx -415rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -957rpx -470rpx;} .icon-qr-success { width: 96rpx; height: 96rpx; background-position: -682rpx -797rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -830rpx -254rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -973rpx -410rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -830rpx -381rpx;} .icon-record-active { width: 112rpx; height: 112rpx; background-position: -606rpx -606rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -141rpx -908rpx;} .icon-record { width: 112rpx; height: 112rpx; background-position: 0rpx -797rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -444rpx -797rpx;} .icon-scan { width: 32rpx; height: 32rpx; background-position: -607rpx -924rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -555rpx -797rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -793rpx -797rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -957rpx -588rpx;} .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-second-nav { width: 480rpx; height: 176rpx; background-position: 0rpx -415rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: -957rpx -166rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -666rpx -797rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -957rpx -245rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -957rpx -320rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -957rpx -395rpx;}
\ No newline at end of file \ No newline at end of file
.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 \ No newline at end of file
No preview for this file type

883 KB | W: | H:

972 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view class="layout">
<wnCanvas
canvasId="c-5"
:drawStatus="penSwitch"
custom
@scale="$emit('scale',$event)"
>
<template slot="customContent">
<view class="title">
<view class="text">{{title}}</view>
</view>
<view class="content">
<view
class="form-box"
:key="watchStatus"
>
<view class="form">
<template v-for="(i, index) in formObject">
<view
:class="['form-item' ,{active:focusIndex == index}]"
:key="index"
>
<view class="form-item-box">
<template v-if="i.type == 'input'">
<input
:type="i.inputType"
:maxlength="i.maxlength"
v-model="customerInfo[i.key]"
class="input"
@input="inputCustomer"
:placeholder="i.placeholder"
@focus="focusIndex = index"
@blur="resetFocusIndex"
:data-key="i.key"
/>
<template v-if="i.unit">
<view class="unit">{{i.unit}}</view>
</template>
</template>
<template v-else>
<view
:class="['select flex',{placeholderStyle:!customerInfo[i.key]}]"
@click="showPopup(i.popKey,index)"
>
<view class="value text-hide">{{customerInfo[i.key] ||i.placeholder}}</view>
<uni-icons
class="arrow"
type="right"
:size="16"
></uni-icons>
</view>
</template>
</view>
</view>
</template>
</view>
</view>
</view>
<insurance-table :isPreview="isPreview" :show="show" />
</template>
</wnCanvas>
<car-brands
ref="carBrandListVisible"
@select="handleSelect($event,'carBrandListVisible')"
@close="resetFocusIndex"
/>
</view>
</template>
<script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue'
import InsuranceTable from './components/InsuranceTable.vue'
export default {
components: { CarBrands, InsuranceTable },
props: {
penSwitch: Boolean,
show: Boolean,
title: String,
isPreview: Boolean
},
name: 'Reception',
data () {
return {
formObject: [
{
placeholder: '车主姓名',
key: 'customerName',
type: 'input',
inputType: 'text',
maxlength: 50,
},
{
placeholder: '车主电话',
key: 'phoneNumber',
type: 'input',
inputType: 'tel',
maxlength: 11,
},
{
placeholder: '车型',
key: 'carModel',
type: 'select',
popKey: 'carBrandListVisible',
},
{
placeholder: '新车开票价',
key: 'newCarFare',
type: 'input',
inputType: 'digit',
maxlength: 9,
unit: '元',
},
],
customerInfo: {},
focusIndex: -1,
insuranceList:[]
}
},
watch: {
watchCustomerInfo: {
immediate: true,
handler (newval) {
if (newval) this.customerInfo = newval
}
},
},
computed: {
watchCustomerInfo () {
return this.$store.state.user.customerInfo
},
watchStatus () {
return this.$store.state.user.historyStatus
},
},
methods: {
inputCustomer () {
this.$store.dispatch('setCustomerInfo', this.customerInfo)
},
handleSelect (item, popkey) {
this.$refs[popkey].close()
if (popkey == 'employeeBoxVisible') {
this.customerInfo.salesUuid = item.uuid
this.customerInfo.staffName = item.staffName
} else {
this.$refs.carBrandListVisible.close()
this.customerInfo.carModel = item.name
}
this.resetFocusIndex()
this.$store.dispatch('setCustomerInfo', this.customerInfo)
},
showPopup (e, index) {
this.focusIndex = index
this.$refs[e].open()
},
closeAllPopup () {
this.$refs.carBrandListVisible.close()
this.resetFocusIndex()
},
resetFocusIndex (e) {
this.focusIndex = -1
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)
// 判断是否为整数
if (!Number.isInteger(value)) value = String(value).replace(/(\d*\.?\d{0,2})\d*/, '$1')
this.customerInfo[key] = Number(value).toFixed(2) ? value : ''
this.inputCustomer()
}
}
},
}
}
</script>
<style scoped lang="scss">
.layout {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/media/insurance-bg.webp');
background-size: 100%;
.title {
padding: 120rpx 0 48rpx 128rpx;
.text {
line-height: 80rpx;
font-weight: 500;
font-size: 56rpx;
color: #333333;
}
}
.content {
.form-box {
height: 80rpx;
padding: 0 128rpx;
.form {
display: flex;
gap: 0 28rpx;
height: 100%;
&-item {
width: 368rpx;
height: 100%;
position: relative;
&-box {
position: relative;
width: 100%;
height: 100%;
background: #ffffff;
border: 3rpx solid #a8c1ff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 0 24rpx;
z-index: 2;
.unit {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 24rpx;
font-weight: 300;
font-size: 28rpx;
color: #292d33;
line-height: 36rpx;
}
}
.input,
.select {
width: 100%;
height: 100%;
border: none !important;
outline: none;
font-size: 28rpx;
color: #333333;
border-radius: 16rpx;
box-sizing: border-box;
line-height: 80rpx;
padding: 0 !important;
&::placeholder {
color: #999999;
}
}
.placeholderStyle {
color: #999999;
}
.arrow {
color: #999 !important;
margin-left: auto;
flex-shrink: 0;
}
}
.active {
&::after {
position: absolute;
left: -2rpx;
top: -2rpx;
width: calc(100% + 4rpx);
height: calc(100% + 4rpx);
content: '';
background-image: linear-gradient(#2f6af7, #75bcff);
box-shadow: 0 0 0 8rpx #2c66f71a;
border-radius: 16rpx;
}
}
}
}
}
}
</style>
<template>
<uni-popup
ref="popup"
type="bottom"
>
<view class="detail-box">
<view
class="close-box flex"
@click="close"
>
<uni-icons
type="clear"
:size="28"
color="#76787f"
></uni-icons>
</view>
<view class="sprite-icon icon-bao"></view>
<view class="title text-hide">
{{item.itemName}}
</view>
<view class="type">{{item.main}}</view>
<view class="content">
<rich-text :nodes="item.itemDesc"></rich-text>
</view>
</view>
</uni-popup>
</template>
<script type='text/ecmascript-6'>
export default {
props: {
item: Object
},
data () {
return {
}
},
mounted () {
},
methods: {
open () {
this.$refs.popup.open("center");
},
close () {
this.$refs.popup.close()
}
}
}
</script>
<style scoped lang='scss'>
.detail-box {
position: relative;
width: 720rpx;
max-height: 640rpx;
border-radius: 40rpx;
padding: 48rpx 64rpx 88rpx;
box-sizing: border-box;
overflow: hidden;
&::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 240rpx;
background-image: linear-gradient(180deg, #e5edfe 0%, #ffffff 100%);
content: '';
z-index: -1;
}
&::after {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
content: '';
background-color: #fff;
z-index: -2;
}
.icon-bao {
position: absolute;
top: 48rpx;
right: 68rpx;
}
.close-box {
position: absolute;
width: 136rpx;
height: 136rpx;
top: 0;
right: 0;
justify-content: center;
z-index: 2;
}
.title {
font-weight: 500;
font-size: 40rpx;
color: #292d33;
line-height: 64rpx;
padding: 48rpx 0 24rpx;
}
.type {
background: #f2f2f2;
border-radius: 6rpx;
padding: 2rpx 16rpx;
font-size: 26rpx;
color: #666666;
line-height: 40rpx;
width: fit-content;
}
.content {
margin-top: 48rpx;
max-height: 276rpx;
font-size: 30rpx;
color: #292d33;
line-height: 48rpx;
overflow-y: auto;
}
}
</style>
\ No newline at end of file \ No newline at end of file
const target = ["ip", "dev", "uat", "prod", "beta"]; const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2; const index = 1;
/** /**
* *
0本地 0本地
...@@ -51,7 +51,7 @@ const domain = { ...@@ -51,7 +51,7 @@ const domain = {
const djDomain = { const djDomain = {
ip: "http://192.168.2.59:8292", ip: "http://192.168.2.59:8292",
// ip: 'http://192.168.2.80:8558', // ip: 'http://192.168.2.80:8558',
dev: "https://dj.dev.glsx.com.cn", dev: "http://dj.dev.glsx.com.cn",
beta: "https://dj.beta.glsx.com.cn", //预发布 appid: wx9f91c1ec493eb425 beta: "https://dj.beta.glsx.com.cn", //预发布 appid: wx9f91c1ec493eb425
uat: "https://dj.test.glsx.com.cn", //测试 appid: wxe10067a63c1856ac uat: "https://dj.test.glsx.com.cn", //测试 appid: wxe10067a63c1856ac
prod: "https://dj.glsx.com.cn", prod: "https://dj.glsx.com.cn",
......
This diff could not be displayed because it is too large.
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.1.3",
"hammerjs": "^2.0.8", "hammerjs": "^2.0.8",
"number-precision": "^1.6.0",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"webpack-spritesmith": "^1.1.0" "webpack-spritesmith": "^1.1.0"
} }
......
...@@ -228,6 +228,7 @@ export default { ...@@ -228,6 +228,7 @@ export default {
this.id = ""; this.id = "";
this.type = ""; this.type = "";
this.setReceptionStatus(e); this.setReceptionStatus(e);
this.$store.dispatch("clearHistory")
}, 1500); }, 1500);
}, },
changeTab (index) { changeTab (index) {
......
...@@ -35,8 +35,8 @@ export default { ...@@ -35,8 +35,8 @@ export default {
actived: false actived: false
}, },
{ {
sceneName: '延保', sceneName: '会员权益/升级',
sceneDesc: '延保升级', sceneDesc: '权益、延保',
sceneType: 0, sceneType: 0,
actived: false actived: false
}, },
...@@ -103,9 +103,19 @@ export default { ...@@ -103,9 +103,19 @@ export default {
} }
}, },
jump (userInfo, data) { async jump (userInfo, data) {
uni.hideLoading() uni.hideLoading()
if (data) userInfo.loginRoleOnSelectMerchant = data?.loginRoleOnSelectMerchant if (data) userInfo.loginRoleOnSelectMerchant = data?.loginRoleOnSelectMerchant
let { shopMerchantId } = userInfo
//调接口获取门店主营品牌
uni.showLoading({
mask: true
})
const res = await uni.$api.userApi.getMerchantBrand({
merchantId: shopMerchantId
})
uni.hideLoading()
userInfo.channelType = res.channelType || 1 // 默认1 1问界 2 比亚迪 3 其他
uni.$storage.set('userInfo', userInfo) uni.$storage.set('userInfo', userInfo)
let url = { let url = {
1: '/pages/boutique/index', 1: '/pages/boutique/index',
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
:ulList="item.ulList" :ulList="item.ulList"
:screenList="item.screenList" :screenList="item.screenList"
@onProductModel="productModelStatus = $event" @onProductModel="productModelStatus = $event"
:isPreview="type == 'preview'"
/> />
</view> </view>
</template> </template>
...@@ -88,6 +89,8 @@ import payPop from "./components/payPop.vue"; ...@@ -88,6 +89,8 @@ import payPop from "./components/payPop.vue";
import FinishStep from '@/components/FinishStep.vue'; import FinishStep from '@/components/FinishStep.vue';
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
import informationEntry from './components/informationEntry.vue' import informationEntry from './components/informationEntry.vue'
import insurance from '@/components/Insurance/Insurance.vue'
export default { export default {
components: { components: {
ToolBox, ToolBox,
...@@ -98,7 +101,8 @@ export default { ...@@ -98,7 +101,8 @@ export default {
Guarantee, Guarantee,
History, History,
ThreeGuarantees, ThreeGuarantees,
informationEntry informationEntry,
insurance
}, },
props: { props: {
id: [String, Number], id: [String, Number],
......
...@@ -94,9 +94,10 @@ export default { ...@@ -94,9 +94,10 @@ export default {
return false; return false;
}, },
onLoad () { onLoad () {
const mock_data = uni.$storage.get("mock_data") || {}; const userInfo = uni.$storage.get("userInfo"),
this.moduleList = mock_data.moduleList || []; mock_data = uni.$storage.get("mock_data") || {}
this.toolList = mock_data.toolList || []; this.moduleList = (userInfo.channelType == 3 ? mock_data.default_moduleList : mock_data.moduleList) || [];
this.toolList = (userInfo.channelType == 3 ? mock_data.default_toolList : mock_data.toolList) || [];
this.getSoure(); this.getSoure();
this.get_Vehicle_Sales_Data(); this.get_Vehicle_Sales_Data();
}, },
...@@ -172,9 +173,13 @@ export default { ...@@ -172,9 +173,13 @@ export default {
}, },
// 查询素材 // 查询素材
async getSoure () { async getSoure () {
let { moduleList, toolList } = await uni.$api.systemApi.getMockData( const { channelType } = uni.$storage.get("userInfo");
let { moduleList, toolList, default_moduleList, default_toolList } = await uni.$api.systemApi.getMockData(
true true
); );
if (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)
e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64( e.receptionSourceDetailList = await uni.$api.systemApi.imgToBase64(
...@@ -192,31 +197,35 @@ export default { ...@@ -192,31 +197,35 @@ export default {
"url" "url"
) )
}); });
toolList = await uni.$api.systemApi.imgToBase64( toolList = await uni.$api.systemApi.imgToBase64(
toolList, toolList,
"shortTitleUrl" "shortTitleUrl"
); );
this.moduleList = moduleList; }
this.toolList = toolList this.moduleList = channelType == 3 ? default_moduleList : moduleList;
this.toolList = channelType == 3 ? default_toolList : toolList
uni.$api.systemApi.updateMockData({ uni.$api.systemApi.updateMockData({
default_moduleList,
default_toolList,
moduleList, moduleList,
toolList toolList
}, ["moduleList", 'toolList']); }, ["moduleList", 'toolList', 'default_moduleList', 'default_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();
...@@ -309,6 +318,7 @@ export default { ...@@ -309,6 +318,7 @@ export default {
this.tabIndex = index; this.tabIndex = index;
if (index == 0) this.init(); if (index == 0) this.init();
}, },
}, },
}; };
</script> </script>
......
...@@ -17,6 +17,7 @@ export default { ...@@ -17,6 +17,7 @@ export default {
phoneNumber: "", phoneNumber: "",
salesUuid: "", salesUuid: "",
staffName: "", staffName: "",
newCarFare:''
}, },
historyStatus: Date.now(), historyStatus: Date.now(),
carBrands: [], carBrands: [],
...@@ -41,6 +42,7 @@ export default { ...@@ -41,6 +42,7 @@ export default {
phoneNumber: "", phoneNumber: "",
salesUuid: "", salesUuid: "",
staffName: "", staffName: "",
newCarFare:''
}; };
uni.$storage.set("customerInfo", JSON.stringify(info)); uni.$storage.set("customerInfo", JSON.stringify(info));
state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}"); state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}");
......
...@@ -50,3 +50,12 @@ ...@@ -50,3 +50,12 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.text-two-line {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
/* 定义文本的行数 */
overflow: hidden;
text-overflow: ellipsis;
}
\ 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!