Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2c6d8306
authored
Sep 09, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
021c1dfa
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
136 additions
and
49 deletions
assets/css/sprite.scss
assets/images/sprite.png
assets/spritesmith/info_shield.png
components/CarBrands.vue
components/FinishStep.vue
pages/boutique/components/Reception.vue
pages/boutique/components/SkuBox.vue
pages/boutique/detail.vue
pages/boutique/index.vue
pages/boutique/invitation.vue
store/modules/user.js
assets/css/sprite.scss
View file @
2c6d830
...
...
@@ -26,34 +26,35 @@
.icon-first-nav
{
width
:
464rpx
;
height
:
176rpx
;
background-position
:
-830rpx
-191rpx
;}
.icon-home-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-127rpx
-726rpx
;}
.icon-home
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-254rpx
-726rpx
;}
.icon-icon-arrow
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1
160
rpx
-668rpx
;}
.icon-icon-arrow
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-1
215
rpx
-668rpx
;}
.icon-icon-close
{
width
:
72rpx
;
height
:
72rpx
;
background-position
:
-285rpx
-964rpx
;}
.icon-icon-female
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-12
07
rpx
-668rpx
;}
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
1254rpx
-668
rpx
;}
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-781rpx
-4
15
rpx
;}
.icon-icon-female
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-12
62
rpx
-668rpx
;}
.icon-icon-male
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
781rpx
-415
rpx
;}
.icon-icon-shop
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-781rpx
-4
62
rpx
;}
.icon-icon-upload
{
width
:
128rpx
;
height
:
128rpx
;
background-position
:
-503rpx
-415rpx
;}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-781rpx
-462rpx
;}
.icon-invisible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-885rpx
-668rpx
;}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-594rpx
-853rpx
;}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-641rpx
-853rpx
;}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-688rpx
-853rpx
;}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-735rpx
-853rpx
;}
.icon-icon-weixin
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-594rpx
-853rpx
;}
.icon-info_shield
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-885rpx
-668rpx
;}
.icon-invisible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-940rpx
-668rpx
;}
.icon-kf-0
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-641rpx
-853rpx
;}
.icon-kf-1
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-688rpx
-853rpx
;}
.icon-kf-2
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-735rpx
-853rpx
;}
.icon-kf-3
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-782rpx
-853rpx
;}
.icon-logo
{
width
:
160rpx
;
height
:
160rpx
;
background-position
:
-1041rpx
-382rpx
;}
.icon-mask-del
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-95rpx
-964rpx
;}
.icon-mask-edit
{
width
:
80rpx
;
height
:
80rpx
;
background-position
:
-190rpx
-964rpx
;}
.icon-no-insurance-data
{
width
:
488rpx
;
height
:
296rpx
;
background-position
:
0rpx
-415rpx
;}
.icon-pause
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-9
40
rpx
-668rpx
;}
.icon-pause
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-9
95
rpx
-668rpx
;}
.icon-pen-active
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-646rpx
-415rpx
;}
.icon-pen
{
width
:
120rpx
;
height
:
120rpx
;
background-position
:
-503rpx
-558rpx
;}
.icon-play
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-
995
rpx
-668rpx
;}
.icon-play
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-
1050
rpx
-668rpx
;}
.icon-qr-success
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-1190rpx
-726rpx
;}
.icon-qw
{
width
:
48rpx
;
height
:
48rpx
;
background-position
:
-765rpx
-558rpx
;}
.icon-record-active
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-381rpx
-726rpx
;}
.icon-record
{
width
:
112rpx
;
height
:
112rpx
;
background-position
:
-508rpx
-726rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
782
rpx
-853rpx
;}
.icon-scan
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-
829
rpx
-853rpx
;}
.icon-scene-0
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
0rpx
-853rpx
;}
.icon-scene-1
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-111rpx
-853rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1
050
rpx
-668rpx
;}
.icon-search
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1
105
rpx
-668rpx
;}
.icon-second-nav
{
width
:
480rpx
;
height
:
176rpx
;
background-position
:
-830rpx
0rpx
;}
.icon-setting
{
width
:
64rpx
;
height
:
64rpx
;
background-position
:
-372rpx
-964rpx
;}
.icon-store
{
width
:
96rpx
;
height
:
96rpx
;
background-position
:
-222rpx
-853rpx
;}
...
...
@@ -61,5 +62,5 @@
.icon-tool-file
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-451rpx
-964rpx
;}
.icon-tool-finish
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-526rpx
-964rpx
;}
.icon-tool-pay
{
width
:
60rpx
;
height
:
60rpx
;
background-position
:
-601rpx
-964rpx
;}
.icon-total
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-829rpx
-853rpx
;}
.icon-visible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1105rpx
-668rpx
;}
\ No newline at end of file
.icon-total
{
width
:
32rpx
;
height
:
32rpx
;
background-position
:
-876rpx
-853rpx
;}
.icon-visible
{
width
:
40rpx
;
height
:
40rpx
;
background-position
:
-1160rpx
-668rpx
;}
\ No newline at end of file
assets/images/sprite.png
View file @
2c6d830
1.2 MB
|
W:
|
H:
1.2 MB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/spritesmith/info_shield.png
0 → 100644
View file @
2c6d830
4.07 KB
components/CarBrands.vue
View file @
2c6d830
...
...
@@ -80,9 +80,9 @@ export default {
mounted
()
{
},
methods
:
{
autoSelect
()
{
autoSelect
(
index
=
0
)
{
const
{
carBrandList
}
=
this
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
0
],
true
)
if
(
carBrandList
.
length
)
this
.
selectCar
(
carBrandList
[
0
],
true
,
index
)
},
open
()
{
const
userInfo
=
uni
.
$storage
.
get
(
"userInfo"
),
...
...
@@ -116,7 +116,7 @@ export default {
this
.
$refs
.
carBrandListVisible
.
open
()
this
.
carBrandListOff
=
true
},
selectCar
(
e
,
auto
=
false
)
{
selectCar
(
e
,
auto
=
false
,
index
)
{
let
{
clickFlga
}
=
this
if
(
clickFlga
)
return
this
.
clickFlga
=
true
...
...
@@ -129,7 +129,7 @@ export default {
const
carList
=
uni
.
getStorageSync
(
`
${
e
.
id
}
_
${
e
.
brandId
}
_carlist`
)
if
(
carList
)
{
this
.
carlist
=
carList
if
(
auto
&&
carList
.
length
)
this
.
handleSelect
(
carList
[
0
])
if
(
auto
&&
carList
.
length
)
this
.
handleSelect
(
carList
[
index
])
else
this
.
$refs
.
carBoxVisible
.
open
()
}
else
{
if
(
!
auto
)
uni
.
showLoading
({
...
...
@@ -144,7 +144,7 @@ export default {
this
.
carlist
=
res
if
(
res
)
uni
.
setStorageSync
(
`
${
e
.
id
}
_
${
e
.
brandId
}
_carlist`
,
res
)
if
(
!
carList
)
{
if
(
auto
&&
res
.
length
)
this
.
handleSelect
(
res
[
0
])
if
(
auto
&&
res
.
length
)
this
.
handleSelect
(
res
[
index
])
else
this
.
$refs
.
carBoxVisible
.
open
()
}
this
.
clickFlga
=
false
...
...
components/FinishStep.vue
View file @
2c6d830
...
...
@@ -30,7 +30,7 @@
:key=
"index"
>
<view
:class=
"['label',
{required:i.required}]">
{{
i
.
label
}}
</view>
<view
:class=
"['value',
{ error: showError(i.key)
&&
i.required },{disabled:customerType == 0}]">
<view
:class=
"['value',
{ error: showError(i.key)
&&
i.required },{disabled:customerType == 0
|| i.disabled
}]">
<template
v-if=
"i.type == 'input'"
>
<input
:type=
"i.inputType"
...
...
@@ -46,7 +46,7 @@
<
template
v-else
>
<view
:class=
"['select', `$
{formData[i.key]? '' : 'placeholder'}`]"
@click="showPopup(i
.popKey
)"
@click="showPopup(i)"
>
{{
formData
[
i
.
key
]
||
i
.
placeholder
}}
<uni-icons
...
...
@@ -118,7 +118,8 @@ const formObject_boutique = [{
key
:
"carModel"
,
type
:
"select"
,
popKey
:
"carBrandListVisible"
,
placeholder
:
'请选择品牌车型'
placeholder
:
'请选择品牌车型'
,
disabled
:
true
},
{
label
:
"车主电话"
,
...
...
@@ -221,7 +222,7 @@ export default {
tips
()
{
let
{
sceneType
,
titleTips
}
=
this
,
text
=
titleTips
||
'检测到“交车告知书”中未填写客户档案,请填写后再完成接待。'
if
(
sceneType
==
1
)
text
=
'请确认“
精品加装服务说明
页”中的客户信息,并点击完成接待结束客户接待。'
if
(
sceneType
==
1
)
text
=
'请确认“
加装选购
页”中的客户信息,并点击完成接待结束客户接待。'
return
text
}
},
...
...
@@ -245,10 +246,10 @@ export default {
if
(
key
==
'phoneNumber'
&&
this
.
formData
[
key
])
flag
=
!
phoneRex
.
test
(
this
.
formData
[
key
])
return
this
.
errorTip
&&
flag
},
showPopup
(
e
)
{
showPopup
(
{
popKey
,
disabled
}
)
{
let
{
customerType
}
=
this
if
(
customerType
==
0
)
return
this
.
$refs
[
e
].
open
();
if
(
customerType
==
0
||
disabled
)
return
this
.
$refs
[
popKey
].
open
();
},
// 取消
cancel
()
{
...
...
pages/boutique/components/Reception.vue
View file @
2c6d830
<
template
>
<view
class=
"layout"
>
<view
class=
"tab-box flex"
v-if=
"customerType == 1 || isPreview"
>
<view
class=
"tab-box flex"
v-if=
"customerType == 1 || isPreview"
>
<template
v-for=
"(item, index) in carList"
>
<view
:key=
"index"
:class=
"['tab',`$
{currentIndex == index ? 'active' : ''}`]"
@click="c
urrentCarString = item
"
@click="c
hangeCar(item)
"
>
{{
item
}}
</view>
</
template
>
</view>
<view
class=
"risk-informed flex"
>
风险告知
<view
class=
"sprite-icon icon-info_shield"
></view>
</view>
<view
class=
"content-box flex"
>
<view
class=
"left-content"
></view>
<view
class=
"left-content"
:key=
"updateViewKey"
>
<view
class=
"tips"
>
* 点击图片查看详情
>
</view>
</view>
<view
class=
"right-content"
>
<view
:class=
"['sku-box',isPreview ? 'preview' : '']"
>
<sku-box
:currentCar=
"currentCarString"
:defaultTabId=
"tabId"
:show=
"show"
@
changePreView=
"changePreView"
/>
</view>
<view
class=
"coupon-btn flex"
v-if=
"!isPreview"
@
click=
"$refs.couponPopup.open()"
>
{{couponText}}
</view>
</view>
</view>
<car-brands
ref=
"carBrandRef"
@
select=
"handleSelect"
/>
<coupon-pop
:carInfo=
"carInfo"
ref=
"couponPopup"
/>
</view>
</template>
<
script
type=
'text/ecmascript-6'
>
import
SkuBox
from
'./SkuBox.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
CouponPop
from
'./CouponPop.vue'
export
default
{
name
:
'Reception'
,
components
:
{
SkuBox
},
components
:
{
SkuBox
,
CarBrands
,
CouponPop
},
props
:
{
customerType
:
Number
,
show
:
Boolean
,
...
...
@@ -47,6 +71,8 @@ export default {
carList
:
[
'M5'
,
'M7'
,
'M9'
],
currentCarString
:
''
,
customerInfo
:
{},
updateViewKey
:
Date
.
now
(),
carInfo
:
{}
}
},
watch
:
{
...
...
@@ -59,6 +85,7 @@ export default {
watchStatus
:
{
immediate
:
true
,
handler
(
newval
)
{
}
},
currentCar
:
{
...
...
@@ -66,7 +93,14 @@ export default {
handler
(
newval
)
{
this
.
currentCarString
=
newval
}
},
currentCarString
:
{
immediate
:
true
,
handler
(
newval
)
{
if
(
this
.
show
&&
newval
&&
!
this
.
isPreview
&&
this
.
customerType
==
1
)
this
.
$refs
.
carBrandRef
.
autoSelect
(
this
.
carList
.
findIndex
(
e
=>
e
==
newval
))
}
}
},
computed
:
{
watchCustomerInfo
()
{
...
...
@@ -81,12 +115,25 @@ export default {
isPreview
()
{
return
this
.
type
==
'preview'
},
couponText
()
{
couponText
()
{
return
this
.
customerType
==
0
?
'查看客户券码'
:
'为客户发券'
}
},
methods
:
{
changeCar
(
item
)
{
this
.
currentCarString
=
item
this
.
updateViewKey
=
Date
.
now
()
},
changePreView
(
e
)
{
this
.
updateViewKey
=
Date
.
now
()
},
handleSelect
(
item
)
{
console
.
log
(
item
)
this
.
customerInfo
.
carModel
=
item
.
name
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
this
.
carInfo
=
item
}
}
}
</
script
>
...
...
@@ -99,6 +146,18 @@ export default {
position
:
absolute
;
top
:
0
;
left
:
0
;
.risk-informed
{
position
:
absolute
;
right
:
24
rpx
;
top
:
72
rpx
;
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#333333
;
line-height
:
48
rpx
;
.sprite-icon
{
margin-left
:
8
rpx
;
}
}
.tab-box
{
padding-top
:
66
rpx
;
position
:
fixed
;
...
...
@@ -144,11 +203,29 @@ export default {
.content-box
{
height
:
calc
(
100vh
-
144
rpx
);
margin-top
:
144
rpx
;
padding
:
0
0
64
rpx
64
rpx
;
padding
:
0
0
64
rpx
64
rpx
;
.left-content
{
width
:
1328
rpx
;
height
:
100%
;
background
:
#069
;
position
:
relative
;
.tips
{
position
:
absolute
;
right
:
32
rpx
;
bottom
:
32
rpx
;
animation
:
tips-show
0.15s
forwards
;
font-size
:
24
rpx
;
color
:
#999999
;
line-height
:
36
rpx
;
}
@keyframes
tips-show
{
0
%
{
transform
:
scale
(
0.1
);
}
100
%
{
transform
:
scale
(
1
);
}
}
}
.right-content
{
width
:
calc
(
100%
-
1362
rpx
);
...
...
pages/boutique/components/SkuBox.vue
View file @
2c6d830
...
...
@@ -37,12 +37,12 @@
enable-flex
>
<view
class=
"thirdly-type-box flex"
>
<template
v-for=
"(i,index) in
20
"
>
<template
v-for=
"(i,index) in
3
"
>
<view
:class=
"['thirdly-type-item flex',thirdlyIndex == index ? 'active' : '']"
:key=
"index"
@
click=
"thirdlyIndex = index"
>
{{
i
}}
一二三四五一二三四
</view>
>
{{
i
}}
</view>
</
template
>
<view
class=
"padding-right"
></view>
</view>
...
...
@@ -59,7 +59,7 @@
<view
:class=
"['goods-item',goodsId == index ? 'active' : '']"
:key=
"index"
@
click=
"
goodsId = index
"
@
click=
"
changeGoods(index)
"
>
<view
class=
"goods-title"
>
一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五一二三四五
</view>
<view
class=
"goods-description"
>
...
...
@@ -157,6 +157,13 @@ export default {
this
.
contentHeight
=
`calc(100% -
${
data
.
top
-
72
}
px)`
}).
exec
()
})
},
changeGoods
(
index
){
this
.
goodsId
=
index
this
.
changePreView
()
},
changePreView
(){
this
.
$emit
(
'changePreView'
)
}
}
}
...
...
pages/boutique/detail.vue
View file @
2c6d830
...
...
@@ -49,7 +49,7 @@
@
choose=
"choose"
@
finish=
"open"
:id=
"id"
toolStyle=
"top:
48
rpx;"
toolStyle=
"top:
144
rpx;"
/>
</
template
>
<finish-step
...
...
@@ -147,15 +147,15 @@ export default {
});
return
}
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
{
let
customer
=
{
customerName
:
item
.
customerName
,
carModel
:
item
.
carSeriesName
,
phoneNumber
:
item
.
customerPhone
,
salesUuid
:
item
.
userId
,
staffName
:
item
.
employeeName
,
receiveCouponDate
:
item
.
receiveCouponDate
}
)
this
.
$emit
(
'reception'
)
}
this
.
$emit
(
'reception'
,
customer
)
},
backInvitation
()
{
this
.
jumpPage
({
id
:
3
})
...
...
pages/boutique/index.vue
View file @
2c6d830
...
...
@@ -168,7 +168,7 @@ export default {
url
:
m9
,
configList
:
[]
}],
currentCar
:
'
M7
'
,
currentCar
:
''
,
currentIndex
:
0
,
bannerAutoplay
:
true
,
mediaConfigList
:
[]
...
...
@@ -276,7 +276,7 @@ export default {
this
.
$refs
.
home
.
finishRef
.
close
();
this
.
id
=
""
;
this
.
type
=
""
;
this
.
currentCar
=
this
.
carBannerList
[
1
].
title
this
.
currentCar
=
''
this
.
bannerAutoplay
=
true
this
.
customerType
=
-
1
this
.
clearHistory
();
...
...
@@ -339,11 +339,12 @@ export default {
if
(
index
==
0
)
this
.
init
()
},
/**客户邀约接待 */
reception
()
{
reception
(
customer
)
{
let
{
customerType
}
=
this
if
(
customerType
==
-
1
)
this
.
start
(
false
)
//开始接待
this
.
customerType
=
0
this
.
jumpPage
()
this
.
$nextTick
(()
=>
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
customer
))
},
swiperChange
(
e
)
{
this
.
currentIndex
=
e
.
detail
.
current
...
...
pages/boutique/invitation.vue
View file @
2c6d830
...
...
@@ -109,8 +109,8 @@ export default {
},
watch
:{
show
:{
handler
()
{
this
.
init
()
handler
(
val
)
{
if
(
val
)
this
.
init
()
this
.
$refs
.
receptionTips
?.
close
()
},
immediate
:
true
...
...
store/modules/user.js
View file @
2c6d830
...
...
@@ -25,9 +25,9 @@ export default {
paymentType
:
[],
haveCustomerAccess
:
false
,
boutiqueMediaConfig
:
{
M5
:[],
M7
:[],
M9
:[]
M5
:
[],
M7
:
[],
M9
:
[]
}
};
},
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment