Commit e5561735 authored by beisir's avatar beisir

feat:列表页跳转详情页

parent b44fb2e7
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -36,6 +36,7 @@ export default { ...@@ -36,6 +36,7 @@ export default {
data() { data() {
const vm = this; const vm = this;
return { return {
timer: null,
rightImgPath: '', rightImgPath: '',
avatorItem: null, avatorItem: null,
swiperOptions: { swiperOptions: {
...@@ -87,6 +88,10 @@ export default { ...@@ -87,6 +88,10 @@ export default {
mounted() { mounted() {
this.onSlidePrevChange(); this.onSlidePrevChange();
}, },
beforeDestroy() {
this.swiper.destroy(true);
clearInterval(this.timer);
},
methods: { methods: {
onSlidePrevChange() { onSlidePrevChange() {
this.timer = setInterval(() => { this.timer = setInterval(() => {
......
...@@ -92,11 +92,29 @@ export default { ...@@ -92,11 +92,29 @@ export default {
return Math.round(percentage * 100) / 100; return Math.round(percentage * 100) / 100;
}, },
onButtonClick() { onButtonClick() {
const {
skuNo,
goodsSpecialId,
activityTemplateInfoId,
activityTemplateDetailId,
activityInfoId
} = this.goodsItem;
const { s } = this.btnByStatus; const { s } = this.btnByStatus;
// if (btnByStatus.s === 2) { if (s === 2) {
// // 正常跳转 this.$router.push({
// return false; path: '/groupBuy/skuInfo',
// } query: {
h: 0,
skuNo,
goodsSpecialId,
activityId: activityInfoId,
templateId: activityTemplateInfoId,
templateDetailId: activityTemplateDetailId
}
});
// 正常跳转
return false;
}
this.$dialog({ this.$dialog({
message: '请在微信小程序中参与此活动哦~', message: '请在微信小程序中参与此活动哦~',
confirmButtonText: s === 3 ? '重新选择' : '订阅消息', confirmButtonText: s === 3 ? '重新选择' : '订阅消息',
......
...@@ -280,8 +280,8 @@ async function getActivityList(urlQuery, next) { ...@@ -280,8 +280,8 @@ async function getActivityList(urlQuery, next) {
nextFns = next; nextFns = next;
} }
const [result] = await groupBuyApi.getTemplateList(activityId); const [result] = await groupBuyApi.getTemplateList(activityId);
if (result?.t) { if (result?.templateInfo) {
let t = result.t; let t = result.templateInfo;
t.startTime = '2021-09-15 00:00:00'; t.startTime = '2021-09-15 00:00:00';
t.endTime = '2021-09-22 00:00:00'; t.endTime = '2021-09-22 00:00:00';
// t.startTime = '2021-09-15 00:00:00'; // t.startTime = '2021-09-15 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