Commit 2737ef43 by 李伟康

commit 提交

1 parent becc7654
...@@ -21,12 +21,12 @@ ...@@ -21,12 +21,12 @@
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1032rpx -330rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1032rpx -330rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -644rpx -410rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -644rpx -410rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1032rpx -372rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1032rpx -372rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1016rpx -576rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1012rpx -650rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1012rpx -650rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -1012rpx -720rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1012rpx -720rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -1012rpx -790rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -1012rpx -790rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -820rpx -716rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -474rpx -410rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -474rpx -410rpx;}
.icon-new-addr { width: 32rpx; height: 32rpx; background-position: -820rpx -716rpx;} .icon-new-addr { width: 32rpx; height: 32rpx; background-position: -862rpx -716rpx;}
.icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -318rpx -780rpx;} .icon-new-avatar { width: 96rpx; height: 96rpx; background-position: -318rpx -780rpx;}
.icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -942rpx -502rpx;} .icon-new-feedback { width: 64rpx; height: 64rpx; background-position: -942rpx -502rpx;}
.icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -820rpx -122rpx;} .icon-new-home-active { width: 112rpx; height: 112rpx; background-position: -820rpx -122rpx;}
...@@ -44,8 +44,10 @@ ...@@ -44,8 +44,10 @@
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -636rpx -780rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -1024rpx -420rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -1024rpx -420rpx;}
.icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;} .icon-second-nav { width: 480rpx; height: 128rpx; background-position: 0rpx -596rpx;}
.icon-setting { width: 32rpx; height: 32rpx; background-position: -862rpx -716rpx;} .icon-setting { width: 32rpx; height: 32rpx; background-position: -750rpx -596rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -742rpx -780rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -942rpx -650rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -942rpx -720rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
\ No newline at end of file \ No newline at end of file
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -942rpx -790rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -1016rpx -576rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -750rpx -638rpx;}
\ No newline at end of file \ No newline at end of file

937 KB | W: | H:

