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