Commit a4a49bcf by 李伟康

提交代码

1 parent f6eaa9eb
......@@ -18,7 +18,7 @@ export default {
create_time: new Date().format('yyyy-MM-dd hh:mm:ss'),
item_type: 3,
customer_phone: userInfo.phone || '',
action_type: view ? 1 : 4,
action_type: view ? 1 : 4, //1浏览 4分享
item_id: id,
business_type: 1,
add_way: 104,
......
......@@ -117,7 +117,7 @@
background: linear-gradient(360deg, #292929 0%, #474747 100%);
.line {
width: 90px;
width: 54%;
height: 2px;
background: #fff;
border-radius: 1px;
......@@ -210,7 +210,7 @@
margin: 3px 0 0 auto;
.icon-address {
margin: 0 auto;
margin: 0 auto 2px;
}
.auth-text {
......
......@@ -44,11 +44,10 @@ let body = document.getElementsByTagName('head')[0],
WXJDK = document.createElement('script'),
WWJDK = document.createElement('script'),
ISWXWORK = false
WXJDK.src = '//res.wx.qq.com/open/js/jweixin-1.6.0.js'
WXJDK.src = '//res.wx.qq.com/open/js/jweixin-1.2.0.js'
if (Boolean(ua.match(/MicroMessenger/i)) && Boolean(ua.match(/wxwork/i))) { //是否企微
WXJDK.src = '//res.wx.qq.com/open/js/jweixin-1.2.0.js'
// WXJDK.src = '//res.wx.qq.com/open/js/jweixin-1.2.0.js'
WWJDK.src = '//open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js'
// WWJDK.src = '//res.wx.qq.com/wwopen/js/jsapi/jweixin-1.0.0.js'
ISWXWORK = true
}
window.$ISWXWORK = ISWXWORK
......
......@@ -4,7 +4,7 @@
v-if="show"
>
<div class="btn-box flex">
<div
<!-- <div
class="item"
@click="launchMiniprogram"
>
......@@ -22,7 +22,7 @@
</script>
</wx-open-launch-weapp>
</template>
</div>
</div> -->
<div
class="item"
@click="getPoster"
......
<template>
<div class="group-list" ref="groupBox">
<div
class="group-list"
ref="groupBox"
>
<div class="mask"></div>
<template v-if="list.length">
<div
......@@ -8,7 +11,7 @@
>
<template v-for="(i,index) in list">
<div
:class="['item flex',{'group-item' :index == 0},{'first':index == moveIndex }]"
:class="['item flex',{'group-item' :index == 0}]"
:key="index"
>
<img :src="i.imageUrl">
......@@ -21,7 +24,6 @@
</template>
<script type='text/ecmascript-6'>
let timer = null
export default {
name: 'MoveGroup',
props: ['groupInfo'],
......@@ -33,38 +35,29 @@ export default {
data () {
return {
list: [],
moveIndex: 0
speed: 0.8
}
},
mounted () {
if (timer) clearInterval(timer)
},
methods: {
setList (list) {
this.list = list
this.$nextTick(() => {
let boxHeight = this.$refs.groupBox
let boxHeight = this.$refs.groupBox.offsetHeight
let [item] = document.getElementsByClassName('group-item')
let itemHeight = item.offsetHeight / 7 + item.offsetHeight
let groupHeight = `${itemHeight * (list.length)}`
let groupHeight = `${itemHeight * list.length}`
let { speed } = this
let rule = `@keyframes rowup {
0% {transform: translateY(${boxHeight.offsetHeight}px);}
0% {transform: translateY(${boxHeight}px);}
100% {transform: translateY(-${groupHeight}px);}
}`
let sheet = document.styleSheets[0]
sheet.insertRule(rule, 0)
let speed = 2 * list.length + 14
// linear
this.$refs.move.style.animation = `${speed}s rowup linear infinite normal`
// this.move()
let duration = speed * list.length + (boxHeight / itemHeight * speed)
this.$refs.move.style.animation = `${duration}s rowup linear infinite normal`
})
},
move () {
setTimeout(() => {
this.moveIndex += 1
if (this.moveIndex == this.list.length - 1) this.moveIndex = 0
this.move()
}, 10e3)
}
}
}
......@@ -74,35 +67,17 @@ export default {
.group-list {
position: absolute;
left: 8px;
bottom: 52px;
top: 5%;
width: 180px;
height: 220px;
height: 80%;
overflow: hidden;
.mask {
// position: absolute;
// width: 100%;
// height: 100%;
// left: 0;
// top: 0;
// z-index: 1;
// background-repeat: no-repeat;
// background-position: top,bottom;
// transform: translateZ(0);
// pointer-events: none;
// background-image:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
// background-size: 100% 10px;
}
.move {
// transition-duration: 500ms;
width: 100%;
// animation: 10s rowup linear infinite normal;
}
.item {
position: relative;
display: inline-flex;
padding: 0 6px 0 3px;
// max-width: 180px;
box-sizing: border-box;
height: 28px;
background: rgba(0, 0, 0, 0.5);
......
......@@ -249,7 +249,7 @@ export default {
window.location.reload()
})
let _this = this
let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage', 'launchMiniprogram', 'updateAppMessageShareData']
let jsApiList = ['getLocation', 'openLocation', 'getNetworkType', 'onMenuShareAppMessage']
wxConfig.init(jsApiList).then(() => {
wxConfig.ready(() => {
this.getActivityDetail()
......@@ -340,8 +340,10 @@ export default {
link,
imgUrl: data.posterImg || data.activityImg
}
if (!this.ISWXWORK) wxConfig.updateAppMessageShareData(this.shareInfo)
else wxConfig.onMenuShareAppMessage(this.shareInfo)
wxConfig.onMenuShareAppMessage(this.shareInfo).then(() => {
console.log('------------------分享----------------------')
bigdatautilApi.reportTrack(id, false)
})
})
},
loadedmetadata ({ srcElement }, index) {
......@@ -408,7 +410,7 @@ export default {
window.$AUDIO.toggleBGM()
},
playVideo (index) {
let { ISMOBILE, audioFlag } = this
let { ISMOBILE, audioFlag } = this
this.currentVideoIndex = index
let video = this.$refs[`video-${index}`][0]
if (ISMOBILE) this.showLoading('准备中...')
......@@ -429,11 +431,10 @@ export default {
})
},
clickKF () {
// 活动客服标志:1 同步在线客服;2 单独设置 (暂时没有在线客服)
// 活动客服标志:1 同步在线客服;2 单独设置
let { customerServiceFlag } = this.detail
this.showKf = true
// if (customerServiceFlag == 2) this.showKf = true
// else window.location.href = ''
if (customerServiceFlag == 2) this.showKf = true
else window.location.href = 'https://weixin.qq.com/sph/AAiu1t'
}
}
}
......
......@@ -10,7 +10,7 @@
<div class="sprite-icon icon-success"></div>恭喜您已参团成功!
</div>
<div class="info">登录{{miniprogramInfo.miniprogramName}}车生活小程序,到店凭码核销订单并支付尾款</div>
<div class="miniprogram-btn flex text-center">
<!-- <div class="miniprogram-btn flex text-center">
立即跳转小程序
<template v-if="!ISWXWORK">
<wx-open-launch-weapp
......@@ -24,7 +24,7 @@
</script>
</wx-open-launch-weapp>
</template>
</div>
</div> -->
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!