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 57a866af
authored
Jun 19, 2024
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit 提交
1 parent
7736deeb
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
10 deletions
assets/images/media/reception-bg.webp
components/Canvas/wn-canvas.vue
pages/equity/detail/components/Reception.vue
pages/equity/detail/detail.vue
assets/images/media/reception-bg.webp
0 → 100644
View file @
57a866a
No preview for this file type
components/Canvas/wn-canvas.vue
View file @
57a866a
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
:class=
"['canvas-box',{fill:custom}]"
:class=
"['canvas-box',{fill:custom}]"
scale-area
scale-area
:style=
"{height:height}"
:style=
"{height:height}"
@
touchstart=
"viewTouchStart"
>
>
<!-- :style="{aspectRatio:aspectRatio}" -->
<!-- :style="{aspectRatio:aspectRatio}" -->
<movable-view
<movable-view
...
@@ -72,6 +73,9 @@
...
@@ -72,6 +73,9 @@
:direction=
"scaleValue == 1?'none':'all'"
:direction=
"scaleValue == 1?'none':'all'"
:scale-value=
"defaultScaleValue"
:scale-value=
"defaultScaleValue"
@
scale=
"scale"
@
scale=
"scale"
@
change=
"change"
:x=
"viewX"
:y=
"viewY"
>
>
<canvas
<canvas
:class=
"['board-canvas',{'draw-canvas':drawStatus}]"
:class=
"['board-canvas',{'draw-canvas':drawStatus}]"
...
@@ -222,8 +226,9 @@ export default {
...
@@ -222,8 +226,9 @@ export default {
showPenBox
:
false
,
showPenBox
:
false
,
height
:
null
,
height
:
null
,
scaleValue
:
1
,
scaleValue
:
1
,
defaultScaleValue
:
1
defaultScaleValue
:
1
,
viewX
:
0
,
viewY
:
0
};
};
},
},
props
:
{
props
:
{
...
@@ -887,6 +892,19 @@ export default {
...
@@ -887,6 +892,19 @@ export default {
/**缩放 */
/**缩放 */
scale
(
e
)
{
scale
(
e
)
{
this
.
scaleValue
=
e
.
detail
.
scale
this
.
scaleValue
=
e
.
detail
.
scale
setTimeout
(()
=>
{
// this.viewX = this.viewX * this.scaleValue * -1
// this.viewY = this.viewY * this.scaleValue * -1
},
1
e3
)
},
change
(
e
){
// console.log(e.detail.x,e.detail.y)
},
viewTouchStart
(
e
)
{
let
touch
=
e
.
changedTouches
[
0
]
// console.log(touch.pageX,touch.pageY)
// this.viewX = -touch.pageX
// this.viewY = -touch.pageY
}
}
}
}
}
}
...
...
pages/equity/detail/components/Reception.vue
View file @
57a866a
...
@@ -7,6 +7,16 @@
...
@@ -7,6 +7,16 @@
custom
custom
>
>
<template
slot=
"customContent"
>
<template
slot=
"customContent"
>
<view
class=
"carType"
>
<image
:src=
"carTypeList[0]"
class=
"img"
/>
</view>
<view
class=
"title"
>
<view
class=
"sprite-icon icon-aito"
></view>
<view
class=
"text"
>
{{
title
}}
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
<view
class=
"form-box"
class=
"form-box"
...
@@ -49,6 +59,22 @@
...
@@ -49,6 +59,22 @@
</template>
</template>
</view>
</view>
</view>
</view>
<view
class=
"views-box"
>
<
template
v-for=
"(i,index) in views"
>
<view
:key=
"index"
class=
"item"
:style=
"i.style"
>
<image
:src=
"i.detailUrl"
class=
"img"
:style=
"i.imgStyle"
/>
</view>
</
template
>
</view>
</view>
</view>
</template>
</template>
</wnCanvas>
</wnCanvas>
...
@@ -66,7 +92,10 @@ export default {
...
@@ -66,7 +92,10 @@ export default {
components
:
{
CarBrands
},
components
:
{
CarBrands
},
props
:
{
props
:
{
penSwitch
:
Boolean
,
penSwitch
:
Boolean
,
show
:
Boolean
show
:
Boolean
,
title
:
String
,
views
:
Array
,
carTypeList
:
Array
},
},
name
:
'Reception'
,
name
:
'Reception'
,
data
()
{
data
()
{
...
@@ -80,7 +109,7 @@ export default {
...
@@ -80,7 +109,7 @@ export default {
maxlength
:
50
maxlength
:
50
},
},
{
{
placeholder
:
'电话'
,
placeholder
:
'
车主
电话'
,
key
:
'phoneNumber'
,
key
:
'phoneNumber'
,
type
:
'input'
,
type
:
'input'
,
inputType
:
'tel'
,
inputType
:
'tel'
,
...
@@ -104,8 +133,9 @@ export default {
...
@@ -104,8 +133,9 @@ export default {
if
(
newval
)
this
.
customerInfo
=
newval
if
(
newval
)
this
.
customerInfo
=
newval
}
}
},
},
show
(
n
){
show
(
n
)
{
if
(
n
&&
!
this
.
customerInfo
.
carModel
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
console
.
log
(
this
.
views
)
if
(
n
&&
!
this
.
customerInfo
.
carModel
)
this
.
$refs
.
carBrandListVisible
.
autoSelect
()
}
}
},
},
computed
:
{
computed
:
{
...
@@ -152,13 +182,37 @@ export default {
...
@@ -152,13 +182,37 @@ export default {
position
:
relative
;
position
:
relative
;
width
:
100vw
;
width
:
100vw
;
height
:
100vh
;
height
:
100vh
;
background-image
:
url("@/assets/images/media/reception-bg.webp")
;
background-size
:
100%
;
.carType
{
width
:
864
rpx
;
height
:
707
rpx
;
position
:
absolute
;
right
:
0
;
top
:
0
;
z-index
:
2
;
.img
{
width
:
100%
;
height
:
100%
;
vertical-align
:
top
;
}
}
.title
{
padding
:
160
rpx
0
32
rpx
110
rpx
;
.sprite-icon
{
margin-bottom
:
24
rpx
;
}
.text
{
line-height
:
112
rpx
;
font-weight
:
500
;
font-size
:
80
rpx
;
color
:
#333333
;
}
}
.content
{
.content
{
background
:
linear-gradient
(
180deg
,
#f7f9fc
0%
,
#f7f9fc
100%
);
padding-top
:
196
rpx
;
.form-box
{
.form-box
{
height
:
80
rpx
;
height
:
80
rpx
;
margin-bottom
:
48
rpx
;
padding
:
0
110
rpx
;
padding
:
0
64
rpx
;
.form
{
.form
{
display
:
flex
;
display
:
flex
;
gap
:
0
28
rpx
;
gap
:
0
28
rpx
;
...
@@ -217,6 +271,25 @@ export default {
...
@@ -217,6 +271,25 @@ export default {
}
}
}
}
}
}
.views-box
{
display
:
flex
;
gap
:
0
48
rpx
;
padding
:
0
72
rpx
;
justify-content
:
center
;
margin-top
:
92
rpx
;
.item
{
height
:
944
rpx
;
position
:
relative
;
.img
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
aspect-ratio
:
1
/
1
;
height
:
1020
rpx
;
}
}
}
}
}
}
}
</
style
>
</
style
>
pages/equity/detail/detail.vue
View file @
57a866a
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
:ref=
"'media'+item.id"
:ref=
"'media'+item.id"
:title=
"item.detailTitle || ''"
:title=
"item.detailTitle || ''"
:madiaId=
"item.id"
:madiaId=
"item.id"
:carTypeList=
"item.carTypeList"
/>
/>
</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