Commit 1f89f314 by luyt

feat:详情图添加

1 parent 8e2632f3
...@@ -123,10 +123,10 @@ var senceData = [ ...@@ -123,10 +123,10 @@ var senceData = [
`${IMG_URL}index/scene/scene13.png`, `${IMG_URL}index/scene/scene13.png`,
], ],
productImgs:[ productImgs:[
`${IMG_URL}index/productImgs/product00.webp`, `${IMG_URL}index/productImgs/product10.webp`,
`${IMG_URL}index/productImgs/product01.webp`, `${IMG_URL}index/productImgs/product11.webp`,
`${IMG_URL}index/productImgs/product02.webp`, `${IMG_URL}index/productImgs/product12.webp`,
`${IMG_URL}index/productImgs/product03.webp`, `${IMG_URL}index/productImgs/product13.webp`,
], ],
productList: [ productList: [
{ {
...@@ -198,10 +198,10 @@ var senceData = [ ...@@ -198,10 +198,10 @@ var senceData = [
`${IMG_URL}index/scene/scene23.png`, `${IMG_URL}index/scene/scene23.png`,
], ],
productImgs:[ productImgs:[
`${IMG_URL}index/productImgs/product00.webp`, `${IMG_URL}index/productImgs/product20.webp`,
`${IMG_URL}index/productImgs/product01.webp`, `${IMG_URL}index/productImgs/product21.webp`,
`${IMG_URL}index/productImgs/product02.webp`, `${IMG_URL}index/productImgs/product22.webp`,
`${IMG_URL}index/productImgs/product03.webp`, `${IMG_URL}index/productImgs/product23.webp`,
], ],
productList: [ productList: [
{ {
...@@ -237,7 +237,15 @@ var senceData = [ ...@@ -237,7 +237,15 @@ var senceData = [
prodImg: `${IMG_URL}index/prod2/prod2-1.png`, prodImg: `${IMG_URL}index/prod2/prod2-1.png`,
} }
], ],
videoList:[], videoList:[
{
// videoUrl: `${videoBaseUrl}video/car_beauty.mp4`,
posterUrl: `${IMG_URL}index/poster/no-video.png`,
name: '数字化美容-新增产值20w+',
manufacturer:'嘀加智慧',
view:2561
},
],
posterList:[ posterList:[
{ {
// src:`${IMG_URL}index/poster/poster3-0.png`, // src:`${IMG_URL}index/poster/poster3-0.png`,
...@@ -281,10 +289,10 @@ var senceData = [ ...@@ -281,10 +289,10 @@ var senceData = [
`${IMG_URL}index/scene/scene33.png`, `${IMG_URL}index/scene/scene33.png`,
], ],
productImgs:[ productImgs:[
`${IMG_URL}index/productImgs/product00.webp`, `${IMG_URL}index/productImgs/product30.webp`,
`${IMG_URL}index/productImgs/product01.webp`, `${IMG_URL}index/productImgs/product31.webp`,
`${IMG_URL}index/productImgs/product02.webp`, `${IMG_URL}index/productImgs/product32.webp`,
`${IMG_URL}index/productImgs/product03.webp`, `${IMG_URL}index/productImgs/product33.webp`,
], ],
productList: [ productList: [
{ {
......
...@@ -35,6 +35,13 @@ page { ...@@ -35,6 +35,13 @@ page {
color: #5a6066; color: #5a6066;
} }
} }
.no-video{
margin: 16rpx auto 32rpx;
display: block;
width: 686rpx;
height: 386rpx;
border-radius: 16rpx;
}
.tab-wrap { .tab-wrap {
position: sticky; position: sticky;
top: 0; top: 0;
...@@ -102,106 +109,106 @@ page { ...@@ -102,106 +109,106 @@ page {
line-height: 96rpx; line-height: 96rpx;
} }
.img-item0 { // .img-item0 {
width: 100%;
height: 2564rpx;
}
.img-item1 {
width: 100%;
height: 1812rpx;
}
.img-item2 {
width: 100%;
height: 620rpx;
}
.img-item3 {
width: 100%;
height: 2156rpx;
}
// 流程图一
// .img-item00 {
// width: 100%; // width: 100%;
// height: 1110rpx; // height: 2564rpx;
// } // }
// .img-item1 {
// .img-item01 {
// width: 100%; // width: 100%;
// height: 1290rpx; // height: 1812rpx;
// } // }
// .img-item2 {
// .img-item02 {
// width: 100%; // width: 100%;
// height: 596rpx; // height: 620rpx;
// } // }
// .img-item3 {
// .img-item03 {
// width: 100%; // width: 100%;
// height: 744rpx; // height: 2156rpx;
// } // }
// 流程图一
.img-item00 {
width: 100%;
height: 3308rpx;
}
.img-item01 {
width: 100%;
height: 2598rpx;
}
.img-item02 {
width: 100%;
height: 490rpx;
}
.img-item03 {
width: 100%;
height: 688rpx;
}
// // 流程图二 // // 流程图二
// .img-item10 { .img-item10 {
// width: 100%; width: 100%;
// height: 2168rpx; height: 1488rpx;
// } }
// .img-item11 { .img-item11 {
// width: 100%; width: 100%;
// height: 1290rpx; height: 2192rpx;
// } }
// .img-item12 { .img-item12 {
// width: 100%; width: 100%;
// height: 596rpx; height: 490rpx;
// } }
// .img-item13 { .img-item13 {
// width: 100%; width: 100%;
// height: 830rpx; height: 688rpx;
// } }
// // 流程图三 // // 流程图三
// .img-item20 { .img-item20 {
// width: 100%; width: 100%;
// height: 1110rpx; height: 1488rpx;
// } }
// .img-item21 { .img-item21 {
// width: 100%; width: 100%;
// height: 1290rpx; height: 570rpx;
// } }
// .img-item22 { .img-item22 {
// width: 100%; width: 100%;
// height: 596rpx; height: 490rpx;
// } }
// .img-item23 { .img-item23 {
// width: 100%; width: 100%;
// height: 984rpx; height: 864rpx;
// } }
// // 流程图四 // // 流程图四
// .img-item30 { .img-item30 {
// width: 100%; width: 100%;
// height: 678rpx; height: 5758rpx;
// } }
// .img-item31 { .img-item31 {
// width: 100%; width: 100%;
// height: 1266rpx; height: 1812rpx;
// } }
// .img-item32 { .img-item32 {
// width: 100%; width: 100%;
// height: 1398rpx; height: 490rpx;
// } }
// .img-item33 { .img-item33 {
// width: 100%; width: 100%;
// height: 830rpx; height: 2002rpx;
// } }
} }
} }
/* 用户授权 */ /* 用户授权 */
......
<view class="view-prod"> <view class="view-prod">
<!-- 有视频 -->
<block wx:if="{{actNum != 2}}" >
<video class="frame" src="{{prodItemVideo.videoUrl}}"></video> <video class="frame" src="{{prodItemVideo.videoUrl}}"></video>
<view class="title-wrap"> <view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view> <view class="title">{{prodItemVideo.name}}</view>
...@@ -6,6 +8,10 @@ ...@@ -6,6 +8,10 @@
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" /> <image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">{{prodItemVideo.view}}</view> <view class="num">{{prodItemVideo.view}}</view>
</view> </view>
</block>
<!-- 无视频 -->
<image class="no-video" wx:if="{{actNum == 2}}" src="{{IMG_URL}}index/poster/no-video.png?v={{img_version}}" />
<view class="tab-wrap"> <view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}"> <van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
<van-tab title="项目亮点"></van-tab> <van-tab title="项目亮点"></van-tab>
......
...@@ -35,6 +35,13 @@ page { ...@@ -35,6 +35,13 @@ page {
color: #5a6066; color: #5a6066;
} }
} }
.no-video{
margin: 16rpx auto 32rpx;
display: block;
width: 686rpx;
height: 386rpx;
border-radius: 16rpx;
}
.tab-wrap { .tab-wrap {
position: sticky; position: sticky;
top: 0; top: 0;
...@@ -98,88 +105,90 @@ page { ...@@ -98,88 +105,90 @@ page {
text-align: center; text-align: center;
line-height: 96rpx; line-height: 96rpx;
} }
// 流程图一 // 流程图一
.img-item00 { .img-item00 {
width: 100%; width: 100%;
height: 1110rpx; height: 3308rpx;
} }
.img-item01 { .img-item01 {
width: 100%; width: 100%;
height: 1290rpx; height: 2598rpx;
} }
.img-item02 { .img-item02 {
width: 100%; width: 100%;
height: 596rpx; height: 490rpx;
} }
.img-item03 { .img-item03 {
width: 100%; width: 100%;
height: 744rpx; height: 688rpx;
} }
// 流程图二 // // 流程图二
.img-item10 { .img-item10 {
width: 100%; width: 100%;
height: 2168rpx; height: 1488rpx;
} }
.img-item11 { .img-item11 {
width: 100%; width: 100%;
height: 1290rpx; height: 2192rpx;
} }
.img-item12 { .img-item12 {
width: 100%; width: 100%;
height: 596rpx; height: 490rpx;
} }
.img-item13 { .img-item13 {
width: 100%; width: 100%;
height: 830rpx; height: 688rpx;
} }
// 流程图三 // // 流程图三
.img-item20 { .img-item20 {
width: 100%; width: 100%;
height: 1110rpx; height: 1488rpx;
} }
.img-item21 { .img-item21 {
width: 100%; width: 100%;
height: 1290rpx; height: 570rpx;
} }
.img-item22 { .img-item22 {
width: 100%; width: 100%;
height: 596rpx; height: 490rpx;
} }
.img-item23 { .img-item23 {
width: 100%; width: 100%;
height: 984rpx; height: 864rpx;
} }
// 流程图四 // // 流程图四
.img-item30 { .img-item30 {
width: 100%; width: 100%;
height: 678rpx; height: 5758rpx;
} }
.img-item31 { .img-item31 {
width: 100%; width: 100%;
height: 1266rpx; height: 1812rpx;
} }
.img-item32 { .img-item32 {
width: 100%; width: 100%;
height: 1398rpx; height: 490rpx;
} }
.img-item33 { .img-item33 {
width: 100%; width: 100%;
height: 830rpx; height: 2002rpx;
} }
} }
} }
......
<view class="view-prod"> <view class="view-prod">
<!-- 有视频 -->
<block wx:if="{{actNum != 2}}" >
<video class="frame" src="{{prodItemVideo.videoUrl}}"></video> <video class="frame" src="{{prodItemVideo.videoUrl}}"></video>
<view class="title-wrap"> <view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view> <view class="title">{{prodItemVideo.name}}</view>
...@@ -6,6 +8,10 @@ ...@@ -6,6 +8,10 @@
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" /> <image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">{{prodItemVideo.view}}</view> <view class="num">{{prodItemVideo.view}}</view>
</view> </view>
</block>
<!-- 无视频 -->
<image class="no-video" wx:if="{{actNum == 2}}" src="{{IMG_URL}}index/poster/no-video.png?v={{img_version}}" />
<view class="tab-wrap"> <view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}"> <van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
<van-tab title="项目亮点"></van-tab> <van-tab title="项目亮点"></van-tab>
...@@ -15,7 +21,7 @@ ...@@ -15,7 +21,7 @@
</van-tabs> </van-tabs>
</view> </view>
<view class="prod-detail"> <view class="prod-detail">
<block wx:for="{{senceData[actNum].sceneImgs}}" wx:key="index"> <block wx:for="{{senceData[actNum].productImgs}}" wx:key="index">
<image wx:if="{{ index < 3}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}"> <image wx:if="{{ index < 3}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}"> <block wx:if="{{ index == 0}}">
<!-- && phone --> <!-- && phone -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!