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
82a9a7f8
Commit
82a9a7f8
authored
Sep 26, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:设置app头部颜色
parent
59bcf45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
App.vue
src/App.vue
+1
-1
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+2
-2
No files found.
src/App.vue
View file @
82a9a7f8
...
@@ -52,7 +52,7 @@ export default {
...
@@ -52,7 +52,7 @@ export default {
}
}
},
},
$route
(
to
)
{
$route
(
to
)
{
to
.
name
!==
'
groupBuyList
'
&&
setAppTitleColor
(
'
#fff
'
);
to
.
name
!==
'
groupBuyList
'
&&
alert
(
setAppTitleColor
(
'
#fff
'
)
);
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/views/goodsList/components/goodsCard.vue
View file @
82a9a7f8
<
template
>
<
template
>
<dl
class=
"group-item"
:class=
"
{ disabled: groupStop }" @click
.stop
="onButtonClick">
<dl
class=
"group-item"
:class=
"
{ disabled: groupStop }" @click="onButtonClick">
<dt
class=
"group-item-thumb"
>
<dt
class=
"group-item-thumb"
>
<cr-image
:src=
"goodsItem.thumbImageUrl"
/>
<cr-image
:src=
"goodsItem.thumbImageUrl"
/>
<span
class=
"group-item-tag"
>
{{
goodsItem
.
groupBuyLimitUserCount
}}
人团
</span>
<span
class=
"group-item-tag"
>
{{
goodsItem
.
groupBuyLimitUserCount
}}
人团
</span>
...
@@ -94,7 +94,7 @@ export default {
...
@@ -94,7 +94,7 @@ export default {
return
Math
.
round
(
percentage
*
100
)
/
100
;
return
Math
.
round
(
percentage
*
100
)
/
100
;
},
},
onButtonClick
()
{
onButtonClick
()
{
alert
(
JSON
.
stringify
(
this
.
goodsItem
));
console
.
log
(
JSON
.
stringify
(
this
.
goodsItem
));
try
{
try
{
const
{
const
{
skuNo
,
skuNo
,
...
...
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