Commit 905a41c1 by 李伟康

提交代码

1 parent a4a49bcf
......@@ -55,7 +55,7 @@ export default {
}`
let sheet = document.styleSheets[0]
sheet.insertRule(rule, 0)
let duration = speed * list.length + (boxHeight / itemHeight * speed)
let duration = this.decimal(speed * list.length + (boxHeight / itemHeight * speed), 2)
this.$refs.move.style.animation = `${duration}s rowup linear infinite normal`
})
}
......
......@@ -7,7 +7,7 @@
<template v-for="(i,index) in items">
<template v-if="i.name">
<div
class="item"
class="item flex"
:key="index"
>
<div class="label">
......@@ -20,6 +20,7 @@
:placeholder="`请填写您的${i.name}`"
:maxlength="i.maxlength"
:type="i.type"
clearable
/>
</div>
</div>
......@@ -146,22 +147,23 @@ export default {
<style scoped lang='scss'>
.box {
padding: 26px;
padding: 8px 16px 16px;
.item {
margin-bottom: 15px;
border-bottom: 1px solid #f1f1f1;
height: 49px;
color: #282829;
.label {
font-size: 16px;
font-weight: 500;
color: #282829;
font-size: 12px;
width: 86px;
span {
color: #f13c3d;
}
}
.value {
border-bottom: 1px solid #e3e3e6;
width: calc(100% - 86px);
/deep/.van-field {
padding: 8px 0;
font-size: 14px;
padding: 0;
font-size: 12px;
}
}
}
......@@ -170,12 +172,12 @@ export default {
font-size: 16px;
font-weight: 600;
color: #ffffff;
width: 310px;
width: 100%;
height: 44px;
box-shadow: 0px 2px 6px 2px rgba(241, 60, 61, 0.1);
border-radius: 4px;
border: 1px solid #f13c3d;
margin: 0 auto;
margin: 16px auto 0;
}
.disabled {
box-shadow: 0px 2px 6px 2px rgba(177, 177, 177, 0.1);
......
......@@ -229,25 +229,19 @@ export default {
distanceKey: Date.now(),
noAuthAddress: false,
showKf: false,
shareInfo: {},
viewFlag: false,
audio: null,
audioFlag: false,
videoUrl: ''
}
},
// activated () {
// let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage', 'launchMiniprogram', 'updateAppMessageShareData']
// wxConfig.init(jsApiList).then(() => {
// wxConfig.ready(() => {
// this.getActivityDetail()
// })
// })
// },
created () {
this.watchPageBack().then(() => {
window.location.reload()
beforeRouteEnter (to, from, next) {
if(from.name == 'crowdfunding.success') window.location.reload()
else next(vm => {
})
},
created () {
let _this = this
let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage']
wxConfig.init(jsApiList).then(() => {
......@@ -260,12 +254,8 @@ export default {
}, 1e3 / 2))
},
beforeDestroy () {
window.$AUDIO.stopVideo()
if (window.$AUDIO) window.$AUDIO.stopVideo()
},
// deactivated () {
// window.$AUDIO.stopVideo()
// },
mounted () {
},
......@@ -295,16 +285,16 @@ export default {
}
}
this.showLoading()
this.id = id
bigdatautilApi.reportTrack(id)
shopmallApi.getActivityDetail(id).then(data => {
this.hideLoading()
this.viewFlag = true
console.log(JSON.parse(JSON.stringify(data)))
data.s_time = new Date(this.iosTimeFormat(data.startTime)).format('yyyy年M月d日')
data.e_time = new Date(this.iosTimeFormat(data.endTime)).format('yyyy年M月d日')
document.title = data.activityName
this.setLocalStorage('wx_scrm_page_title', data.activityName)
this.hideLoading()
this.viewFlag = true
this.id = id
this.getActivityGroup()
let [redirectUrl] = window.location.href.split('?')
if (data.activityVideos && data.activityVideos.length) {
......@@ -326,7 +316,8 @@ export default {
})
}
this.detail = data
let link = `${redirectUrl}?id=${id}&shareStaffType=${this.ISWXWORK ? 2 : 1}&shareStaffName=${this.toUnicode(userInfo.nickName || userInfo.userName)}&shareStaffImageUrl=${encodeURIComponent(userInfo.logo || userInfo.staffAvatar)}&openId=${userInfo.openid || userInfo.uuid}`
let name = userInfo.nickName || userInfo.userName || ''
let link = `${redirectUrl}?id=${id}&shareStaffType=${this.ISWXWORK ? 2 : 1}&shareStaffName=${this.toUnicode(name)}&shareStaffImageUrl=${encodeURIComponent(userInfo.logo || userInfo.staffAvatar)}&openId=${userInfo.openid || userInfo.uuid}`
if (userInfo.phone) link = `${link}&userPhone=${userInfo.phone}`
if (this.ISWXWORK) {
link = `${link}&corpId=${userInfo.entmicroId}`
......@@ -334,13 +325,13 @@ export default {
}
if (params && params.shareStaffUuid) link = `${link}&shareStaffUuid=${params.shareStaffUuid}`
if (params && params.merchantId) link = `${link}&merchantId=${params.merchantId}`
this.shareInfo = {
title: `${userInfo.nickName || userInfo.userName || ''}邀请您参加${data.merchantName}店的${data.activityName}众筹活动`,
let shareInfo = {
title: `${name}邀请您参加${data.merchantName}店的${data.activityName}众筹活动`,
desc: `限时大型众筹,活动时间${data.s_time}-${data.e_time}`,
link,
imgUrl: data.posterImg || data.activityImg
imgUrl: data.posterImg || data.activityImg,
link
}
wxConfig.onMenuShareAppMessage(this.shareInfo).then(() => {
wxConfig.onMenuShareAppMessage(shareInfo).then(() => {
console.log('------------------分享----------------------')
bigdatautilApi.reportTrack(id, false)
})
......
......@@ -39,7 +39,6 @@ export default {
}
},
mounted () {
window.$back = true
wxConfig.init()
let params = this.getLocalStorage('wx_scrm_link_params') || {}
const { miniprogramInfo } = window.$fetchConfig
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!