Commit 1f89f314 by luyt

feat:详情图添加

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