Commit f5c41b0b by 胡悦

案例视频添加标题

1 parent c5774bbe
...@@ -28,6 +28,27 @@ ...@@ -28,6 +28,27 @@
letter-spacing: 0; letter-spacing: 0;
height: 72rpx; height: 72rpx;
line-height: 72rpx; line-height: 72rpx;
animation: scaleDrew 2.5s infinite;
}
@keyframes scaleDrew {
/* 定义关键帧、scaleDrew是需要绑定到选择器的关键帧名称 */
0% {
transform: scale(1);
}
25% {
transform: scale(0.95);
}
50% {
transform: scale(1);
}
75% {
transform: scale(0.95);
}
} }
.forward-box { .forward-box {
......
...@@ -157,7 +157,7 @@ Component({ ...@@ -157,7 +157,7 @@ Component({
let { actnum, index } = e.target.dataset let { actnum, index } = e.target.dataset
// 膨胀金活动,合作方式 // 膨胀金活动,合作方式
if (actnum == 4 && index == 4) { if (actnum == 4 && index == 4) {
wx.$router.jumpH5('https://1064147.ma3you.cn/articles/OdEQmwb/'); wx.$router.jumpH5('https://scrm.glsx.com.cn/frontpdf/expand_agreement.pdf');
} }
} }
} }
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
import {trackData} from '../../../utils/data' import {trackData} from '../../../utils/data'
import {productData} from '../../../pages/tab/index/constant/senceData' import {productData} from '../../../pages/tab/index/constant/senceData'
import {subscriptionSystemData} from '../../../pages/tab/index/constant/systemData' import {subscriptionSystemData} from '../../../pages/tab/index/constant/systemData'
import utils from '~/utils/util'
Page({ Page({
/** /**
...@@ -40,12 +41,13 @@ Page({ ...@@ -40,12 +41,13 @@ Page({
wx.$storage.set('scene', options) wx.$storage.set('scene', options)
console.log(productData[+options.scenIndex]) console.log(productData[+options.scenIndex])
const spcList = [99] const spcList = [99]
const {videoIndex, scenIndex, name, leftMenuIndex } = options const {videoIndex, scenIndex, name, leftMenuIndex, videoName } = options
console.logscenIndex console.logscenIndex
const res = { const res = {
index: videoIndex, index: videoIndex,
scenIndex: scenIndex, scenIndex: scenIndex,
name: name, name: name,
videoName,
leftMenuIndex: leftMenuIndex, leftMenuIndex: leftMenuIndex,
videoList: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList : productData[scenIndex][0].videoList, videoList: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList : productData[scenIndex][0].videoList,
videoUrl: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList[+videoIndex].videoUrl : productData[scenIndex][0].videoList[+videoIndex].videoUrl videoUrl: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList[+videoIndex].videoUrl : productData[scenIndex][0].videoList[+videoIndex].videoUrl
...@@ -59,6 +61,9 @@ Page({ ...@@ -59,6 +61,9 @@ Page({
} else if (name == '系统订阅') { } else if (name == '系统订阅') {
wx.$Track.sendTrack(this.data.systemTrackList[leftMenuIndex][videoIndex]) wx.$Track.sendTrack(this.data.systemTrackList[leftMenuIndex][videoIndex])
} }
setTimeout(() => {
utils.setNavigationBarTitle(videoName)
},100)
getApp() getApp()
.login() .login()
.then(({ data }) => { .then(({ data }) => {
...@@ -83,6 +88,9 @@ Page({ ...@@ -83,6 +88,9 @@ Page({
} else if (res.name == '系统订阅') { } else if (res.name == '系统订阅') {
wx.$Track.sendTrack(this.data.systemTrackList[res.leftMenuIndex][res.index]) wx.$Track.sendTrack(this.data.systemTrackList[res.leftMenuIndex][res.index])
} }
setTimeout(() => {
utils.setNavigationBarTitle(this.data.videoItem.videoName)
},100)
}) })
} }
}, },
...@@ -125,7 +133,7 @@ Page({ ...@@ -125,7 +133,7 @@ Page({
chooseVideo(e) { chooseVideo(e) {
console.log(e) console.log(e)
const {index} = e.detail const {index, info: {name}} = e.detail
const {videoItem} = this.data const {videoItem} = this.data
console.log(videoItem) console.log(videoItem)
if (videoItem.name == '系统订阅') { if (videoItem.name == '系统订阅') {
...@@ -141,6 +149,9 @@ Page({ ...@@ -141,6 +149,9 @@ Page({
console.log(this.data.videoItem) console.log(this.data.videoItem)
wx.$Track.sendTrack(this.data.trackList[videoItem.scenIndex][index]) wx.$Track.sendTrack(this.data.trackList[videoItem.scenIndex][index])
} }
setTimeout(() => {
utils.setNavigationBarTitle(name)
},100)
}, },
/** /**
...@@ -194,11 +205,11 @@ Page({ ...@@ -194,11 +205,11 @@ Page({
const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId
const shareType = 'SHARE_VIDEO' const shareType = 'SHARE_VIDEO'
console.log('cardId', cardId, 'merchant', merchant) console.log('cardId', cardId, 'merchant', merchant)
const {index, scenIndex, videoUrl, name, leftMenuIndex} = this.data.videoItem const {index, scenIndex, videoUrl, name, leftMenuIndex, videoName} = this.data.videoItem
console.log(this.data.videoItem) console.log(this.data.videoItem)
return { return {
title: `您好,我向你分享了一个视频`, title: `您好,我向你分享了一个视频`,
path: `packagesList/pages/videoDetal/videoDetal?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&scenIndex=${scenIndex}&videoIndex=${index}&name=${name}&leftMenuIndex=${leftMenuIndex}` path: `packagesList/pages/videoDetal/videoDetal?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&scenIndex=${scenIndex}&videoIndex=${index}&name=${name}&leftMenuIndex=${leftMenuIndex}&videoName=${videoName}`
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -148,6 +148,7 @@ Page({ ...@@ -148,6 +148,7 @@ Page({
}, },
// 跳转视频详情 // 跳转视频详情
videoClick(e) { videoClick(e) {
console.log(e)
const { name } = e.target.dataset const { name } = e.target.dataset
const { const {
index, index,
...@@ -161,6 +162,7 @@ Page({ ...@@ -161,6 +162,7 @@ Page({
index, index,
videoList, videoList,
videoUrl: videoUrl, videoUrl: videoUrl,
videoName: e.detail.info.name,
hasPhoneNumber: this.data.hasPhoneNumber, hasPhoneNumber: this.data.hasPhoneNumber,
scenIndex: isNaN(scenIndex) ? 99 : scenIndex, scenIndex: isNaN(scenIndex) ? 99 : scenIndex,
name name
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!