Commit 3521c728 authored by beisir's avatar beisir

feat:列表页面点击无效测试

parent dd90fbe0
...@@ -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
......
...@@ -94,6 +94,8 @@ export default { ...@@ -94,6 +94,8 @@ export default {
return Math.round(percentage * 100) / 100; return Math.round(percentage * 100) / 100;
}, },
onButtonClick() { onButtonClick() {
alert(JSON.stringify(this.goodsItem));
try {
const { const {
skuNo, skuNo,
goodsSpecialId, goodsSpecialId,
...@@ -130,6 +132,10 @@ export default { ...@@ -130,6 +132,10 @@ export default {
message: messageTemp, message: messageTemp,
showCancelButton: false showCancelButton: false
}); });
} catch (err) {
alert(err);
alert(JSON.stringify(err));
}
} }
} }
}; };
......
...@@ -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;
}); });
......
...@@ -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;
...@@ -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;
......
...@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment