Commit afbb6722 authored by beisir's avatar beisir

feat: 确认订单页面新增字段groupId

parent 93c11dbd
......@@ -49,30 +49,34 @@ export default {
initialSlide: 0,
slidesPerView: 7,
spaceBetween: 4,
speed: 1600,
speed: 1700,
centeredSlides: false,
watchSlidesProgress: true,
allowTouchMove: false,
autoplay: {
delay: 5000,
delay: 2000,
reverseDirection: true
},
on: {
slideChangeTransitionStart: function() {
vm.$emit('animation-event-start');
},
transitionStart: function() {
const activeIndex = this.activeIndex,
slideLeft = this.slides.eq(activeIndex),
slideRight = this.slides.eq(activeIndex + 7);
vm.$emit('animation-event-start');
vm.avatorItem = vm.getAvatorItem(slideLeft);
vm.isAnimate = true;
vm.rightImgPath = slideRight.data('src');
vm.leftImgPath = slideLeft.data('src');
slideLeft.addClass('ani-opt');
slideRight.addClass('ani-opt');
const timer = setTimeout(() => {
vm.$emit('animation-event-end', vm.avatorItem);
clearTimeout(timer);
}, 1000);
},
transitionEnd: function() {
vm.isAnimate = false;
vm.$emit('animation-event-end', vm.avatorItem);
for (let i = 0; i < this.slides.length; i++) {
let slide = this.slides.eq(i);
slide.removeClass('ani-opt');
......
......@@ -474,6 +474,7 @@ export default {
}
this.show = false;
const order = {
groupId: this.groupId || '', // 唐峰确认订单页加
activityInfoId: this.detailParam.activityId,
activityTemplateId: this.detailParam.templateId,
activityTemplateDetailId: this.detailParam.templateDetailId,
......
......@@ -69,6 +69,8 @@ import countDown from '@/components/countDown';
import { isWxMp, isApp } from '@/service/validation.service';
import { saTrackEvent } from '@/service/sa.service';
import localStorage from '@/service/localStorage.service';
import MpBridge from '@/service/mp';
import Bridge from '@qg/js-bridge';
export default {
name: 'OrderSkuList',
components: {
......@@ -142,6 +144,13 @@ export default {
this.listFinished = val;
}
},
created() {
if (isWxMp) {
this.nativeBridge = new MpBridge();
return;
}
this.nativeBridge = new Bridge();
},
methods: {
bundleButtonClick(item) {
this[this.showButtonMethod[item.showButton].click](item);
......
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