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 8acfbad0
authored
Feb 15, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图片改版;详情跳转
1 parent
bb98d689
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
components/proDetail/proDetail.js
components/proDetail/proDetail.wxml
pages/tab/index/constant/senceData.js
components/proDetail/proDetail.js
View file @
8acfbad
// packagesList/pages/productDetail/components/proDetail/proDetail.js
// packagesList/pages/productDetail/components/proDetail/proDetail.js
import
{
senceData
,
productData
}
from
'~/pages/tab/index/constant/senceData'
import
{
senceData
,
productData
}
from
'~/pages/tab/index/constant/senceData'
const
norTabList
=
[
'
项目亮点'
,
'合作案例'
,
'合作方式'
,
'适配产品
'
]
const
norTabList
=
[
'
海报案例'
,
'测算营销'
,
'产品介绍'
,
'项目亮点
'
]
Component
({
Component
({
externalClasses
:
[
'custom-class'
],
externalClasses
:
[
'custom-class'
],
/**
/**
...
@@ -13,7 +13,6 @@ Component({
...
@@ -13,7 +13,6 @@ Component({
value
:
-
1
,
value
:
-
1
,
observer
(
n
)
{
observer
(
n
)
{
this
.
getInfo
()
this
.
getInfo
()
this
.
getImgHeight
()
}
}
},
},
// 选中的产品
// 选中的产品
...
@@ -51,7 +50,16 @@ Component({
...
@@ -51,7 +50,16 @@ Component({
tabAct
:
0
,
tabAct
:
0
,
scrollTop
:
0
,
scrollTop
:
0
,
showCard
:
false
,
showCard
:
false
,
tabList
:
[]
tabList
:
[],
imgTopArr
:
[]
},
lifetimes
:
{
attached
()
{
setTimeout
(()
=>
{
this
.
getImgHeight
()
},
400
)
},
},
},
/**
/**
...
@@ -73,7 +81,7 @@ Component({
...
@@ -73,7 +81,7 @@ Component({
proInfo
,
proInfo
,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
item
.
productImgs
,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
item
.
productImgs
,
tabList
:
spcList
.
includes
(
actNum
)
?
proInfo
.
tabList
:
norTabList
,
tabList
:
spcList
.
includes
(
actNum
)
?
proInfo
.
tabList
:
norTabList
,
prodItemVideo
:
item
.
videoList
.
length
?
spcList
.
includes
(
actNum
)
?
item
.
videoList
[
proInfo
.
currentIndex
]
:
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
prodItemVideo
:
item
.
videoList
.
length
?
spcList
.
includes
(
actNum
)
?
item
.
videoList
[
proInfo
.
currentIndex
]
:
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
})
})
break
break
}
}
...
@@ -93,7 +101,6 @@ Component({
...
@@ -93,7 +101,6 @@ Component({
.
boundingClientRect
(
react
=>
{
.
boundingClientRect
(
react
=>
{
react
.
forEach
((
item
,
index
)
=>
{
react
.
forEach
((
item
,
index
)
=>
{
//44 tab的高度
//44 tab的高度
// console.log('item',item)
s
=
item
.
top
-
44
+
scrollTop
s
=
item
.
top
-
44
+
scrollTop
imgTopArr
.
push
(
s
)
imgTopArr
.
push
(
s
)
})
})
...
...
components/proDetail/proDetail.wxml
View file @
8acfbad
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
<view class="prod-detail">
<view class="prod-detail">
<block wx:for="{{productImgs}}" wx:key="index">
<block wx:for="{{productImgs}}" wx:key="index">
<image webp wx:if="{{ index < 3}}" webp
class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index
}}" src="{{item.url?item.url:item}}?v={{img_version}}">
<image webp wx:if="{{ index < 3}}" webp
mode="widthFix" class="img-item {{item.className?item.className:''
}}" src="{{item.url?item.url:item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{sharephone}}">
<view class="phone" bindtap="phoneCall" data-phone="{{sharephone}}">
...
...
pages/tab/index/constant/senceData.js
View file @
8acfbad
...
@@ -19,7 +19,7 @@ import { subscriptionSystemData } from './systemData'
...
@@ -19,7 +19,7 @@ import { subscriptionSystemData } from './systemData'
*/
*/
// 车损升级
// 车损升级
const
sceneImgs0
=
[
`
${
IMG_URL
}
index/scene/scene00.png`
,
`
${
IMG_URL
}
index/scene/scene01.png`
,
`
${
IMG_URL
}
index/scene/scene02.png`
,
`
${
IMG_URL
}
index/scene/scene03.png`
]
const
sceneImgs0
=
[
`
${
IMG_URL
}
index/scene/scene00.png`
,
`
${
IMG_URL
}
index/scene/scene01.png`
,
`
${
IMG_URL
}
index/scene/scene02.png`
,
`
${
IMG_URL
}
index/scene/scene03.png`
]
const
productImgs0
=
[
`
${
IMG_URL
}
index/
productImgs/product00.webp`
,
`
${
IMG_URL
}
index/productImgs/product01.webp`
,
`
${
IMG_URL
}
index/productImgs/product02.webp`
,
`
${
IMG_URL
}
index/productImgs/product
03.webp`
]
const
productImgs0
=
[
`
${
IMG_URL
}
index/
newProImgs/pro00.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro01.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro02.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro
03.webp`
]
const
videoList0
=
[
const
videoList0
=
[
{
{
videoUrl
:
`
${
videoBaseUrl
}
video/digital_card_30s.mp4`
,
videoUrl
:
`
${
videoBaseUrl
}
video/digital_card_30s.mp4`
,
...
@@ -102,7 +102,7 @@ const scenario_0 = [
...
@@ -102,7 +102,7 @@ const scenario_0 = [
// 精品升级
// 精品升级
const
sceneImgs1
=
[
`
${
IMG_URL
}
index/scene/scene10.png`
,
`
${
IMG_URL
}
index/scene/scene11.png`
,
`
${
IMG_URL
}
index/scene/scene12.png`
,
`
${
IMG_URL
}
index/scene/scene13.png`
]
const
sceneImgs1
=
[
`
${
IMG_URL
}
index/scene/scene10.png`
,
`
${
IMG_URL
}
index/scene/scene11.png`
,
`
${
IMG_URL
}
index/scene/scene12.png`
,
`
${
IMG_URL
}
index/scene/scene13.png`
]
const
productImgs1
=
[
`
${
IMG_URL
}
index/
productImgs/product10.webp`
,
`
${
IMG_URL
}
index/productImgs/product11.webp`
,
`
${
IMG_URL
}
index/productImgs/product12.webp`
,
`
${
IMG_URL
}
index/productImgs/product
13.webp`
]
const
productImgs1
=
[
`
${
IMG_URL
}
index/
newProImgs/pro10.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro11.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro12.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro
13.webp`
]
const
videoList1
=
[
const
videoList1
=
[
{
{
videoUrl
:
`
${
videoBaseUrl
}
video/solar.mp4`
,
videoUrl
:
`
${
videoBaseUrl
}
video/solar.mp4`
,
...
@@ -162,7 +162,7 @@ const scenario_1 = [
...
@@ -162,7 +162,7 @@ const scenario_1 = [
// 客户线上化
// 客户线上化
const
sceneImgs2
=
[
`
${
IMG_URL
}
index/scene/scene20.png`
,
`
${
IMG_URL
}
index/scene/scene21.png`
,
`
${
IMG_URL
}
index/scene/scene22.png`
,
`
${
IMG_URL
}
index/scene/scene23.png`
]
const
sceneImgs2
=
[
`
${
IMG_URL
}
index/scene/scene20.png`
,
`
${
IMG_URL
}
index/scene/scene21.png`
,
`
${
IMG_URL
}
index/scene/scene22.png`
,
`
${
IMG_URL
}
index/scene/scene23.png`
]
const
productImgs2
=
[
`
${
IMG_URL
}
index/
productImgs/product20.webp`
,
`
${
IMG_URL
}
index/productImgs/product21.webp`
,
`
${
IMG_URL
}
index/productImgs/product22.webp`
,
`
${
IMG_URL
}
index/productImgs/product
23.webp`
]
const
productImgs2
=
[
`
${
IMG_URL
}
index/
newProImgs/pro20.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro21.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro22.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro
23.webp`
]
const
posterList2
=
[
const
posterList2
=
[
{
{
src
:
`
${
IMG_URL
}
index/poster/poster3-0.webp`
,
src
:
`
${
IMG_URL
}
index/poster/poster3-0.webp`
,
...
@@ -238,7 +238,7 @@ const scenario_2 = [
...
@@ -238,7 +238,7 @@ const scenario_2 = [
// 众筹活动
// 众筹活动
const
sceneImgs3
=
[
`
${
IMG_URL
}
index/scene/scene30.png`
,
`
${
IMG_URL
}
index/scene/scene31.png`
,
`
${
IMG_URL
}
index/scene/scene32.png`
,
`
${
IMG_URL
}
index/scene/scene33.png`
]
const
sceneImgs3
=
[
`
${
IMG_URL
}
index/scene/scene30.png`
,
`
${
IMG_URL
}
index/scene/scene31.png`
,
`
${
IMG_URL
}
index/scene/scene32.png`
,
`
${
IMG_URL
}
index/scene/scene33.png`
]
const
productImgs3
=
[
`
${
IMG_URL
}
index/
productImgs/product30.webp`
,
`
${
IMG_URL
}
index/productImgs/product31.webp`
,
`
${
IMG_URL
}
index/productImgs/product32.webp`
,
`
${
IMG_URL
}
index/productImgs/product
33.webp`
]
const
productImgs3
=
[
`
${
IMG_URL
}
index/
newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro
33.webp`
]
const
videoList3
=
[
const
videoList3
=
[
{
{
videoUrl
:
`
${
videoBaseUrl
}
video/car_beauty.mp4`
,
videoUrl
:
`
${
videoBaseUrl
}
video/car_beauty.mp4`
,
...
...
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