Commit f0777e50 by luyt

fix:场景调整

1 parent 02bab7b0
......@@ -237,15 +237,14 @@ var senceData = [
prodImg: `${IMG_URL}index/prod2/prod2-1.png`,
}
],
videoList:[
//无视频时显示的图片
noVideoPicture: [
{
// videoUrl: `${videoBaseUrl}video/car_beauty.mp4`,
posterUrl: `${IMG_URL}index/poster/no-video.png`,
name: '0-6 个月次新车-线上销售轻改精品',
manufacturer:'嘀加智慧',
view:2561
},
posterUrl:`${IMG_URL}index/poster/no-video.png`,
name:'0-6 个月次新车-线上销售轻改精品'
}
],
videoList:[],
posterList:[
{
// src:`${IMG_URL}index/poster/poster3-0.png`,
......
......@@ -38,6 +38,9 @@ Page({
prodItemVideo(data){
let {senceData,actNum,activeNavIdx} = data
// return senceData[actNum]?.productList[activeNavIdx]
if(actNum == 2){
return senceData[actNum]?.noVideoPicture[0]
}
return senceData[actNum]?.videoList[activeNavIdx]
},
// 授权昵称弹框显示
......@@ -200,10 +203,10 @@ Page({
let idx
if(imgTopArr[0]>e.scrollTop){
idx = 0
}else if(imgTopArr[imgTopArr.length-1]<e.scrollTop){
idx = imgTopArr.length-1
} else{
}else if(imgTopArr[imgTopArr.length-1]>e.scrollTop && imgTopArr[0]<e.scrollTop){
idx = imgTopArr.findIndex((item) => item >e.scrollTop) - 1;
} else{
idx = imgTopArr.length-1
}
this.setData({
tabAct: idx,
......
......@@ -36,6 +36,9 @@ Page({
let {senceData,actNum,activeNavIdx} = data
// return senceData[actNum]?.productList[activeNavIdx]
console.log('senceData[actNum]',senceData[actNum])
if(actNum == 2){
return senceData[actNum]?.noVideoPicture[0]
}
return senceData[actNum]?.videoList[0]
},
// 授权昵称弹框显示
......@@ -58,6 +61,8 @@ Page({
isShare,
phone
});
// 分享描述
this.shareTitle = `给你分享一个活动${senceData[actNum]?.tabname},戳我参与~`;
//分享数据
let senceItem = senceData[actNum]
......@@ -97,7 +102,7 @@ Page({
let userInfoObj = wx.$storage.get("userInfo");
// #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
let name = userInfoObj.merchantName;
this.shareTitle = `${name}给你分享一个活动${senceData[actNum]?.productList[activeNavIdx].proName},戳我参与~`;
this.shareTitle = `给你分享一个活动${senceData[actNum]?.tabname},戳我参与~`;
......@@ -151,10 +156,10 @@ Page({
let idx
if(imgTopArr[0]>e.scrollTop){
idx = 0
}else if(imgTopArr[imgTopArr.length-1]<e.scrollTop){
idx = imgTopArr.length-1
} else{
}else if(imgTopArr[imgTopArr.length-1]>e.scrollTop && imgTopArr[0]<e.scrollTop){
idx = imgTopArr.findIndex((item) => item >e.scrollTop) - 1;
} else{
idx = imgTopArr.length-1
}
this.setData({
tabAct: idx,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!