Commit 905a41c1 by 李伟康

提交代码

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