Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
95577de8
Commit
95577de8
authored
Oct 05, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
a3e4597e
c5c44810
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
24 deletions
+23
-24
App.vue
src/App.vue
+4
-1
avatorSwiper.vue
src/components/avatorSwiper.vue
+7
-6
groupShare.vue
src/components/groupShare.vue
+7
-8
groupSwiper.vue
src/components/groupSwiper.vue
+5
-9
No files found.
src/App.vue
View file @
95577de8
...
@@ -55,7 +55,10 @@ export default {
...
@@ -55,7 +55,10 @@ export default {
},
},
$route
()
{
$route
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
document
.
querySelectorAll
(
'
.cr-overlay
'
).
forEach
(
e
=>
e
.
parentNode
.
removeChild
(
e
));
this
.
$refs
.
gdShare
.
shareCloseChange
();
//切换页面隐藏分享弹窗
document
.
querySelectorAll
(
'
.cr-overlay
'
)
.
forEach
(
e
=>
!
e
.
parentNode
.
className
.
includes
(
'
share
'
)
&&
e
.
parentNode
.
removeChild
(
e
));
store
.
dispatch
(
'
change_show_mini_app_guide
'
,
{
store
.
dispatch
(
'
change_show_mini_app_guide
'
,
{
bool
:
!
isApp
&&
!
isWxMp
&&
!
isWechat
?
true
:
false
,
bool
:
!
isApp
&&
!
isWxMp
&&
!
isWechat
?
true
:
false
,
pointer
:
this
pointer
:
this
...
...
src/components/avatorSwiper.vue
View file @
95577de8
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
data
()
{
data
()
{
const
vm
=
this
;
const
vm
=
this
;
const
isLoop
=
vm
.
avatorData
.
length
<
9
?
false
:
true
;
const
isLoop
=
vm
.
avatorData
.
length
<
9
?
false
:
true
;
const
autoplay
=
isLoop
?
{
delay
:
30
00
}
:
false
;
const
autoplay
=
isLoop
?
{
delay
:
15
00
}
:
false
;
return
{
return
{
timer
:
null
,
timer
:
null
,
interTimer
:
null
,
interTimer
:
null
,
...
@@ -77,13 +77,14 @@ export default {
...
@@ -77,13 +77,14 @@ export default {
slideLeft
.
addClass
(
'
ani-opt
'
);
slideLeft
.
addClass
(
'
ani-opt
'
);
slideRight
.
addClass
(
'
ani-opt
'
);
slideRight
.
addClass
(
'
ani-opt
'
);
vm
.
isAddClass
=
true
;
vm
.
isAddClass
=
true
;
clearTimeout
(
vm
.
timer
);
//
clearTimeout(vm.timer);
vm
.
timer
=
setTimeout
(()
=>
{
//
vm.timer = setTimeout(() => {
vm
.
oneTransLate
(
vm
.
getAvatorItem
(
slideRight
));
//
vm.oneTransLate(vm.getAvatorItem(slideRight));
clearTimeout
(
vm
.
timer
);
//
clearTimeout(vm.timer);
},
1000
);
//
}, 1000);
},
},
transitionEnd
:
function
()
{
transitionEnd
:
function
()
{
vm
.
oneTransLate
(
vm
.
getAvatorItem
(
this
.
slides
.
eq
(
this
.
activeIndex
+
4
)));
for
(
let
i
=
0
;
i
<
this
.
slides
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
slides
.
length
;
i
++
)
{
let
slide
=
this
.
slides
.
eq
(
i
);
let
slide
=
this
.
slides
.
eq
(
i
);
slide
.
removeClass
(
'
ani-opt
'
);
slide
.
removeClass
(
'
ani-opt
'
);
...
...
src/components/groupShare.vue
View file @
95577de8
...
@@ -164,13 +164,13 @@ export default {
...
@@ -164,13 +164,13 @@ export default {
return
`/pages/groupbuy/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
linkPath
))}
`
;
return
`/pages/groupbuy/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
linkPath
))}
`
;
}
}
// // 本地测试时走的逻辑
// // 本地测试时走的逻辑
if
(
isApp
)
{
//
if (isApp) {
const
linkPrve
=
`https://mall.q-gp.com/common/launch?wxapp=gh_e1d790d67513&jumpUrl=
${
encodeURIComponent
(
//
const linkPrve = `https://mall.q-gp.com/common/launch?wxapp=gh_e1d790d67513&jumpUrl=${encodeURIComponent(
'
pages/groupbuy/webview
'
//
'pages/groupbuy/webview'
)}
&terminal=1`
;
//
)}&terminal=1`;
const
linkParams
=
encodeURIComponent
(
JSON
.
stringify
({
url
:
linkPath
}));
//
const linkParams = encodeURIComponent(JSON.stringify({ url: linkPath }));
return
`
${
linkPrve
}
&extraInfo=
${
linkParams
}
`
;
//
return `${linkPrve}&extraInfo=${linkParams}`;
}
//
}
return
linkPath
;
return
linkPath
;
},
},
shareOpenWechat
()
{
shareOpenWechat
()
{
...
@@ -211,7 +211,6 @@ export default {
...
@@ -211,7 +211,6 @@ export default {
openTenetPosterUrl
()
{
openTenetPosterUrl
()
{
// 打开小程序的海报下载页面
// 打开小程序的海报下载页面
const
{
posterUrl
}
=
this
.
shareInfo
;
const
{
posterUrl
}
=
this
.
shareInfo
;
console
.
log
(
posterUrl
);
this
.
nativeBridge
.
openNewUrl
({
this
.
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/groupbuy/goodshare?url=
${
encodeURIComponent
(
JSON
.
stringify
(
posterUrl
))}
`
newUrl
:
`/pages/groupbuy/goodshare?url=
${
encodeURIComponent
(
JSON
.
stringify
(
posterUrl
))}
`
});
});
...
...
src/components/groupSwiper.vue
View file @
95577de8
...
@@ -45,7 +45,7 @@ export default {
...
@@ -45,7 +45,7 @@ export default {
data
()
{
data
()
{
const
vm
=
this
;
const
vm
=
this
;
const
isLoop
=
vm
.
avatorData
.
length
<
7
?
false
:
true
;
const
isLoop
=
vm
.
avatorData
.
length
<
7
?
false
:
true
;
const
autoplay
=
isLoop
?
{
delay
:
1
5
00
,
reverseDirection
:
true
}
:
false
;
const
autoplay
=
isLoop
?
{
delay
:
1
0
00
,
reverseDirection
:
true
}
:
false
;
return
{
return
{
timer
:
null
,
timer
:
null
,
interTimer
:
null
,
interTimer
:
null
,
...
@@ -77,18 +77,14 @@ export default {
...
@@ -77,18 +77,14 @@ export default {
vm
.
leftImgPath
=
slideLeft
.
data
(
'
src
'
);
vm
.
leftImgPath
=
slideLeft
.
data
(
'
src
'
);
slideLeft
.
addClass
(
'
ani-opt
'
);
slideLeft
.
addClass
(
'
ani-opt
'
);
slideRight
.
addClass
(
'
ani-opt
'
);
slideRight
.
addClass
(
'
ani-opt
'
);
clearTimeout
(
vm
.
timer
);
vm
.
timer
=
setTimeout
(()
=>
{
vm
.
oneTransLate
(
vm
.
getAvatorItem
(
slideLeft
));
clearTimeout
(
vm
.
timer
);
},
800
);
},
},
transitionEnd
:
function
()
{
transitionEnd
:
function
()
{
vm
.
isAnimate
=
false
;
vm
.
oneTransLate
(
vm
.
getAvatorItem
(
this
.
slides
.
eq
(
this
.
activeIndex
-
3
)))
;
for
(
let
i
=
0
;
i
<
this
.
slides
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
slides
.
length
;
i
++
)
{
let
slide
=
this
.
slides
.
eq
(
i
);
let
slide
=
this
.
slides
.
eq
(
i
);
slide
.
removeClass
(
'
ani-opt
'
);
slide
.
removeClass
(
'
ani-opt
'
);
}
}
vm
.
isAnimate
=
false
;
}
}
}
}
}
}
...
@@ -140,11 +136,11 @@ export default {
...
@@ -140,11 +136,11 @@ export default {
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
@keyframes leftToRight {
@keyframes leftToRight {
from {
from {
transform: scale(0.3);
transform: scale(0.3)
translate3d(0, 0, 0)
;
opacity: 0;
opacity: 0;
}
}
to {
to {
transform: scale(1);
transform: scale(1)
translate3d(0, 0, 0)
;
opacity: 1;
opacity: 1;
}
}
}
}
...
...
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