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
3521c728
Commit
3521c728
authored
Sep 26, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:列表页面点击无效测试
parent
dd90fbe0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
43 deletions
+55
-43
App.vue
src/App.vue
+3
-2
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+40
-34
index.vue
src/views/goodsList/index.vue
+5
-1
List.less
src/views/orderList/components/List.less
+6
-5
List.vue
src/views/orderList/components/List.vue
+1
-1
No files found.
src/App.vue
View file @
3521c728
...
@@ -22,7 +22,7 @@ import { isApp, isWxMp, isWechat } from '@/service/validation.service';
...
@@ -22,7 +22,7 @@ import { isApp, isWxMp, isWechat } from '@/service/validation.service';
import
store
from
'
@/store
'
;
import
store
from
'
@/store
'
;
import
Weapp
from
'
@/components/weapp
'
;
import
Weapp
from
'
@/components/weapp
'
;
import
goodsShare
from
'
@/components/groupShare
'
;
import
goodsShare
from
'
@/components/groupShare
'
;
import
{
setAppTitleColor
}
from
'
@/service/utils.service
'
;
export
default
{
export
default
{
name
:
'
App
'
,
name
:
'
App
'
,
components
:
{
components
:
{
...
@@ -51,7 +51,8 @@ export default {
...
@@ -51,7 +51,8 @@ export default {
}
}
}
}
},
},
$route
()
{
$route
(
to
)
{
to
.
name
!==
'
groupBuyList
'
&&
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 @
3521c728
...
@@ -94,42 +94,48 @@ export default {
...
@@ -94,42 +94,48 @@ export default {
return
Math
.
round
(
percentage
*
100
)
/
100
;
return
Math
.
round
(
percentage
*
100
)
/
100
;
},
},
onButtonClick
()
{
onButtonClick
()
{
const
{
alert
(
JSON
.
stringify
(
this
.
goodsItem
));
skuNo
,
try
{
goodsSpecialId
,
const
{
activityTemplateId
,
skuNo
,
activityTemplateDetailId
,
goodsSpecialId
,
activityInfoId
activityTemplateId
,
}
=
this
.
goodsItem
;
activityTemplateDetailId
,
const
{
s
}
=
this
.
btnByStatus
;
activityInfoId
if
(
s
===
2
)
{
}
=
this
.
goodsItem
;
saTrackEvent
(
'
H5_GroupZeroYuanPurchaseActivityPageOpenGroupImmediatelyBtnClick
'
,
{
const
{
s
}
=
this
.
btnByStatus
;
skuNo
if
(
s
===
2
)
{
saTrackEvent
(
'
H5_GroupZeroYuanPurchaseActivityPageOpenGroupImmediatelyBtnClick
'
,
{
skuNo
});
this
.
$router
.
push
({
path
:
'
/groupBuy/skuInfo
'
,
query
:
{
h
:
0
,
skuNo
,
goodsSpecialId
,
activityId
:
activityInfoId
,
templateId
:
activityTemplateId
,
templateDetailId
:
activityTemplateDetailId
}
});
// 正常跳转
return
false
;
}
let
messageTemp
=
'
非常感谢亲对羊小咩的关注,活动还没有开始哦~
'
;
if
(
s
===
3
)
{
messageTemp
=
'
您选的商品太火爆了,已经卖完了呢,您可以选择其他的团品重新开团哦~
'
;
}
else
if
(
s
===
1
)
{
messageTemp
=
'
非常抱歉,亲本次活动已经结束了哦~
'
;
}
this
.
$dialog
({
message
:
messageTemp
,
showCancelButton
:
false
});
});
this
.
$router
.
push
({
}
catch
(
err
)
{
path
:
'
/groupBuy/skuInfo
'
,
alert
(
err
);
query
:
{
alert
(
JSON
.
stringify
(
err
));
h
:
0
,
skuNo
,
goodsSpecialId
,
activityId
:
activityInfoId
,
templateId
:
activityTemplateId
,
templateDetailId
:
activityTemplateDetailId
}
});
// 正常跳转
return
false
;
}
let
messageTemp
=
'
非常感谢亲对羊小咩的关注,活动还没有开始哦~
'
;
if
(
s
===
3
)
{
messageTemp
=
'
您选的商品太火爆了,已经卖完了呢,您可以选择其他的团品重新开团哦~
'
;
}
else
if
(
s
===
1
)
{
messageTemp
=
'
非常抱歉,亲本次活动已经结束了哦~
'
;
}
}
this
.
$dialog
({
message
:
messageTemp
,
showCancelButton
:
false
});
}
}
}
}
};
};
...
...
src/views/goodsList/index.vue
View file @
3521c728
...
@@ -139,7 +139,6 @@ export default {
...
@@ -139,7 +139,6 @@ export default {
deactivated
()
{
deactivated
()
{
clearTimeout
((
this
.
$refs
.
swipeRota
&&
this
.
$refs
.
swipeRota
.
timer
)
||
null
);
clearTimeout
((
this
.
$refs
.
swipeRota
&&
this
.
$refs
.
swipeRota
.
timer
)
||
null
);
this
.
showLoops
=
false
;
this
.
showLoops
=
false
;
this
.
setTitleColor
();
},
},
activated
()
{
activated
()
{
this
.
showLoops
=
true
;
this
.
showLoops
=
true
;
...
@@ -159,6 +158,10 @@ export default {
...
@@ -159,6 +158,10 @@ export default {
if
(
isNull
(
topicIndex
))
{
if
(
isNull
(
topicIndex
))
{
getActivityList
(
to
.
query
,
next
);
getActivityList
(
to
.
query
,
next
);
}
else
{
}
else
{
if
(
localStorage
.
get
(
'
activityId
'
)
!==
+
activityId
)
{
getActivityList
(
to
.
query
,
next
);
return
;
}
next
();
next
();
}
}
}
}
...
@@ -303,6 +306,7 @@ async function getActivityList(urlQuery, next) {
...
@@ -303,6 +306,7 @@ async function getActivityList(urlQuery, next) {
vm
.
goodsTemp
=
t
;
vm
.
goodsTemp
=
t
;
localStorage
.
set
(
'
activityId
'
,
activityId
);
localStorage
.
set
(
'
activityId
'
,
activityId
);
vm
.
setTitleColor
(
t
.
bgcolor
);
vm
.
setTitleColor
(
t
.
bgcolor
);
vm
.
pageNo
=
1
;
vm
.
getGoodsList
(
true
);
vm
.
getGoodsList
(
true
);
vm
.
reload
=
false
;
vm
.
reload
=
false
;
});
});
...
...
src/views/orderList/components/List.less
View file @
3521c728
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
border-bottom: 1px solid @grey-border;
border-bottom: 1px solid @grey-border;
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
&-left, &-right {
&-left,
&-right {
display: flex;
display: flex;
align-items: center;
align-items: center;
}
}
&-image {
&-image {
position: relative;
position: relative;
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
text-align: center;
text-align: center;
margin-right: 4px;
margin-right: 4px;
}
}
&-red {
&-red {
color: @red;
color: @red;
}
}
...
@@ -39,7 +39,8 @@
...
@@ -39,7 +39,8 @@
&-avator {
&-avator {
margin-left: @padding-unit - 2;
margin-left: @padding-unit - 2;
margin-top: @padding-unit - 2;
margin-top: @padding-unit - 2;
border-radius: 50%;
overflow: hidden;
}
}
&-group {
&-group {
position: absolute;
position: absolute;
...
@@ -164,4 +165,4 @@
...
@@ -164,4 +165,4 @@
color: @gray-5 !important;
color: @gray-5 !important;
}
}
}
}
}
}
\ No newline at end of file
src/views/orderList/components/List.vue
View file @
3521c728
...
@@ -165,7 +165,7 @@ export default {
...
@@ -165,7 +165,7 @@ export default {
methods
:
{
methods
:
{
finishTimeChange
()
{},
finishTimeChange
()
{},
goGroupBuyList
(
itemInfo
)
{
goGroupBuyList
(
itemInfo
)
{
this
.
$router
.
push
({
this
.
$router
.
replace
({
path
:
'
/groupBuy/list
'
,
path
:
'
/groupBuy/list
'
,
query
:
{
query
:
{
h
:
0
,
h
:
0
,
...
...
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