Commit c71c7f2f by 匡雅琴

处理视频分享进来报错问题

1 parent 2ae24953
...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"]; ...@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布 3预发布
4生产 4生产
*/ */
const index = 2; const index = 3;
const secretKey = { const secretKey = {
ip: {}, ip: {},
dev: { dev: {
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
"integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ==" "integrity": "sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
}, },
"glsx-applet-component": { "glsx-applet-component": {
"version": "1.1.1", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.1.tgz", "resolved": "https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.1.2.tgz",
"integrity": "sha512-+eDD8gsVs0Tudw9hwwhL8FoXltgw6Z8uz1Ez7naZdumGt9WZXhMHzWIXw3nDLXt7UO8RNBHA8eS0juAKRnHcyA==" "integrity": "sha512-fPuHlfJmybl1auJz65kVa/nlg0PjPL4Nr8LspMyRH+8XvjT269DxpsuZYjXIZeb5050Q/R2Brqc2/A6pTcGXvw=="
} }
} }
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"main": "app.js", "main": "app.js",
"dependencies": { "dependencies": {
"@vant/weapp": "^1.10.9", "@vant/weapp": "^1.10.9",
"glsx-applet-component": "^1.1.1" "glsx-applet-component": "^1.1.2"
}, },
"devDependencies": {}, "devDependencies": {},
"scripts": { "scripts": {
......
...@@ -13,7 +13,8 @@ Page({ ...@@ -13,7 +13,8 @@ Page({
index: 0, index: 0,
videoList: [], videoList: [],
videoUrl: '', videoUrl: '',
hasPhoneNumber: false hasPhoneNumber: false,
tabsActive: 1
}, },
trackList: [ trackList: [
[trackData.EQUITYVIDEO0, trackData.EQUITYVIDEO1, trackData.EQUITYVIDEO2, trackData.EQUITYVIDEO3], [trackData.EQUITYVIDEO0, trackData.EQUITYVIDEO1, trackData.EQUITYVIDEO2, trackData.EQUITYVIDEO3],
...@@ -35,19 +36,30 @@ Page({ ...@@ -35,19 +36,30 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options);
if (options && options.cardId) { if (options && options.cardId) {
wx.$trackData = options wx.$trackData = options
wx.$storage.set('scene', options) wx.$storage.set('scene', options)
const spcList = [99] const spcList = [99]
const {videoIndex, scenIndex, name, leftMenuIndex, videoName } = options const {videoIndex, scenIndex, name, leftMenuIndex, videoName, tabsActive } = options
let videoList = []
let videoUrl = ''
// 判断是案例视频还是操作指引视频
if (tabsActive === '3') {
videoList= spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].operationVideoList : productData[scenIndex][0].operationVideoList,
videoUrl= spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].operationVideoList[+operationVideoList].videoUrl : productData[scenIndex][0].operationVideoList[+videoIndex].videoUrl
} else {
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
}
const res = { const res = {
index: videoIndex, index: videoIndex,
scenIndex: scenIndex, scenIndex: scenIndex,
name: name, name: name,
videoName, videoName,
leftMenuIndex: leftMenuIndex, leftMenuIndex: leftMenuIndex,
videoList: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList : productData[scenIndex][0].videoList, videoList: videoList,
videoUrl: spcList.includes(+scenIndex) ? subscriptionSystemData[leftMenuIndex].videoList[+videoIndex].videoUrl : productData[scenIndex][0].videoList[+videoIndex].videoUrl videoUrl: videoUrl
} }
this.setData({ this.setData({
videoItem: res videoItem: res
...@@ -73,6 +85,7 @@ Page({ ...@@ -73,6 +85,7 @@ Page({
// wx.$Track.sendTrack(this.data.trackList[scenIndex][res.index]) // wx.$Track.sendTrack(this.data.trackList[scenIndex][res.index])
} else { } else {
wx.$router.getData(res => { wx.$router.getData(res => {
console.log(res, 'res');
this.setData({ this.setData({
videoItem: res, videoItem: res,
isLoadding: false isLoadding: false
...@@ -194,10 +207,11 @@ Page({ ...@@ -194,10 +207,11 @@ Page({
// merchantId 兼容旧链接 // merchantId 兼容旧链接
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'
const {index, scenIndex, videoUrl, name, leftMenuIndex, videoName} = this.data.videoItem console.log(this.data.videoItem, 'this.data.videoItem');
const {index, scenIndex, videoUrl, name, leftMenuIndex, videoName, tabsActive} = 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}&videoName=${videoName}` path: `packagesList/pages/videoDetal/videoDetal?cardId=${cardId}&merchant=${merchant}&shareType=${shareType}&scenIndex=${scenIndex}&videoIndex=${index}&name=${name}&leftMenuIndex=${leftMenuIndex}&videoName=${videoName}&tabsActive=${tabsActive}`
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
...@@ -269,13 +269,57 @@ const posterList3 = [ ...@@ -269,13 +269,57 @@ const posterList3 = [
// 操作指引视频 // 操作指引视频
// 会员权益升级 // 会员权益升级
const operationVideoList0 = [{ const operationVideoList0 = [
videoUrl: `${videoBaseUrl}video/online_coupon.mp4`, {
posterUrl: `${IMG_URL}index/poster/car_beauty.png`, videoUrl: `${videoBaseUrl}video/generate_price.mp4`,
name: '如何线上发券呢?', posterUrl: `${IMG_URL}index/poster/generate_price.jpg`,
name: '如何生成融合报价单?',
manufacturer: '嘀加智慧',
view: 2854
},
{
videoUrl: `${videoBaseUrl}video/edite_price_content.mp4`,
posterUrl: `${IMG_URL}index/poster/edite_price_content.jpg`,
name: '如何修改已生成的融合报价单内容?',
manufacturer: '嘀加智慧',
view: 1786
},
{
videoUrl: `${videoBaseUrl}video/enter_defeat_order.mp4`,
posterUrl: `${IMG_URL}index/poster/enter_defeat_order.jpg`,
name: '如何录入战败订单?',
manufacturer: '嘀加智慧',
view: 2115
},
{
videoUrl: `${videoBaseUrl}video/how_bill_lading.mp4`,
posterUrl: `${IMG_URL}index/poster/how_bill_lading.jpg`,
name: '如何提单?',
manufacturer: '嘀加智慧', manufacturer: '嘀加智慧',
view: 1361 view: 1361
}, ] },
{
videoUrl: `${videoBaseUrl}video/print_contract.mp4`,
posterUrl: `${IMG_URL}index/poster/print_contract.jpg`,
name: '如何打印纸质合同?',
manufacturer: '嘀加智慧',
view: 3008
},
{
videoUrl: `${videoBaseUrl}video/why_generate_price.mp4`,
posterUrl: `${IMG_URL}index/poster/why_generate_price.jpg`,
name: '为什么要生成融合报价单?',
manufacturer: '嘀加智慧',
view: 1968
},
{
videoUrl: `${videoBaseUrl}video/online_system_benefit.mp4`,
posterUrl: `${IMG_URL}index/poster/online_system_benefit.jpg`,
name: '使用线上系统有什么好处?',
manufacturer: '嘀加智慧',
view: 3361
},
]
// 精品升级 // 精品升级
const operationVideoList1 = [ const operationVideoList1 = [
{ {
......
...@@ -69,6 +69,58 @@ const posterList0 = [ ...@@ -69,6 +69,58 @@ const posterList0 = [
name: 'AR实景导航' name: 'AR实景导航'
} }
] ]
const operationVideoList0 = [
{
videoUrl: `${videoBaseUrl}video/generate_price.mp4`,
posterUrl: `${IMG_URL}index/poster/generate_price.jpg`,
name: '如何生成融合报价单?',
manufacturer: '嘀加智慧',
view: 2854
},
{
videoUrl: `${videoBaseUrl}video/edite_price_content.mp4`,
posterUrl: `${IMG_URL}index/poster/edite_price_content.jpg`,
name: '如何修改已生成的融合报价单内容?',
manufacturer: '嘀加智慧',
view: 1786
},
{
videoUrl: `${videoBaseUrl}video/enter_defeat_order.mp4`,
posterUrl: `${IMG_URL}index/poster/enter_defeat_order.jpg`,
name: '如何录入战败订单?',
manufacturer: '嘀加智慧',
view: 2115
},
{
videoUrl: `${videoBaseUrl}video/how_bill_lading.mp4`,
posterUrl: `${IMG_URL}index/poster/how_bill_lading.jpg`,
name: '如何提单?',
manufacturer: '嘀加智慧',
view: 1361
},
{
videoUrl: `${videoBaseUrl}video/print_contract.mp4`,
posterUrl: `${IMG_URL}index/poster/print_contract.jpg`,
name: '如何打印纸质合同?',
manufacturer: '嘀加智慧',
view: 3008
},
{
videoUrl: `${videoBaseUrl}video/why_generate_price.mp4`,
posterUrl: `${IMG_URL}index/poster/why_generate_price.jpg`,
name: '为什么要生成融合报价单?',
manufacturer: '嘀加智慧',
view: 1968
},
{
videoUrl: `${videoBaseUrl}video/online_system_benefit.mp4`,
posterUrl: `${IMG_URL}index/poster/online_system_benefit.jpg`,
name: '使用线上系统有什么好处?',
manufacturer: '嘀加智慧',
view: 3361
},
]
const scenario_0 = [ const scenario_0 = [
{ {
name: '服务类', name: '服务类',
...@@ -97,7 +149,8 @@ const scenario_0 = [ ...@@ -97,7 +149,8 @@ const scenario_0 = [
} }
], ],
videoList: videoList0, videoList: videoList0,
posterList: posterList0 posterList: posterList0,
operationVideoList: operationVideoList0
} }
] ]
...@@ -132,6 +185,115 @@ const posterList1 = [ ...@@ -132,6 +185,115 @@ const posterList1 = [
name: 'AR实景导航' name: 'AR实景导航'
} }
] ]
// 精品升级
const operationVideoList1 = [
{
videoUrl: `${videoBaseUrl}video/online_coupon.mp4`,
posterUrl: `${IMG_URL}index/poster/online_coupon.jpg`,
name: '如何线上发券呢?',
manufacturer: '嘀加智慧',
view: 2301
},
{
videoUrl: `${videoBaseUrl}video/customer_get_coupon.mp4`,
posterUrl: `${IMG_URL}index/poster/customer_get_coupon.jpg`,
name: '客户如何领券,在哪里可以查看自己的券码?',
manufacturer: '嘀加智慧',
view: 1938
},
{
videoUrl: `${videoBaseUrl}video/create_online_work_order.mp4`,
posterUrl: `${IMG_URL}index/poster/create_online_work_order.jpg`,
name: '如何线上新建客户工单?',
manufacturer: '嘀加智慧',
view: 1890
},
{
videoUrl: `${videoBaseUrl}video/online_cancel_verification.mp4`,
posterUrl: `${IMG_URL}index/poster/online_cancel_verification.jpg`,
name: '驻店员工如何线上进行扫码核销',
manufacturer: '嘀加智慧',
view: 1321
},
{
videoUrl: `${videoBaseUrl}video/create_online_record.mp4`,
posterUrl: `${IMG_URL}index/poster/create_online_record.jpg`,
name: '如何线上建立客户档案?',
manufacturer: '嘀加智慧',
view: 2231
},
{
videoUrl: `${videoBaseUrl}video/customer_get_warranty.mp4`,
posterUrl: `${IMG_URL}index/poster/customer_get_warranty.jpg`,
name: '客户如何领取质保卡?',
manufacturer: '嘀加智慧',
view: 2261
},
{
videoUrl: `${videoBaseUrl}video/customer_get_wechat.mp4`,
posterUrl: `${IMG_URL}index/poster/customer_get_wechat.jpg`,
name: '战败客户如何加微?',
manufacturer: '嘀加智慧',
view: 2061
},
{
videoUrl: `${videoBaseUrl}video/cancel_work_order.mp4`,
posterUrl: `${IMG_URL}index/poster/cancel_work_order.jpg`,
name: '如何撤销工单及工位设置?',
manufacturer: '嘀加智慧',
view: 2003
},
{
videoUrl: `${videoBaseUrl}video/view_manager_data.mp4`,
posterUrl: `${IMG_URL}index/poster/view_manager_data.jpg`,
name: '如何查看经营数据?',
manufacturer: '嘀加智慧',
view: 2811
},
{
videoUrl: `${videoBaseUrl}video/why_get_coupon.mp4`,
posterUrl: `${IMG_URL}index/poster/why_get_coupon.jpg`,
name: '为什么要使用“车生活助手”发券,领券',
manufacturer: '嘀加智慧',
view: 2661
},
{
videoUrl: `${videoBaseUrl}video/cancel_verification_advance.mp4`,
posterUrl: `${IMG_URL}index/poster/cancel_verification_advance.jpg`,
name: '线上扫码核销有哪些好处呢?',
manufacturer: '嘀加智慧',
view: 1211
},
{
videoUrl: `${videoBaseUrl}video/why_add_work_order.mp4`,
posterUrl: `${IMG_URL}index/poster/why_add_work_order.jpg`,
name: '为什么要建档以及新增工单?',
manufacturer: '嘀加智慧',
view: 986
},
{
videoUrl: `${videoBaseUrl}video/online_warranty_card_advance.mp4`,
posterUrl: `${IMG_URL}index/poster/online_warranty_card_advance.jpg`,
name: '线上质保卡的好处有哪些?',
manufacturer: '嘀加智慧',
view: 2209
},
{
videoUrl: `${videoBaseUrl}video/station_work_effect.mp4`,
posterUrl: `${IMG_URL}index/poster/station_work_effect.jpg`,
name: '工位设置和撤销工单有哪些作用?',
manufacturer: '嘀加智慧',
view: 2261
},
{
videoUrl: `${videoBaseUrl}video/why_view_manage_dat.mp4`,
posterUrl: `${IMG_URL}index/poster/why_view_manage_dat.jpg`,
name: '为什么要查看经营数据呢?',
manufacturer: '嘀加智慧',
view: 2261
},
]
const scenario_1 = [ const scenario_1 = [
{ {
name: '膜类', name: '膜类',
...@@ -159,7 +321,8 @@ const scenario_1 = [ ...@@ -159,7 +321,8 @@ const scenario_1 = [
} }
], ],
videoList: videoList1, videoList: videoList1,
posterList: posterList1 posterList: posterList1,
operationVideoList: operationVideoList1
} }
] ]
...@@ -186,6 +349,8 @@ const posterList2 = [ ...@@ -186,6 +349,8 @@ const posterList2 = [
} }
] ]
const videoList2 = [] const videoList2 = []
// 次新车转化
const operationVideoList2 = []
const scenario_2 = [ const scenario_2 = [
{ {
name: '膜类', name: '膜类',
...@@ -237,7 +402,8 @@ const scenario_2 = [ ...@@ -237,7 +402,8 @@ const scenario_2 = [
} }
], ],
videoList: videoList2, videoList: videoList2,
posterList: posterList2 posterList: posterList2,
operationVideoList: operationVideoList2
} }
] ]
...@@ -307,6 +473,8 @@ const posterList3 = [ ...@@ -307,6 +473,8 @@ const posterList3 = [
name: 'AR实景导航' name: 'AR实景导航'
} }
] ]
// 售后众筹
const operationVideoList3 = []
const scenario_3 = [ const scenario_3 = [
{ {
name: '美容类', name: '美容类',
...@@ -334,7 +502,8 @@ const scenario_3 = [ ...@@ -334,7 +502,8 @@ const scenario_3 = [
sceneImgs: sceneImgs3, sceneImgs: sceneImgs3,
productImgs: productImgs3, productImgs: productImgs3,
videoList: videoList3, videoList: videoList3,
posterList: posterList3 posterList: posterList3,
operationVideoList: operationVideoList3
}, },
{ {
name: '轻改类', name: '轻改类',
...@@ -435,7 +604,8 @@ const scenario_3 = [ ...@@ -435,7 +604,8 @@ const scenario_3 = [
sceneImgs: sceneImgs3, sceneImgs: sceneImgs3,
productImgs: productImgs3, productImgs: productImgs3,
videoList: videoList3, videoList: videoList3,
posterList: posterList3 posterList: posterList3,
operationVideoList: operationVideoList3
} }
] ]
......
...@@ -159,12 +159,14 @@ Page({ ...@@ -159,12 +159,14 @@ Page({
}, },
// 跳转视频详情 // 跳转视频详情
videoClick(e) { videoClick(e) {
console.log(e.detail);
const { name } = e.target.dataset const { name } = e.target.dataset
const { const {
index, index,
info: { videoUrl }, info: { videoUrl },
scenIndex, scenIndex,
list list,
tabsActive
} = e.detail } = e.detail
const videoList = list const videoList = list
const obj = { const obj = {
...@@ -174,7 +176,8 @@ Page({ ...@@ -174,7 +176,8 @@ Page({
videoName: e.detail.info.name, 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,
tabsActive
} }
if (name == '客户数字化') { if (name == '客户数字化') {
obj.leftMenuIndex = leftMenuIndex obj.leftMenuIndex = leftMenuIndex
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.25.4", "libVersion": "2.25.4",
"appid": "wx1bd947039419e6ce", "appid": "wxcf971cf4ada61d8b",
"projectname": "%E5%B9%BF%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%A8%A1%E7%89%88", "projectname": "%E5%B9%BF%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F%E6%A8%A1%E7%89%88",
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!