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