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 28574328
authored
Dec 06, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:看产品调整
1 parent
2e97881d
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
147 additions
and
86 deletions
components/Tab/Tab.wxss
pages/tab/index/components/indexProduct/indexProduct.js
pages/tab/index/components/indexProduct/indexProduct.scss
pages/tab/index/components/indexProduct/indexProduct.wxml
pages/tab/index/constant/data.js
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/viewProd/index.scss
pages/viewProd/index.wxml
components/Tab/Tab.wxss
View file @
2857432
...
@@ -42,11 +42,13 @@
...
@@ -42,11 +42,13 @@
.flex .tab .text {
.flex .tab .text {
padding: 0;
padding: 0;
}
}
.tab + .tab{
margin-left: 20rpx;
}
.tab.active .text {
.tab.active .text {
/* font-weight: 500; */
/* font-weight: 500; */
font-weight: 600;
font-weight: 600;
font-size:
44
rpx;
font-size:
38
rpx;
transition: all .25s;
transition: all .25s;
color: #2C2C2C;
color: #2C2C2C;
font-family: PingFangSC-S0pxibold;
font-family: PingFangSC-S0pxibold;
...
...
pages/tab/index/components/indexProduct/indexProduct.js
View file @
2857432
...
@@ -159,9 +159,6 @@ Component({
...
@@ -159,9 +159,6 @@ Component({
}
}
wx
.
$router
.
go
(
"/packagesList/applyProd/pages/apply"
,
obj
);
wx
.
$router
.
go
(
"/packagesList/applyProd/pages/apply"
,
obj
);
},
},
openBus
()
{
wx
.
$router
.
go
(
"/packagesList/apply/pages/apply"
);
},
onClickHide
()
{
onClickHide
()
{
this
.
setData
({
overlayShow
:
false
});
this
.
setData
({
overlayShow
:
false
});
},
},
...
...
pages/tab/index/components/indexProduct/indexProduct.scss
View file @
2857432
...
@@ -274,7 +274,7 @@
...
@@ -274,7 +274,7 @@
position
:
absolute
;
position
:
absolute
;
// top: calc(88rpx * 2);
// top: calc(88rpx * 2);
left
:
0
;
left
:
0
;
.
bus-pro
{
.
prod
{
width
:
116rpx
;
width
:
116rpx
;
height
:
88rpx
;
height
:
88rpx
;
line-height
:
88rpx
;
line-height
:
88rpx
;
...
...
pages/tab/index/components/indexProduct/indexProduct.wxml
View file @
2857432
...
@@ -49,10 +49,10 @@
...
@@ -49,10 +49,10 @@
</van-tree-select>
</van-tree-select>
<!-- +产品 +业务 -->
<!-- +产品 +业务 -->
<view class="expand-business" style="top:{{88 * items.length}}rpx" >
<view class="expand-business" style="top:{{88 * items.length}}rpx" >
<view class="bus-pro" bindtap="openBus">
<
!-- <
view class="bus-pro" bindtap="openBus">
+业务
+业务
</view>
</view>
-->
<view class="
bus-pro
" bindtap="openPro" wx:if="{{tabActive == 3}}">
<view class="
prod
" bindtap="openPro" wx:if="{{tabActive == 3}}">
+产品
+产品
</view>
</view>
</view>
</view>
...
...
pages/tab/index/constant/data.js
View file @
2857432
...
@@ -13,12 +13,20 @@ var senceData = [
...
@@ -13,12 +13,20 @@ var senceData = [
tabname
:
'车损升级'
,
tabname
:
'车损升级'
,
banner
:
`
${
IMG_URL
}
index/banner/banner0.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner0.png`
,
scrollText
:
'车损升级详情'
,
scrollText
:
'车损升级详情'
,
//场景详情图片
sceneImgs
:[
sceneImgs
:[
`
${
IMG_URL
}
index/scene/scene00.png`
,
`
${
IMG_URL
}
index/scene/scene00.png`
,
`
${
IMG_URL
}
index/scene/scene01.png`
,
`
${
IMG_URL
}
index/scene/scene01.png`
,
`
${
IMG_URL
}
index/scene/scene02.png`
,
`
${
IMG_URL
}
index/scene/scene02.png`
,
`
${
IMG_URL
}
index/scene/scene03.png`
,
`
${
IMG_URL
}
index/scene/scene03.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`
,
],
productList
:
[
productList
:
[
{
{
img
:
'product-img1'
,
img
:
'product-img1'
,
...
@@ -112,6 +120,12 @@ var senceData = [
...
@@ -112,6 +120,12 @@ var senceData = [
`
${
IMG_URL
}
index/scene/scene12.png`
,
`
${
IMG_URL
}
index/scene/scene12.png`
,
`
${
IMG_URL
}
index/scene/scene13.png`
,
`
${
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`
,
],
productList
:
[
productList
:
[
{
{
img
:
'product-img2'
,
img
:
'product-img2'
,
...
@@ -181,6 +195,12 @@ var senceData = [
...
@@ -181,6 +195,12 @@ var senceData = [
`
${
IMG_URL
}
index/scene/scene22.png`
,
`
${
IMG_URL
}
index/scene/scene22.png`
,
`
${
IMG_URL
}
index/scene/scene23.png`
,
`
${
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`
,
],
productList
:
[
productList
:
[
{
{
img
:
'product-img3'
,
img
:
'product-img3'
,
...
@@ -258,6 +278,12 @@ var senceData = [
...
@@ -258,6 +278,12 @@ var senceData = [
`
${
IMG_URL
}
index/scene/scene32.png`
,
`
${
IMG_URL
}
index/scene/scene32.png`
,
`
${
IMG_URL
}
index/scene/scene33.png`
,
`
${
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`
,
],
productList
:
[
productList
:
[
{
{
img
:
'product-img5'
,
img
:
'product-img5'
,
...
...
pages/tab/index/index.js
View file @
2857432
...
@@ -132,6 +132,10 @@ Page({
...
@@ -132,6 +132,10 @@ Page({
}
}
})
})
},
},
// 申请业务、
openBus
()
{
wx
.
$router
.
go
(
"/packagesList/apply/pages/apply"
);
},
// 预估弹框
// 预估弹框
showCalculate
()
{
showCalculate
()
{
wx
.
$router
.
go
(
"measure"
);
wx
.
$router
.
go
(
"measure"
);
...
...
pages/tab/index/index.scss
View file @
2857432
...
@@ -114,12 +114,20 @@ page {
...
@@ -114,12 +114,20 @@ page {
.chat
{
.chat
{
position
:
fixed
;
position
:
fixed
;
right
:
-4px
;
right
:
-4px
;
top
:
60
%
;
top
:
52
%
;
width
:
64px
;
width
:
64px
;
height
:
64px
;
height
:
64px
;
border-radius
:
50%
;
border-radius
:
50%
;
z-index
:
2
;
z-index
:
2
;
}
}
.bus-pro
{
position
:
fixed
;
right
:
-4px
;
top
:
60%
;
width
:
128rpx
;
height
:
143rpx
;
z-index
:
2
;
}
.output-value
{
.output-value
{
position
:
fixed
;
position
:
fixed
;
...
...
pages/tab/index/index.wxml
View file @
2857432
...
@@ -54,6 +54,12 @@
...
@@ -54,6 +54,12 @@
class="chat"
class="chat"
src="{{IMG_URL}}index/contact.png"
src="{{IMG_URL}}index/contact.png"
bindtap="goConsult" />
bindtap="goConsult" />
<!-- 申请业务 -->
<image
webp
class="bus-pro"
src="{{IMG_URL}}index/bus-pro.png"
bindtap="openBus" />
<!-- 预估产值 -->
<!-- 预估产值 -->
<image
<image
webp
webp
...
...
pages/viewProd/index.scss
View file @
2857432
...
@@ -101,89 +101,107 @@ page {
...
@@ -101,89 +101,107 @@ page {
text-align
:
center
;
text-align
:
center
;
line-height
:
96rpx
;
line-height
:
96rpx
;
}
}
// 流程图一
.img-item00
{
width
:
100%
;
height
:
1110rpx
;
}
.img-item01
{
width
:
100%
;
height
:
1290rpx
;
}
.img-item02
{
width
:
100%
;
height
:
596rpx
;
}
.img-item03
{
width
:
100%
;
height
:
744rpx
;
}
// 流程图二
.img-item10
{
width
:
100%
;
height
:
2168rpx
;
}
.img-item
11
{
.img-item
0
{
width
:
100%
;
width
:
100%
;
height
:
1290
rpx
;
height
:
2564
rpx
;
}
}
.img-item1
{
.img-item12
{
width
:
100%
;
width
:
100%
;
height
:
596
rpx
;
height
:
1812
rpx
;
}
}
.img-item2
{
.img-item13
{
width
:
100%
;
width
:
100%
;
height
:
83
0rpx
;
height
:
62
0rpx
;
}
}
.img-item3
{
// 流程图三
.img-item20
{
width
:
100%
;
width
:
100%
;
height
:
1110
rpx
;
height
:
2156
rpx
;
}
}
.img-item21
{
// 流程图一
width
:
100%
;
// .img-item00 {
height
:
1290rpx
;
// width: 100%;
}
// height: 1110rpx;
// }
.img-item22
{
width
:
100%
;
// .img-item01 {
height
:
596rpx
;
// width: 100%;
}
// height: 1290rpx;
// }
.img-item23
{
width
:
100%
;
// .img-item02 {
height
:
984rpx
;
// width: 100%;
}
// height: 596rpx;
// 流程图四
// }
.img-item30
{
width
:
100%
;
// .img-item03 {
height
:
678rpx
;
// width: 100%;
}
// height: 744rpx;
// }
.img-item31
{
width
:
100%
;
height
:
1266rpx
;
// // 流程图二
}
// .img-item10 {
// width: 100%;
.img-item32
{
// height: 2168rpx;
width
:
100%
;
// }
height
:
1398rpx
;
}
// .img-item11 {
// width: 100%;
.img-item33
{
// height: 1290rpx;
width
:
100%
;
// }
height
:
830rpx
;
}
// .img-item12 {
// width: 100%;
// height: 596rpx;
// }
// .img-item13 {
// width: 100%;
// height: 830rpx;
// }
// // 流程图三
// .img-item20 {
// width: 100%;
// height: 1110rpx;
// }
// .img-item21 {
// width: 100%;
// height: 1290rpx;
// }
// .img-item22 {
// width: 100%;
// height: 596rpx;
// }
// .img-item23 {
// width: 100%;
// height: 984rpx;
// }
// // 流程图四
// .img-item30 {
// width: 100%;
// height: 678rpx;
// }
// .img-item31 {
// width: 100%;
// height: 1266rpx;
// }
// .img-item32 {
// width: 100%;
// height: 1398rpx;
// }
// .img-item33 {
// width: 100%;
// height: 830rpx;
// }
}
}
}
}
/* 用户授权 */
/* 用户授权 */
...
...
pages/viewProd/index.wxml
View file @
2857432
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
</van-tabs>
</van-tabs>
</view>
</view>
<view class="prod-detail">
<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}}">
<image wx:if="{{ index < 3}}" webp class="img-item img-item{{
index}} img-item{{
actNum}}{{index}}" src="{{item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
</button>
</button>
</block>
</block>
</image>
</image>
<image wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}">
<image wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item img-item{{
index}} img-item{{
actNum}}{{index}}" src="{{item}}?v={{img_version}}">
</image>
</image>
</block>
</block>
<view class="occupancy" wx:if="{{!isShare}}">
<view class="occupancy" wx:if="{{!isShare}}">
...
...
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