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 6e53597d
authored
Oct 22, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复第一轮样式BUG
1 parent
e9fa0528
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
20 deletions
components/Tab/Tab.js
components/Tab/Tab.wxml
pages/tab/index/components/product/product.scss
pages/tab/index/components/product/product.wxml
pages/tab/index/index.scss
pages/tab/index/index.wxml
components/Tab/Tab.js
View file @
6e53597
...
@@ -13,6 +13,14 @@ Component({
...
@@ -13,6 +13,14 @@ Component({
outClassName
:
String
,
outClassName
:
String
,
tab
:
Array
,
tab
:
Array
,
openScroll
:
Boolean
,
openScroll
:
Boolean
,
tabHeight
:
{
type
:
Boolean
,
value
:
false
},
productHeight
:
{
type
:
Boolean
,
value
:
false
},
index
:
{
index
:
{
type
:
Number
,
type
:
Number
,
observer
:
function
(
n
)
{
observer
:
function
(
n
)
{
...
...
components/Tab/Tab.wxml
View file @
6e53597
...
@@ -16,15 +16,15 @@
...
@@ -16,15 +16,15 @@
data-count="{{index}}"
data-count="{{index}}"
id="to-{{index}}"
id="to-{{index}}"
>
>
<view class="text">{{item}}</view>
<view class="text"
style="{{productHeight ? 'height: 60rpx;' : ''}}"
>{{item}}</view>
<!-- <view class="text" style="width:{{38 * item.length + 20}}rpx;">{{item}}</view> -->
<!-- <view class="text" style="width:{{38 * item.length + 20}}rpx;">{{item}}</view> -->
<view class="line" />
<view class="line"
style="{{productHeight ? 'height: 4rpx;' : ''}}"
/>
</view>
</view>
</block>
</block>
</scroll-view>
</scroll-view>
</block>
</block>
<block wx:else>
<block wx:else>
<view class="tab-box flex">
<view class="tab-box flex"
style="{{tabHeight ? 'height: 60rpx;' : ''}}"
>
<block wx:for="{{tab}}" wx:key="index">
<block wx:for="{{tab}}" wx:key="index">
<view
<view
class="tab {{index==count?'active':''}}"
class="tab {{index==count?'active':''}}"
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
bindtap="click"
bindtap="click"
data-count="{{index}}"
data-count="{{index}}"
>
>
<view class="text text-center">
<view class="text text-center"
style="{{tabHeight ? 'height: 60rpx;' : ''}}"
>
{{item}}
{{item}}
</view>
</view>
<view class="line" style="lineStyle" />
<view class="line" style="lineStyle"
style="{{tabHeight ? 'margin-top: 6rpx;' : ''}}"
/>
<!-- -->
<!-- -->
<view wx:if="{{filterUtils.hasRedpoint(unreadClueCount)}}" class="redpoint" />
<view wx:if="{{filterUtils.hasRedpoint(unreadClueCount)}}" class="redpoint" />
</view>
</view>
...
...
pages/tab/index/components/product/product.scss
View file @
6e53597
...
@@ -3,19 +3,18 @@
...
@@ -3,19 +3,18 @@
background-color
:
#f8fafb
;
background-color
:
#f8fafb
;
}
}
.prod-wrap
.big-title
{
.prod-wrap
.big-title
{
margin-left
:
40
rpx
;
margin-left
:
32
rpx
;
font-family
:
PingFangSC-
S0pxibold
;
font-family
:
PingFangSC-
Medium
;
font-weight
:
600
;
font-weight
:
600
;
font-size
:
36rpx
;
font-size
:
32rpx
;
color
:
#1b233d
;
color
:
#323436
;
line-height
:
56rpx
;
}
}
.prod-wrap
.nav-wrap
{
.prod-wrap
.nav-wrap
{
white-space
:
nowrap
;
white-space
:
nowrap
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
margin-top
:
2
4
rpx
;
margin-top
:
2
8
rpx
;
margin-bottom
:
32
rpx
;
margin-bottom
:
16
rpx
;
padding
:
0
20
rpx
;
padding
-left
:
32
rpx
;
}
}
.prod-wrap
.nav-wrap
.nav
{
.prod-wrap
.nav-wrap
.nav
{
display
:
inline-block
;
display
:
inline-block
;
...
...
pages/tab/index/components/product/product.wxml
View file @
6e53597
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
tab="{{tab}}"
tab="{{tab}}"
index="{{curTabIdx}}"
index="{{curTabIdx}}"
bindclick="changeTab"
bindclick="changeTab"
productHeight
/>
/>
</view>
</view>
<!-- style="{height:{{allHeight}}px}" -->
<!-- style="{height:{{allHeight}}px}" -->
...
...
pages/tab/index/index.scss
View file @
6e53597
page
{
page
{
height
:
100vh
;
height
:
100vh
;
width
:
100vw
;
width
:
100vw
;
background-color
:
#
fff
;
background-color
:
#
F2F3F7
!
important
;
}
}
.reclaim
{
.reclaim
{
.header-wrap
{
.header-wrap
{
...
@@ -9,7 +9,7 @@ page {
...
@@ -9,7 +9,7 @@ page {
top
:
0
;
top
:
0
;
width
:
100%
;
width
:
100%
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
margin-bottom
:
16
px
;
margin-bottom
:
32r
px
;
z-index
:
1
;
z-index
:
1
;
.header
{
.header
{
position
:
absolute
;
position
:
absolute
;
...
@@ -76,7 +76,7 @@ page {
...
@@ -76,7 +76,7 @@ page {
// position: relative;
// position: relative;
// }
// }
.clue
{
.clue
{
padding
:
8
px
10px
0
;
padding
:
0
px
10px
0
;
background-color
:
#f2f3f7
;
background-color
:
#f2f3f7
;
.types
{
.types
{
margin-bottom
:
8px
;
margin-bottom
:
8px
;
...
@@ -200,6 +200,21 @@ page {
...
@@ -200,6 +200,21 @@ page {
line-height
:
24px
;
line-height
:
24px
;
}
}
}
}
.noDataImg
{
width
:
512rpx
;
height
:
512rpx
;
margin-left
:
100rpx
;
position
:
relative
;
.noDataTxt
{
font-family
:
PingFangSC-Regular
;
font-size
:
24rpx
;
color
:
#CCCED1
;
position
:
absolute
;
bottom
:
32rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
}
.shop
{
.shop
{
.name-wrap
{
.name-wrap
{
display
:
flex
;
display
:
flex
;
...
@@ -300,7 +315,7 @@ page {
...
@@ -300,7 +315,7 @@ page {
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
.guide-img
{
.guide-img
{
position
:
absolute
;
position
:
fixed
;
top
:
0
;
top
:
0
;
left
:
0
;
left
:
0
;
width
:
100%
;
width
:
100%
;
...
...
pages/tab/index/index.wxml
View file @
6e53597
<wxs src="./index.wxs" module="filterUtils" />
<wxs src="./index.wxs" module="filterUtils" />
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">拓客户</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">拓客户</navigation-bar>
<view class="reclaim">
<view class="reclaim"
style="{{tabIndx == 1 ? 'background: #fff;' : ''}}"
>
<!-- 头部 -->
<!-- 头部 -->
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header">
<view class="header">
<tab tab="{{navList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}" unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<tab tab="{{navList}}" itemWidth="{{'35%'}}" index="{{tabIndx}}"
tabHeight
unreadClueCount="{{unreadClueCount}}" bindclick="changeTabIndx" class="tabContainer" />
<view class="right" data-type="shop" bindtap="gotoApply">
<view class="right" data-type="shop" bindtap="gotoApply">
<image class="img" src="{{IMG_URL}}index/apply.png" />
<image class="img" src="{{IMG_URL}}index/apply.png" />
<view class="apply">申请业务</view>
<view class="apply">申请业务</view>
...
@@ -113,13 +113,17 @@
...
@@ -113,13 +113,17 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view class="noDataImg" wx:if="{{!clueList.length}}">
<image src="{{IMG_URL}}index/trEmpty.png " />
<text class="noDataTxt">没有符合条件的线索~</text>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 收藏、取消提示框 -->
<!-- 收藏、取消提示框 -->
<vas-toast isShow="{{true}}" id='toast' />
<vas-toast isShow="{{true}}" id='toast' />
<!-- 引导图 -->
<!-- 引导图 -->
<view class="guide" wx:if="{{guideShow}}">
<view class="guide" wx:if="{{guideShow}}"
style="overflow-y:hidden;"
>
<image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
<image bindtap="guideFn" class="guide-img" src="{{IMG_URL}}index/guide{{guideSrcIndex}}.png" />
</view>
</view>
<!-- 在线客服 -->
<!-- 在线客服 -->
...
...
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