945 KB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -19,7 +19,10 @@ ...@@ -19,7 +19,10 @@
></uni-icons> ></uni-icons>
</view> </view>
<view class="content flex"> <view class="content flex">
<view class="title flex">请让客户扫码领取</view> <view class="title flex">
<view class="sprite-icon icon-scan"></view>
请让客户扫码领取
</view>
<template v-if="received"> <template v-if="received">
<view class="received flex"> <view class="received flex">
<view class="sprite-icon icon-qr-success"></view> <view class="sprite-icon icon-qr-success"></view>
...@@ -89,6 +92,9 @@ export default { ...@@ -89,6 +92,9 @@ export default {
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
.sprite-icon{
margin-right: 12rpx;
}
} }
.qr-box { .qr-box {
width: 560rpx; width: 560rpx;
......
...@@ -65,21 +65,39 @@ ...@@ -65,21 +65,39 @@
>为客户发券</view> >为客户发券</view>
</view> </view>
</template> </template>
<template v-else> <template v-if="customerType == 0 && customerInfo.customerName">
<view class="customer-info-box">
<view
class="customer-info flex"
@click="pageParams.showDetail = !pageParams.showDetail"
>
<view class="text text-hide"> {{customerInfo.customerName}} | {{customerInfo.carModel}}</view>
<view class="sprite-icon icon-customer-detail"></view>
</view>
<view
class="customer-detail flex"
v-show="pageParams.showDetail"
>
<template v-for="(i,index) in customerDetailObject">
<view
class="customer-item flex"
:key="index"
>
<view class="label">{{i.label}}</view>
<view class="value">{{customerInfo[i.key]}}</view>
</view>
</template>
</view>
</view>
</template> </template>
</view> </view>
<view <view class="content">
class="content"
scroll-x
enable-flex
>
<template v-for="(i, index) in views"> <template v-for="(i, index) in views">
<image <image
:key="index" :key="index"
:src="i.detailUrl" :src="i.detailUrl"
class="item" :class="['item',`item-${index}`]"
@click="jumpPage(i)" @click="jumpPage(i)"
/> />
</template> </template>
...@@ -176,6 +194,32 @@ export default { ...@@ -176,6 +194,32 @@ export default {
popKey: 'employeeBoxVisible' popKey: 'employeeBoxVisible'
} }
], ],
customerDetailObject: [
{
label: '车主姓名',
key: 'customerName',
},
{
label: '交付专员',
key: 'staffName',
},
{
label: '车型',
key: 'carModel',
},
{
label: '领券时间',
key: 'customerName',
},
{
label: '车主电话',
key: 'phoneNumber',
},
{
label: '接待时间',
key: 'customerName',
}
],
customerInfo: {}, customerInfo: {},
couponList: [], couponList: [],
couponTypeName: '', couponTypeName: '',
...@@ -186,6 +230,7 @@ export default { ...@@ -186,6 +230,7 @@ export default {
couponId: '', couponId: '',
carInfo: {}, carInfo: {},
QRURL: '', QRURL: '',
showDetail: false
} }
} }
}, },
...@@ -406,89 +451,139 @@ export default { ...@@ -406,89 +451,139 @@ export default {
height: 80rpx; height: 80rpx;
margin-bottom: 48rpx; margin-bottom: 48rpx;
padding: 0 64rpx; padding: 0 64rpx;
} .form {
.form { display: flex;
display: flex;
gap: 0 28rpx; gap: 0 28rpx;
height: 100%;
&-item {
width: 368rpx;
height: 100%; height: 100%;
position: relative; &-item {
width: 368rpx;
&-box {
position: relative;
width: 100%;
height: 100%; height: 100%;
background: #ffffff; position: relative;
border: 3rpx solid #a8c1ff;
&-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;
}
.input,
.select {
width: 100%;
height: 100%;
border: none !important;
outline: none;
font-size: 28rpx;
color: #333333;
border-radius: 16rpx;
box-sizing: border-box;
&::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;
}
}
&-btn {
width: 286rpx;
height: 80rpx;
background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; font-weight: 500;
padding: 0 24rpx; font-size: 28rpx;
z-index: 2; color: #ffffff;
justify-content: center;
} }
.input, }
.select { .customer-info-box {
position: relative;
width: 480rpx;
height: 100%;
.customer-info {
width: 100%; width: 100%;
height: 100%; height: 100%;
border: none !important; background: #ffffff;
outline: none;
font-size: 28rpx;
color: #333333;
border-radius: 16rpx; border-radius: 16rpx;
box-sizing: border-box; box-sizing: border-box;
&::placeholder { padding: 0 24rpx;
color: #999999; .sprite-icon {
flex-shrink: 0;
margin-left: auto;
} }
} }
.placeholderStyle { .customer-detail {
color: #999999;
}
.arrow {
color: #999 !important;
margin-left: auto;
flex-shrink: 0;
}
}
.active {
&::after {
position: absolute; position: absolute;
left: -2rpx; bottom: 0;
top: -2rpx; left: 496rpx;
width: calc(100% + 4rpx); min-width: 860rpx;
height: calc(100% + 4rpx); height: 204rpx;
content: ""; z-index: 2;
background-image: linear-gradient(#2f6af7, #75bcff); background: #ffffff;
box-shadow: 0 0 0 8rpx #2c66f71a;
border-radius: 16rpx; border-radius: 16rpx;
flex-wrap: wrap;
box-sizing: border-box;
padding: 32rpx 48rpx;
gap: 16rpx 0;
.customer-item {
width: 50%;
color: #333333;
line-height: 36rpx;
.label {
width: 120rpx;
font-size: 28rpx;
color: #666666;
flex-shrink: 0;
margin-right: 24rpx;
text-align: right;
}
}
} }
} }
&-btn {
width: 286rpx;
height: 80rpx;
background-image: linear-gradient(180deg, #61c0ff 0%, #2c66f7 100%);
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 16rpx;
font-weight: 500;
font-size: 28rpx;
color: #ffffff;
justify-content: center;
}
} }
.content { .content {
display: flex;
width: 100%; width: 100%;
height: 1052rpx; height: calc(100vh - 484rpx);
flex-wrap: nowrap;
gap: 0 50rpx;
overflow: scroll hidden;
padding: 0 64rpx; padding: 0 64rpx;
.item { .item {
float: left;
}
.item-0 {
width: 1084rpx; width: 1084rpx;
height: 100%; height: 992rpx;
flex-shrink: 0; margin-right: 50rpx;
vertical-align: top; }
.item-1 {
margin-bottom: 48rpx;
}
.item-1,
.item-2 {
width: 1084rpx;
height: 472rpx;
} }
} }
} }
......
...@@ -74,7 +74,8 @@ export default { ...@@ -74,7 +74,8 @@ export default {
customerType: Number, customerType: Number,
}, },
data() { data() {
return {}; return {
};
}, },
computed: { computed: {
title() { title() {
......
...@@ -169,21 +169,21 @@ export default { ...@@ -169,21 +169,21 @@ export default {
this.init(); this.init();
}, },
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.clearHistory();
this.$refs.customerTypeRef.open() this.$refs.customerTypeRef.open()
this.startAudio(); this.startAudio();
}, },
jumpPage (id) { jumpPage (id) {
this.clearHistory();
this.id = id ? id : this.moduleList[0].id this.id = id ? id : this.moduleList[0].id
this.type = "edit" this.type = "edit"
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!