Commit 40f5f030 by 李伟康

提交

1 parent 170420c8
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<router-view v-if="!$route.meta.keepAlive"></router-view> <router-view v-if="!$route.meta.keepAlive"></router-view>
</transition> </transition>
</template> </template>
<action v-show="$route.meta.showAction"></action>
</div> </div>
</template> </template>
<script> <script>
......
...@@ -365,19 +365,19 @@ ...@@ -365,19 +365,19 @@
} }
to { to {
transform: translate(-100vw); transform: translate(200vw);
} }
} }
.stripe { .stripe {
position: absolute; position: absolute;
width: 200vw; width: 300vw;
height: 100%; height: 100%;
left:0; right: 0;
top: 0; top: 0;
background: url('https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/line.png') repeat; background: url('https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/line.png') repeat;
background-size: 28px 18px; background-size: 28px 18px;
animation: move-stripe 30s infinite ease-in-out; animation: move-stripe 60s infinite ease-in-out;
// animation: rolling 10s linear infinite; // animation: rolling 10s linear infinite;
// &::after, // &::after,
......
.share-item { .share-item {
padding-bottom: 14px; padding-bottom: 14px;
margin-bottom: 14px;
border-bottom: 1px solid #e3e3e6; border-bottom: 1px solid #e3e3e6;
.title { }
.sub-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
color: #282829; color: #282829;
...@@ -24,7 +25,6 @@ ...@@ -24,7 +25,6 @@
margin-left: 5px; margin-left: 5px;
} }
} }
}
} }
.hideBorder { .hideBorder {
......
.sprite-icon { background-image: url(../images/sprite.png);background-size: 453px 388px;} .sprite-icon { background-image: url(../images/sprite.png);background-size: 453px 420px;}
.icon-address { width: 34px; height: 34px; background-position: -310px -232px;} .icon-address { width: 34px; height: 34px; background-position: -356px -232px;}
.icon-big-play { width: 40px; height: 40px; background-position: -376px -152px;} .icon-big-play { width: 40px; height: 40px; background-position: -376px -152px;}
.icon-close { width: 24px; height: 24px; background-position: -426px -152px;} .icon-close { width: 24px; height: 24px; background-position: -426px -152px;}
.icon-download { width: 30px; height: 30px; background-position: -310px -276px;} .icon-download { width: 30px; height: 30px; background-position: -352px -278px;}
.icon-flash { width: 10px; height: 14px; background-position: 0px -374px;} .icon-flash { width: 10px; height: 14px; background-position: 0px -406px;}
.icon-hot { width: 15px; height: 18px; background-position: -436px -202px;} .icon-hot { width: 15px; height: 18px; background-position: -436px -202px;}
.icon-kf-box { width: 300px; height: 350px; background-position: 0px 0px;} .icon-kf-box { width: 300px; height: 350px; background-position: 0px 0px;}
.icon-kf-logo { width: 56px; height: 70px; background-position: -310px -152px;} .icon-kf-logo { width: 56px; height: 70px; background-position: -310px -152px;}
.icon-kf { width: 20px; height: 20px; background-position: -376px -202px;} .icon-kf { width: 20px; height: 20px; background-position: -376px -202px;}
.icon-live-close { width: 18px; height: 18px; background-position: -420px -316px;} .icon-live-close { width: 18px; height: 18px; background-position: -56px -374px;}
.icon-music-off { width: 34px; height: 34px; background-position: -354px -232px;} .icon-music-off { width: 34px; height: 34px; background-position: -400px -232px;}
.icon-music { width: 32px; height: 32px; background-position: -398px -232px;} .icon-music { width: 32px; height: 32px; background-position: -310px -278px;}
.icon-order { width: 20px; height: 20px; background-position: -406px -202px;} .icon-order { width: 20px; height: 20px; background-position: -406px -202px;}
.icon-pause { width: 30px; height: 30px; background-position: -350px -276px;} .icon-pause { width: 30px; height: 30px; background-position: -392px -278px;}
.icon-phone { width: 12px; height: 13px; background-position: -440px -232px;} .icon-phone { width: 12px; height: 13px; background-position: -84px -374px;}
.icon-play { width: 30px; height: 30px; background-position: -390px -276px;} .icon-play { width: 30px; height: 30px; background-position: -310px -320px;}
.icon-poster { width: 20px; height: 20px; background-position: -430px -276px;} .icon-poster { width: 20px; height: 20px; background-position: -432px -278px;}
.icon-qr { width: 143px; height: 142px; background-position: -310px 0px;} .icon-qr { width: 143px; height: 142px; background-position: -310px 0px;}
.icon-scan { width: 30px; height: 30px; background-position: -310px -316px;} .icon-scan { width: 30px; height: 30px; background-position: -350px -320px;}
.icon-success { width: 20px; height: 20px; background-position: -390px -316px;} .icon-success { width: 20px; height: 20px; background-position: -430px -320px;}
.icon-time { width: 12px; height: 11px; background-position: -20px -374px;} .icon-time { width: 12px; height: 11px; background-position: -106px -374px;}
.icon-title { width: 170px; height: 4px; background-position: 0px -360px;} .icon-title { width: 170px; height: 4px; background-position: 0px -360px;}
.icon-top { width: 30px; height: 30px; background-position: -350px -316px;}
.icon-arrow { width: 7px; height: 11px; background-position: -42px -374px;}
\ No newline at end of file \ No newline at end of file
.icon-top { width: 30px; height: 30px; background-position: -390px -320px;}
.icon-arrow { width: 7px; height: 11px; background-position: -444px -232px;}
.icon-avatar { width: 36px; height: 36px; background-position: -310px -232px;}
.icon-faq-left { width: 18px; height: 22px; background-position: 0px -374px;}
.icon-faq-right { width: 18px; height: 22px; background-position: -28px -374px;}
\ No newline at end of file \ No newline at end of file

99.4 KB | W: | H:

107 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -67,9 +67,22 @@ import { shopmallApi, wxConfig } from '@/api' ...@@ -67,9 +67,22 @@ import { shopmallApi, wxConfig } from '@/api'
import { util } from '@/utils' import { util } from '@/utils'
export default { export default {
name: 'Action', name: 'Action',
props: ['detail', 'updata'],
watch: { watch: {
'detail': function (n) { watchCarInfo: {
immediate: true,
handler (n) {
let {
activityInfo: { carInfo },
activityInfo }
= this.$store.state.app
if (carInfo) this.carInfo = carInfo
this.detail = activityInfo
}
},
watchInfo: {
immediate: true,
handler (n) {
if (n.updata) {
this.show = true this.show = true
let [price, decimal] = this.centsToyuan(n.retailPrice).toString().split('.') let [price, decimal] = this.centsToyuan(n.retailPrice).toString().split('.')
if (!decimal) decimal = '00' if (!decimal) decimal = '00'
...@@ -108,9 +121,16 @@ export default { ...@@ -108,9 +121,16 @@ export default {
name: n.formDescribeThird name: n.formDescribeThird
}] }]
this.formList = [...formList, ...list] this.formList = [...formList, ...list]
}
}
}
},
computed: {
watchInfo () {
return this.$store.state.app.activityInfo
}, },
updata (n) { watchCarInfo () {
this.carInfo = this.detail.carInfo return this.$store.state.app.carInfo
} }
}, },
data () { data () {
...@@ -194,7 +214,7 @@ export default { ...@@ -194,7 +214,7 @@ export default {
signType: payParams.signType, signType: payParams.signType,
timeStamp: payParams.timeStamp, timeStamp: payParams.timeStamp,
package: payParams.packages package: payParams.packages
}))}&redirectUrl=${redirectUrl}` }))}&redirectUrl=${redirectUrl}`//
}) })
} }
else wxConfig.chooseWXPay(params).then(() => this.to('crowdfunding.success', { orderInfo })) else wxConfig.chooseWXPay(params).then(() => this.to('crowdfunding.success', { orderInfo }))
......
<template> <template>
<div class="share-item"> <div :class="['share-item',{hideBorder}]">
<div class="title flex"> <div class="content">
玩家心得(1885) <div class="user-info flex">
<div class="all flex"> <div class="sprite-icon icon-avatar"></div>
<span>全部</span> 玩家{{num}}
<div class="sprite-icon icon-arrow"></div> </div>
<div
:class="['text',{'text-two-line':indexType}]"
v-text="item.experience"
>
</div>
<div :class="['img-box',{'four':indexType}]">
<template v-for="(i,index) in item.activityExperienceImgs">
<div
@click="jumpPreview(index)"
v-if="indexType?index < 4 :true"
class="img-item"
:key="index"
>
<img :src="i.imageUrl" />
</div>
</template>
</div> </div>
</div> </div>
</div> </div>
...@@ -13,6 +29,15 @@ ...@@ -13,6 +29,15 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: 'EvaluateItem', name: 'EvaluateItem',
props: {
hideBorder: Boolean,
indexType: Boolean,
item: {
type: Object,
default: () => { }
},
num: Number
},
data () { data () {
return { return {
} }
...@@ -20,10 +45,48 @@ export default { ...@@ -20,10 +45,48 @@ export default {
mounted () { mounted () {
}, },
methods: { methods: {
jumpPreview (index) {
let { activityExperienceImgs, experience } = this.item, item = []
activityExperienceImgs.map(e => item.push(e.imageUrl))
this.to('crowdfunding.imagePreview', { item, index, experience })
}
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
@import '@/assets/css/sharegoods.scss'; @import '@/assets/css/sharegoods.scss';
.user-info {
padding: 14px 0 10px;
font-size: 16px;
font-weight: 600;
color: #282829;
.sprite-icon {
margin-right: 8px;
}
}
.text {
font-size: 14px;
color: #282829;
line-height: 20px;
margin-bottom: 13px;
}
.img-box {
display: flex;
flex-wrap: wrap;
gap: 6px;
.img-item {
width: 110px;
height: 110px;
border-radius: 4px;
}
}
.img-box.four {
gap: 8px;
flex-wrap: nowrap;
.img-item {
width: 75px;
height: 75px;
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<div :class="['share-item',{hideBorder}]"> <div :class="['share-item',{hideBorder},{indexType}]">
<div class="title flex"> <div class="faq-item">
商品答疑(9) <div class="q flex">
<div class="all flex"> <template v-if="indexType">
<span>全部</span> <div class="icon text-center">问</div>
<div class="sprite-icon icon-arrow"></div> </template>
<template v-else>
<div class="sprite-icon icon-faq-left"></div>
</template>
<div :class="['value',{'text-hide':indexType}]">{{item.question}}</div>
</div> </div>
<template v-if="!indexType">
<div class="a flex">
<div class="sprite-icon icon-faq-right"></div>
<div class="value">{{item.answer}}</div>
</div>
</template>
</div> </div>
<div class="content"></div>
</div> </div>
</template> </template>
...@@ -15,7 +24,12 @@ ...@@ -15,7 +24,12 @@
export default { export default {
name: 'FAQItem', name: 'FAQItem',
props: { props: {
hideBorder: Boolean hideBorder: Boolean,
indexType: Boolean,
item: {
type: Object,
default: () => { }
}
}, },
data () { data () {
return { return {
...@@ -30,4 +44,58 @@ export default { ...@@ -30,4 +44,58 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
@import '@/assets/css/sharegoods.scss'; @import '@/assets/css/sharegoods.scss';
.faq-item {
padding-top: 16px;
.flex {
margin-bottom: 12px;
align-items: flex-start;
.sprite-icon {
margin-right: 8px;
flex-shrink: 0;
}
}
.q {
.value {
font-weight: 500;
font-size: 16px;
color: #2c2c2c;
}
}
.a {
.value {
font-size: 14px;
color: #282829;
}
}
.value {
line-height: 20px;
}
.icon {
color: #ffffff;
font-size: 12px;
width: 14px;
height: 14px;
background: linear-gradient(108deg, #ffbe68 0%, #ff5446 60%, #f45454 100%);
border-radius: 2px;
flex-shrink: 0;
margin-right: 4px;
}
}
.indexType {
.faq-item {
padding-top: 0;
}
.flex {
margin-bottom: 0;
align-items: center;
}
.q {
margin-bottom: 6px;
.value {
font-size: 12px;
font-weight: 400;
color: #2c2c2c;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
<template> <template>
<div class="serve"> <div
class="serve"
v-if="list.length"
>
<div <div
class="box flex" class="box flex"
@click="showModal = true" @click="showModal = true"
> >
服务 服务
<div class="serve-text"></div> <div class="serve-text flex">
<template v-for="(i,index) in list">
<div :key="index" class="flex">
{{i.title}}
<span v-if="index != list.length - 1">·</span>
</div>
</template>
</div>
<div class="sprite-icon icon-arrow"></div> <div class="sprite-icon icon-arrow"></div>
</div> </div>
<serve-modal <serve-modal
...@@ -19,31 +29,15 @@ ...@@ -19,31 +29,15 @@
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: 'Serve', name: 'Serve',
props: {
list: {
type: Array,
default: () => []
}
},
data () { data () {
return { return {
showModal: false, showModal: false
list: [
{
title: '活动期间每人限购1件',
value: '此数量为活动期内买家累计可拍数量'
},
{
title: '24小时发货',
value: '在买家经过支付宝完成付款或经过货到付款下单胜利后,卖家将在24小时内(不可抗力要素除外)发送买家所购实物商品的效劳。'
},
{
title: '闪电退货',
value: '广东省深圳市福田区沙头街道白石路东1-2层(福田汽车站东南侧)'
},
{
title: '7天无理由退货',
value: '满足相应条件时,消费者可申请“7天无理由退货”'
},
{
title: '先付后买再核销先付后买再核销不超过20个字',
value: '服务说明文本区域,高度不变,超出内容在内容区域里面滚动,左右边距16px,上下边距14px。不超过50个字。'
}
]
} }
}, },
mounted () { mounted () {
...@@ -66,6 +60,7 @@ export default { ...@@ -66,6 +60,7 @@ export default {
color: #2c2c2c; color: #2c2c2c;
margin-left: 20px; margin-left: 20px;
overflow: hidden; overflow: hidden;
white-space: nowrap;
} }
.sprite-icon { .sprite-icon {
margin-left: auto; margin-left: auto;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
class="item" class="item"
> >
<div class="title">{{i.title}}</div> <div class="title">{{i.title}}</div>
<div class="value">{{i.value}}</div> <div class="value">{{i.content}}</div>
</div> </div>
</template> </template>
</div> </div>
......
<template> <template>
<div class="box"> <div class="box">
<evaluate-item /> <template v-if="evaList.length">
<FAQ-item hideBorder /> <div
class="sub-title flex"
@click="to('crowdfunding.evaluate',{list:evaList})"
>
玩家心得({{evaList.length}})
<div class="all flex">
<span>全部</span>
<div class="sprite-icon icon-arrow"></div>
</div>
</div>
<evaluate-item
:item="evaList[0]"
:hideBorder="!faqList.length"
indexType
:num="1"
>
</evaluate-item>
</template>
<template v-if="faqList.length">
<div class="sprite"></div>
<div
class="sub-title flex faq-title"
@click="to('crowdfunding.faq',{list:faqList})"
>
商品答疑({{faqList.length}})
<div class="all flex">
<span>全部</span>
<div class="sprite-icon icon-arrow"></div>
</div>
</div>
<template v-for="(i,index) in faqList">
<FAQ-item
:key="index"
hideBorder
indexType
:item="i"
v-if="index < 2"
>
</FAQ-item>
</template>
</template>
</div> </div>
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: 'ShareGoods', name: 'ShareGoods',
props: {
evaList: {
type: Array,
default: () => []
},
faqList: {
type: Array,
default: () => []
}
},
data () { data () {
return { return {
} }
}, },
mounted () { mounted () {
// this.faqList = [
// {
// question: '问题1',
// answer: '哈哈哈哈'
// },
// {
// question: '问题2',
// answer: '哈哈ddddd哈哈'
// },
// {
// question: '问题3',
// answer: '哈爽肤水哈哈哈'
// }
// ]
// this.evaluateItem = {
// index: 1,
// text: '这个哑光颜色真的很好看!使用了一段时间,感觉不错,九分裤发副科级看来看了看;力量比之前的产品好用。。',
// indexType: true,
// imgList: [
// 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/timer-bg.png',
// 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/order-bg.png',
// 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/test/zxjg.jpg',
// 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/test/test1.jpg',
// 'https://img02.glsx.com.cn/weapp/resource/scrm-mobile/crowdfunding/order-bg-2.png',
// ]
// }
}, },
methods: { methods: {
} }
...@@ -20,8 +97,16 @@ export default { ...@@ -20,8 +97,16 @@ export default {
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
@import '@/assets/css/sharegoods.scss';
.box { .box {
border-radius: 4px; border-radius: 4px;
max-height: 343px; max-height: 343px;
} }
.sprite {
margin-top: 14px;
}
.faq-title {
margin-bottom: 10px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
module.exports = { module.exports = {
title: '加载中...', title: '加载中...',
request: { request: {
baseURL: 'http://scrm.test.glsx.com.cn', // 本地测试项目地址, baseURL: 'http://scrm.dev.glsx.com.cn', // 本地测试项目地址,
// 设置超时时间 // 设置超时时间
timeout: 180000, timeout: 180000,
// 携带凭证 // 携带凭证
......
...@@ -5,7 +5,8 @@ const pages = { ...@@ -5,7 +5,8 @@ const pages = {
meta: { meta: {
keepAlive: true, keepAlive: true,
// noAuth: true, // noAuth: true,
backgroundColor: '#F7F7F7' backgroundColor: '#F7F7F7',
showAction: true
}, },
}, },
{ {
...@@ -49,6 +50,30 @@ const pages = { ...@@ -49,6 +50,30 @@ const pages = {
backgroundColor: '#FFF', backgroundColor: '#FFF',
title: '订单' title: '订单'
} }
},
{
name: 'evaluate',
meta: {
keepAlive: true,
backgroundColor: '#F7F8FA',
title: '玩家心得',
showAction: true
}
},
{
name: 'faq',
meta: {
keepAlive: true,
backgroundColor: '#F7F8FA',
title: '商品答疑'
}
},
{
name: 'imagePreview',
meta: {
keepAlive: true,
backgroundColor: '#101010'
}
} }
] ]
} }
......
...@@ -13,9 +13,15 @@ import { Notify } from 'vant' ...@@ -13,9 +13,15 @@ import { Notify } from 'vant'
const state = { const state = {
pageMeta: '', pageMeta: '',
keepAlives: [], keepAlives: [],
lastPath: '' lastPath: '',
activityInfo: {},
carInfo: Date.now()
} }
const mutations = { const mutations = {
SET_ACTIVITY_INFO (state, value) {
state.activityInfo = value
state.carInfo = Date.now()
},
SET_PAGE_META (state, meta) { SET_PAGE_META (state, meta) {
state.pageMeta = meta state.pageMeta = meta
}, },
...@@ -47,6 +53,9 @@ const actions = { ...@@ -47,6 +53,9 @@ const actions = {
removeKeep ({ commit }, names) { removeKeep ({ commit }, names) {
commit('REMOVE_KEEP', names) commit('REMOVE_KEEP', names)
}, },
setActivityInfo ({ commit }, value) {
commit('SET_ACTIVITY_INFO', value)
},
wxLogin ({ dispatch }, { code, redirectUrl, appId }) { wxLogin ({ dispatch }, { code, redirectUrl, appId }) {
ssoApi.login({ ssoApi.login({
code, code,
......
...@@ -184,8 +184,8 @@ const toTop = (top = 0) => { ...@@ -184,8 +184,8 @@ const toTop = (top = 0) => {
behavior: 'smooth' behavior: 'smooth'
}) })
} }
const getParams = () => { const getParams = name => {
return window.vm.$route.params return name ? window.vm.$route.params[name] : window.vm.$route.params
} }
const getQuery = () => { const getQuery = () => {
return window.vm.$route.query return window.vm.$route.query
...@@ -273,7 +273,7 @@ const draggable = (drag, fun, target) => { ...@@ -273,7 +273,7 @@ const draggable = (drag, fun, target) => {
drag.addEventListener(startEvt, startFun) drag.addEventListener(startEvt, startFun)
function startFun (event) { function startFun (event) {
if(!drag.id) return if (!drag.id) return
// 阻止页面的滚动,缩放 // 阻止页面的滚动,缩放
event.preventDefault() event.preventDefault()
// 兼容IE浏览器 // 兼容IE浏览器
......
<template>
<div class="box">
<template v-for="(i,index) in list">
<div
class="item"
:key="index"
:style="`padding-bottom:${index == list.length -1 ?'16px':''};`"
>
<evaluate-item
:item="i"
:hideBorder="index == list.length - 1"
:num="index + 1"
/>
</div>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'evaluate',
data () {
return {
list: []
}
},
activated () {
let { list } = this.getParams()
if (list && list.length) this.list = list
else if(this.list.length) return
else this.to('crowdfunding')
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.box {
padding-bottom: 100px;
.item {
background: #ffffff;
padding: 0 16px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="box">
<template v-for="(i,index) in list">
<div
class="item"
:key="index"
:style="`padding-bottom:${index == list.length -1 ?'16px':''};`"
>
<FAQ-item
:item="i"
:hideBorder="index == list.length - 1"
/>
</div>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'faq',
data () {
return {
list: []
}
},
activated () {
let { list } = this.getParams()
if (list && list.length) this.list = list
else this.to('crowdfunding')
},
mounted () {
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.box {
padding-bottom: 100px;
.item {
background: #ffffff;
padding: 0 16px;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<div class="imagePreview">
<template v-if="item">
<van-image-preview
v-model="show"
:images="item"
@change="change"
:show-index="false"
:start-position="index"
ref="preview"
asyncClose
>
</van-image-preview>
<template v-if="textStyle">
<div
class="text"
:style="textStyle"
>
{{experience}}
</div>
</template>
</template>
</div>
</template>
<script type='text/ecmascript-6'>
import { ImagePreview } from 'vant'
export default {
name: 'imagePreview',
components: {
[ImagePreview.Component.name]: ImagePreview.Component
},
data () {
return {
textStyle: '',
experience: '',
item: [],
show: true,
index: 0
}
},
activated () {
let { item, index, experience } = this.getParams()
if (item && item.length) {
this.item = item
this.experience = experience
this.index = index
document.title = `${index + 1}/${item.length}`
setTimeout(() => {
this.textStyle = `z-index:${Number(this.$refs.preview.$el.style.zIndex + 1)}`
}, 1e3)
} else this.to('crowdfunding')
},
mounted () {
},
methods: {
change (e) {
document.title = `${e + 1}/${this.item.length}`
}
}
}
</script>
<style scoped lang='scss'>
.imagePreview {
position: relative;
width: 100vw;
height: 100vh;
.text {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
font-size: 14px;
color: #ffffff;
padding: 16px 16px 50px;
box-sizing: border-box;
z-index: 2;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -158,9 +158,12 @@ ...@@ -158,9 +158,12 @@
</div> </div>
</template> </template>
<!-- 👇 服务说明 --> <!-- 👇 服务说明 -->
<serve /> <serve :list="detail.activityServices || []" />
<!-- 👇 玩家心得&商品答疑 --> <!-- 👇 玩家心得&商品答疑 -->
<share-goods /> <share-goods
:evaList="detail.activityExperienceDTOs || []"
:faqList="detail.activityCommoditys || []"
/>
<!--👇 活动视频 --> <!--👇 活动视频 -->
<template v-if="detail.activityVideos && detail.activityVideos.length"> <template v-if="detail.activityVideos && detail.activityVideos.length">
<div :class="['video-box flex', { onlyone: detail.activityVideos.length == 1 }, { onlytwo: detail.activityVideos.length == 2 }]"> <div :class="['video-box flex', { onlyone: detail.activityVideos.length == 1 }, { onlytwo: detail.activityVideos.length == 2 }]">
...@@ -243,11 +246,6 @@ ...@@ -243,11 +246,6 @@
> >
</div> </div>
</template> </template>
<!--👇 底部支付按钮 -->
<action
:detail="detail"
:updata="carInfoKey"
></action>
<!--👇 客服弹窗 --> <!--👇 客服弹窗 -->
<kf-modal <kf-modal
v-model="showKf" v-model="showKf"
...@@ -289,7 +287,6 @@ export default { ...@@ -289,7 +287,6 @@ export default {
showKf: false, showKf: false,
viewFlag: false, viewFlag: false,
audioFlag: false, audioFlag: false,
carInfoKey: Date.now(),
showOrderBtn: false, showOrderBtn: false,
userOff: null, userOff: null,
progress: '', progress: '',
...@@ -299,10 +296,11 @@ export default { ...@@ -299,10 +296,11 @@ export default {
}, },
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
next(vm => { next(vm => {
if (vm.detail && vm.detail.activityName) document.title = vm.detail.activityName
let { carInfo } = from.params let { carInfo } = from.params
if (carInfo) { if (carInfo) {
vm.detail.carInfo = carInfo vm.detail.carInfo = carInfo
vm.carInfoKey = Date.now() vm.$store.dispatch('setActivityInfo', vm.detail)
} }
if (window.$AUDIO && vm.userOff != 1) { if (window.$AUDIO && vm.userOff != 1) {
window.$AUDIO.toggleBGM() window.$AUDIO.toggleBGM()
...@@ -351,10 +349,10 @@ export default { ...@@ -351,10 +349,10 @@ export default {
refresh (activityStatus) { refresh (activityStatus) {
this.updata = Date.now() this.updata = Date.now()
this.detail.activityStatus = activityStatus this.detail.activityStatus = activityStatus
this.$store.dispatch('setActivityInfo', this.detail)
}, },
getActivityDetail () { getActivityDetail () {
let { id } = this.getQuery() let { id } = this.getQuery()
if (id && Object.keys(this.getQuery()).length) this.setLocalStorage('wx_scrm_link_params', this.getQuery())
let params = this.getLocalStorage('wx_scrm_link_params') let params = this.getLocalStorage('wx_scrm_link_params')
let userInfo = this.getUserInfo() let userInfo = this.getUserInfo()
if (!id) { if (!id) {
...@@ -374,7 +372,7 @@ export default { ...@@ -374,7 +372,7 @@ export default {
} }
this.showLoading() this.showLoading()
this.id = id this.id = id
// bigdatautilApi.reportTrack(id) bigdatautilApi.reportTrack(id)
shopmallApi.getActivityDetail(id).then(data => { shopmallApi.getActivityDetail(id).then(data => {
this.hideLoading() this.hideLoading()
this.viewFlag = true this.viewFlag = true
...@@ -412,7 +410,9 @@ export default { ...@@ -412,7 +410,9 @@ export default {
} }
data.hasDefaultBrands = true data.hasDefaultBrands = true
} }
data.updata = Date.now()
this.detail = data this.detail = data
this.$store.dispatch('setActivityInfo', data)
let name = '', let name = '',
openId = '', openId = '',
logo = '' logo = ''
...@@ -480,7 +480,6 @@ export default { ...@@ -480,7 +480,6 @@ export default {
}) })
if (items.length) arr.push(items) if (items.length) arr.push(items)
data.arr = arr data.arr = arr
data.progress = 88
this.groupInfo = data this.groupInfo = data
this.updata = Date.now() this.updata = Date.now()
}) })
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
goodsName: orderGoods.goodsName, goodsName: orderGoods.goodsName,
createdDate: activityJoin.createdDate, createdDate: activityJoin.createdDate,
payPrice, payPrice,
orderStatus: 10, orderStatus: 1,
formContentFirst: activityJoin.formContentFirst, formContentFirst: activityJoin.formContentFirst,
formContentSecond: activityJoin.formContentSecond, formContentSecond: activityJoin.formContentSecond,
formDescribeFirst: activityJoin.formDescribeFirst, formDescribeFirst: activityJoin.formDescribeFirst,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!