Commit 95577de8 authored by Xuguangxing's avatar Xuguangxing

Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy

parents a3e4597e c5c44810
...@@ -55,7 +55,10 @@ export default { ...@@ -55,7 +55,10 @@ export default {
}, },
$route() { $route() {
this.$nextTick(() => { this.$nextTick(() => {
document.querySelectorAll('.cr-overlay').forEach(e => e.parentNode.removeChild(e)); this.$refs.gdShare.shareCloseChange(); //切换页面隐藏分享弹窗
document
.querySelectorAll('.cr-overlay')
.forEach(e => !e.parentNode.className.includes('share') && e.parentNode.removeChild(e));
store.dispatch('change_show_mini_app_guide', { store.dispatch('change_show_mini_app_guide', {
bool: !isApp && !isWxMp && !isWechat ? true : false, bool: !isApp && !isWxMp && !isWechat ? true : false,
pointer: this pointer: this
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
data() { data() {
const vm = this; const vm = this;
const isLoop = vm.avatorData.length < 9 ? false : true; const isLoop = vm.avatorData.length < 9 ? false : true;
const autoplay = isLoop ? { delay: 3000 } : false; const autoplay = isLoop ? { delay: 1500 } : false;
return { return {
timer: null, timer: null,
interTimer: null, interTimer: null,
...@@ -77,13 +77,14 @@ export default { ...@@ -77,13 +77,14 @@ export default {
slideLeft.addClass('ani-opt'); slideLeft.addClass('ani-opt');
slideRight.addClass('ani-opt'); slideRight.addClass('ani-opt');
vm.isAddClass = true; vm.isAddClass = true;
clearTimeout(vm.timer); // clearTimeout(vm.timer);
vm.timer = setTimeout(() => { // vm.timer = setTimeout(() => {
vm.oneTransLate(vm.getAvatorItem(slideRight)); // vm.oneTransLate(vm.getAvatorItem(slideRight));
clearTimeout(vm.timer); // clearTimeout(vm.timer);
}, 1000); // }, 1000);
}, },
transitionEnd: function() { transitionEnd: function() {
vm.oneTransLate(vm.getAvatorItem(this.slides.eq(this.activeIndex + 4)));
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');
......
...@@ -164,13 +164,13 @@ export default { ...@@ -164,13 +164,13 @@ export default {
return `/pages/groupbuy/webview?url=${encodeURIComponent(JSON.stringify(linkPath))}`; return `/pages/groupbuy/webview?url=${encodeURIComponent(JSON.stringify(linkPath))}`;
} }
// // 本地测试时走的逻辑 // // 本地测试时走的逻辑
if (isApp) { // if (isApp) {
const linkPrve = `https://mall.q-gp.com/common/launch?wxapp=gh_e1d790d67513&jumpUrl=${encodeURIComponent( // const linkPrve = `https://mall.q-gp.com/common/launch?wxapp=gh_e1d790d67513&jumpUrl=${encodeURIComponent(
'pages/groupbuy/webview' // 'pages/groupbuy/webview'
)}&terminal=1`; // )}&terminal=1`;
const linkParams = encodeURIComponent(JSON.stringify({ url: linkPath })); // const linkParams = encodeURIComponent(JSON.stringify({ url: linkPath }));
return `${linkPrve}&extraInfo=${linkParams}`; // return `${linkPrve}&extraInfo=${linkParams}`;
} // }
return linkPath; return linkPath;
}, },
shareOpenWechat() { shareOpenWechat() {
...@@ -211,7 +211,6 @@ export default { ...@@ -211,7 +211,6 @@ export default {
openTenetPosterUrl() { openTenetPosterUrl() {
// 打开小程序的海报下载页面 // 打开小程序的海报下载页面
const { posterUrl } = this.shareInfo; const { posterUrl } = this.shareInfo;
console.log(posterUrl);
this.nativeBridge.openNewUrl({ this.nativeBridge.openNewUrl({
newUrl: `/pages/groupbuy/goodshare?url=${encodeURIComponent(JSON.stringify(posterUrl))}` newUrl: `/pages/groupbuy/goodshare?url=${encodeURIComponent(JSON.stringify(posterUrl))}`
}); });
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
data() { data() {
const vm = this; const vm = this;
const isLoop = vm.avatorData.length < 7 ? false : true; const isLoop = vm.avatorData.length < 7 ? false : true;
const autoplay = isLoop ? { delay: 1500, reverseDirection: true } : false; const autoplay = isLoop ? { delay: 1000, reverseDirection: true } : false;
return { return {
timer: null, timer: null,
interTimer: null, interTimer: null,
...@@ -77,18 +77,14 @@ export default { ...@@ -77,18 +77,14 @@ export default {
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');
clearTimeout(vm.timer);
vm.timer = setTimeout(() => {
vm.oneTransLate(vm.getAvatorItem(slideLeft));
clearTimeout(vm.timer);
}, 800);
}, },
transitionEnd: function() { transitionEnd: function() {
vm.isAnimate = false; vm.oneTransLate(vm.getAvatorItem(this.slides.eq(this.activeIndex - 3)));
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');
} }
vm.isAnimate = false;
} }
} }
} }
...@@ -140,11 +136,11 @@ export default { ...@@ -140,11 +136,11 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
@keyframes leftToRight { @keyframes leftToRight {
from { from {
transform: scale(0.3); transform: scale(0.3) translate3d(0, 0, 0);
opacity: 0; opacity: 0;
} }
to { to {
transform: scale(1); transform: scale(1) translate3d(0, 0, 0);
opacity: 1; opacity: 1;
} }
} }
......
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