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
4f7af0b1
Commit
4f7af0b1
authored
Sep 29, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:生成海报loading
parent
6c4a8e2c
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
App.vue
src/App.vue
+2
-1
sharePic.vue
src/components/sharePic.vue
+3
-1
module.js
src/store/module.js
+7
-0
type.js
src/store/type.js
+1
-0
index.vue
src/views/goodsList/index.vue
+1
-2
No files found.
src/App.vue
View file @
4f7af0b1
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</keep-alive>
</keep-alive>
<router-view
v-if=
"!$route.meta.keepLive"
/>
<router-view
v-if=
"!$route.meta.keepLive"
/>
</div>
</div>
<div
v-if=
"loading"
class=
"loading-container"
>
<div
v-if=
"loading
|| loadingPic
"
class=
"loading-container"
>
<cr-loading
class=
"loading"
size=
"24px"
>
加载中...
</cr-loading>
<cr-loading
class=
"loading"
size=
"24px"
>
加载中...
</cr-loading>
</div>
</div>
<net-error
/>
<net-error
/>
...
@@ -37,6 +37,7 @@ export default {
...
@@ -37,6 +37,7 @@ export default {
title
:
state
=>
state
.
pay
.
title
,
title
:
state
=>
state
.
pay
.
title
,
header
:
state
=>
state
.
pay
.
header
,
header
:
state
=>
state
.
pay
.
header
,
loading
:
state
=>
state
.
pay
.
loading
,
loading
:
state
=>
state
.
pay
.
loading
,
loadingPic
:
state
=>
state
.
pay
.
loadingPic
,
isPrimordialBrowser
:
state
=>
state
.
pay
.
isPrimordialBrowser
,
isPrimordialBrowser
:
state
=>
state
.
pay
.
isPrimordialBrowser
,
isWeixinBrowser
:
state
=>
state
.
pay
.
isWeixinBrowser
isWeixinBrowser
:
state
=>
state
.
pay
.
isWeixinBrowser
})
})
...
...
src/components/sharePic.vue
View file @
4f7af0b1
...
@@ -175,6 +175,7 @@ export default {
...
@@ -175,6 +175,7 @@ export default {
return
n
;
return
n
;
},
},
async
createAndUploadPic
(
sharePicData
)
{
async
createAndUploadPic
(
sharePicData
)
{
this
.
$store
.
dispatch
(
'
change_loading_pic
'
,
true
);
this
.
sharePicData
=
sharePicData
;
this
.
sharePicData
=
sharePicData
;
const
endTimeYMD
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
0
]
:
''
;
const
endTimeYMD
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
0
]
:
''
;
const
endTimeHMS
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
1
]
:
''
;
const
endTimeHMS
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
1
]
:
''
;
...
@@ -204,12 +205,13 @@ export default {
...
@@ -204,12 +205,13 @@ export default {
const
observer
=
{
const
observer
=
{
error
(
err
)
{
error
(
err
)
{
console
.
log
(
err
);
console
.
log
(
err
);
_this
.
$store
.
dispatch
(
'
change_loading
'
,
false
);
_this
.
$store
.
dispatch
(
'
change_loading
_pic
'
,
false
);
},
},
complete
({
hash
})
{
complete
({
hash
})
{
const
fileLink
=
config
.
qiniuHost
+
hash
;
const
fileLink
=
config
.
qiniuHost
+
hash
;
console
.
log
(
'
pic create success
'
,
fileLink
);
console
.
log
(
'
pic create success
'
,
fileLink
);
_this
.
$emit
(
'
outputPicUrl
'
,
fileLink
);
_this
.
$emit
(
'
outputPicUrl
'
,
fileLink
);
_this
.
$store
.
dispatch
(
'
change_loading_pic
'
,
false
);
}
}
};
};
observable
.
subscribe
(
observer
);
observable
.
subscribe
(
observer
);
...
...
src/store/module.js
View file @
4f7af0b1
...
@@ -5,6 +5,7 @@ const state = {
...
@@ -5,6 +5,7 @@ const state = {
header
:
true
,
header
:
true
,
title
:
'
支付中心
'
,
title
:
'
支付中心
'
,
loading
:
false
,
loading
:
false
,
loadingPic
:
false
,
meta
:
{},
meta
:
{},
keepAliveMap
:
[],
keepAliveMap
:
[],
isPrimordialBrowser
:
false
,
// 是否是原生浏览器
isPrimordialBrowser
:
false
,
// 是否是原生浏览器
...
@@ -32,6 +33,9 @@ const actions = {
...
@@ -32,6 +33,9 @@ const actions = {
change_loading
({
commit
},
loading
)
{
change_loading
({
commit
},
loading
)
{
commit
(
types
.
CHANGE_LOADING
,
loading
);
commit
(
types
.
CHANGE_LOADING
,
loading
);
},
},
change_loading_pic
({
commit
},
loading
)
{
commit
(
types
.
CHANGE_LOADING_PIC
,
loading
);
},
add_keep_alive
({
commit
},
name
)
{
add_keep_alive
({
commit
},
name
)
{
commit
(
types
.
ADD_KEEP_ALIVE
,
name
);
commit
(
types
.
ADD_KEEP_ALIVE
,
name
);
},
},
...
@@ -121,6 +125,9 @@ const mutations = {
...
@@ -121,6 +125,9 @@ const mutations = {
},
},
[
types
.
SAVE_LINK_HOST
](
state
,
host
)
{
[
types
.
SAVE_LINK_HOST
](
state
,
host
)
{
state
.
openLink
=
host
;
state
.
openLink
=
host
;
},
[
types
.
CHANGE_LOADING_PIC
](
state
,
loading
)
{
state
.
loadingPic
=
loading
;
}
}
};
};
...
...
src/store/type.js
View file @
4f7af0b1
...
@@ -2,6 +2,7 @@ export const CHANGE_HEADER = 'CHANGE_HEADER';
...
@@ -2,6 +2,7 @@ export const CHANGE_HEADER = 'CHANGE_HEADER';
export
const
CHANGE_TITLE
=
'
CHANGE_TITLE
'
;
export
const
CHANGE_TITLE
=
'
CHANGE_TITLE
'
;
export
const
CHANGE_META
=
'
CHANGE_META
'
;
export
const
CHANGE_META
=
'
CHANGE_META
'
;
export
const
CHANGE_LOADING
=
'
CHANGE_LOADING
'
;
export
const
CHANGE_LOADING
=
'
CHANGE_LOADING
'
;
export
const
CHANGE_LOADING_PIC
=
'
CHANGE_LOADING_PIC
'
;
export
const
CHANGE_SHOW_MINI_APP_GUIDE
=
'
CHANGE_SHOW_MINI_APP_GUIDE
'
;
export
const
CHANGE_SHOW_MINI_APP_GUIDE
=
'
CHANGE_SHOW_MINI_APP_GUIDE
'
;
export
const
CHANGE_IS_WEIXIN_BROWSER
=
'
CHANGE_IS_WEIXIN_BROWSER
'
;
export
const
CHANGE_IS_WEIXIN_BROWSER
=
'
CHANGE_IS_WEIXIN_BROWSER
'
;
export
const
ADD_KEEP_ALIVE
=
'
ADD_KEEP_ALIVE
'
;
export
const
ADD_KEEP_ALIVE
=
'
ADD_KEEP_ALIVE
'
;
...
...
src/views/goodsList/index.vue
View file @
4f7af0b1
<
template
>
<
template
>
<!-- 配置活动背景色 -->
<!-- 配置活动背景色 -->
<div
class=
"group"
:style=
"
{ backgroundColor: goodsTemp.bgcolor }">
<div
class=
"group"
:style=
"
{ backgroundColor: goodsTemp.bgcolor }">
<!-- v-if="!isShowShare" -->
<div
v-if=
"!isShowShare"
class=
"group-puzzle"
@
click=
"goToMyorder"
>
我的拼团
</div>
<div
class=
"group-puzzle"
@
click=
"goToMyorder"
>
我的拼团
</div>
<!-- 配置头部动态信息 start -->
<!-- 配置头部动态信息 start -->
<div
class=
"group-top"
>
<div
class=
"group-top"
>
<!-- 动态活动背景图 -->
<!-- 动态活动背景图 -->
...
...
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