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
a499547b
Commit
a499547b
authored
Sep 22, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
909ef749
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
11 deletions
+27
-11
App.vue
src/App.vue
+7
-7
avatorGroup.vue
src/components/avatorGroup.vue
+13
-2
avatorSwiper.vue
src/components/avatorSwiper.vue
+5
-1
index.vue
src/views/goodsList/index.vue
+2
-1
No files found.
src/App.vue
View file @
a499547b
...
...
@@ -18,8 +18,8 @@
<
script
>
import
{
mapState
}
from
'
vuex
'
;
import
NetError
from
'
@/components/NetError
'
;
import
{
isApp
,
isWxMp
,
isWechat
}
from
'
@/service/validation.service
'
;
import
store
from
'
@/store
'
;
//
import { isApp, isWxMp, isWechat } from '@/service/validation.service';
//
import store from '@/store';
import
Weapp
from
'
@/components/weapp
'
;
import
goodsShare
from
'
@/components/groupShare
'
;
...
...
@@ -52,11 +52,11 @@ export default {
}
},
$route
()
{
store
.
dispatch
(
'
change_show_mini_app_guide
'
,
{
bool
:
!
isApp
&&
!
isWxMp
&&
!
isWechat
?
true
:
false
,
pointer
:
this
});
store
.
dispatch
(
'
change_is_weixin_browser
'
,
!
isApp
&&
!
isWxMp
&&
isWechat
?
true
:
false
);
//
store.dispatch('change_show_mini_app_guide', {
//
bool: !isApp && !isWxMp && !isWechat ? true : false,
//
pointer: this
//
});
//
store.dispatch('change_is_weixin_browser', !isApp && !isWxMp && isWechat ? true : false);
}
},
methods
:
{
...
...
src/components/avatorGroup.vue
View file @
a499547b
...
...
@@ -17,7 +17,7 @@
<cr-image
width=
"25px"
src=
"@/assets/images/new-user.png"
/>
</div>
</div>
<div
class=
"placeholder"
:style=
"widthStyle"
>
<div
v-if=
"avators.length
<
10
"
class=
"placeholder"
:style=
"widthStyle"
>
<div
class=
"content"
>
?
</div>
</div>
<div
class=
"more"
:style=
"widthStyle"
@
click=
"showMoreAvator"
>
...
...
@@ -79,6 +79,15 @@ export default {
return
this
.
avators
.
length
==
6
?
{
width
:
'
25%
'
}
:
{
width
:
'
20%
'
};
}
},
created
()
{
if
(
this
.
groupInfo
.
groupBuyAllUserInfoList
)
{
this
.
avators
=
this
.
groupInfo
.
groupBuyAllUserInfoList
.
map
(
v
=>
{
return
v
.
avatar
;
});
}
else
{
this
.
avators
=
[];
}
},
methods
:
{
showMoreAvator
()
{
this
.
showDialogSlot
=
true
;
...
...
@@ -98,12 +107,14 @@ export default {
.avator-img {
width: 44px;
height: 44px;
/deep/ img {
border-radius: 50%;
}
}
.avator {
background: url('../assets/images/leaderBorder.png');
// border: px solid rgba(255, 212, 0, 0.24);
background-size: cover;
border-radius: 50%;
box-sizing: border-box;
display: flex;
align-items: center;
...
...
src/components/avatorSwiper.vue
View file @
a499547b
...
...
@@ -9,7 +9,7 @@
>
<swiper-slide
v-for=
"(item, index) in avatorData"
:key=
"index"
class=
"avator-swiper_item"
>
<div
class=
"avator-swiper_item"
>
<img
:src=
"item"
/>
<img
:src=
"item
| Img2Thumb
"
/>
</div>
</swiper-slide>
</swiper>
...
...
@@ -18,12 +18,16 @@
<
script
>
import
{
swiper
,
swiperSlide
}
from
'
vue-awesome-swiper
'
;
import
'
swiper/dist/css/swiper.css
'
;
import
Img2Thumb
from
'
@/filters/img2Thumb.filter
'
;
export
default
{
name
:
'
AvatorSwiper
'
,
components
:
{
swiper
,
swiperSlide
},
filters
:
{
Img2Thumb
},
props
:
{
avatorData
:
{
type
:
Array
,
...
...
src/views/goodsList/index.vue
View file @
a499547b
...
...
@@ -259,8 +259,9 @@ export default {
if
(
res
.
size
)
{
this
.
loading
=
false
;
this
.
showLoading
=
false
;
res
.
items
[
5
].
goodsCount
=
0
;
//
res.items[5].goodsCount = 0;
this
.
goodsList
=
res
.
items
||
[];
console
.
log
(
this
.
goodsList
,
'
this.goodsList
'
);
if
(
!
res
.
hasNext
)
{
this
.
finished
=
true
;
}
else
{
...
...
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