Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1f89f314
authored
Dec 07, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:详情图添加
1 parent
8e2632f3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
162 additions
and
126 deletions
pages/tab/index/constant/data.js
pages/viewProd/index.scss
pages/viewProd/index.wxml
pages/viewProdBanner/index.scss
pages/viewProdBanner/index.wxml
pages/tab/index/constant/data.js
View file @
1f89f31
...
...
@@ -123,10 +123,10 @@ var senceData = [
`
${
IMG_URL
}
index/scene/scene13.png`
,
],
productImgs
:[
`
${
IMG_URL
}
index/productImgs/product
0
0.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
1.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
2.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
3.webp`
,
`
${
IMG_URL
}
index/productImgs/product
1
0.webp`
,
`
${
IMG_URL
}
index/productImgs/product
1
1.webp`
,
`
${
IMG_URL
}
index/productImgs/product
1
2.webp`
,
`
${
IMG_URL
}
index/productImgs/product
1
3.webp`
,
],
productList
:
[
{
...
...
@@ -198,10 +198,10 @@ var senceData = [
`
${
IMG_URL
}
index/scene/scene23.png`
,
],
productImgs
:[
`
${
IMG_URL
}
index/productImgs/product
0
0.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
1.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
2.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
3.webp`
,
`
${
IMG_URL
}
index/productImgs/product
2
0.webp`
,
`
${
IMG_URL
}
index/productImgs/product
2
1.webp`
,
`
${
IMG_URL
}
index/productImgs/product
2
2.webp`
,
`
${
IMG_URL
}
index/productImgs/product
2
3.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/product
0
0.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
1.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
2.webp`
,
`
${
IMG_URL
}
index/productImgs/product
0
3.webp`
,
`
${
IMG_URL
}
index/productImgs/product
3
0.webp`
,
`
${
IMG_URL
}
index/productImgs/product
3
1.webp`
,
`
${
IMG_URL
}
index/productImgs/product
3
2.webp`
,
`
${
IMG_URL
}
index/productImgs/product
3
3.webp`
,
],
productList
:
[
{
...
...
pages/viewProd/index.scss
View file @
1f89f31
...
...
@@ -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:
1110
rpx;
// height:
2564
rpx;
// }
// .img-item01 {
// .img-item1 {
// width: 100%;
// height: 1
290
rpx;
// height: 1
812
rpx;
// }
// .img-item02 {
// .img-item2 {
// width: 100%;
// height:
596
rpx;
// height:
620
rpx;
// }
// .img-item03 {
// .img-item3 {
// width: 100%;
// height:
744
rpx;
// height:
2156
rpx;
// }
// 流程图一
.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: 216
8rpx;
//
}
.img-item10
{
width
:
100%
;
height
:
148
8rpx
;
}
//
.img-item11 {
//
width: 100%;
// height: 1290
rpx;
//
}
.img-item11
{
width
:
100%
;
height
:
2192
rpx
;
}
//
.img-item12 {
//
width: 100%;
// height: 596
rpx;
//
}
.img-item12
{
width
:
100%
;
height
:
490
rpx
;
}
//
.img-item13 {
//
width: 100%;
// height: 830
rpx;
//
}
.img-item13
{
width
:
100%
;
height
:
688
rpx
;
}
// // 流程图三
//
.img-item20 {
//
width: 100%;
// height: 1110
rpx;
//
}
.img-item20
{
width
:
100%
;
height
:
1488
rpx
;
}
//
.img-item21 {
//
width: 100%;
// height: 129
0rpx;
//
}
.img-item21
{
width
:
100%
;
height
:
57
0rpx
;
}
//
.img-item22 {
//
width: 100%;
// height: 596
rpx;
//
}
.img-item22
{
width
:
100%
;
height
:
490
rpx
;
}
//
.img-item23 {
//
width: 100%;
// height: 98
4rpx;
//
}
.img-item23
{
width
:
100%
;
height
:
86
4rpx
;
}
// // 流程图四
//
.img-item30 {
//
width: 100%;
// height: 67
8rpx;
//
}
.img-item30
{
width
:
100%
;
height
:
575
8rpx
;
}
//
.img-item31 {
//
width: 100%;
// height: 1266
rpx;
//
}
.img-item31
{
width
:
100%
;
height
:
1812
rpx
;
}
//
.img-item32 {
//
width: 100%;
// height: 1398
rpx;
//
}
.img-item32
{
width
:
100%
;
height
:
490
rpx
;
}
//
.img-item33 {
//
width: 100%;
// height: 830
rpx;
//
}
.img-item33
{
width
:
100%
;
height
:
2002
rpx
;
}
}
}
/* 用户授权 */
...
...
pages/viewProd/index.wxml
View file @
1f89f31
<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>
...
...
pages/viewProdBanner/index.scss
View file @
1f89f31
...
...
@@ -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
:
1110
rpx
;
height
:
3308
rpx
;
}
.img-item01
{
width
:
100%
;
height
:
1290
rpx
;
height
:
2598
rpx
;
}
.img-item02
{
width
:
100%
;
height
:
596
rpx
;
height
:
490
rpx
;
}
.img-item03
{
width
:
100%
;
height
:
744
rpx
;
height
:
688
rpx
;
}
// 流程图二
//
//
流程图二
.img-item10
{
width
:
100%
;
height
:
216
8rpx
;
height
:
148
8rpx
;
}
.img-item11
{
width
:
100%
;
height
:
1290
rpx
;
height
:
2192
rpx
;
}
.img-item12
{
width
:
100%
;
height
:
596
rpx
;
height
:
490
rpx
;
}
.img-item13
{
width
:
100%
;
height
:
830
rpx
;
height
:
688
rpx
;
}
// 流程图三
//
//
流程图三
.img-item20
{
width
:
100%
;
height
:
1
110
rpx
;
height
:
1
488
rpx
;
}
.img-item21
{
width
:
100%
;
height
:
129
0rpx
;
height
:
57
0rpx
;
}
.img-item22
{
width
:
100%
;
height
:
596
rpx
;
height
:
490
rpx
;
}
.img-item23
{
width
:
100%
;
height
:
98
4rpx
;
height
:
86
4rpx
;
}
// 流程图四
//
//
流程图四
.img-item30
{
width
:
100%
;
height
:
67
8rpx
;
height
:
575
8rpx
;
}
.img-item31
{
width
:
100%
;
height
:
1
266
rpx
;
height
:
1
812
rpx
;
}
.img-item32
{
width
:
100%
;
height
:
1398
rpx
;
height
:
490
rpx
;
}
.img-item33
{
width
:
100%
;
height
:
830
rpx
;
height
:
2002
rpx
;
}
}
}
...
...
pages/viewProdBanner/index.wxml
View file @
1f89f31
<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].
scene
Imgs}}" wx:key="index">
<block wx:for="{{senceData[actNum].
product
Imgs}}" 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 -->
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment