Commit cb79553d by 前端

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

2 parents 5addbe11 89e81ae9
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1085rpx 971rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: 0rpx -749rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1052rpx -65rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -957rpx 0rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1052rpx -112rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1044rpx -445rpx;}
.icon-face-error-active { width: 96rpx; height: 96rpx; background-position: -830rpx -635rpx;}
.icon-face-error { width: 96rpx; height: 96rpx; background-position: 0rpx -800rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -111rpx -800rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -222rpx -800rpx;}
.icon-feedback { width: 32rpx; height: 32rpx; background-position: -1052rpx -160rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: 0rpx -415rpx;}
.icon-home-active { width: 80rpx; height: 80rpx; background-position: -957rpx -65rpx;}
.icon-home { width: 80rpx; height: 80rpx; background-position: -957rpx -160rpx;}
.icon-icon-addr { width: 32rpx; height: 32rpx; background-position: -1052rpx -207rpx;}
.icon-icon-avatar { width: 112rpx; height: 112rpx; background-position: -830rpx 0rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1052rpx -255rpx;}
.icon-icon-handshake { width: 72rpx; height: 72rpx; background-position: -957rpx -445rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1052rpx -302rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1052rpx -350rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -654rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1052rpx -397rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1032rpx -690rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1032rpx -765rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -957rpx -840rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1004rpx -840rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -479rpx -415rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -1051rpx -840rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -333rpx -800rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -957rpx -532rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -830rpx -127rpx;}
.icon-new-home { width: 112rpx; height: 112rpx; background-position: -830rpx -254rpx;}
.icon-new-record-active { width: 112rpx; height: 112rpx; background-position: -830rpx -381rpx;}
.icon-new-record { width: 112rpx; height: 112rpx; background-position: -830rpx -508rpx;}
.icon-new-setting { width: 64rpx; height: 64rpx; background-position: -957rpx -611rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -495rpx -606rpx;}
.icon-pen { width: 120rpx; height: 120rpx; background-position: -630rpx -606rpx;}
.icon-qr-success { width: 96rpx; height: 96rpx; background-position: -444rpx -800rpx;}
.icon-qw { width: 48rpx; height: 48rpx; background-position: -1036rpx -532rpx;}
.icon-record-active { width: 80rpx; height: 80rpx; background-position: -957rpx -255rpx;}
.icon-record { width: 80rpx; height: 80rpx; background-position: -957rpx -350rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -830rpx -746rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: -555rpx -800rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -666rpx -800rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1036rpx -611rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -606rpx;}
.icon-settings { width: 32rpx; height: 32rpx; background-position: -877rpx -746rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -777rpx -800rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -957rpx -690rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -957rpx -765rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: 0rpx -911rpx;}
\ No newline at end of file
.sprite-icon {
background-image: url(@/assets/images/sprite.png);
background-size: 1085rpx 971rpx;
}
.icon-aito {
width: 320rpx;
height: 36rpx;
background-position: 0rpx -749rpx;
}
.icon-arrow-right {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -65rpx;
}
.icon-back {
width: 128rpx;
height: 50rpx;
background-position: -957rpx 0rpx;
}
.icon-change-account {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -112rpx;
}
.icon-customer-1 {
width: 400rpx;
height: 400rpx;
background-position: 0rpx 0rpx;
}
.icon-customer-2 {
width: 400rpx;
height: 400rpx;
background-position: -415rpx 0rpx;
}
.icon-customer-detail {
width: 40rpx;
height: 40rpx;
background-position: -1044rpx -445rpx;
}
.icon-face-error-active {
width: 96rpx;
height: 96rpx;
background-position: -830rpx -635rpx;
}
.icon-face-error {
width: 96rpx;
height: 96rpx;
background-position: 0rpx -800rpx;
}
.icon-face-success-active {
width: 96rpx;
height: 96rpx;
background-position: -111rpx -800rpx;
}
.icon-face-success {
width: 96rpx;
height: 96rpx;
background-position: -222rpx -800rpx;
}
.icon-feedback {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -160rpx;
}
.icon-first-nav {
width: 464rpx;
height: 176rpx;
background-position: 0rpx -415rpx;
}
.icon-home-active {
width: 80rpx;
height: 80rpx;
background-position: -957rpx -65rpx;
}
.icon-home {
width: 80rpx;
height: 80rpx;
background-position: -957rpx -160rpx;
}
.icon-icon-addr {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -207rpx;
}
.icon-icon-avatar {
width: 112rpx;
height: 112rpx;
background-position: -830rpx 0rpx;
}
.icon-icon-female {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -255rpx;
}
.icon-icon-handshake {
width: 72rpx;
height: 72rpx;
background-position: -957rpx -445rpx;
}
.icon-icon-male {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -302rpx;
}
.icon-icon-shop {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -350rpx;
}
.icon-icon-upload {
width: 128rpx;
height: 128rpx;
background-position: -654rpx -415rpx;
}
.icon-icon-weixin {
width: 32rpx;
height: 32rpx;
background-position: -1052rpx -397rpx;
}
.icon-kf-0 {
width: 32rpx;
height: 32rpx;
background-position: -1032rpx -690rpx;
}
.icon-kf-1 {
width: 32rpx;
height: 32rpx;
background-position: -1032rpx -765rpx;
}
.icon-kf-2 {
width: 32rpx;
height: 32rpx;
background-position: -957rpx -840rpx;
}
.icon-kf-3 {
width: 32rpx;
height: 32rpx;
background-position: -1004rpx -840rpx;
}
.icon-logo {
width: 160rpx;
height: 160rpx;
background-position: -479rpx -415rpx;
}
.icon-new-addr {
width: 32rpx;
height: 32rpx;
background-position: -1051rpx -840rpx;
}
.icon-new-avatar {
width: 96rpx;
height: 96rpx;
background-position: -333rpx -800rpx;
}
.icon-new-feedback {
width: 64rpx;
height: 64rpx;
background-position: -957rpx -532rpx;
}
.icon-new-home-active {
width: 112rpx;
height: 112rpx;
background-position: -830rpx -127rpx;
}
.icon-new-home {
width: 112rpx;
height: 112rpx;
background-position: -830rpx -254rpx;
}
.icon-new-record-active {
width: 112rpx;
height: 112rpx;
background-position: -830rpx -381rpx;
}
.icon-new-record {
width: 112rpx;
height: 112rpx;
background-position: -830rpx -508rpx;
}
.icon-new-setting {
width: 64rpx;
height: 64rpx;
background-position: -957rpx -611rpx;
}
.icon-pen-active {
width: 120rpx;
height: 120rpx;
background-position: -495rpx -606rpx;
}
.icon-pen {
width: 120rpx;
height: 120rpx;
background-position: -630rpx -606rpx;
}
.icon-qr-success {
width: 96rpx;
height: 96rpx;
background-position: -444rpx -800rpx;
}
.icon-qw {
width: 48rpx;
height: 48rpx;
background-position: -1036rpx -532rpx;
}
.icon-record-active {
width: 80rpx;
height: 80rpx;
background-position: -957rpx -255rpx;
}
.icon-record {
width: 80rpx;
height: 80rpx;
background-position: -957rpx -350rpx;
}
.icon-scan {
width: 32rpx;
height: 32rpx;
background-position: -830rpx -746rpx;
}
.icon-scene-0 {
width: 96rpx;
height: 96rpx;
background-position: -555rpx -800rpx;
}
.icon-scene-1 {
width: 96rpx;
height: 96rpx;
background-position: -666rpx -800rpx;
}
.icon-search {
width: 40rpx;
height: 40rpx;
background-position: -1036rpx -611rpx;
}
.icon-second-nav {
width: 480rpx;
height: 128rpx;
background-position: 0rpx -606rpx;
}
.icon-store {
width: 96rpx;
height: 96rpx;
background-position: -777rpx -800rpx;
}
.icon-tool-file {
width: 60rpx;
height: 60rpx;
background-position: -957rpx -690rpx;
}
.icon-tool-finish {
width: 60rpx;
height: 60rpx;
background-position: -957rpx -765rpx;
}
.icon-tool-pay {
width: 60rpx;
height: 60rpx;
background-position: 0rpx -911rpx;
}
.icon-settings {
width: 32rpx;
height: 32rpx;
background-position: -877rpx -746rpx;
}
......@@ -279,7 +279,10 @@ export default {
if (this.check()) {
const { sceneType } = this
if (sceneType == 0) this.step = 2
else this.success(receptionStatus)
else {
receptionStatus = 1
this.success(receptionStatus)
}
}
} else {
let { receptionStatus } = this
......@@ -310,11 +313,9 @@ export default {
this.$store.dispatch('getCustomerInfo').then((customerInfo) => {
this.formData = customerInfo
let { sceneType, customerType } = this,
receptionStatus = -1,
step = Object.values(customerInfo).every((value) => !!value) ? 2 : 1
this.errorTip = false
if (sceneType == 1) {
receptionStatus = 1 //精品默认1
step = 1
this.formObject = formObject_boutique
if (customerType == 0 && !this.check()) return uni.showToast({
......@@ -327,7 +328,6 @@ export default {
step = 1
}
this.step = step
this.receptionStatus = receptionStatus
this.$refs.formRef.open()
})
},
......@@ -423,6 +423,11 @@ export default {
}
.disabled {
background: #f4f4f4;
.select {
.arrow {
display: none;
}
}
}
}
}
......
......@@ -94,7 +94,7 @@ export default {
right: 40rpx;
top: calc(5% + 140rpx);
z-index: 998;
width: 120rpx;
width: 128rpx;
.btn {
width: 100%;
height: 120rpx;
......@@ -126,15 +126,27 @@ export default {
}
.list {
width: 100%;
height: 0;
background: #ffffff;
box-shadow: 0 8rpx 22rpx 0 #00000029;
border: 2rpx solid #ffffff;
box-shadow: 0 8rpx 22rpx 0 #0000001a;
border-radius: 16rpx;
flex-direction: column;
align-items: center;
transition: all 0.05s;
overflow: hidden;
opacity: 0;
position: relative;
background: rgba(255, 255, 255, 0.6);
&::after {
position: absolute;
content: "";
background: inherit;
top: 0;
left: 0;
right: 0;
bottom: 0;
filter: blur(8rpx);
z-index: -1;
}
.title {
width: 120rpx;
height: 56rpx;
......@@ -152,8 +164,9 @@ export default {
justify-content: center;
font-size: 20rpx;
color: #666666;
height: 120rpx;
// height: 120rpx;
width: 100%;
padding-top: 16rpx;
.icon {
width: 60rpx;
height: 60rpx;
......@@ -166,8 +179,8 @@ export default {
}
.showList {
display: flex;
height: 896rpx;
opacity: 1;
padding-bottom: 16rpx;
animation: scale-up-top-right 0.4s;
}
@keyframes scale-up-top-right {
......
......@@ -2,14 +2,14 @@
<view class="layout">
<view class="title">
<view class="sprite-icon icon-aito"></view>
<view class="text">{{title}}</view>
<view class="text">问界·精品加装服务说明</view>
</view>
<view class="form-box">
<view
class="form-box"
:key="refreshKey"
>
<template v-if="customerType == 1">
<view
class="form"
:key="watchStatus"
>
<view class="form">
<template v-for="(i, index) in formObject">
<view
:class="['form-item' ,{active:focusIndex == index}]"
......@@ -172,7 +172,6 @@ export default {
props: {
views: Array,
customerType: Number,
title: String,
show: Boolean,
madiaId: Number
},
......@@ -248,7 +247,8 @@ export default {
QRURL: '',
showDetail: false
},
couponErrorTips: ''
couponErrorTips: '',
refreshKey: Date.now()
}
},
watch: {
......@@ -266,9 +266,8 @@ export default {
immediate: true,
handler (newval) {
this.pageParams = this.$options.data.call(this).pageParams
this.resetFocusIndex()
this.customerInfo = {}
this.$refs.qrbox.close()
this.closeAllPopup()
this.refreshKey = Date.now()
}
}
},
......@@ -307,7 +306,7 @@ export default {
item2 = arr.find(e => e.couponType == 18)
if (!this.pageParams.couponId) {
if (item) this.chooseCoupon(item) //默认填入类型为「太阳膜」类型
else if (item2) this.chooseCoupon(item) //次选填入「精品」类型
else if (item2) this.chooseCoupon(item2) //次选填入「精品」类型
else this.chooseCoupon(arr[0]) // 无此两种类型情况默认带入任意类型礼券
}
}
......@@ -337,6 +336,7 @@ export default {
this.$refs.carBrandListVisible.close()
this.$refs.employeeBoxVisible.close()
this.$refs.couponBoxVisible.close()
this.$refs.qrbox.close()
this.resetFocusIndex()
this.closeQr()
},
......@@ -420,6 +420,16 @@ export default {
if (res && res.total) {
this.pageParams.received = true
this.closeQr()
this.$emit('reception', {
item: {
customerName: customerInfo.customerName,
carSeriesName: customerInfo.carModel,
customerPhone: customerInfo.phoneNumber,
userId: customerInfo.salesUuid,
employeeName: customerInfo.staffName,
receiveCouponDate: Date.now()
}
})
setTimeout(() => {
this.$refs.qrbox.close()
}, 3e3)
......@@ -480,7 +490,7 @@ export default {
gap: 0 28rpx;
height: 100%;
&-item {
width: 368rpx;
width: 336rpx;
height: 100%;
position: relative;
......
......@@ -94,7 +94,7 @@ export default {
computed: {
title () {
let { id } = this,
name = this.media.find((e) => e.id == id)?.shortTitle || "";
name = this.media.find((e) => e.id == id)?.detailTitle || "";
return name;
},
watchStatus () {
......@@ -144,7 +144,6 @@ export default {
},
/**回店客户 */
reception ({ item }) {
console.log(JSON.parse(JSON.stringify(item)))
this.$store.dispatch('setCustomerInfo', {
customerName: item.customerName,
carModel: item.carSeriesName,
......@@ -212,6 +211,6 @@ export default {
}
}
.tool-box {
top: 5%;
top: 284rpx;
}
</style>
......@@ -90,12 +90,12 @@ export default {
customerNameOrPhone: '',
isSearch: false,
list: [],
inviteStatus: { 1: '待预约', 2: '已预约', 3: '取消预约', 4: '已施工', 5: '超时未到店',6: '已撤销',7: '已支付' },
inviteStatus: { 1: '待预约', 2: '已预约', 3: '取消预约', 4: '已施工', 5: '超时未到店', 6: '已撤销', 7: '已支付' },
itemObject: [
{ label: '客户电话', key: 'customerPhone',format:true },
{ label: '客户电话', key: 'customerPhone', format: true },
{ label: '客户车型', key: 'carSeriesName' },
{ label: '礼券名称', key: 'couponName' },
{ label: '领券时间', key: 'receiveCouponDate',format:true },
{ label: '领券时间', key: 'receiveCouponDate', format: true },
{ label: '销售顾问', key: 'employeeName' },
],
chooseItem: {}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!