Commit 5fa3d3db by 杨明

样式

1 parent 7ad51099
images/ok.png

905 Bytes

......@@ -85,6 +85,7 @@ const loginSuccess = () => {
targetPath
}
} = wx.$router.getPageInstance()
wx.setStorageSync('first_enter', true)
if (targetPath) {
const {
url,
......
......@@ -233,6 +233,7 @@ Component({
}
return result
})
console.log(sfaffList,'sfaffList')
this.setData({
sfaff: sfaffList
})
......
.box {
margin: 20rpx;
background: #FFFFFF;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 20rpx;
padding: 32rpx 40rpx;
.box-title {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
line-height: 48rpx;
display: flex;
justify-content: space-between;
.select-up {
font-weight: 400;
font-size: 24rpx;
color: #666666;
position: relative;
text-align: center;
.staff-type {
width: 128rpx;
text {
display: inline-block;
width: 100rpx;
margin: 20rpx;
background: #FFFFFF;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 20rpx;
padding: 32rpx 40rpx;
.box-title {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
line-height: 48rpx;
display: flex;
justify-content: space-between;
.select-up {
font-weight: 400;
font-size: 24rpx;
color: #666666;
position: relative;
text-align: center;
.staff-type {
width: 160rpx;
text {
display: inline-block;
width: 120rpx;
text-align: right;
}
.up-icon {
width: 32rpx;
height: 32rpx;
vertical-align: middle;
}
}
.up-box {
position: absolute;
width: 128rpx;
left: 20rpx;
background: #FFFFFF;
box-shadow: 0 0 18rpx 0 #3a596a1c;
border-radius: 8rpx;
z-index: 10;
.up-item {
flex: auto;
font-weight: 400;
font-size: 22rpx;
color: #666666;
line-height: 53rpx;
&.checked {
color: #708CFF;
}
}
}
}
}
.up-icon {
width: 14rpx;
height: 8rpx;
vertical-align: middle;
}
}
.up-box {
position: absolute;
width: 128rpx;
background: #FFFFFF;
box-shadow: 0 0 18rpx 0 #3a596a1c;
border-radius: 8rpx;
z-index: 10;
.up-item {
flex: auto;
font-weight: 400;
font-size: 22rpx;
color: #666666;
line-height: 53rpx;
&.checked {
color: #708CFF;
}
.staff-input {
// width: 638rpx;
// height: 64rpx;
// background: #ffffff7d;
// border: 2rpx solid #EEEEEE;
// border-radius: 12rpx;
// margin: 40rpx auto 20rpx;
// display: flex;
// justify-content: space-between;
// align-items: center;
// padding: 0rpx 20rpx;
box-sizing: border-box;
// width: 686rpx;
width: 100%;
height: 64rpx;
// margin-top: 28rpx;
// background: #ffffff7d;
// border-radius: 12rpx;
background: #F8F9FC;
border: 2rpx solid #EEEEEE;
border-radius: 32rpx;
margin: 28rpx auto 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0rpx 24rpx 0rpx 24rpx;
input {
// height: 64rpx;
// line-height: 64rpx;
// color: #999999;
// flex: 1;
flex: 1;
height: 64rpx;
line-height: 64rpx;
margin-left: 15rpx;
}
}
}
}
.staff-input {
// width: 638rpx;
// height: 64rpx;
// background: #ffffff7d;
// border: 2rpx solid #EEEEEE;
// border-radius: 12rpx;
// margin: 40rpx auto 20rpx;
// display: flex;
// justify-content: space-between;
// align-items: center;
// padding: 0rpx 20rpx;
box-sizing: border-box;
// width: 686rpx;
width: 100%;
height: 64rpx;
// margin-top: 28rpx;
// background: #ffffff7d;
// border-radius: 12rpx;
background: #F8F9FC;
border: 2rpx solid #EEEEEE;
border-radius: 32rpx;
margin: 28rpx auto 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0rpx 24rpx 0rpx 24rpx;
input {
// height: 64rpx;
// line-height: 64rpx;
// color: #999999;
// flex: 1;
flex: 1;
height: 64rpx;
line-height: 64rpx;
margin-left: 15rpx;
}
}
}
.table {
display: flex;
display: flex;
}
.table_left_column {
min-width: 150rpx;
height: auto;
display: flex;
flex-direction: column;
min-width: 150rpx;
height: auto;
display: flex;
flex-direction: column;
}
.left_col_item {
width: 100%;
height: 63rpx;
font-size: 20rpx;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: #1B233D;
// background: #F9F9F9;
background: #F5F9FE;
&:first-child {
font-weight: 600;
font-size: 24rpx;
width: 100%;
height: 63rpx;
font-size: 20rpx;
display: flex;
align-items: center;
color: #1B233D;
}
// background: #F9F9F9;
background: #F5F9FE;
&:first-child {
font-weight: 600;
font-size: 24rpx;
color: #1B233D;
}
&:nth-child(2n) {
background: #ffffff;
}
&:not(:first-child) {
// border-right: 2rpx solid #F3F3F3;
}
&:nth-child(2n) {
background: #ffffff;
}
.left_item_avatar {
flex: 1;
margin-left: 20rpx;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
color: #666666;
image {
width: 36rpx;
height: 36rpx;
border-radius: 36rpx;
margin-right: 10rpx;
}
}
}
.table_right_scroll_box {
display: flex;
white-space: nowrap;
overflow-x: scroll;
display: flex;
white-space: nowrap;
overflow-x: scroll;
}
.flex_direction_column_item {
min-width: 200rpx;
display: inline-block;
/* border: 1px solid #000; */
min-width: 200rpx;
display: inline-block;
/* border: 1px solid #000; */
}
.item_name {
min-width: 200rpx;
height: 63rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 20rpx;
color: #1B233D;
// background: #F9F9F9;
background: #F5F9FE;
white-space: normal;
image {
width: 36rpx;
height: 36rpx;
border-radius: 36rpx;
margin-right: 10rpx;
}
&:first-child {
font-weight: 600;
font-size: 24rpx;
min-width: 200rpx;
height: 63rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 20rpx;
color: #1B233D;
}
// background: #F9F9F9;
background: #F5F9FE;
white-space: normal;
image {
width: 36rpx;
height: 36rpx;
border-radius: 36rpx;
margin-right: 10rpx;
}
&:first-child {
font-weight: 600;
font-size: 24rpx;
color: #1B233D;
}
&:nth-child(2n) {
background: #ffffff;
}
&:nth-child(2n) {
background: #ffffff;
}
}
.empty {
margin: 20rpx auto 0;
text-align: center;
margin: 20rpx auto 0;
text-align: center;
.empty-icon {
width: 400rpx;
height: 400rpx;
display: inline-block;
}
.empty-icon {
width: 400rpx;
height: 400rpx;
display: inline-block;
}
.empty-text {
font-weight: 400;
font-size: 28rpx;
color: #7A8299;
text-align: center;
margin: 32rpx 106rpx;
}
.empty-text {
font-weight: 400;
font-size: 28rpx;
color: #7A8299;
text-align: center;
margin: 32rpx 106rpx;
}
}
\ No newline at end of file
......@@ -6,7 +6,7 @@
<view class="select-up">
<view catchtap="showUp" class="staff-type">
<text>{{dataType[downType][selectValue-1].label}}</text>
<glsx-image webp custom-class="up-icon" src="store-assistant-assemble/output/arrow.png"></glsx-image>
<glsx-image webp custom-class="up-icon" src="store-assistant-assemble/output/down.png"></glsx-image>
</view>
<view class="up-box" hidden="{{show}}">
<view class="up-item {{selectValue == item.value? 'checked':''}}" wx:for="{{dataType[downType]}}" wx:key="index" data-label="{{item.label}}" data-value="{{item.value}}" catchtap="selectType">
......@@ -24,17 +24,23 @@
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='left_col_item'>排名</view>
<view class='left_col_item' wx:for="{{sfaff[0].list}}" wx:for-index="index" wx:key="index">{{index+1}}</view>
<view class='left_col_item' wx:for="{{sfaff[0].list}}" wx:for-index="index" wx:key="index">
<text>{{index+1}}</text>
<view class="left_item_avatar">
<image wx:if="{{item.avatarUrl}}" src="{{ item.avatarUrl}}" mode="scaleToFill"></image>
<text>{{item.transferName?item.transferName:'--'}}</text>
</view>
</view>
</view>
<!-- 右侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{sfaff}}" wx:for-index="index" wx:key="index">
<view class="flex_direction_column_item" wx:for="{{filter.sliceArr(sfaff,1)}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}" mode="scaleToFill"></image>
<!-- <image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}" mode="scaleToFill"></image> -->
<text>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block>
<block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block>
<!-- <block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block> -->
<block wx:else>{{filter.thousand(litem)||'--'}}</block>
</text>
</view>
......
......@@ -4,4 +4,7 @@ function thousand(n) {
var p = (n+'').replace(r, ',')
return p
}
module.exports = {thousand:thousand}
\ No newline at end of file
function sliceArr(arr,n) {
return arr.slice(n)
}
module.exports = {thousand:thousand,sliceArr:sliceArr}
\ No newline at end of file
......@@ -19,7 +19,11 @@
.search-text+.search-text {
margin-left: 40rpx;
}
.search-unit {
margin-left: auto;
font-size: 24rpx;
color: #8A8C90;
}
.active {
font-weight: 600;
font-size: 32rpx;
......
......@@ -2,6 +2,7 @@
<view class="searchList">
<block wx:for="{{opts.barList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-unit">单位:{{opts.barList.length == 3?'元':'张'}}</view>
</view>
<view class="container">
......
.bar-wrap {
padding: 34rpx 30rpx 30rpx 40rpx;
box-sizing: border-box;
padding: 34rpx 30rpx 30rpx 40rpx;
box-sizing: border-box;
.searchList {
display: flex;
align-items: center;
.searchList {
display: flex;
align-items: center;
.search-text {
font-weight: 400;
font-size: 28rpx;
color: #A6A6A6;
line-height: 48rpx;
}
.search-text {
font-weight: 400;
font-size: 28rpx;
color: #A6A6A6;
line-height: 48rpx;
}
.search-text+.search-text {
margin-left: 40rpx;
}
.search-text+.search-text {
margin-left: 40rpx;
}
.active {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
.search-unit {
margin-left: auto;
font-size: 24rpx;
color: #8A8C90;
}
.active {
font-weight: 600;
font-size: 32rpx;
color: #1B233D;
}
}
}
.searchTime {
margin-top: 24rpx;
display: flex;
align-items: center;
z-index: 9999;
margin-bottom: 20rpx;
position: relative;
.searchTime {
margin-top: 24rpx;
display: flex;
align-items: center;
z-index: 9999;
margin-bottom: 20rpx;
position: relative;
.time {
padding: 6rpx 30rpx;
// border: 2rpx solid #EBEBEB;
// border-radius: 32rpx;
background: #FFFFFF;
border: 1rpx solid #C3C3C3;
border-radius: 6rpx;
font-weight: 400;
font-size: 20rpx;
color: #5A6066;
// color: #A6A6A6;
}
.time {
padding: 6rpx 30rpx;
// border: 2rpx solid #EBEBEB;
// border-radius: 32rpx;
background: #FFFFFF;
border: 1rpx solid #C3C3C3;
border-radius: 6rpx;
font-weight: 400;
font-size: 20rpx;
color: #5A6066;
// color: #A6A6A6;
}
.active {
// background: #4466f01a;
border-color: #fff;
// color: #4466F0;
color: #fff;
background: #3582EE;
border: 1prx solid #3582EE;
}
.active {
// background: #4466f01a;
border-color: #fff;
// color: #4466F0;
color: #fff;
background: #3582EE;
border: 1prx solid #3582EE;
}
.time+.time {
margin-left: 8rpx;
}
.time+.time {
margin-left: 8rpx;
}
.flex {
display: flex;
align-items: center;
position: absolute;
right: 30rpx;
.flex {
display: flex;
align-items: center;
position: absolute;
right: 30rpx;
.time-icon {
width: 26rpx;
height: 26rpx;
}
.time-icon {
width: 26rpx;
height: 26rpx;
}
.temporal {
font-size: 22rpx;
color: #A6A6A6;
margin: 0 8rpx;
}
.temporal {
font-size: 22rpx;
color: #A6A6A6;
margin: 0 8rpx;
}
.arrows {
width: 20rpx;
height: 12rpx;
}
.arrows {
width: 20rpx;
height: 12rpx;
}
}
}
}
.remind {
color: #D3D3D3;
font-size: 20rpx;
text-align: center;
margin-top: 10rpx;
}
.remind {
color: #D3D3D3;
font-size: 20rpx;
text-align: center;
margin-top: 10rpx;
}
.container {
height: 370rpx;
}
.container {
height: 370rpx;
}
}
\ No newline at end of file
......@@ -2,6 +2,7 @@
<view class="searchList">
<block wx:for="{{opts.lineList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-unit">单位:元</view>
</view>
<view class="searchTime">
<block wx:for="{{dimension}}" wx:for-item="item" wx:key="index">
......
......@@ -41,7 +41,7 @@ Component({
{
label: '当月报价(单)',
name: 'monthQuotationCount',
_unit: '¥',
_unit: '',
iconUrl:'store-assistant-assemble/output/icon02.png'
}, {
label: '当月成交(单)',
......@@ -127,7 +127,7 @@ Component({
}, {
label: '单日产值(元)',
name: 'outputValue',
unit: '',
unit: '¥',
iconUrl:'store-assistant-assemble/output/icon05.png'
}],
},
......
......@@ -43,20 +43,17 @@
.number {
font-family: numberBold;
// font-weight: 600;
font-size: 48rpx;
font-size: 36rpx;
color: #2D2D33;
}
}
.item+.item {
width: 40%;
}
.otherItem{
width: 40%;
width: 32%;
}
.otherItem+ .otherItem{
width: 30%;
.otherItem:last-child{
width: 36%;
}
}
......@@ -91,7 +88,7 @@
.output-num {
font-weight: 700;
font-size: 36rpx;
font-size: 32rpx;
color: #2D2D33;
text-align-last: left;
......
......@@ -26,8 +26,7 @@
<view class="totalCon" wx:else>
<view class="item otherItem ">
<view class="label">总报价量(单)</view>
<veiw class="number">
<text class="unit">¥ </text>{{fn.accMul(outputData['totalQuotationCount'],1)||0}}
<veiw class="number">{{fn.accMul(outputData['totalQuotationCount'],1)||0}}
</veiw>
</view>
<view class="item otherItem">
......@@ -60,7 +59,7 @@
<view class="output-item" wx:key="index" wx:for="{{outputView[entranceType ==2 ?'todayOutputValue':'todayOutiqueOutputValue']}}">
<view class="output-label"><view class="label">{{item.label}}</view>
<glsx-image src="{{item.iconUrl}}" class="icon" /></view>
<view class="output-num">{{outputData[item.name]|| 0}} </view>
<view class="output-num"><text class="_unit">{{item.unit}}</text>{{outputData[item.name]|| 0}} </view>
</view>
</view>
</view>
......
......@@ -10,7 +10,7 @@
</navigation-bar>
</view>
<block wx:if="{{navHeight}}">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh - {{navHeight*2}}rpx - 60rpx)">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh - {{navHeight*2}}rpx)">
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
......
<!--packageOutput/pages/crowdDetail/crowdDetail.wxml-->
<view class="container">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值详情</navigation-bar>
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh - {{navHeight}}px)">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh)">
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
......
......@@ -2,7 +2,7 @@
<wxs src="time.wxs" module="formatTime" />
<view class="container">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值{{timeType=='day'?'日':'月'}}报表</navigation-bar>
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh - 150rpx)">
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh)">
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
......@@ -56,7 +56,10 @@
</view>
</view>
<view class="billboard-box">
<view class="billboard-title">当{{timeType=='day'?'日':'月'}}员工龙虎榜</view>
<view class="billboard-title">
<text>当{{timeType=='day'?'日':'月'}}员工龙虎榜</text>
<text class="unit">累计产值(元)</text>
</view>
<view class="billboard-border">
<block wx:if="{{billboard.length}}">
<view class="billboard-item" wx:for="{{billboard}}" wx:key="index">
......
......@@ -6,7 +6,7 @@ Component({
properties: {
title: {
type: String,
value: '合作门店'
value: '我的门店'
},
sceneCode: {
type: String,
......
......@@ -12,7 +12,7 @@
border-top-right-radius: 32rpx;
.title {
font-size: 600;
font-weight: 600;
font-size: 30rpx;
width: 196rpx;
flex-shrink: 0;
......
<!--pages/tab/output/components/sortTab/sortTab.wxml-->
<view class="sort-tab">
<ciew class="title">{{title}}</ciew>
<view class="title">{{title}}</view>
<scroll-view class="sort-scroll" scroll-x="true">
<view class="flex">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="item" bindtap="handleSort" data-idx="{{index}}">
......
......@@ -21,7 +21,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false
const release = false
let index = 3
let index = 2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!