Commit 1642690d by 前端

Merge branch 'v1.0.1' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.1

2 parents 87758d7d bc1397d0
...@@ -5,14 +5,15 @@ export default { ...@@ -5,14 +5,15 @@ export default {
...mapState("audio", ["isEnd", "isStart"]), ...mapState("audio", ["isEnd", "isStart"]),
}, },
onLaunch: function () { onLaunch: function () {
setTimeout(() => {
plus.screen.unlockOrientation(); //解除锁定屏幕方向
plus.screen.lockOrientation("landscape-primary"); plus.screen.lockOrientation("landscape-primary");
}, 300);
uni.setKeepScreenOn({ uni.setKeepScreenOn({
keepScreenOn: true, keepScreenOn: true,
}); });
}, },
onShow: function () { onShow: function () {},
console.log("app显示");
},
onHide: function () { onHide: function () {
// if (this.isStart && !this.isEnd) { // if (this.isStart && !this.isEnd) {
// console.log("录音"); // console.log("录音");
......
import http from "../request/http"; import http from "../request/http";
module.exports = { module.exports = {
search(data) { search (data) {
return http.post({ return http.post({
method: "scrm.api.carlife.weapp.homeSearch.search", method: "scrm.api.carlife.weapp.homeSearch.search",
pageSize: 10, pageSize: 10,
...@@ -9,14 +9,14 @@ module.exports = { ...@@ -9,14 +9,14 @@ module.exports = {
}); });
}, },
// 查询接待素材 // 查询接待素材
findSoureList() { findSoureList () {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
projectName: "boutique", projectName: "boutique",
}); });
}, },
// 查询门店支付配置 // 查询门店支付配置
findPayInfo(data) { findPayInfo (data) {
return http.post({ return http.post({
method: method:
"dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId", "dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId",
...@@ -25,21 +25,21 @@ module.exports = { ...@@ -25,21 +25,21 @@ module.exports = {
}); });
}, },
// 查询门店支付配置 // 查询门店支付配置
saveRecCustomer(data) { saveRecCustomer (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer", method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer",
projectName: "boutique", projectName: "boutique",
...data, ...data,
}); });
}, },
getToken(data) { getToken (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken", method: "dj.api.smartcarlife.recepiton.customer.oss.getToken",
projectName: "boutique", projectName: "boutique",
}); });
}, },
/** 查询接待素材详情 */ /** 查询接待素材详情 */
getFindSoureDetail(data) { getFindSoureDetail (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureDetailList", method: "dj.api.smartcarlife.recepiton.soure.findSoureDetailList",
projectName: "boutique", projectName: "boutique",
...@@ -47,18 +47,29 @@ module.exports = { ...@@ -47,18 +47,29 @@ module.exports = {
}); });
}, },
// 历史订单列表 // 历史订单列表
getQuotationList(data) { getQuotationList (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page", method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page",
projectName: "boutique", projectName: "boutique",
...data, ...data,
}); });
}, },
/** 获取门店主营车品牌 */
getMerchantCarBrandList (merchantIdList) {
return http.post({
method: 'merchants.api.open.merchant.info',
projectName: 'merchants',
merchantIdList,
merchantInfoSwitch: {
brandFlag: true
}
}, false, 'merchant')
},
/** /**
* 车型 * 车型
* *
*/ */
getCarBrandsList(data) { getCarBrandsList (data) {
return http.post( return http.post(
{ {
method: "scrm.api.carlife.common.getCarSeriesList", method: "scrm.api.carlife.common.getCarSeriesList",
...@@ -71,7 +82,7 @@ module.exports = { ...@@ -71,7 +82,7 @@ module.exports = {
/** /**
* 推荐人 * 推荐人
*/ */
getEmployeeList(data) { getEmployeeList (data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.employee.getByMerchantId", method: "dj.api.smartcarlife.employee.getByMerchantId",
projectName: "boutique", projectName: "boutique",
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
> >
<view <view
class="tips-wrapper" class="tips-wrapper"
:style="{ width: popupW + 'rpx', minHeight: popupH + 'rpx' }" :style="{ width: popupW + 'rpx', minHeight: popupH + 'rpx',maxHeight: maxHeight + 'rpx' }"
> >
<view class="tips-content"> <view class="tips-content">
<view class="tips-title" <view class="tips-title"
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
type: String, type: String,
default: "取消", default: "取消",
}, },
maxHeight:Number
}, },
methods: { methods: {
close() { close() {
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"> <view class="bg">
<glsx-image src="media/bg-1.png" /> <image src="../../../assets/images/media/bg-1.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="title">问界·交车告知书</view> <view class="title">问界·交车告知书</view>
...@@ -55,10 +55,29 @@ ...@@ -55,10 +55,29 @@
</template> </template>
</view> </view>
<MessageBox <MessageBox
ref="carBrandListVisible"
position="bottom"
:isFooter="false"
title="请选择车品牌"
>
<view class="select-box">
<view
class="select-item"
:class="{ checked:carBrand == item.name }"
@click="selectCar(item)"
v-for="(item, index) in carBrandList"
:key="index"
>
{{ item.name }}
</view>
</view>
</MessageBox>
<MessageBox
ref="carBoxVisible" ref="carBoxVisible"
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择车型" title="请选择车型"
:maxHeight="1000"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -77,6 +96,7 @@ ...@@ -77,6 +96,7 @@
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择销售" title="请选择销售"
:maxHeight="1000"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -94,7 +114,6 @@ ...@@ -94,7 +114,6 @@
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import env from '../../../env'
export default { export default {
props: { props: {
views: Array, views: Array,
...@@ -103,6 +122,7 @@ export default { ...@@ -103,6 +122,7 @@ export default {
name: 'Media_1', name: 'Media_1',
data () { data () {
return { return {
carBrandList: [],
carlist: [], carlist: [],
employeeList: [], employeeList: [],
formObject: [ formObject: [
...@@ -117,7 +137,7 @@ export default { ...@@ -117,7 +137,7 @@ export default {
label: '车型', label: '车型',
key: 'carModel', key: 'carModel',
type: 'select', type: 'select',
popKey: 'carBoxVisible' popKey: 'carBrandListVisible'
}, },
{ {
label: '电话', label: '电话',
...@@ -133,16 +153,22 @@ export default { ...@@ -133,16 +153,22 @@ export default {
popKey: 'employeeBoxVisible' popKey: 'employeeBoxVisible'
} }
], ],
customerInfo: this.$store.state.user.customerInfo customerInfo: this.$store.state.user.customerInfo,
carBrand: ''
} }
}, },
mounted () { mounted () {
let userInfo = uni.$storage.get('userInfo') let userInfo = uni.$storage.get('userInfo')
uni.$api.commonApi.getCarBrandsList({ uni.$api.commonApi.getMerchantCarBrandList([userInfo.shopMerchantId]).then(({ data }) => {
brandId: env.index == 3 ? 2365 : 2978, let list = data[0].carBrandList,
childBrandId: env.index == 3 ? 2695 : 3454 carBrandList = []
}).then(res => { list.map(e => {
this.carlist = res e.childs.map(i => {
i.brandId = e.id
carBrandList.push(i)
})
})
this.carBrandList = carBrandList
}) })
uni.$api.commonApi.getEmployeeList({ uni.$api.commonApi.getEmployeeList({
merchantId: userInfo.shopMerchantId, merchantId: userInfo.shopMerchantId,
...@@ -154,12 +180,27 @@ export default { ...@@ -154,12 +180,27 @@ export default {
inputCustomer () { inputCustomer () {
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
}, },
selectCar (e) {
uni.showLoading()
this.carBrand = e.name
uni.$api.commonApi.getCarBrandsList({
brandId: e.brandId,
childBrandId: e.id
}).then(res => {
uni.hideLoading()
this.carlist = res
this.$refs.carBoxVisible.open()
}).catch(() => uni.hideLoading())
},
handleSelect (item, popkey) { handleSelect (item, popkey) {
this.$refs[popkey].close() this.$refs[popkey].close()
if (popkey == 'employeeBoxVisible') { if (popkey == 'employeeBoxVisible') {
this.customerInfo.salesUuid = item.uuid this.customerInfo.salesUuid = item.uuid
this.customerInfo.staffName = item.staffName this.customerInfo.staffName = item.staffName
} else this.customerInfo.carModel = item.name } else {
this.$refs.carBrandListVisible.close()
this.customerInfo.carModel = item.name
}
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
}, },
showPopup (e) { showPopup (e) {
...@@ -179,6 +220,10 @@ export default { ...@@ -179,6 +220,10 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 432rpx; height: 432rpx;
image{
width: 100%;
height: 100%;
}
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
...@@ -249,7 +294,7 @@ export default { ...@@ -249,7 +294,7 @@ export default {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 20rpx; gap: 20rpx;
overflow-y: scroll; overflow-y: scroll;
height: 100%; max-height: 50vh;
padding-bottom: 60rpx; padding-bottom: 60rpx;
.select-item { .select-item {
text-align: center; text-align: center;
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"> <view class="bg">
<glsx-image src="media/bg-2.png" /> <image src="../../../assets/images/media/bg-2.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="title">问界·商城延保价格明细</view> <view class="title">问界·商城延保价格明细</view>
...@@ -66,6 +66,10 @@ export default { ...@@ -66,6 +66,10 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 368rpx; height: 368rpx;
image{
width: 100%;
height: 100%;
}
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
...@@ -83,7 +87,7 @@ export default { ...@@ -83,7 +87,7 @@ export default {
} }
.canvas-box { .canvas-box {
view { view {
animation: show-view 0.25s forwards; animation: show-view 0.15s forwards;
} }
} }
} }
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"> <view class="bg">
<glsx-image src="media/bg-5.png" /> <image src="../../../assets/images/media/bg-5.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="canvas-box"> <view class="canvas-box">
...@@ -57,6 +57,10 @@ export default { ...@@ -57,6 +57,10 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 368rpx; height: 368rpx;
image{
width: 100%;
height: 100%;
}
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"> <view class="bg">
<glsx-image src="media/bg-4.png" /> <image src="../../../assets/images/media/bg-4.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="title">问界·汽车产品三包凭证</view> <view class="title">问界·汽车产品三包凭证</view>
...@@ -66,6 +66,10 @@ export default { ...@@ -66,6 +66,10 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 368rpx; height: 368rpx;
image{
width: 100%;
height: 100%;
}
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
...@@ -83,7 +87,7 @@ export default { ...@@ -83,7 +87,7 @@ export default {
} }
.canvas-box { .canvas-box {
view { view {
animation: show-view 0.25s forwards; animation: show-view 0.15s forwards;
} }
} }
} }
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"> <view class="bg">
<glsx-image src="media/bg-5.png" /> <image src="../../../assets/images/media/bg-5.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="canvas-box"> <view class="canvas-box">
...@@ -53,6 +53,10 @@ export default { ...@@ -53,6 +53,10 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 368rpx; height: 368rpx;
image{
width: 100%;
height: 100%;
}
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
......
<template> <template>
<view class="layout"> <view class="layout">
<view class="bg"> <view class="bg">
<glsx-image src="media/bg-6.png" /> <image src="../../../assets/images/media/bg-6.webp" />
</view> </view>
<view class="content"> <view class="content">
<view class="title">历史成交记录</view> <view class="title">历史成交记录</view>
...@@ -9,8 +9,7 @@ ...@@ -9,8 +9,7 @@
<Tabs :list="list" @tabclick="tabclick" /> <Tabs :list="list" @tabclick="tabclick" />
</template> </template>
<view class="card-list"> <view class="card-list">
<!-- <uni-grid :column="3" :show-border="false" :square="false"> <template v-if="historyList.length > 0">
<uni-grid-item v-for="item in historyList" :key="item.id"> -->
<view class="card-item" v-for="item in historyList" :key="item.id"> <view class="card-item" v-for="item in historyList" :key="item.id">
<view class="name">{{ nameHide(item.customerName) }}</view> <view class="name">{{ nameHide(item.customerName) }}</view>
<view class="goods-name">{{ item.goodsName }}</view> <view class="goods-name">{{ item.goodsName }}</view>
...@@ -37,10 +36,24 @@ ...@@ -37,10 +36,24 @@
><view class="price">¥{{ item.equityPrice }}</view></view ><view class="price">¥{{ item.equityPrice }}</view></view
> >
</view> </view>
</template>
<template v-else>
<view class="no-data">
<glsx-image
class="no-data-img"
src="media/no-data.png"
mode="scaleToFill"
/>
<view class="no-data-text">暂无数据</view>
</view>
</template>
<!-- <uni-grid :column="3" :show-border="false" :square="false">
<uni-grid-item v-for="item in historyList" :key="item.id"> -->
<!-- </uni-grid-item> <!-- </uni-grid-item>
</uni-grid> --> </uni-grid> -->
</view> </view>
<view class="end-text" v-if="isEnd">我是一个有底线的人</view> <view class="end-text" v-if="historyList.length > 0 && isEnd">我是一个有底线的人</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -99,10 +112,9 @@ export default { ...@@ -99,10 +112,9 @@ export default {
this.shopMerchantId = shopMerchantId this.shopMerchantId = shopMerchantId
this.getQuotationList(); this.getQuotationList();
}, },
async getQuotationList() { async getQuotationList(isSwitch = false) {
const { goodsName, shopMerchantId, currentPage } = this const { goodsName, shopMerchantId, currentPage } = this
this.currentPage++ this.currentPage++
this.isEnd = false
const data = await uni.$api.commonApi.getQuotationList({ const data = await uni.$api.commonApi.getQuotationList({
currentPage, currentPage,
pageSize: 18, pageSize: 18,
...@@ -110,15 +122,23 @@ export default { ...@@ -110,15 +122,23 @@ export default {
orderStatus: 3, orderStatus: 3,
goodsName goodsName
}) })
if (data.list.length !== 0) { if (isSwitch) {
this.historyList = data.list
this.isEnd = false
} else {
if (data.list.length > 0) {
this.historyList = this.historyList.concat(data.list) this.historyList = this.historyList.concat(data.list)
this.isEnd = false
} else { } else {
this.isEnd = true this.isEnd = true
} }
}
}, },
tabclick(index) { tabclick(index) {
this.goodsName = this.list[index].value this.goodsName = this.list[index].value
this.getQuotationList() this.currentPage = 1
this.getQuotationList(true)
}, },
// 脱敏 // 脱敏
nameHide(name) { nameHide(name) {
...@@ -148,6 +168,10 @@ export default { ...@@ -148,6 +168,10 @@ export default {
top: 0; top: 0;
width: 100%; width: 100%;
height: 176rpx; height: 176rpx;
image{
width: 100%;
height: 100%;
}
} }
.content { .content {
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
...@@ -163,11 +187,13 @@ export default { ...@@ -163,11 +187,13 @@ export default {
text-align: center; text-align: center;
} }
.card-list { .card-list {
position: relative;
margin: 0 72rpx; margin: 0 72rpx;
display: grid; display: grid;
grid-template-columns: repeat(3, 664rpx); grid-template-columns: repeat(3, 664rpx);
justify-content: center; justify-content: center;
grid-gap: 32rpx; grid-gap: 32rpx;
min-height: calc(100vh - 368rpx);
.card-item { .card-item {
margin: 16rpx auto; margin: 16rpx auto;
padding: 24rpx 40rpx; padding: 24rpx 40rpx;
...@@ -214,4 +240,20 @@ export default { ...@@ -214,4 +240,20 @@ export default {
text-align: center; text-align: center;
margin: 50rpx 0; margin: 50rpx 0;
} }
.no-data {
position: absolute;
left: 50%;
top: 30%;
transform: translate(-50%, -50%);
&-img {
width: 640rpx;
height: 272rpx;
}
&-text {
font-size: 32rpx;
color: #999999;
text-align: center;
margin-top: 24rpx;
}
}
</style> </style>
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
:class="['btn', {hideIcon:!show}]" :class="['btn', {hideIcon:!show}]"
@click="show = false" @click="show = false"
> >
<glsx-image <image
src="tool/file.png" src="../../../assets/images/tool/file.png"
class="icon" class="icon"
/> />
文件夹 文件夹
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
@click="jump(i)" @click="jump(i)"
> >
<view class="icon"> <view class="icon">
<glsx-image <image
:src="i.icon" :src="i.icon"
class="icon" class="icon"
/> />
...@@ -31,10 +31,13 @@ ...@@ -31,10 +31,13 @@
</view> </view>
</template> </template>
<template v-if="type != 'preview'"> <template v-if="type != 'preview'">
<view class="item" @click="finish"> <view
class="item"
@click="finish"
>
<view class="icon"> <view class="icon">
<glsx-image <image
src="tool/finish.png" src="../../../assets/images/tool/finish.png"
class="icon" class="icon"
/> />
</view> </view>
...@@ -58,32 +61,32 @@ export default { ...@@ -58,32 +61,32 @@ export default {
{ {
id: 1, id: 1,
label: '交车告知书', label: '交车告知书',
icon: 'tool/1.png' icon: require('../../../assets/images/tool/1.png')
}, },
{ {
id: 2, id: 2,
label: '延保明细', label: '延保明细',
icon: 'tool/2.png' icon: require('../../../assets/images/tool/2.png')
}, },
{ {
id: 3, id: 3,
label: '保修告知书', label: '保修告知书',
icon: 'tool/3.png' icon: require('../../../assets/images/tool/3.png')
}, },
{ {
id: 4, id: 4,
label: '三包政策', label: '三包政策',
icon: 'tool/4.png' icon: require('../../../assets/images/tool/4.png')
}, },
{ {
id: 6, id: 6,
label: '历史成交', label: '历史成交',
icon: 'tool/5.png' icon: require('../../../assets/images/tool/5.png')
}, },
{ {
id: 5, id: 5,
label: '质保升级', label: '质保升级',
icon: 'tool/6.png' icon: require('../../../assets/images/tool/6.png')
} }
] ]
} }
...@@ -175,7 +178,7 @@ export default { ...@@ -175,7 +178,7 @@ export default {
display: flex; display: flex;
height: 896rpx; height: 896rpx;
} }
.preview{ .preview {
height: 776rpx; height: 776rpx;
} }
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<uni-icons type="left" :size="32"></uni-icons> <uni-icons type="left" :size="32"></uni-icons>
</view> </view>
</view> </view>
<tool-box :type="type" @choose="choose" @finish="open" />
<view :class="['view', { showView: id == 1 }]"> <view :class="['view', { showView: id == 1 }]">
<media_1 :views="media[1]" :penSwitch="type != 'preview' && drawStatus" /> <media_1 :views="media[1]" :penSwitch="type != 'preview' && drawStatus" />
</view> </view>
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
</view> </view>
<pay-pop ref="pay"></pay-pop> <pay-pop ref="pay"></pay-pop>
<template v-if="type != 'preview'"> <template v-if="type != 'preview'">
<tool-box :type="type" @choose="choose" @finish="open" />
<view class="pen-box" @click="drawStatus = !drawStatus"> <view class="pen-box" @click="drawStatus = !drawStatus">
<glsx-image <image
:src="!drawStatus ? 'media/pen.png' : 'media/pen-active.png'" :src="!drawStatus ? defaulePen : activePen"
/> />
</view> </view>
</template> </template>
<MessageBox <MessageBox
ref="finish" ref="finish"
@cancel="$refs.finish.close()" @cancel="$refs.finish.close()"
...@@ -101,6 +101,8 @@ export default { ...@@ -101,6 +101,8 @@ export default {
}, },
drawStatus: false, drawStatus: false,
finishVisible: false, finishVisible: false,
defaulePen: require('../../assets/images/media/pen.png'),
activePen: require('../../assets/images/media/pen-active.png')
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -182,7 +184,7 @@ export default { ...@@ -182,7 +184,7 @@ export default {
.showView { .showView {
z-index: 2; z-index: 2;
display: block; display: block;
animation: show-view 0.25s ; animation: show-view-left 0.15s ;
} }
.pen-box { .pen-box {
position: fixed; position: fixed;
...@@ -191,7 +193,23 @@ export default { ...@@ -191,7 +193,23 @@ export default {
transform: translateY(-50%); transform: translateY(-50%);
width: 120rpx; width: 120rpx;
height: 120rpx; height: 120rpx;
z-index: 3; z-index: 2;
box-shadow: 0 4px 12px 0 #00000033; box-shadow: 0 4px 12px 0 #00000033;
border-radius: 16rpx;
overflow: hidden;
image{
width: 100%;
height: 100%;
}
}
@keyframes show-view-left {
0%{
transform: translateX(1000%);
box-shadow: 0 8rpx 22rpx 0 #00000029;
}
100%{
transform: translateX(0);
box-shadow: 0 8rpx 22rpx 0 #00000029;
}
} }
</style> </style>
...@@ -3,16 +3,16 @@ ...@@ -3,16 +3,16 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:39:40 * @Date: 2024-04-07 14:39:40
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-10 09:38:27 * @LastEditTime: 2024-04-10 15:32:07
--> -->
<template> <template>
<view class="container" @click="handleTouchStart()"> <view class="container" @click="handleTouchStart()">
<view class="left-side"> <view class="left-side">
<!-- 左侧内容 --> <!-- 左侧内容 -->
<view class="user-info"> <view class="user-info">
<glsx-image <image
class="user-avatar" class="user-avatar"
src="home/icon-avatar.png" src="../../assets/images/home/icon-avatar.png"
mode="scaleToFill" mode="scaleToFill"
/> />
<view class="user-name">{{ userInfo.name }}</view> <view class="user-name">{{ userInfo.name }}</view>
...@@ -20,17 +20,17 @@ ...@@ -20,17 +20,17 @@
</view> </view>
<view class="left-footer"> <view class="left-footer">
<view class="logout" @click="logout"> <view class="logout" @click="logout">
<glsx-image <image
class="icon-logout" class="icon-logout"
src="home/icon-logout.png" src="../../assets/images/home/icon-logout.png"
mode="scaleToFill" mode="scaleToFill"
/> />
<view>退出</view> <view>退出</view>
</view> </view>
<view class="store-addr"> <view class="store-addr">
<glsx-image <image
class="icon-addr" class="icon-addr"
src="home/icon-addr.png" src="../../assets/images/home/icon-addr.png"
mode="scaleToFill" mode="scaleToFill"
/> />
<view class="addr-text">{{ userInfo.shopMerchantName }}</view> <view class="addr-text">{{ userInfo.shopMerchantName }}</view>
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
<!-- 右侧内容 --> <!-- 右侧内容 -->
<view class="home-title">客户接待</view> <view class="home-title">客户接待</view>
<view class="start" @click="start"> <view class="start" @click="start">
<glsx-image <image
class="icon-start" class="icon-start"
src="home/icon-handshake.png" src="../../assets/images/home/icon-handshake.png"
mode="scaleToFill" mode="scaleToFill"
/> />
<view class="start-text">开始接待</view> <view class="start-text">开始接待</view>
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
ref="previewRef" ref="previewRef"
@cancel="cancel" @cancel="cancel"
@confirm="preview" @confirm="preview"
:popupW="704"
content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」" content="直接点击素材可进行预览,若面向车辆主展示,请点击页面下方的「开始接待」"
confirmBtnText="预览素材" confirmBtnText="预览素材"
></MessageBox> ></MessageBox>
...@@ -215,6 +216,7 @@ export default { ...@@ -215,6 +216,7 @@ export default {
word-wrap: break-word; word-wrap: break-word;
white-space: normal; white-space: normal;
line-height: 32rpx; line-height: 32rpx;
margin-left: 4rpx;
} }
} }
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-04-07 14:54:28 * @Date: 2024-04-07 14:54:28
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-04-10 14:00:05 * @LastEditTime: 2024-04-10 16:22:38
--> -->
<template> <template>
<view class="information-entry"> <view class="information-entry">
...@@ -20,20 +20,25 @@ ...@@ -20,20 +20,25 @@
<image <image
class="img" class="img"
:src="item.imgUrl" :src="item.imgUrl"
mode="top" mode="aspectFill"
@click="preview(index)" @click="preview(index)"
/> />
<uni-icons <glsx-image
class="upload-close"
src="detail/icon-close.png"
mode="scaleToFill"
/>
<!-- <uni-icons
class="upload-close" class="upload-close"
type="clear" type="clear"
:size="20" :size="20"
@click="close(index)" @click="close(index)"
></uni-icons> ></uni-icons> -->
</view> </view>
<view v-else class="icon" @tap="choose(index)"> <view v-else class="icon" @tap="choose(index)">
<glsx-image <image
class="icon-upload" class="icon-upload"
src="detail/icon-upload.png" src="../../assets/images/detail/icon-upload.png"
mode="scaleToFill" mode="scaleToFill"
/> />
</view> </view>
...@@ -95,11 +100,29 @@ ...@@ -95,11 +100,29 @@
confirmBtnText="是" confirmBtnText="是"
></MessageBox> ></MessageBox>
<MessageBox <MessageBox
ref="carBrandListVisible"
position="bottom"
:isFooter="false"
title="请选择车品牌"
>
<view class="select-box">
<view
class="select-item"
:class="{ checked:carBrand == item.name }"
@click="selectCar(item)"
v-for="(item, index) in carBrandList"
:key="index"
>
{{ item.name }}
</view>
</view>
</MessageBox>
<MessageBox
ref="carBoxVisible" ref="carBoxVisible"
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择车型" title="请选择车型"
@cancel="carBoxVisible = false" :maxHeight="1000"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -118,7 +141,7 @@ ...@@ -118,7 +141,7 @@
position="bottom" position="bottom"
:isFooter="false" :isFooter="false"
title="请选择销售" title="请选择销售"
@cancel="employeeBoxVisible = false" :maxHeight="1000"
> >
<view class="select-box"> <view class="select-box">
<view <view
...@@ -153,7 +176,6 @@ const INFO_LIST = [ ...@@ -153,7 +176,6 @@ const INFO_LIST = [
}, },
]; ];
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import env from "../../env";
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
export default { export default {
mixins: [myClick], mixins: [myClick],
...@@ -179,7 +201,7 @@ export default { ...@@ -179,7 +201,7 @@ export default {
label: "车型", label: "车型",
key: "carModel", key: "carModel",
type: "select", type: "select",
popKey: "carBoxVisible", popKey: "carBrandListVisible",
}, },
{ {
label: "销售姓名", label: "销售姓名",
...@@ -195,15 +217,14 @@ export default { ...@@ -195,15 +217,14 @@ export default {
salesUuid: "", salesUuid: "",
staffName: "", staffName: "",
}, },
carBoxVisible: false,
previewImg: "", previewImg: "",
isPass: false, isPass: false,
carBoxVisible: false,
employeeBoxVisible: false,
carlist: [], carlist: [],
employeeList: [], employeeList: [],
f_key: Date.now(), f_key: Date.now(),
errorTip: false, errorTip: false,
carBrand: '',
carBrandList: []
}; };
}, },
onLoad(options) { onLoad(options) {
...@@ -250,14 +271,17 @@ export default { ...@@ -250,14 +271,17 @@ export default {
this.infoList = INFO_LIST.map((item) => delete item.imgUrl); this.infoList = INFO_LIST.map((item) => delete item.imgUrl);
} else { } else {
let userInfo = uni.$storage.get("userInfo"); let userInfo = uni.$storage.get("userInfo");
uni.$api.commonApi uni.$api.commonApi.getMerchantCarBrandList([userInfo.shopMerchantId]).then(({ data }) => {
.getCarBrandsList({ let list = data[0].carBrandList,
brandId: env.index == 3 ? 2365 : 2978, carBrandList = []
childBrandId: env.index == 3 ? 2695 : 3454, list.map(e => {
e.childs.map(i => {
i.brandId = e.id
carBrandList.push(i)
})
})
this.carBrandList = carBrandList
}) })
.then((res) => {
this.carlist = res;
});
uni.$api.commonApi uni.$api.commonApi
.getEmployeeList({ .getEmployeeList({
merchantId: userInfo.shopMerchantId, merchantId: userInfo.shopMerchantId,
...@@ -319,7 +343,10 @@ export default { ...@@ -319,7 +343,10 @@ export default {
if (popkey == "employeeBoxVisible") { if (popkey == "employeeBoxVisible") {
this.formData.salesUuid = item.uuid; this.formData.salesUuid = item.uuid;
this.formData.staffName = item.staffName; this.formData.staffName = item.staffName;
} else this.formData.carModel = item.name; } else {
this.$refs.carBrandListVisible.close()
this.formData.carModel = item.name;
}
this.$store.dispatch("setCustomerInfo", this.formData); this.$store.dispatch("setCustomerInfo", this.formData);
console.log(this.formData); console.log(this.formData);
this.formObject.map((item) => (item.error = false)); this.formObject.map((item) => (item.error = false));
...@@ -335,6 +362,18 @@ export default { ...@@ -335,6 +362,18 @@ export default {
this.f_key = Date.now(); this.f_key = Date.now();
this.errorTip = false; this.errorTip = false;
}, },
selectCar (e) {
uni.showLoading()
this.carBrand = e.name
uni.$api.commonApi.getCarBrandsList({
brandId: e.brandId,
childBrandId: e.id
}).then(res => {
uni.hideLoading()
this.carlist = res
this.$refs.carBoxVisible.open()
}).catch(() => uni.hideLoading())
},
}, },
}; };
</script> </script>
...@@ -395,9 +434,9 @@ export default { ...@@ -395,9 +434,9 @@ export default {
// display: flex; // display: flex;
// align-items: center; // align-items: center;
// justify-content: center; // justify-content: center;
// background-color: #3D3D3D; // background-color: #fff;
// border-radius: 50%; // border-radius: 50%;
// color: #fff; // padding: 0;
} }
} }
.information-title { .information-title {
...@@ -506,7 +545,8 @@ export default { ...@@ -506,7 +545,8 @@ export default {
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 20rpx; gap: 20rpx;
overflow-y: scroll; overflow-y: scroll;
height: 100%; max-height: 50vh;
padding-bottom: 60rpx;
.select-item { .select-item {
text-align: center; text-align: center;
height: 68rpx; height: 68rpx;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!