Commit f5c41b0b by 胡悦

案例视频添加标题

1 parent c5774bbe
......@@ -28,6 +28,27 @@
letter-spacing: 0;
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 {
......
......@@ -157,7 +157,7 @@ Component({
let { actnum, index } = e.target.dataset
// 膨胀金活动,合作方式
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 @@
import {trackData} from '../../../utils/data'
import {productData} from '../../../pages/tab/index/constant/senceData'
import {subscriptionSystemData} from '../../../pages/tab/index/constant/systemData'
import utils from '~/utils/util'
Page({
/**
......@@ -40,12 +41,13 @@ Page({
wx.$storage.set('scene', options)
console.log(productData[+options.scenIndex])
const spcList = [99]
const {videoIndex, scenIndex, name, leftMenuIndex } = options
const {videoIndex, scenIndex, name, leftMenuIndex, videoName } = options
console.logscenIndex
const res = {
index: videoIndex,
scenIndex: scenIndex,
name: name,
videoName,
leftMenuIndex: leftMenuIndex,
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
......@@ -59,6 +61,9 @@ Page({
} else if (name == '系统订阅') {
wx.$Track.sendTrack(this.data.systemTrackList[leftMenuIndex][videoIndex])
}
setTimeout(() => {
utils.setNavigationBarTitle(videoName)
},100)
getApp()
.login()
.then(({ data }) => {
......@@ -83,6 +88,9 @@ Page({
} else if (res.name == '系统订阅') {
wx.$Track.sendTrack(this.data.systemTrackList[res.leftMenuIndex][res.index])
}
setTimeout(() => {
utils.setNavigationBarTitle(this.data.videoItem.videoName)
},100)
})
}
},
......@@ -125,7 +133,7 @@ Page({
chooseVideo(e) {
console.log(e)
const {index} = e.detail
const {index, info: {name}} = e.detail
const {videoItem} = this.data
console.log(videoItem)
if (videoItem.name == '系统订阅') {
......@@ -141,6 +149,9 @@ Page({
console.log(this.data.videoItem)
wx.$Track.sendTrack(this.data.trackList[videoItem.scenIndex][index])
}
setTimeout(() => {
utils.setNavigationBarTitle(name)
},100)
},
/**
......@@ -194,11 +205,11 @@ Page({
const merchant = wx.$storage.get('scene').merchant || wx.$storage.get('scene').merchantId
const shareType = 'SHARE_VIDEO'
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)
return {
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
......@@ -148,6 +148,7 @@ Page({
},
// 跳转视频详情
videoClick(e) {
console.log(e)
const { name } = e.target.dataset
const {
index,
......@@ -161,6 +162,7 @@ Page({
index,
videoList,
videoUrl: videoUrl,
videoName: e.detail.info.name,
hasPhoneNumber: this.data.hasPhoneNumber,
scenIndex: isNaN(scenIndex) ? 99 : scenIndex,
name
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!