Commit 3b4ed302 authored by beisir's avatar beisir

feat:解决 列表提示

parent afbb6722
......@@ -94,7 +94,6 @@ export default {
return Math.round(percentage * 100) / 100;
},
onButtonClick() {
console.log(JSON.stringify(this.goodsItem));
try {
const {
skuNo,
......@@ -121,15 +120,24 @@ export default {
// 正常跳转
return false;
}
let messageTemp = '非常感谢亲对羊小咩的关注,活动还没有开始哦~';
let message = '哈喽,活动还未开始哦~您可以点击【订阅消息】关注羊小咩,活动开始会通知您哒';
let confirmButtonText = '订阅消息';
if (s === 1) {
message =
'非常抱歉,本次活动已经结束,您可以点击【订阅消息】关注羊小咩,抢先了解更多活动';
}
if (s === 3) {
messageTemp = '您选的商品太火爆了,已经卖完了呢,您可以选择其他的团品重新开团哦~';
} else if (s === 1) {
messageTemp = '非常抱歉,亲本次活动已经结束了哦~';
message = '您选的商品太火爆了,已经卖完了呢,您可以选择其他的团品重新开团哦~';
confirmButtonText = '选择更多';
}
this.$dialog({
message: messageTemp,
showCancelButton: false
message,
showCancelButton: true,
confirmButtonText,
onConfirm: () => {
s !== 3 && this.$toast('已订阅完成!');
}
});
} catch (err) {
alert(err);
......
......@@ -161,7 +161,9 @@ export default {
getActivityList(to.query, next);
return;
}
next();
next(vm => {
store.commit('CHANGE_TITLE', vm.goodsTemp.title || '活动页');
});
}
}
},
......@@ -299,8 +301,8 @@ async function getActivityList(urlQuery, next) {
if (result?.templateInfo) {
let t = result.templateInfo;
// 即将开始
// t.startTime = '2021-09-23 20:00:00';
// t.endTime = '2021-09-23 20:02:00';
// t.startTime = '2021-09-29 20:00:00';
// t.endTime = '2021-09-30 20:02:00';
// 正在活动中
// t.startTime = '2021-09-23 00:00:00';
// t.endTime = '2021-09-25 00:00:00';
......
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