Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
a6aa477a
Commit
a6aa477a
authored
Apr 01, 2021
by
张卓
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
88138320
d16a56fe
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
src/components/basicTool/shop-popup/index.vue
+8
-6
No files found.
src/components/basicTool/shop-popup/index.vue
View file @
a6aa477a
<!-- 文字上下滚动 -->
<!-- 文字上下滚动 -->
<
template
>
<
template
>
<div
<div
class=
"marquee"
class=
"marquee
-wrap
"
v-if=
"targetShow"
v-if=
"targetShow"
:style=
"
[this.render?
{'pointer-events':'none'}:'',{'top':datas.componentData.yPosition+'em'}]
"
:style=
"
{'top':(datas.componentData.yPosition * 16) +'px'}
"
>
>
<div
class=
"marquee_box"
>
<div
class=
"marquee_box"
>
<div
class=
"evaluate"
:class=
"animate?'animation_in':'animation_out'"
>
<div
class=
"evaluate"
:class=
"animate?'animation_in':'animation_out'"
>
<img
:src=
"selectImg
| DFSImg(300,300)
"
alt
/>
<img
:src=
"selectImg"
alt
/>
<span>
{{
subName
}}
刚刚购买了一单
</span>
<span>
{{
subName
}}
刚刚购买了一单
</span>
</div>
</div>
</div>
</div>
...
@@ -15,7 +15,9 @@
...
@@ -15,7 +15,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
DFSImg
}
from
'../../../utils/index.js'
let
api
;
let
api
;
const
app
=
getApp
()
const
app
=
getApp
()
export
default
{
export
default
{
name
:
"shop-popup"
,
name
:
"shop-popup"
,
...
@@ -106,6 +108,8 @@ export default {
...
@@ -106,6 +108,8 @@ export default {
this
.
selectname
=
this
.
marqueeList
[
this
.
selectIndex
].
customerNickname
;
this
.
selectname
=
this
.
marqueeList
[
this
.
selectIndex
].
customerNickname
;
this
.
selectImg
=
this
.
marqueeList
[
this
.
selectIndex
].
customerHeadImage
;
this
.
selectImg
=
this
.
marqueeList
[
this
.
selectIndex
].
customerHeadImage
;
this
.
selectImg
=
DFSImg
(
this
.
selectImg
,
300
,
300
)
if
(
this
.
selectname
.
length
>
1
)
{
if
(
this
.
selectname
.
length
>
1
)
{
this
.
subName
=
`
${
this
.
selectname
.
substr
(
0
,
1
)}
****
${
this
.
selectname
.
charAt
(
this
.
subName
=
`
${
this
.
selectname
.
substr
(
0
,
1
)}
****
${
this
.
selectname
.
charAt
(
this
.
selectname
.
length
-
1
this
.
selectname
.
length
-
1
...
@@ -141,8 +145,7 @@ export default {
...
@@ -141,8 +145,7 @@ export default {
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
/* @import url(); 引入css类 */
.marquee-wrap
{
.marquee
{
font-size
:
16px
;
font-size
:
16px
;
width
:
100%
;
width
:
100%
;
align-items
:
center
;
align-items
:
center
;
...
@@ -151,7 +154,6 @@ export default {
...
@@ -151,7 +154,6 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
overflow
:
hidden
;
overflow
:
hidden
;
position
:
fixed
;
position
:
fixed
;
//
top
:
10%
;
left
:
0px
;
left
:
0px
;
z-index
:
1999
;
z-index
:
1999
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment