Commit afbb6722 authored by beisir's avatar beisir

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

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