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 c179229c
authored
Oct 26, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
1ae3228f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
71 additions
and
36 deletions
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/tab/output/components/SceneBox/SceneBox.wxss
pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.scss
pages/tab/output/components/client/client.scss
pages/tab/output/components/merchant/mrechant.scss
pages/tab/index/index.js
View file @
c179229
...
...
@@ -312,11 +312,11 @@ Page({
})
// this.showCase();
// if (!this.data.isFirst) {
wx
.
showToast
({
title
:
'测算结果已在页面内同步展示'
,
icon
:
'none'
,
duration
:
2000
})
wx
.
showToast
({
title
:
'测算结果已在页面内同步展示'
,
icon
:
'none'
,
duration
:
2000
})
// } else {
// this.setData({
// isFirst: false
...
...
@@ -540,17 +540,17 @@ Page({
// console.log('selectIndex: ', selectIndex);
typeList
[
index
].
selectIndex
=
selectIndex
let
params
=
typeList
.
reduce
((
obj
,
item
,
index
)
=>
{
console
.
log
(
' item: '
,
item
)
;
console
.
log
(
' item: '
,
item
)
if
(
item
[
'key'
])
{
// selectIndex = index == 2 ? selectIndex + 1 : selectIndex
// console.log('selectIndex: ', selectIndex);
let
itemIndx
=
item
.
selectIndex
// console.log('itemIndx: ', itemIndx);
if
(
index
==
2
){
// key: 'clueSource'
if
(
item
[
'key'
]
==
'clueSource'
)
{
itemIndx
+=
1
}
obj
[
item
[
'key'
]]
=
(
itemIndx
==
2
||
itemIndx
==
3
)?
''
:
itemIndx
obj
[
item
[
'key'
]]
=
itemIndx
==
2
||
itemIndx
==
3
?
''
:
itemIndx
}
return
obj
},
{})
...
...
@@ -645,17 +645,17 @@ Page({
// })
},
onPageScroll
:
(
function
()
{
let
timer
=
null
;
let
timer
=
null
return
function
(
e
)
{
// console.log("在滚动");
// 监听页面的滚动开始和结束
clearTimeout
(
timer
);
timer
=
setTimeout
(()
=>
{
// console.log("滚动结束");
wx
.
$eventbus
.
emit
(
'evt_page_scroll'
,{
scrollTop
:
e
.
scrollTop
})
},
500
);
}
;
})(),
// console.log("在滚动");
// 监听页面的滚动开始和结束
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
// console.log("滚动结束");
wx
.
$eventbus
.
emit
(
'evt_page_scroll'
,
{
scrollTop
:
e
.
scrollTop
})
},
500
)
}
})(),
/**
* 生命周期函数--监听页面隐藏
*/
...
...
pages/tab/index/index.scss
View file @
c179229
...
...
@@ -5,13 +5,15 @@ page {
}
.reclaim
{
.header-wrap
{
position
:
sticky
;
top
:
0
;
width
:
100%
;
background-size
:
100%
100%
;
margin-bottom
:
32rpx
;
//
margin-bottom: 32rpx;
z-index
:
2
;
.header
{
position
:
absolute
;
left
:
0
;
...
...
@@ -89,11 +91,19 @@ page {
.clue
{
padding
:
0px
10px
0
;
background-color
:
#f2f3f7
;
margin-top
:
-16rpx
;
// margin-top: -16rpx;
.types
{
margin-bottom
:
8px
;
// margin-bottom: 8px;
box-sizing
:
border-box
;
padding
:
16rpx
0
;
display
:
flex
;
align-items
:
center
;
position
:
sticky
;
top
:
280rpx
;
z-index
:
2
;
background-color
:
#f2f3f7
;
margin-top
:
-32rpx
;
.type
{
margin-left
:
8px
;
...
...
@@ -121,6 +131,9 @@ page {
}
.list
{
box-sizing
:
border-box
;
// padding-bottom: 8rpx;
.msg
{
padding
:
10px
16px
16px
;
margin-bottom
:
8px
;
...
...
@@ -289,16 +302,30 @@ page {
color
:
#393b3e
;
}
}
.bottomTips
{
text-align
:
center
;
color
:
#393b3e
;
font-size
:
26rpx
;
height
:
60rpx
;
line-height
:
40rpx
;
}
}
}
.scene
{
margin
:
0px
20prx
32rpx
;
.scene-wrap
{
// margin-top: 32rpx;
// margin-left: 20rpx;
// margin-right: 20rpx;
// margin-bottom: 10rpx;
margin
:
32rpx
32rpx
0
;
.scene-wrap
{
display
:
flex
;
}
.item-wrap
{
margin-right
:
8
rpx
;
margin-right
:
16
rpx
;
margin-bottom
:
40rpx
;
position
:
relative
;
width
:
172rpx
;
...
...
@@ -322,7 +349,7 @@ page {
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%;
border
:
1px
solid
var
(
--
btnColor
);
box-shadow
:
0
2rpx
4rpx
0
rgba
(
180
,
186
,
204
,
0
.4
);
box-shadow
:
0
2rpx
4rpx
0
rgba
(
180
,
186
,
204
,
0
.4
);
&
:
:
after
{
position
:
absolute
;
...
...
@@ -470,7 +497,7 @@ page {
.dialog-form
{
width
:
100%
;
height
:
384rpx
;
background-image
:
linear-gradient
(
179deg
,
rgba
(
240
,
247
,
255
,
0
.30
)
15%
,
#F0F7FF
100%
);
background-image
:
linear-gradient
(
179deg
,
rgba
(
240
,
247
,
255
,
0
.30
)
15%
,
#F0F7FF
100%
);
border-radius
:
8rpx
;
padding
:
32rpx
;
box-sizing
:
border-box
;
...
...
@@ -518,4 +545,9 @@ page {
line-height
:
48rpx
;
margin-top
:
40rpx
;
}
}
\ No newline at end of file
}
// .clue {
// flex: 1;
// overflow: hidden;
//
}
\ No newline at end of file
pages/tab/index/index.wxml
View file @
c179229
...
...
@@ -54,6 +54,7 @@
<!-- 看线索内容 -->
<view
class="clue"
style="height: calc(100vh - {{headerHeight}}px)"
wx:if="{{tabIndx == 0 }}"
hover-class="none"
hover-stop-propagation="false">
...
...
@@ -63,7 +64,7 @@
wx:for="{{typeList}}"
wx:key="*this"
data-index="{{index}}"
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
style="{{index == 0 ? 'margin-left: 0px;' : ''}}"
bindtap="filterTypeFn">
{{item[item['selectIndex']] }}
<image class="point" wx:if="{{index != 3}}" src="{{item['selectIndex']!=2&&index != 3? IMAGES.actArrow : IMAGES.arrow}}" />
...
...
@@ -238,6 +239,7 @@
</view>
</view>
</view>
<view class="bottomTips" wx:if="{{clueList.length>8}}">到底啦!</view>
<view class="noDataImg" wx:if="{{!clueList.length}}">
<image src="{{IMG_URL}}index/trEmpty.png " />
<text class="noDataTxt">没有符合条件的线索~</text>
...
...
pages/tab/output/components/SceneBox/SceneBox.wxss
View file @
c179229
...
...
@@ -67,11 +67,11 @@
.active::after {
position: absolute;
left: 50%;
bottom: -
7
px;
bottom: -
12
px;
display: block;
content: "";
width:
6
px;
height:
6
px;
width:
12
px;
height:
12
px;
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
...
...
pages/tab/output/components/accountSwitchingPop/accountSwitchingPop.scss
View file @
c179229
...
...
@@ -53,7 +53,7 @@
}
.list
{
height
:
calc
(
100%
)
;
height
:
calc
(
100%
-
100rpx
)
!
important
;
}
.search-box
.search
.text-center
{
...
...
pages/tab/output/components/client/client.scss
View file @
c179229
...
...
@@ -92,6 +92,7 @@
}
&
-bottom
{
margin-top
:
20rpx
;
padding
:
0
22rpx
;
.tip-blue
{
...
...
pages/tab/output/components/merchant/mrechant.scss
View file @
c179229
...
...
@@ -19,9 +19,9 @@
.num
{
color
:
#323436
;
font-family
:
MiSans-S0rpxibold
;
//
font-family: MiSans-S0rpxibold;
font-weight
:
600
;
font-size
:
26
rpx
;
font-size
:
30
rpx
;
margin-bottom
:
10rpx
;
}
...
...
@@ -257,7 +257,7 @@
font-size
:
24rpx
;
color
:
#5C7097
;
// margin: 50rpx 20rpx 0;
margin-bottom
:
5
0rpx
;
margin-bottom
:
10
0rpx
;
.linkImg
{
width
:
20rpx
;
...
...
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