Commit b5df5e54 authored by beisir's avatar beisir

faet:处理异常操作

parent be6e9df0
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
} }
if (s === 3) { if (s === 3) {
message = '您选的商品太火爆了,已经卖完了呢,您可以选择其他的团品重新开团哦~'; message = '您选的商品太火爆了,已经卖完了呢,您可以选择其他的团品重新开团哦~';
confirmButtonText = '知道了'; confirmButtonText = '选择更多';
} }
this.$dialog({ this.$dialog({
...@@ -133,12 +133,19 @@ export default { ...@@ -133,12 +133,19 @@ export default {
showCancelButton: true, showCancelButton: true,
confirmButtonText, confirmButtonText,
onConfirm: () => { onConfirm: () => {
s !== 3 && this.$toast('已订阅完成!'); s !== 3 ? this.$toast('已订阅完成!') : this.goToScrollTop();
} }
}); });
} catch (err) { } catch (err) {
alert(JSON.stringify(err)); alert(JSON.stringify(err));
} }
},
goToScrollTop() {
// 等待隐藏之后调用
const timer = setTimeout(() => {
document.getElementById('groupScroll').scrollIntoView();
clearTimeout(timer);
}, 0);
} }
} }
}; };
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!-- 配置头部动态信息 end --> <!-- 配置头部动态信息 end -->
<!-- 下方列表展示信息 start --> <!-- 下方列表展示信息 start -->
<div class="group-bottom" :class="{ padtop: isShowSwiper }"> <div id="groupScroll" class="group-bottom" :class="{ padtop: isShowSwiper }">
<div v-if="!isShowSwiper" class="group-portrait"> <div v-if="!isShowSwiper" class="group-portrait">
<div class="group-portrait-head"> <div class="group-portrait-head">
<div class="group-portrait-swipe"> <div class="group-portrait-swipe">
......
...@@ -211,6 +211,7 @@ export default { ...@@ -211,6 +211,7 @@ export default {
}); });
this.$emit('option-click', { ...item.skuList[0], eventType: 'share' }); this.$emit('option-click', { ...item.skuList[0], eventType: 'share' });
} catch (err) { } catch (err) {
this.$store.dispatch('change_loading', false);
console.log(err); console.log(err);
} }
}, },
......
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