Commit ba1519f5 by 张立顺

fix 样式问题

1 parent 2111a3e7
手机号 15818722524 手机号 15818722524
15818722524 总监 15818722524 总监
15816539334 大区
13923832622 销售
\ No newline at end of file \ No newline at end of file
15816539334 18978849947 大区
13923832622 销售
\ No newline at end of file \ No newline at end of file
...@@ -12,4 +12,22 @@ ...@@ -12,4 +12,22 @@
height: 100rpx; height: 100rpx;
} }
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.bg {
width: 100%;
height: var(--fontSize800);
// background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/nav-bg.png') no-repeat;
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/sales-assistant/index/index_bg.png') no-repeat;
background-size: 100% var(--fontSize800);
position: fixed;
left: 0;
top: 0;
z-index: -1;
} }
\ No newline at end of file \ No newline at end of file
<!--packageIndex/pages/regionalLeaders/regionalLeaders.wxml--> <!--packageIndex/pages/regionalLeaders/regionalLeaders.wxml-->
<!-- <text>packageIndex/pages/regionalLeaders/regionalLeaders.wxml</text> --> <!-- <text>packageIndex/pages/regionalLeaders/regionalLeaders.wxml</text> -->
<view class="bg"></view>
<view class="layout"> <view class="layout">
<regionalLeaders regionId="{{ pageQuery.regionId }}" wx:if="{{ pageQuery }}"></regionalLeaders> <regionalLeaders regionId="{{ pageQuery.regionId }}" wx:if="{{ pageQuery }}"></regionalLeaders>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -12,4 +12,22 @@ ...@@ -12,4 +12,22 @@
height: 100rpx; height: 100rpx;
} }
}
::-webkit-scrollbar {
width: 0;
height: 0;
color: transparent;
}
.bg {
width: 100%;
height: var(--fontSize800);
// background: url('https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/nav-bg.png') no-repeat;
background: url('https://img02.glsx.com.cn/weapp/resource/miniprogram/sales-assistant/index/index_bg.png') no-repeat;
background-size: 100% var(--fontSize800);
position: fixed;
left: 0;
top: 0;
z-index: -1;
} }
\ No newline at end of file \ No newline at end of file
<!--packageIndex/pages/staff/staff.wxml--> <!--packageIndex/pages/staff/staff.wxml-->
<!-- <text>packageIndex/pages/staff/staff.wxml</text> --> <!-- <text>packageIndex/pages/staff/staff.wxml</text> -->
<view class="bg"></view>
<view class="layout"> <view class="layout">
<staff staffUuid="{{ pageQuery.staffUuid }}" regionId="{{ pageQuery.regionId }}" wx:if="{{ pageQuery }}"></staff> <staff staffUuid="{{ pageQuery.staffUuid }}" regionId="{{ pageQuery.regionId }}" wx:if="{{ pageQuery }}"></staff>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159; border-bottom: 1rpx solid #e4e8ee;
// box-shadow: 0 var(--fontSize4) var(--fontSize8) 0 #cdcdd159;
} }
.date_box { .date_box {
......
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
box-sizing: border-box; box-sizing: border-box;
margin: 24rpx 20rpx 40rpx; margin: 24rpx 20rpx 40rpx;
background-color: #fff; background-color: #fff;
border-radius: 8rpx;
} }
.header { .header {
...@@ -37,11 +36,7 @@ ...@@ -37,11 +36,7 @@
height: var(--fontSize130); height: var(--fontSize130);
} }
.currentWordNumber {
text-align: right;
color: #bec1c7;
font-size: 28rpx;
}
} }
.textArea_box.disabled { .textArea_box.disabled {
...@@ -49,6 +44,12 @@ ...@@ -49,6 +44,12 @@
} }
} }
.currentWordNumber {
text-align: right;
color: #bec1c7;
font-size: 28rpx;
}
.read { .read {
.label { .label {
color: #292d33; color: #292d33;
......
...@@ -31,10 +31,12 @@ ...@@ -31,10 +31,12 @@
<view class="remark_box"> <view class="remark_box">
<view class="label">今日工作:</view> <view class="label">今日工作:</view>
<view class="content">{{detailObj.todayWorkContent}}</view> <view class="content">{{detailObj.todayWorkContent}}</view>
<view class="currentWordNumber">{{todayWorkContent || 0}} / 200</view>
</view> </view>
<view class="remark_box"> <view class="remark_box">
<view class="label">明日计划:</view> <view class="label">明日计划:</view>
<view class="content">{{detailObj.tomorrowPlanContent}}</view> <view class="content">{{detailObj.tomorrowPlanContent}}</view>
<view class="currentWordNumber">{{tomorrowPlanContent || 0}} / 200</view>
</view> </view>
</view> </view>
<view class="nothing" wx:else> <view class="nothing" wx:else>
......
// pages/components/storeStatistics/storeStatistics.js // pages/components/storeStatistics/storeStatistics.js
import IndexApi from '~/api/index/index' import IndexApi from '~/api/index/index'
import { getUserInfo } from '~/utils/cache/userInfo'
const app = getApp() const app = getApp()
Component({ Component({
/** /**
...@@ -77,9 +78,9 @@ Component({ ...@@ -77,9 +78,9 @@ Component({
*/ */
lifetimes: { lifetimes: {
attached() { attached() {
// this.setData({ this.setData({
// userInfo: getUserInfo() userInfo: getUserInfo()
// }) })
this.getTotal() this.getTotal()
// 获取当前的年月份 格式为YYYY年M月D日 // 获取当前的年月份 格式为YYYY年M月D日
let date = new Date() let date = new Date()
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
color: #181a1f; color: #181a1f;
font-size: 32rpx; font-size: 32rpx;
font-weight: 500; font-weight: 500;
margin: 24rpx 0; margin-bottom: 24rpx;
} }
.tableBox { .tableBox {
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
// opacity: 1; // opacity: 1;
background: #ffffff; background: #ffffff;
box-sizing: border-box; box-sizing: border-box;
padding: 32rpx; padding: 30rpx 32rpx;
} }
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
.visitRecord { .visitRecord {
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 12rpx; padding: 16rpx 12rpx;
width: 670rpx; // width: 670rpx;
// height: 244rpx; // height: 244rpx;
border-radius: 12rpx; border-radius: 12rpx;
opacity: 1; opacity: 1;
......
<!--pages/components/storeStatistics/storeStatistics.wxml--> <!--pages/components/storeStatistics/storeStatistics.wxml-->
<!-- <text>pages/components/storeStatistics/storeStatistics.wxml</text> --> <!-- <text>pages/components/storeStatistics/storeStatistics.wxml</text> -->
<view class="merchant headerBar"> <view class="merchant headerBar">
<view class="title">我的门店</view> <view class="title" wx:if="{{userInfo.loginRole !=3}}">我的门店</view>
<view class="tableBox"> <view class="tableBox">
<view class="header"> <view class="header">
<view class="left">门店待跟进</view> <view class="left">门店待跟进</view>
<view class="right"> <view class="right">
<switch-block switchStatus="{{ overviewSwitchValue }}" bindswitchEvent="onSwitchChange" switchName="{{ switchName }}" /> <switch-block switchStatus="{{ overviewSwitchValue }}" bindswitchEvent="onSwitchChange" switchName="{{ switchName }}" />
</view> </view>
</view> </view>
<view class="tips">潜客门店跟进情况</view> <view class="tips">潜客门店跟进情况</view>
<view class="statusList"> <view class="statusList">
<view class="item" bindtap="getCustomerPage" data-type="0"> <view class="item" bindtap="getCustomerPage" data-type="0">
<view class="label">潜客数</view> <view class="label">潜客数</view>
<view class="num">{{followUpData.potentialCustomersCount}}</view> <view class="num">{{followUpData.potentialCustomersCount}}</view>
</view> </view>
<view class="item" bindtap="getCustomerPage" data-type="0"> <view class="item" bindtap="getCustomerPage" data-type="0">
<view class="label">跟进中</view> <view class="label">跟进中</view>
<view class="num">{{followUpData.followUpCount}}</view> <view class="num">{{followUpData.followUpCount}}</view>
</view> </view>
<view class="item" bindtap="getCustomerPage" data-type="1"> <view class="item" bindtap="getCustomerPage" data-type="1">
<view class="label">已签约未出单</view> <view class="label">已签约未出单</view>
<view class="num">{{followUpData.signedNoOrderTotal}}</view> <view class="num">{{followUpData.signedNoOrderTotal}}</view>
</view> </view>
<view class="item" bindtap="getCustomerPage" data-type="1"> <view class="item" bindtap="getCustomerPage" data-type="1">
<view class="label">已签约已出单</view> <view class="label">已签约已出单</view>
<view class="num">{{followUpData.signedHasOrderTotal}}</view> <view class="num">{{followUpData.signedHasOrderTotal}}</view>
</view> </view>
</view> </view>
<view class="visitRecord" wx:if="{{ followUpData.waitFollowShopList[0] }}"> <view class="visitRecord" wx:if="{{ followUpData.waitFollowShopList[0] }}">
<view class="time"> <view class="time">
<glsx-image class="icon" src="/index/clock.png"></glsx-image> <glsx-image class="icon" src="/index/clock.png"></glsx-image>
<view class="timebox">首次拜访:{{followUpData.waitFollowShopList[0].firstVisitTime||'-'}}</view> <view class="timebox">首次拜访:{{followUpData.waitFollowShopList[0].firstVisitTime||'-'}}</view>
<view class="status">跟进中</view> <view class="status">跟进中</view>
</view> </view>
<view class="merchantName text-hide">{{followUpData.waitFollowShopList[0].storeName}}</view> <view class="merchantName text-hide">{{followUpData.waitFollowShopList[0].storeName}}</view>
<view class="content"> <view class="content">
<text class="label">上次拜访内容:</text> <text class="label">上次拜访内容:</text>
<text class="text">{{followUpData.waitFollowShopList[0].lastVisitContent||'-'}}</text> <text class="text">{{followUpData.waitFollowShopList[0].lastVisitContent||'-'}}</text>
</view> </view>
<view class="btn" bindtap="goPotentialDetail" data-target="{{ followUpData.waitFollowShopList[0] }}">跟进</view> <view class="btn" bindtap="goPotentialDetail" data-target="{{ followUpData.waitFollowShopList[0] }}">跟进</view>
</view> </view>
<view class="visitRecord" wx:if="{{ followUpData.waitFollowShopList[1] }}"> <view class="visitRecord" wx:if="{{ followUpData.waitFollowShopList[1] }}">
<view class="time"> <view class="time">
<glsx-image></glsx-image> <glsx-image></glsx-image>
<view class="timebox">首次拜访:{{followUpData.waitFollowShopList[1].firstVisitTime||'-'}}</view> <view class="timebox">首次拜访:{{followUpData.waitFollowShopList[1].firstVisitTime||'-'}}</view>
<view class="status">跟进中</view> <view class="status">跟进中</view>
</view> </view>
<view class="merchantName text-hide">{{followUpData.waitFollowShopList[1].storeName}}</view> <view class="merchantName text-hide">{{followUpData.waitFollowShopList[1].storeName}}</view>
<view class="content"> <view class="content">
<text class="label">上次拜访内容:</text> <text class="label">上次拜访内容:</text>
<text class="text">{{followUpData.waitFollowShopList[1].lastVisitContent||'-'}}</text> <text class="text">{{followUpData.waitFollowShopList[1].lastVisitContent||'-'}}</text>
</view> </view>
<view class="btn" bindtap="goPotentialDetail" data-target="{{ followUpData.waitFollowShopList[1] }}">跟进</view> <view class="btn" bindtap="goPotentialDetail" data-target="{{ followUpData.waitFollowShopList[1] }}">跟进</view>
</view> </view>
</view> </view>
</view> </view>
<view class="headerBar kpiBox"> <view class="headerBar kpiBox">
<view class="tableBox"> <view class="tableBox">
<view class="header title">{{ month }}月KPI完成进度</view> <view class="header title">{{ month }}月KPI完成进度</view>
<view class="tips">门店KPI指标完成进度</view> <view class="tips">门店KPI指标完成进度</view>
<view class="tab"> <view class="tab">
<view class="item {{ tabActive == 2?'active':'' }}" bindtap="changeTabActive" data-index="2">延保</view> <view class="item {{ tabActive == 2?'active':'' }}" bindtap="changeTabActive" data-index="2">延保</view>
<view class="item {{ tabActive == 1?'active':'' }}" bindtap="changeTabActive" data-index="1">权益</view> <view class="item {{ tabActive == 1?'active':'' }}" bindtap="changeTabActive" data-index="1">权益</view>
<view class="item {{ tabActive == 0?'active':'' }}" bindtap="changeTabActive" data-index="0">轻改</view> <view class="item {{ tabActive == 0?'active':'' }}" bindtap="changeTabActive" data-index="0">轻改</view>
</view> </view>
<view class="productionProgress"> <view class="productionProgress">
<view class="label">产值进度</view> <view class="label">产值进度</view>
<view class="date">{{currentDate}}</view> <view class="date">{{currentDate}}</view>
<view class="select" bindtap="changeOrderBy"> <view class="select" bindtap="changeOrderBy">
{{showOrderBy||'已完成'}} {{showOrderBy||'已完成'}}
<glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image> <glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view> </view>
</view> </view>
<table <table showMoreBtn="{{ true }}" table="{{ kpiProgressTable }}" headerConfig="{{ headerConfig }}" tableObj="{{ tableObj }}" tableFlag="{{ tableFlag }}" tableWidth="{{ tableWidth }}" itemTableHeight="{{ itemTableHeight }}" itemHeight="94rpx"></table>
showMoreBtn="{{ true }}" </view>
table="{{ kpiProgressTable }}"
headerConfig="{{ headerConfig }}"
tableObj="{{ tableObj }}"
tableFlag="{{ tableFlag }}"
tableWidth="{{ tableWidth }}"
itemTableHeight="{{ itemTableHeight }}"
itemHeight="94rpx"
></table>
</view>
</view> </view>
<select-popup
show="{{ showSelectPopup }}"
options="{{ selectOptions }}"
multiple="{{ selectMultiple }}"
values="{{ selectValues }}"
value="{{ selectValue }}"
bindconfirm="handlePopupConfirm"
title="{{ selectTitle }}"
customIsTab="{{ true }}"
></select-popup>
\ No newline at end of file \ No newline at end of file
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{ selectMultiple }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" title="{{ selectTitle }}" customIsTab="{{ true }}"></select-popup>
\ No newline at end of file \ No newline at end of file
...@@ -40,90 +40,7 @@ Component({ ...@@ -40,90 +40,7 @@ Component({
data: { data: {
// tableWidth: 1088, // tableWidth: 1088,
// tableFlag: true, // tableFlag: true,
table: [ table: [],
// {
// id: null,
// merchantId: 44218100,
// merchantName: '测试门店22',
// dataDate: null,
// getTotal: 0,
// usedTotal: 0,
// upgradeTotal: 0,
// upgradeMoneyTotal: null,
// createdBy: null,
// createdDate: null,
// updatedBy: null,
// updatedDate: null,
// deletedFlag: null,
// startDate: null,
// endDate: null,
// yqMerchantIds: null,
// orderByType: null,
// addTotal: 0,
// orderMoneyTotal: 0,
// merchantIdList: null,
// usedPer: null,
// upgradePer: null,
// totalUsedPer: null,
// totalUpgradePer: null,
// customerUnitMoney: 0,
// upgradeRate: 0,
// experienceTotal: 0,
// filmTimes: 0,
// notUpgradeTotal: null,
// filmTimesGrowth: null,
// usedTotalGrowth: null,
// upgradeTotalGrowth: null,
// notUpgradeTotalGrowth: null,
// orderMoneyTotalGrowth: null,
// customerUnitMoneyGrowth: null,
// experienceTotalGrowth: null,
// upgradeRateGrowth: null,
// goodsOrCouponType: null,
// queryRangeType: null
// },
// {
// id: null,
// merchantId: 44218100,
// merchantName: '测试门店22',
// dataDate: null,
// getTotal: 0,
// usedTotal: 0,
// upgradeTotal: 0,
// upgradeMoneyTotal: null,
// createdBy: null,
// createdDate: null,
// updatedBy: null,
// updatedDate: null,
// deletedFlag: null,
// startDate: null,
// endDate: null,
// yqMerchantIds: null,
// orderByType: null,
// addTotal: 0,
// orderMoneyTotal: 0,
// merchantIdList: null,
// usedPer: null,
// upgradePer: null,
// totalUsedPer: null,
// totalUpgradePer: null,
// customerUnitMoney: 0,
// upgradeRate: 0,
// experienceTotal: 0,
// filmTimes: 0,
// notUpgradeTotal: null,
// filmTimesGrowth: null,
// usedTotalGrowth: null,
// upgradeTotalGrowth: null,
// notUpgradeTotalGrowth: null,
// orderMoneyTotalGrowth: null,
// customerUnitMoneyGrowth: null,
// experienceTotalGrowth: null,
// upgradeRateGrowth: null,
// goodsOrCouponType: null,
// queryRangeType: null
// }
],
formattedTable: [] formattedTable: []
// tableObj: [ // tableObj: [
// { // {
...@@ -163,6 +80,13 @@ Component({ ...@@ -163,6 +80,13 @@ Component({
*/ */
methods: { methods: {
formatTable(table, tableObj) { formatTable(table, tableObj) {
// 区分一下,headerConfig.key == 'staffName' 不处理
if (this.data.headerConfig.key == 'staffName') {
this.setData({
formattedTable: table
})
return
}
const keys = (tableObj || []).map(i => i && i.key).filter(Boolean) const keys = (tableObj || []).map(i => i && i.key).filter(Boolean)
const src = Array.isArray(table) ? table : [] const src = Array.isArray(table) ? table : []
const formatted = src.map(row => { const formatted = src.map(row => {
......
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
padding: var(--fontSize20) var(--fontSize20); padding: var(--fontSize20) var(--fontSize20);
font-size: var(--fontSize20); font-size: var(--fontSize20);
color: #666666; color: #666666;
box-shadow: 4px 0 4px -3px #0000000f; // box-shadow: 4px 0 4px -3px #0000000f;
// box-shadow: 0 0 8rpx 0 #0000000f; // box-shadow: 0 0 8rpx 0 #0000000f;
} }
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
} }
.table .table-body .th .name .labelName { .table .table-body .th .name .labelName {
height: var(--fontSize58); height: var(--fontSize60);
box-sizing: border-box; box-sizing: border-box;
word-break: break-all; word-break: break-all;
display: -webkit-box; display: -webkit-box;
......
...@@ -21,7 +21,7 @@ const h5Obj = { ...@@ -21,7 +21,7 @@ const h5Obj = {
2测试 2测试
3生产 3生产
*/ */
let index = 1 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
// console.log(systemInfo); // console.log(systemInfo);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!