Commit 6e53597d by wuwx

修复第一轮样式BUG

1 parent e9fa0528
...@@ -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) {
......
...@@ -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>
......
...@@ -3,19 +3,18 @@ ...@@ -3,19 +3,18 @@
background-color: #f8fafb; background-color: #f8fafb;
} }
.prod-wrap .big-title { .prod-wrap .big-title {
margin-left: 40rpx; margin-left: 32rpx;
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: 24rpx; margin-top: 28rpx;
margin-bottom: 32rpx; margin-bottom: 16rpx;
padding: 0 20rpx; padding-left: 32rpx;
} }
.prod-wrap .nav-wrap .nav { .prod-wrap .nav-wrap .nav {
display: inline-block; display: inline-block;
......
...@@ -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}" -->
......
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: 16px; margin-bottom: 32rpx;
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: 8px 10px 0; padding: 0px 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%;
......
<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>
<!-- 在线客服 --> <!-- 在线客服 -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!