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 4401f9de
authored
Sep 10, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
976f1d89
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
119 additions
and
166 deletions
pages/boutique/components/QrBox.vue
pages/boutique/components/Reception.vue
pages/boutique/components/RiskInformedBox.vue
pages/boutique/components/SkuBox.vue
pages/boutique/components/copyReception.vue
pages/boutique/detail.vue
pages/boutique/components/QrBox.vue
deleted
100644 → 0
View file @
976f1d8
<
template
>
<uni-popup
ref=
"qr"
type=
"center"
:is-mask-click=
"false"
animation
class=
"qrPopup"
>
<view
class=
"box"
>
<template
v-if=
"count > 0"
>
<view
class=
"icon-close-box count"
>
{{
count
}}
</view>
</
template
>
<
template
v-else
>
<view
class=
"icon-close-box flex"
@
click=
"close"
>
<uni-icons
class=
"icon-close"
type=
"closeempty"
:size=
"16"
color=
"#1A1A1A"
></uni-icons>
</view>
</
template
>
<view
class=
"content flex"
>
<view
class=
"title flex"
>
<view
class=
"sprite-icon icon-scan"
></view>
请让客户扫码领取
</view>
<
template
v-if=
"received"
>
<view
class=
"received flex"
>
<view
class=
"sprite-icon icon-qr-success"
></view>
<view
class=
"received-title"
>
客户领券成功
</view>
<view
class=
"received-text"
>
车主已领取该礼券,请前往客户邀约列表查看
</view>
</view>
</
template
>
<
template
v-else
>
<view
class=
"qr-box"
>
<image
:src=
"url"
/>
</view>
</
template
>
</view>
</view>
</uni-popup>
</template>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
'QRBox'
,
props
:
{
url
:
{
type
:
String
,
default
:
''
,
},
received
:
Boolean
},
data
()
{
return
{
count
:
4
}
},
mounted
()
{
},
methods
:
{
open
()
{
this
.
$refs
.
qr
.
open
();
this
.
count
=
3
this
.
countDown
()
},
close
()
{
this
.
$refs
.
qr
.
close
();
this
.
$emit
(
'close'
)
},
countDown
(){
setTimeout
(()
=>
{
if
(
this
.
count
>
0
){
this
.
count
--
this
.
countDown
()
}
},
1000
)
}
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.qrPopup
{
z-index
:
99
!important
;
}
.box
{
width
:
1040
rpx
;
height
:
800
rpx
;
background
:
#ffffff
;
border-radius
:
48
rpx
;
position
:
relative
;
.icon-close-box
{
position
:
absolute
;
padding
:
48
rpx
;
top
:
0
;
right
:
0
;
}
.count
{
color
:
#999999
;
}
.content
{
flex-direction
:
column
;
.title
{
padding
:
80
rpx
0
48
rpx
;
font-weight
:
500
;
font-size
:
32
rpx
;
color
:
#333333
;
.sprite-icon
{
margin-right
:
12
rpx
;
}
}
.qr-box
{
width
:
560
rpx
;
height
:
560
rpx
;
background
:
#ffffff
;
box-shadow
:
0
0
24
rpx
0
#0000001
a
;
border-radius
:
32
rpx
;
padding
:
40
rpx
;
box-sizing
:
border-box
;
image
{
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
}
}
.received
{
width
:
560
rpx
;
height
:
560
rpx
;
background
:
#f9f9f9
;
border-radius
:
32
rpx
;
flex-direction
:
column
;
justify-content
:
center
;
&-title
{
font-weight
:
500
;
font-size
:
28
rpx
;
color
:
#333333
;
margin
:
16
rpx
0
48
rpx
;
}
&
-text
{
font-size
:
28
rpx
;
color
:
#666666
;
margin
:
0
56
rpx
;
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
pages/boutique/components/Reception.vue
View file @
4401f9d
...
@@ -14,7 +14,10 @@
...
@@ -14,7 +14,10 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<view
class=
"risk-informed flex"
>
<view
class=
"risk-informed flex"
@
click=
"$refs.riskInformedPop.open()"
>
风险告知
风险告知
<view
class=
"sprite-icon icon-info_shield"
></view>
<view
class=
"sprite-icon icon-info_shield"
></view>
</view>
</view>
...
@@ -24,7 +27,10 @@
...
@@ -24,7 +27,10 @@
:key=
"updateViewKey"
:key=
"updateViewKey"
@
click=
"showPicture(currentItem.detailImgUrl)"
@
click=
"showPicture(currentItem.detailImgUrl)"
>
>
<image
:src=
"currentItem.poster"
class=
"poster"
/>
<image
:src=
"currentItem.poster"
class=
"poster"
/>
<view
class=
"tips"
>
* 点击图片查看详情
>
</view>
<view
class=
"tips"
>
* 点击图片查看详情
>
</view>
</view>
</view>
<view
class=
"right-content"
>
<view
class=
"right-content"
>
...
@@ -52,6 +58,10 @@
...
@@ -52,6 +58,10 @@
ref=
"couponPopup"
ref=
"couponPopup"
/>
/>
<picture-box
:imgUrl=
"currentImgUrl"
/>
<picture-box
:imgUrl=
"currentImgUrl"
/>
<risk-informed-box
ref=
"riskInformedPop"
:popupImg=
"popupImg"
/>
</view>
</view>
</template>
</template>
...
@@ -60,15 +70,17 @@ import SkuBox from './SkuBox.vue'
...
@@ -60,15 +70,17 @@ import SkuBox from './SkuBox.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
CouponPop
from
'./CouponPop.vue'
import
CouponPop
from
'./CouponPop.vue'
import
PictureBox
from
'./Picture.vue'
import
PictureBox
from
'./Picture.vue'
import
RiskInformedBox
from
'./RiskInformedBox.vue'
export
default
{
export
default
{
name
:
'Reception'
,
name
:
'Reception'
,
components
:
{
SkuBox
,
CarBrands
,
CouponPop
,
PictureBox
},
components
:
{
SkuBox
,
CarBrands
,
CouponPop
,
PictureBox
,
RiskInformedBox
},
props
:
{
props
:
{
customerType
:
Number
,
customerType
:
Number
,
show
:
Boolean
,
show
:
Boolean
,
tabId
:
Number
,
tabId
:
Number
,
currentCar
:
String
,
currentCar
:
String
,
type
:
String
type
:
String
,
popupImg
:
String
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -136,12 +148,12 @@ export default {
...
@@ -136,12 +148,12 @@ export default {
this
.
updateViewKey
=
Date
.
now
()
this
.
updateViewKey
=
Date
.
now
()
},
},
handleSelect
(
item
)
{
handleSelect
(
item
)
{
console
.
log
(
item
)
this
.
customerInfo
.
carModel
=
item
.
name
this
.
customerInfo
.
carModel
=
item
.
name
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
this
.
$store
.
dispatch
(
'setCustomerInfo'
,
this
.
customerInfo
)
this
.
carInfo
=
item
this
.
carInfo
=
item
},
},
showPicture
(
e
)
{
showPicture
(
e
)
{
this
.
currentImgUrl
=
e
this
.
currentImgUrl
=
e
}
}
}
}
...
@@ -218,7 +230,7 @@ export default {
...
@@ -218,7 +230,7 @@ export default {
width
:
1328
rpx
;
width
:
1328
rpx
;
height
:
100%
;
height
:
100%
;
position
:
relative
;
position
:
relative
;
.poster{
.poster
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
...
...
pages/boutique/components/RiskInformedBox.vue
0 → 100644
View file @
4401f9d
<
template
>
<uni-popup
ref=
"riskInformed"
type=
"center"
:is-mask-click=
"false"
animation
class=
"risk-popup"
>
<view
class=
"box"
>
<view
class=
"icon-close-box flex"
@
click=
"close"
>
<uni-icons
class=
"icon-close"
type=
"closeempty"
:size=
"24"
color=
"#fff"
></uni-icons>
</view>
<image
class=
"img"
:src=
"popupImg"
/>
</view>
</uni-popup>
</
template
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
'RiskInformedBox'
,
props
:
{
popupImg
:
String
},
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
open
()
{
this
.
$refs
.
riskInformed
.
open
();
},
close
()
{
this
.
$refs
.
riskInformed
.
close
();
},
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.risk-popup
{
z-index
:
99
!important
;
}
.box
{
width
:
2026
rpx
;
height
:
1280
rpx
;
background
:
#ffffff
;
border-radius
:
48
rpx
;
position
:
relative
;
.icon-close-box
{
position
:
absolute
;
top
:
32
rpx
;
right
:
48
rpx
;
width
:
72
rpx
;
height
:
72
rpx
;
justify-content
:
center
;
border-radius
:
100%
;
background
:
rgb
(
121
,
123
,
127
);
z-index
:
2
;
}
.img
{
width
:
100%
;
height
:
100%
;
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
pages/boutique/components/SkuBox.vue
View file @
4401f9d
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
<view
<view
:class=
"['second-type-item flex',secondIndex == index ? 'active' : '']"
:class=
"['second-type-item flex',secondIndex == index ? 'active' : '']"
:key=
"index"
:key=
"index"
@
click=
"second
Index = index
"
@
click=
"second
Click(index)
"
>
{{
i
}}
一二三四五一二三四
</view>
>
{{
i
}}
一二三四五一二三四
</view>
</
template
>
</
template
>
<view
class=
"padding-right"
></view>
<view
class=
"padding-right"
></view>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<view
<view
:class=
"['thirdly-type-item flex',thirdlyIndex == index ? 'active' : '']"
:class=
"['thirdly-type-item flex',thirdlyIndex == index ? 'active' : '']"
:key=
"index"
:key=
"index"
@
click=
"thirdly
Index = index
"
@
click=
"thirdly
Click(index)
"
>
{{
i
}}
</view>
>
{{
i
}}
</view>
</
template
>
</
template
>
<view
class=
"padding-right"
></view>
<view
class=
"padding-right"
></view>
...
@@ -91,7 +91,7 @@ export default {
...
@@ -91,7 +91,7 @@ export default {
contentHeight
:
'0'
,
contentHeight
:
'0'
,
requested
:
false
,
requested
:
false
,
currentItem
:
{
currentItem
:
{
poster
:
'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-cover.webp'
,
poster
:
'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-cover.webp'
,
detailImgUrl
:
'https://wx.glsx.com.cn/upload/biz/d3c64724-3e0c-4401-aabe-56dc0060f6d6.png'
detailImgUrl
:
'https://wx.glsx.com.cn/upload/biz/d3c64724-3e0c-4401-aabe-56dc0060f6d6.png'
},
},
test
:
'·AITO汽车专享 3M车窗膜(全车)\n·M7专享天窗冰甲\n·AITO汽车专享 挡泥板(适配M7)\n·AITO汽车专享 底盘护板(适配M7)\n·AITO汽车专享 挡泥板(适配M7)\n·AITO汽车专享 M7中控屏钢化保护膜\n·M7专享后备箱垫'
test
:
'·AITO汽车专享 3M车窗膜(全车)\n·M7专享天窗冰甲\n·AITO汽车专享 挡泥板(适配M7)\n·AITO汽车专享 底盘护板(适配M7)\n·AITO汽车专享 挡泥板(适配M7)\n·AITO汽车专享 M7中控屏钢化保护膜\n·M7专享后备箱垫'
...
@@ -148,12 +148,11 @@ export default {
...
@@ -148,12 +148,11 @@ export default {
this
.
tabId
=
tabId
this
.
tabId
=
tabId
this
.
blockIndex
=
index
this
.
blockIndex
=
index
this
.
getSkuConfig
()
this
.
getSkuConfig
()
this
.
setScrollHeight
()
},
},
async
getSkuConfig
()
{
async
getSkuConfig
()
{
this
.
test
=
this
.
test
.
replace
(
/<
\/?
br
\s
*
\/?
>|
\n
/g
,
'<br>'
)
this
.
test
=
this
.
test
.
replace
(
/<
\/?
br
\s
*
\/?
>|
\n
/g
,
'<br>'
)
// this.$forceUpdate()
// this.$forceUpdate()
this
.
changeGoods
(
0
)
this
.
secondClick
(
0
)
},
},
setScrollHeight
()
{
setScrollHeight
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -163,10 +162,27 @@ export default {
...
@@ -163,10 +162,27 @@ export default {
}).
exec
()
}).
exec
()
})
})
},
},
secondClick
(
index
)
{
this
.
secondIndex
=
index
if
(
this
.
tabId
==
2
)
{
/**获取品牌 */
this
.
thirdlyIndex
=
0
this
.
getGoodsList
()
}
else
this
.
getGoodsList
()
},
thirdlyClick
(
index
)
{
this
.
thirdlyIndex
=
index
this
.
getGoodsList
()
},
changeGoods
(
index
)
{
changeGoods
(
index
)
{
this
.
goodsId
=
index
this
.
goodsId
=
index
this
.
changePreView
()
this
.
changePreView
()
},
},
getGoodsList
()
{
console
.
log
(
'获取商品列表'
)
this
.
setScrollHeight
()
this
.
changeGoods
(
0
)
},
changePreView
()
{
changePreView
()
{
this
.
$emit
(
'changePreView'
,
this
.
currentItem
)
this
.
$emit
(
'changePreView'
,
this
.
currentItem
)
}
}
...
@@ -292,7 +308,6 @@ export default {
...
@@ -292,7 +308,6 @@ export default {
.content-scroll-box
{
.content-scroll-box
{
.goods-item
{
.goods-item
{
width
:
calc
(
100%
-
64
rpx
);
width
:
calc
(
100%
-
64
rpx
);
min-height
:
244
rpx
;
border
:
2
rpx
solid
#33333333
;
border
:
2
rpx
solid
#33333333
;
border-radius
:
16
rpx
;
border-radius
:
16
rpx
;
padding
:
24
rpx
32
rpx
;
padding
:
24
rpx
32
rpx
;
...
...
pages/boutique/components/copyReception.vue
View file @
4401f9d
...
@@ -169,7 +169,7 @@
...
@@ -169,7 +169,7 @@
<
script
type=
'text/ecmascript-6'
>
<
script
type=
'text/ecmascript-6'
>
import
Employee
from
'@/components/Employee.vue'
import
Employee
from
'@/components/Employee.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
CarBrands
from
'@/components/CarBrands.vue'
import
QrBox
from
'./
Qr
Box.vue'
import
QrBox
from
'./
RiskInformed
Box.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
CustomerAutocomplete
from
'@/components/CustomerAutocomplete.vue'
import
CustomerAutocomplete
from
'@/components/CustomerAutocomplete.vue'
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
;
...
...
pages/boutique/detail.vue
View file @
4401f9d
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
:tabId=
"tabId"
:tabId=
"tabId"
:currentCar=
"currentCar"
:currentCar=
"currentCar"
:type=
"type"
:type=
"type"
:popupImg=
"item.popupImg"
/>
/>
</view>
</view>
</
template
>
</
template
>
...
...
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