Commit ea32bb5c by 张立顺

fix style:第二轮bug和样式修改

1 parent 8499fafc
Showing 31 changed files with 343 additions and 129 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
2测试 2测试
3生产 3生产
*/ */
const index = 1 const index = 2
const secretKey_items = { const secretKey_items = {
ip: { ip: {
......
...@@ -5,17 +5,20 @@ ...@@ -5,17 +5,20 @@
<block wx:if="{{loginUserInfoList}}"> <block wx:if="{{loginUserInfoList}}">
<block wx:for="{{loginUserInfoList}}" wx:key="index"> <block wx:for="{{loginUserInfoList}}" wx:key="index">
<view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}"> <view class="items {{item.active?'active':''}}" bindtap="chooseAccount" data-index="{{index}}">
<view class="name">{{item.merchantName}}</view> <view class="name">
{{item.merchantName}}{{item.isSuper==true?'(超管)':item.userType==1?'(商户号)':'(员工号)'}}
</view>
<view class="icon"> <view class="icon">
<image src="/images/active-arc.png"></image> <image src="/images/active-arc.png" />
</view> </view>
<view class='radio'></view> <view class='radio' />
</view> </view>
</block> </block>
</block> </block>
<block wx:else> <block wx:else>
<view class="list-not" style="height: calc(100vh - {{isFullSucreen ? '159' :'125'}}px)" <view class="list-not" style="height: calc(100vh - {{isFullSucreen ? '159' :'125'}}px)" bindtap="getListSelectAccount">
bindtap="getListSelectAccount">点击刷新</view> 点击刷新
</view>
</block> </block>
</block> </block>
</view> </view>
...@@ -23,3 +26,4 @@ ...@@ -23,3 +26,4 @@
<view class='btn' bindtap="choiceAccountLogin">确定</view> <view class='btn' bindtap="choiceAccountLogin">确定</view>
</view> </view>
</view> </view>
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
"disablePlugins": [], "disablePlugins": [],
"outputPath": "" "outputPath": ""
}, },
"enableEngineNative": false,
"useIsolateContext": false, "useIsolateContext": false,
"userConfirmedBundleSwitch": false, "userConfirmedBundleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
...@@ -39,7 +38,8 @@ ...@@ -39,7 +38,8 @@
"disableUseStrict": false, "disableUseStrict": false,
"minifyWXML": true, "minifyWXML": true,
"showES6CompileOption": false, "showES6CompileOption": false,
"useCompilerPlugins": false "useCompilerPlugins": false,
"ignoreUploadUnusedFiles": true
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.22.1", "libVersion": "2.22.1",
......
...@@ -71,7 +71,7 @@ Page({ ...@@ -71,7 +71,7 @@ Page({
} }
], ],
tableHeight: (20 + 1) * 96, tableHeight: (20 + 1) * 96,
tableWidth: 108 * 4 + 124 * 2 + 232 tableWidth: 108 * 5 + 124 * 2 + 256
// tableWidth: 606 // tableWidth: 606
}, },
......
...@@ -337,7 +337,7 @@ page ::-webkit-scrollbar { ...@@ -337,7 +337,7 @@ page ::-webkit-scrollbar {
background-color: #fff; background-color: #fff;
box-sizing: border-box; box-sizing: border-box;
height: 94rpx; height: 94rpx;
width: 232rpx; width: 240rpx;
padding: 20rpx 20rpx; padding: 20rpx 20rpx;
font-size: 20rpx; font-size: 20rpx;
/* line-height: 30rpx; */ /* line-height: 30rpx; */
......
...@@ -79,6 +79,23 @@ var rateFormatAbs = function (params) { ...@@ -79,6 +79,23 @@ var rateFormatAbs = function (params) {
} }
} }
var toDecimal2 = function (params) {
// debugger
// console.log(params)
var data = params.toString().split('.')
var num = data[1]
// console.log(data, num)
if (num) {
if (num.length == 1) {
num = '.' + num + '0'
} else {
num = '.' + num
}
} else {
num = '.00'
}
return data[0] + num
}
/* /*
* 导出 * 导出
*/ */
...@@ -90,5 +107,6 @@ module.exports = { ...@@ -90,5 +107,6 @@ module.exports = {
dateFormatSlash: dateFormatSlash, dateFormatSlash: dateFormatSlash,
dateFormatYear: dateFormatYear, dateFormatYear: dateFormatYear,
dateFormatMonth: dateFormatMonth, dateFormatMonth: dateFormatMonth,
rateFormatAbs: rateFormatAbs rateFormatAbs: rateFormatAbs,
toDecimal2: toDecimal2
} }
...@@ -11,14 +11,31 @@ Component({ ...@@ -11,14 +11,31 @@ Component({
// console.log(n) // console.log(n)
this.getUserDayReport(n) this.getUserDayReport(n)
} }
}, // 查询日期 } // 查询日期
refresh: { // refresh: {
type: Boolean, // // 刷新列表
observer: function (n) { // type: Boolean,
this.getUserDayReport(n) // observer: function (n) {
this.getUserInfo() // console.log()
} // let {hidden} = this.data
} // 刷新列表 // // 如果在当前页面
// if (!hidden) {
// }
// // this.getUserDayReport(n)
// // this.getUserInfo()
// }
// },
// hidden: {
// // 刷新列表
// type: Boolean,
// observer: function (n) {
// console.log(this.data)
// console.log(n)
// if (n) {
// }
// }
// }
}, },
/** /**
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
.otherAdd { .otherAdd {
height: 122rpx; height: 122rpx;
padding: 0 20rpx; // padding: 0 20rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
justify-content: space-between; justify-content: space-between;
width: calc(100% - 40rpx); width: calc(100% - 40rpx);
overflow: hidden; overflow: hidden;
background-color: #f1554c;
// border-bottom: 1px solid #d8d4d4; // border-bottom: 1px solid #d8d4d4;
border-bottom: .5px solid #d8d4d4; border-bottom: .5px solid #d8d4d4;
} }
...@@ -197,6 +198,39 @@ ...@@ -197,6 +198,39 @@
font-size: 28rpx; font-size: 28rpx;
} }
.confirm {
/* 定义动画 */
background-color: chocolate;
animation-duration: 1s;
/* 动画时间 */
animation-name: fadein;
/* 关键帧名字 */
// -webkit-transform: translateX(90px);
// transform: translateX(90px);
// -webkit-transition: all 0.4s;
// transition: all 0.4s;
// width: 90px;
// display: flex;
// flex-direction: column;
// align-items: center;
// justify-content: center;
// color: #fff;
// font-size: 28rpx;
}
/* 定义关键帧 */
@keyframes fadein {
0% {
opacity: 0;
transform: translateX(90px);
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
.touch-move-active .content, .touch-move-active .content,
.touch-move-active .del { .touch-move-active .del {
background-color: #f1554c; background-color: #f1554c;
...@@ -204,9 +238,19 @@ ...@@ -204,9 +238,19 @@
transform: translateX(0); transform: translateX(0);
} }
// .touch-move-active .content,
// .touch-move-active .confirm {
// background-color: #f1554c;
// -webkit-transform: translateX(0);
// transform: translateX(0);
// }
} }
.businessPage>view:nth-last-child(2) { // .businessPage>view:nth-last-child(2) {
// border-bottom: none;
// }
.cellContainer view:last-child {
border-bottom: none; border-bottom: none;
} }
...@@ -237,7 +281,7 @@ ...@@ -237,7 +281,7 @@
} }
.cellContainer { .cellContainer {
border-radius: 16px 16px 0 0; border-radius: 12rpx 12rpx 0 0;
background-color: #fff; background-color: #fff;
overflow: hidden; overflow: hidden;
} }
\ No newline at end of file \ No newline at end of file
<!-- tabOperating/pages/index/component/business/business.wxml --> <!-- tabOperating/pages/index/component/business/business.wxml -->
<!-- bindscrolltolower="scrollonReachBottom" -->
<wxs src="../../../index.wxs" module="filter" /> <wxs src="../../../index.wxs" module="filter" />
<view class="businessPage"> <scroll-view
hidden="{{hidden}}"
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
refresher-threshold="104"
style="height:100%;"
class="businessPage list"
refresher-triggered="{{triggered}}">
<view class=" title"> <view class=" title">
<!-- 还有确定是单园区店 --> <!-- 还有确定是单园区店 ||userInfo.userType==1 -->
<view <view
class="addFields" class="addFields"
wx:if="{{ (userInfo.userType != 2||userInfo.isSuper) &&(userInfo.subLoginUser.merchantId != userInfo.merchantId)||userInfo.userType==1}}" wx:if="{{( (userInfo.userType != 2||userInfo.isSuper) &&(userInfo.subLoginUser.merchantId != userInfo.merchantId))}}"
data-type="add" data-type="add"
bindtap="remarkShow"> bindtap="remarkShow">
<image <image
...@@ -132,15 +142,24 @@ ...@@ -132,15 +142,24 @@
</view> </view>
<view <view
wx:else wx:else
class="del" class="del confirm"
data-id="{{item['fieldId']}}" data-id="{{item['fieldId']}}"
catchtap="confirmDelBtn" catchtap="confirmDelBtn"
data-index="{{index}}"> data-index="{{index}}">
确认删除 确认删除
</view> </view>
<!-- confirm wx:if="{{!item['confirmIndex']}}" -->
<!-- <view
wx:else
class="del"
data-id="{{item['fieldId']}}"
catchtap="confirmDelBtn"
data-index="{{index}}">
确认删除
</view> -->
</view> </view>
</view> </view>
<view class="bottomTips">到底了~</view> <view class="bottomTips">到底了~</view>
</view> </scroll-view>
<!-- placeholder="新数值会覆盖旧数值" --> <!-- placeholder="新数值会覆盖旧数值" -->
.businessPage .title{display:flex;justify-content:space-between;align-items:center;height:80rpx;padding:0 20rpx}.businessPage .title .addFields{font-size:24rpx;color:#333;display:flex;align-items:center}.businessPage .title .addIcon{width:24rpx;height:24rpx;margin-right:6rpx}.businessPage .title .tips{display:flex;margin-left:auto;align-items:center;color:#999;font-size:24rpx}.businessPage .title .tipsIcon{width:24rpx;height:24rpx;margin-left:8rpx}.businessPage .cell{margin:20rpx;padding-bottom:20rpx;font-size:24rpx;background-color:#fff;border-bottom:.5px solid #d8d4d4}.businessPage .cell .todayData{display:flex;justify-content:space-between;margin-bottom:10rpx;font-size:28rpx;color:#333333}.businessPage .cell .todayData .num{font-weight:600;display:flex;align-items:center}.businessPage .cell .todayData .num image{width:10rpx;height:6rpx}.businessPage .cell .monthData{display:flex;justify-content:space-between;color:#999999;font-size:24rpx}.businessPage .cell .monthData .num{display:flex;align-items:center}.businessPage .cell .monthData .num image{width:15rpx;height:9rpx;margin:4rpx 6rpx 0 10rpx}.businessPage .otherCell{display:flex;justify-content:space-between;margin:40rpx 20rpx 0;padding-bottom:40rpx;font-size:28rpx;color:#333;background-color:#fff;border-bottom:.5px solid #d8d4d4}.businessPage .otherCell .num{font-weight:600}.businessPage .otherAdd{height:122rpx;padding:0 20rpx;display:flex;align-items:center;justify-content:space-between;background-color:#fff}.businessPage .otherAdd .otherData{display:flex;align-items:center}.businessPage .otherAdd .label{font-size:28rpx;margin-right:32rpx}.businessPage .otherAdd .check{display:flex;align-items:center;color:#3582EE;font-size:24rpx}.businessPage .otherAdd .check .checkIcon{width:24rpx;height:24rpx;margin-right:8rpx}.businessPage .otherAdd .placeholder{color:#C3C3C3;font-size:28rpx}.businessPage .otherAdd .placeholder.num{font-weight:600;font-size:28rpx;color:#333333}.businessPage .touch-item{margin:0 20rpx;display:flex;justify-content:space-between;width:calc(100% - 40rpx);overflow:hidden;border-bottom:.5px solid #d8d4d4}.businessPage .content{width:100%;margin-right:0;-webkit-transition:all 0.4s;transition:all 0.4s;-webkit-transform:translateX(90px);transform:translateX(90px);margin-left:-90px}.businessPage .content .item{display:flex}.businessPage .touch-item:nth-last-child(1){border-radius:0 0 16rpx 16rpx;border-bottom:0}.businessPage .del{width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;-webkit-transform:translateX(90px);transform:translateX(90px);-webkit-transition:all 0.4s;transition:all 0.4s;font-size:28rpx}.businessPage .touch-move-active .content,.businessPage .touch-move-active .del{background-color:#f1554c;-webkit-transform:translateX(0);transform:translateX(0)}.businessPage>view:nth-last-child(2){border-bottom:none}.bottomTips{height:92rpx;line-height:92rpx;text-align:center;font-size:20rpx;color:#666666;background:#F8F9F9}.input{text-align:right;font-size:28rpx;max-width:240rpx}.placeholder-class{color:#C3C3C3}.cellContainer{border-radius:16px 16px 0 0;background-color:#fff;overflow:hidden} .businessPage .title{display:flex;justify-content:space-between;align-items:center;height:80rpx;padding:0 20rpx}.businessPage .title .addFields{font-size:24rpx;color:#333;display:flex;align-items:center}.businessPage .title .addIcon{width:24rpx;height:24rpx;margin-right:6rpx}.businessPage .title .tips{display:flex;margin-left:auto;align-items:center;color:#999;font-size:24rpx}.businessPage .title .tipsIcon{width:24rpx;height:24rpx;margin-left:8rpx}.businessPage .cell{margin:20rpx;padding-bottom:20rpx;font-size:24rpx;background-color:#fff;border-bottom:.5px solid #d8d4d4}.businessPage .cell .todayData{display:flex;justify-content:space-between;margin-bottom:10rpx;font-size:28rpx;color:#333333}.businessPage .cell .todayData .num{font-weight:600;display:flex;align-items:center}.businessPage .cell .todayData .num image{width:10rpx;height:6rpx}.businessPage .cell .monthData{display:flex;justify-content:space-between;color:#999999;font-size:24rpx}.businessPage .cell .monthData .num{display:flex;align-items:center}.businessPage .cell .monthData .num image{width:15rpx;height:9rpx;margin:4rpx 6rpx 0 10rpx}.businessPage .otherCell{display:flex;justify-content:space-between;margin:40rpx 20rpx 0;padding-bottom:40rpx;font-size:28rpx;color:#333;background-color:#fff;border-bottom:.5px solid #d8d4d4}.businessPage .otherCell .num{font-weight:600}.businessPage .otherAdd{height:122rpx;display:flex;align-items:center;justify-content:space-between;background-color:#fff}.businessPage .otherAdd .otherData{display:flex;align-items:center}.businessPage .otherAdd .label{font-size:28rpx;margin-right:32rpx}.businessPage .otherAdd .check{display:flex;align-items:center;color:#3582EE;font-size:24rpx}.businessPage .otherAdd .check .checkIcon{width:24rpx;height:24rpx;margin-right:8rpx}.businessPage .otherAdd .placeholder{color:#C3C3C3;font-size:28rpx}.businessPage .otherAdd .placeholder.num{font-weight:600;font-size:28rpx;color:#333333}.businessPage .touch-item{margin:0 20rpx;display:flex;justify-content:space-between;width:calc(100% - 40rpx);overflow:hidden;background-color:#f1554c;border-bottom:.5px solid #d8d4d4}.businessPage .content{width:100%;margin-right:0;-webkit-transition:all 0.4s;transition:all 0.4s;-webkit-transform:translateX(90px);transform:translateX(90px);margin-left:-90px}.businessPage .content .item{display:flex}.businessPage .touch-item:nth-last-child(1){border-radius:0 0 16rpx 16rpx;border-bottom:0}.businessPage .del{width:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;-webkit-transform:translateX(90px);transform:translateX(90px);-webkit-transition:all 0.4s;transition:all 0.4s;font-size:28rpx}.businessPage .confirm{background-color:chocolate;animation-duration:1s;animation-name:fadein}@keyframes fadein{0%{opacity:0;transform:translateX(90px)}100%{opacity:1;transform:translateX(0px)}}.businessPage .touch-move-active .content,.businessPage .touch-move-active .del{background-color:#f1554c;-webkit-transform:translateX(0);transform:translateX(0)}.cellContainer view:last-child{border-bottom:none}.bottomTips{height:92rpx;line-height:92rpx;text-align:center;font-size:20rpx;color:#666666;background:#F8F9F9}.input{text-align:right;font-size:28rpx;max-width:240rpx}.placeholder-class{color:#C3C3C3}.cellContainer{border-radius:12rpx 12rpx 0 0;background-color:#fff;overflow:hidden}
...@@ -12,7 +12,12 @@ Component({ ...@@ -12,7 +12,12 @@ Component({
this.getbusinessList(n) this.getbusinessList(n)
// if (n) this.getLetter() // if (n) this.getLetter()
} }
} // 查询日期 }, // 查询日期
hidden: {
// 刷新列表
type: Boolean,
observer: function (n) {}
}
// date: String // date: String
}, },
......
.todayOrder { .todayOrder {
width: 100%; width: 100%;
height: 74rpx; height: 80rpx;
background: #F8F9F9; background: #F8F9F9;
font-size: 24rpx; font-size: 24rpx;
line-height: 74rpx; line-height: 74rpx;
...@@ -24,9 +24,15 @@ ...@@ -24,9 +24,15 @@
justify-content: space-between; justify-content: space-between;
.status { .status {
font-weight: 600;
color: #F24724; // font-weight: 600;
font-size: 28rpx; // color: #F24724;
// font-size: 28rpx;
.failIcon {
width: 106rpx;
height: 106rpx;
}
} }
.update { .update {
...@@ -99,7 +105,7 @@ ...@@ -99,7 +105,7 @@
} }
.twoText { .twoText {
max-width: 320rpx; max-width: 420rpx;
text-overflow: -o-ellipsis-lastline; text-overflow: -o-ellipsis-lastline;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
...@@ -243,8 +249,15 @@ ...@@ -243,8 +249,15 @@
} }
.noListText { .noListText {
padding: 40rpx; // padding: 40rpx;
height: calc(100% - 80rpx);
text-align: center; text-align: center;
// line-height: 100%;
display: flex;
justify-content: center;
background-color: #fff;
align-items: center;
border-radius: 12rpx;
} }
.bottomTips { .bottomTips {
......
<!-- tabOperating/pages/index/components/conquestCell/conquestCell.wxml --> <!-- tabOperating/pages/index/components/conquestCell/conquestCell.wxml -->
<view class="todayOrder"> <wxs src="../../../index.wxs" module="filter" />
<!-- <view hidden="{{hidden}}"> -->
<scroll-view
hidden="{{hidden}}"
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
refresher-threshold="104"
style="height:100%;"
class="businessPage list"
refresher-triggered="{{triggered}}">
<view class="todayOrder">
今日成功升级{{orderObj.upgradeCount}}位,战败{{orderObj.orderCount - orderObj.upgradeCount}}位 今日成功升级{{orderObj.upgradeCount}}位,战败{{orderObj.orderCount - orderObj.upgradeCount}}位
</view> </view>
<block wx:if="{{orderObj.list.length}}"> <block wx:if="{{orderObj.list.length}}">
<block <block
wx:for="{{orderObj.list}}" wx:for="{{orderObj.list}}"
wx:for-item='item' wx:for-item='item'
...@@ -24,9 +36,16 @@ ...@@ -24,9 +36,16 @@
<view> <view>
<view class="update" wx:if="{{item.upgradeFlag=='Y'}}"> <view class="update" wx:if="{{item.upgradeFlag=='Y'}}">
合计 合计
<view class="num">¥{{item.totalPrice}}</view> <view class="num">¥{{filter.toDecimal2(item.totalPrice)}}</view>
</view>
<view class="status" wx:if="{{item.upgradeFlag=='N'}}">
<image
class="failIcon"
src="../../../../images/failIcon.png"
mode=""
binderror=""
bindload="" />
</view> </view>
<view class="status" wx:if="{{item.upgradeFlag=='N'}}">战败</view>
</view> </view>
</view> </view>
<view class="orderContainer"> <view class="orderContainer">
...@@ -39,8 +58,8 @@ ...@@ -39,8 +58,8 @@
<view class="item"> <view class="item">
<view class="label">{{childrenItem.label}}</view> <view class="label">{{childrenItem.label}}</view>
<view class=" {{childrenItem.prop != 'refusalReason'?'oneText':'twoText'}}"> <view class=" {{childrenItem.prop != 'refusalReason'?'oneText':'twoText'}}">
<!-- 1111LDCA23542J2015533抵用礼券抵用礼券抵用礼券抵用礼券 -->
{{item[childrenItem.prop]||'-'}} {{item[childrenItem.prop]||'-'}}
<!-- {{orderInfo.couponName || ''}}{{orderInfo.customerCoupon.customerCouponCode ||''}} -->
</view> </view>
</view> </view>
</block> </block>
...@@ -66,7 +85,7 @@ ...@@ -66,7 +85,7 @@
wx:for-index='subOrdersIndex'> wx:for-index='subOrdersIndex'>
<view class="goodsItem"> <view class="goodsItem">
<view class="name oneText">{{subOrdersItem.upgradeGoodsName}}</view> <view class="name oneText">{{subOrdersItem.upgradeGoodsName}}</view>
<view class="price">¥{{subOrdersItem.totalPrice}}</view> <view class="price">¥{{filter.toDecimal2 (subOrdersItem.totalPrice)}}</view>
</view> </view>
</block> </block>
</view> </view>
...@@ -116,13 +135,15 @@ ...@@ -116,13 +135,15 @@
<view class="arrowIcon" bindtap="showSellBox" data-index="{{index}}"> <view class="arrowIcon" bindtap="showSellBox" data-index="{{index}}">
<image src="{{item.active?'../../../../images/arrowUp.png':'../../../../images/arrowDown.png'}}" /> <image src="{{item.active?'../../../../images/arrowUp.png':'../../../../images/arrowDown.png'}}" />
</view> </view>
<view class="orderPrice">已结单:{{item.installUpgradeTime}}</view> <view class="orderPrice">结单时间:{{item.installUpgradeTime}}</view>
</view> </view>
</view> </view>
</block> </block>
<view class="bottomTips" wx:if="{{orderObj.length>3}}">到底了~</view> <view class="bottomTips" wx:if="{{orderObj.list.length>2}}">到底了~</view>
</block> </block>
<block wx:else> <block wx:else>
<view class="orderBox noListText">暂无数据</view> <view class=" noListText">暂无数据</view>
</block> </block>
<!-- </view> -->
</scroll-view>
.todayOrder{width:100%;height:74rpx;background:#F8F9F9;font-size:24rpx;line-height:74rpx;padding-left:20rpx}.orderBox{box-sizing:border-box;width:100%;background:#FFFFFF;border-radius:16px;padding:0 20rpx 34rpx;font-size:24rpx;margin-bottom:20rpx}.orderBox .header{height:160rpx;box-sizing:border-box;padding:40rpx 20rpx;display:flex;justify-content:space-between}.orderBox .header .status{font-weight:600;color:#F24724;font-size:28rpx}.orderBox .header .update{display:flex;color:#666}.orderBox .header .update .num{margin-left:12rpx;color:#333;font-weight:600;font-size:28rpx;font-weight:500}.orderBox .owner{font-size:24rpx}.orderBox .owner .name{display:flex;align-items:center;margin-bottom:8rpx;font-size:28rpx;font-weight:500}.orderBox .owner .name image{width:24rpx;height:24rpx;margin-left:16rpx}.orderBox .owner .carType{color:#999}.orderBox .orderContainer{display:flex;justify-content:space-between;flex-wrap:wrap}.orderBox .orderContainer .item{width:100%;display:flex;padding:0 20rpx;font-size:24rpx}.orderBox .orderContainer .item .label{width:140rpx;color:#999;margin-bottom:20rpx}.orderBox .orderContainer .item .oneText{max-width:320rpx;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.orderBox .orderContainer .item .twoText{max-width:320rpx;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;white-space:wrap;word-break:normal}.orderBox .label{width:140rpx;color:#999;margin-bottom:20rpx}.orderBox .subOrdersList{display:flex;flex-direction:column;flex-wrap:wrap;padding:0 20rpx;width:100%}.orderBox .subOrdersList .label{width:140rpx;color:#999;margin-bottom:20rpx}.orderBox .subOrdersList .name{width:310px}.orderBox .subOrdersList .goodsList{display:flex}.orderBox .subOrdersList .goodsList .goodsListItem{flex:1;display:flex;flex-direction:column;flex-wrap:wrap}.orderBox .subOrdersList .goodsList .goodsListItem .goodsItem{display:flex;justify-content:space-between;margin-bottom:20rpx}.orderBox .subOrdersList .goodsList .goodsListItem .goodsItem .price{color:#666}.orderBox .subOrdersList .paySelect{display:flex}.orderBox .subOrdersList .guarantee{display:flex}.orderBox .subOrdersList .guarantee .goodsListItem{display:flex;flex-direction:column;flex-wrap:wrap}.orderBox .sellInfo{box-sizing:border-box;height:0;background:#F5F9FE;border-radius:8rpx;margin:40rpx 0 0;transition:all .5s;overflow:hidden}.orderBox .sellInfo.active{height:116rpx;padding:20rpx}.orderBox .sellInfo .info{display:inline-flex;width:100%}.orderBox .sellInfo .info .label{margin-bottom:0;height:40rpx}.orderBox .btnShow{display:flex;justify-content:center;position:relative;margin-top:28rpx}.orderBox .btnShow .arrowIcon image{width:44rpx;height:24rpx}.orderBox .btnShow .orderPrice{position:absolute;right:0;bottom:4rpx;color:#3582EE;font-weight:600}.orderBox .oneText{max-width:320rpx;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.noListText{padding:40rpx;text-align:center}.bottomTips{height:92rpx;line-height:92rpx;text-align:center;font-size:20rpx;color:#666666;background:#F8F9F9} .todayOrder{width:100%;height:80rpx;background:#F8F9F9;font-size:24rpx;line-height:74rpx;padding-left:20rpx}.orderBox{box-sizing:border-box;width:100%;background:#FFFFFF;border-radius:16px;padding:0 20rpx 34rpx;font-size:24rpx;margin-bottom:20rpx}.orderBox .header{height:160rpx;box-sizing:border-box;padding:40rpx 20rpx;display:flex;justify-content:space-between}.orderBox .header .status .failIcon{width:106rpx;height:106rpx}.orderBox .header .update{display:flex;color:#666}.orderBox .header .update .num{margin-left:12rpx;color:#333;font-weight:600;font-size:28rpx;font-weight:500}.orderBox .owner{font-size:24rpx}.orderBox .owner .name{display:flex;align-items:center;margin-bottom:8rpx;font-size:28rpx;font-weight:500}.orderBox .owner .name image{width:24rpx;height:24rpx;margin-left:16rpx}.orderBox .owner .carType{color:#999}.orderBox .orderContainer{display:flex;justify-content:space-between;flex-wrap:wrap}.orderBox .orderContainer .item{width:100%;display:flex;padding:0 20rpx;font-size:24rpx}.orderBox .orderContainer .item .label{width:140rpx;color:#999;margin-bottom:20rpx}.orderBox .orderContainer .item .oneText{max-width:320rpx;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.orderBox .orderContainer .item .twoText{max-width:420rpx;text-overflow:-o-ellipsis-lastline;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;white-space:wrap;word-break:normal}.orderBox .label{width:140rpx;color:#999;margin-bottom:20rpx}.orderBox .subOrdersList{display:flex;flex-direction:column;flex-wrap:wrap;padding:0 20rpx;width:100%}.orderBox .subOrdersList .label{width:140rpx;color:#999;margin-bottom:20rpx}.orderBox .subOrdersList .name{width:310px}.orderBox .subOrdersList .goodsList{display:flex}.orderBox .subOrdersList .goodsList .goodsListItem{flex:1;display:flex;flex-direction:column;flex-wrap:wrap}.orderBox .subOrdersList .goodsList .goodsListItem .goodsItem{display:flex;justify-content:space-between;margin-bottom:20rpx}.orderBox .subOrdersList .goodsList .goodsListItem .goodsItem .price{color:#666}.orderBox .subOrdersList .paySelect{display:flex}.orderBox .subOrdersList .guarantee{display:flex}.orderBox .subOrdersList .guarantee .goodsListItem{display:flex;flex-direction:column;flex-wrap:wrap}.orderBox .sellInfo{box-sizing:border-box;height:0;background:#F5F9FE;border-radius:8rpx;margin:40rpx 0 0;transition:all .5s;overflow:hidden}.orderBox .sellInfo.active{height:116rpx;padding:20rpx}.orderBox .sellInfo .info{display:inline-flex;width:100%}.orderBox .sellInfo .info .label{margin-bottom:0;height:40rpx}.orderBox .btnShow{display:flex;justify-content:center;position:relative;margin-top:28rpx}.orderBox .btnShow .arrowIcon image{width:44rpx;height:24rpx}.orderBox .btnShow .orderPrice{position:absolute;right:0;bottom:4rpx;color:#3582EE;font-weight:600}.orderBox .oneText{max-width:320rpx;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;word-break:break-all}.noListText{height:calc(100% - 80rpx);text-align:center;display:flex;justify-content:center;background-color:#fff;align-items:center;border-radius:12rpx}.bottomTips{height:92rpx;line-height:92rpx;text-align:center;font-size:20rpx;color:#666666;background:#F8F9F9}
...@@ -12,7 +12,12 @@ Component({ ...@@ -12,7 +12,12 @@ Component({
this.getStaffDayReport(n) this.getStaffDayReport(n)
// if (n) this.getLetter() // if (n) this.getLetter()
} }
} // 查询日期 }, // 查询日期
hidden: {
// 刷新列表
type: Boolean,
observer: function (n) {}
}
}, },
/** /**
......
...@@ -106,9 +106,13 @@ ...@@ -106,9 +106,13 @@
} }
} }
.cell.tips { .tipsContainer {
text-align: center; display: flex;
padding: 100rpx 0; align-items: center;
justify-content: center;
background-color: #fff;
height: calc(100% - 80rpx);
border-radius: 12rpx;
} }
.tipsShow { .tipsShow {
...@@ -130,7 +134,8 @@ ...@@ -130,7 +134,8 @@
} }
.boxContainer { .boxContainer {
border-radius: 16px 16px 0 0; // height: 100%;
border-radius: 12rpx 12rpx 0 0;
overflow: hidden; overflow: hidden;
background-color: #fff; background-color: #fff;
} }
\ No newline at end of file \ No newline at end of file
<!-- tabOperating/pages/index/components/staffCell/staffCell.wxml --> <!-- tabOperating/pages/index/components/staffCell/staffCell.wxml -->
<view class="header"> <!-- <view hidden="{{hidden}}"> -->
<scroll-view
hidden="{{hidden}}"
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
refresher-threshold="104"
style="height:100%;"
class="businessPage list"
refresher-triggered="{{triggered}}">
<view class="header">
<view>累计{{staffList.length}}名在职员工</view> <view>累计{{staffList.length}}名在职员工</view>
<view class="tips" bindtap="tipsShowPop"> <view class="tips" bindtap="tipsShowPop">
字段解释 字段解释
<image src="../../../../images/tipsIcon.png" /> <image src="../../../../images/tipsIcon.png" />
</view> </view>
</view> </view>
<view class="boxContainer"> <view class="boxContainer" wx:if="{{staffList.length}}">
<block wx:if="{{staffList.length}}">
<block <block
wx:for="{{staffList}}" wx:for="{{staffList}}"
wx:key="index" wx:key="index"
...@@ -42,9 +52,8 @@ ...@@ -42,9 +52,8 @@
</view> </view>
</block> </block>
<view class="bottomTips" wx:if="{{staffList.length>2}}">到底了~</view> <view class="bottomTips" wx:if="{{staffList.length>2}}">到底了~</view>
</block> </view>
<block wx:else> <view wx:else class=" tipsContainer">暂无数据</view>
<view class="cell tips">暂无数据</view> <!-- </view> -->
</block> </scroll-view>
</view>
.header{display:flex;justify-content:space-between;height:80rpx;line-height:80rpx;font-size:24rpx;padding:0 20rpx}.header .tips{display:flex;align-items:center;color:#999}.header .tips image{width:24rpx;height:24rpx;margin-left:10rpx}.cell{box-sizing:border-box;margin:20rpx;background-color:#fff}.cell .staffInfo{box-sizing:border-box;display:flex;justify-content:space-between;font-size:24rpx;padding-bottom:20rpx;height:172rpx}.cell .staffInfo .userInfo{display:flex;flex-direction:column;height:100%;justify-content:space-between;width:300rpx}.cell .staffInfo .userInfo .avatars{display:flex;align-items:center}.cell .staffInfo .userInfo .avatars image{width:72rpx;height:72rpx;margin-right:16rpx;border-radius:36rpx}.cell .staffInfo .statistic{width:250rpx;display:flex;flex-wrap:wrap;justify-content:space-between;flex-direction:column}.cell .staffInfo .statistic .item{display:flex;height:34rpx;justify-content:space-between}.cell .total{box-sizing:border-box;height:60rpx;background:#F5F9FE;border-radius:4px;color:#3582EE;font-size:24rpx;padding:12rpx}.cell.tips{text-align:center;padding:100rpx 0}.tipsShow{font-size:28rpx}.tipsShow .item{margin-bottom:20rpx}.bottomTips{height:92rpx;line-height:92rpx;text-align:center;font-size:20rpx;color:#666666;background:#F8F9F9}.boxContainer{border-radius:16px 16px 0 0;overflow:hidden;background-color:#fff} .header{display:flex;justify-content:space-between;height:80rpx;line-height:80rpx;font-size:24rpx;padding:0 20rpx}.header .tips{display:flex;align-items:center;color:#999}.header .tips image{width:24rpx;height:24rpx;margin-left:10rpx}.cell{box-sizing:border-box;margin:20rpx;background-color:#fff}.cell .staffInfo{box-sizing:border-box;display:flex;justify-content:space-between;font-size:24rpx;padding-bottom:20rpx;height:172rpx}.cell .staffInfo .userInfo{display:flex;flex-direction:column;height:100%;justify-content:space-between;width:300rpx}.cell .staffInfo .userInfo .avatars{display:flex;align-items:center}.cell .staffInfo .userInfo .avatars image{width:72rpx;height:72rpx;margin-right:16rpx;border-radius:36rpx}.cell .staffInfo .statistic{width:250rpx;display:flex;flex-wrap:wrap;justify-content:space-between;flex-direction:column}.cell .staffInfo .statistic .item{display:flex;height:34rpx;justify-content:space-between}.cell .total{box-sizing:border-box;height:60rpx;background:#F5F9FE;border-radius:4px;color:#3582EE;font-size:24rpx;padding:12rpx}.tipsContainer{display:flex;align-items:center;justify-content:center;background-color:#fff;height:calc(100% - 80rpx);border-radius:12rpx}.tipsShow{font-size:28rpx}.tipsShow .item{margin-bottom:20rpx}.bottomTips{height:92rpx;line-height:92rpx;text-align:center;font-size:20rpx;color:#666666;background:#F8F9F9}.boxContainer{border-radius:12rpx 12rpx 0 0;overflow:hidden;background-color:#fff}
...@@ -102,7 +102,7 @@ page { ...@@ -102,7 +102,7 @@ page {
height: 106rpx; height: 106rpx;
padding: 0 24rpx; padding: 0 24rpx;
background-color: #fff; background-color: #fff;
border-radius: 32rpx 32rpx 0 0; border-radius: 12rpx;
.date { .date {
height: 100%; height: 100%;
...@@ -124,17 +124,17 @@ page { ...@@ -124,17 +124,17 @@ page {
justify-content: center; justify-content: center;
// padding-left: 25rpx; // padding-left: 25rpx;
// margin-right: 110rpx; // margin-right: 110rpx;
font-size: 24rpx; font-size: 26rpx;
// color: #333; // color: #333;
color: #000; color: #000;
// width: 22%;
.arrow { .arrow {
font-weight: 300; width: 14rpx;
font-size: 40rpx; height: 20rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
// &::before { // &::before {
// position: absolute; // position: absolute;
// left: 25%; // left: 25%;
...@@ -179,11 +179,11 @@ page { ...@@ -179,11 +179,11 @@ page {
// width: 22%; // width: 22%;
// color: #333; // color: #333;
color: #000; color: #000;
font-size: 24rpx; font-size: 26rpx;
.arrow { .arrow {
font-weight: 300; width: 14rpx;
font-size: 40rpx; height: 20rpx;
margin-left: 10rpx; margin-left: 10rpx;
} }
...@@ -204,6 +204,11 @@ page { ...@@ -204,6 +204,11 @@ page {
// } // }
} }
.hidden {
visibility: hidden;
}
.item { .item {
// display: inline; // display: inline;
// color: #666; // color: #666;
...@@ -243,6 +248,7 @@ page { ...@@ -243,6 +248,7 @@ page {
height: 88rpx; height: 88rpx;
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
border-radius: 0 0 12rpx 12rpx;
} }
.tabContainer { .tabContainer {
...@@ -253,23 +259,23 @@ page { ...@@ -253,23 +259,23 @@ page {
height: 64rpx; height: 64rpx;
margin: 0 auto; margin: 0 auto;
background: #F7F7F7; background: #F7F7F7;
border-radius: 8px; border-radius: 8rpx;
.tabItem { .tabItem {
width: 202rpx; width: 202rpx;
height: 56rpx; height: 50rpx;
text-align: center; text-align: center;
line-height: 56rpx; line-height: 50rpx;
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
border: 2px solid #F7F7F7; // border: 2px solid #F7F7F7;
transition: all .5s; transition: all .5s;
&.active { &.active {
background: #FFFFFF; background: #FFFFFF;
font-weight: 600; font-weight: 600;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.06); box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.06);
border-radius: 4px; border-radius: 8rpx;
color: #333; color: #333;
} }
} }
...@@ -277,7 +283,7 @@ page { ...@@ -277,7 +283,7 @@ page {
} }
.scrollStyle { .componentContainer {
height: calc(100% - 194rpx); height: calc(100% - 194rpx);
// background-color: #fff; // background-color: #fff;
......
<!-- tabOperating/pages/index.wxml --> <!-- tabOperating/pages/index.wxml -->
<!-- src引入filter.wxs, module给模块起名 --> <!-- src引入filter.wxs, module给模块起名 -->
<!-- <wxs src="../index.wxs" module="filter" /> --> <wxs src="../index.wxs" module="filter" />
<!-- <view class="" style="height:{{statusBarHeight}}px" /> --> <!-- <view class="" style="height:{{statusBarHeight}}px" /> -->
<!-- 自定义的导航栏 --> <!-- 自定义的导航栏 -->
<view class="layout {{flag?'opacity':''}}"> <view class="layout {{flag?'opacity':''}}">
...@@ -26,11 +26,11 @@ ...@@ -26,11 +26,11 @@
<view class="headerContainer" style="margin-top:{{statusBarHeight}}px"> <view class="headerContainer" style="margin-top:{{statusBarHeight}}px">
<view class="businessDataContainer"> <view class="businessDataContainer">
<view class="turnover"> <view class="turnover">
<view class="num">¥{{todayData.totalOrderMoney}}.00</view> <view class="num">¥{{filter.toDecimal2(todayData.totalOrderMoney)}}</view>
<view class="lab">今日营业额/元</view> <view class="lab">今日营业额/元</view>
</view> </view>
<view class="bill"> <view class="bill">
<view class="num">{{todayData.totalAdd}}</view> <view class="num">{{todayData.totalUpgrade}}</view>
<view class="lab">今日单量/单</view> <view class="lab">今日单量/单</view>
</view> </view>
</view> </view>
...@@ -54,12 +54,16 @@ ...@@ -54,12 +54,16 @@
<view class="date"> <view class="date">
<!-- <view class="" /> --> <!-- <view class="" /> -->
<view class="onBeforeDay item" data-type="before" bindtap="dateChange"> <view class="onBeforeDay item" data-type="before" bindtap="dateChange">
<view class="arrow">{{'<'}}</view> <!-- <view class="arrow">{{'<'}}</view> -->
<image
class="arrow"
src="../../images/leftArrow.png"
mode=""
binderror=""
bindload="" />
前一天 前一天
</view> </view>
<!-- <!-- forceFullSucreen="{{bottomLift>0?true:false}}" -->
forceFullSucreen="{{bottomLift>0?true:false}}"
-->
<calendar <calendar
id="calender" id="calender"
class="calendar" class="calendar"
...@@ -78,10 +82,15 @@ ...@@ -78,10 +82,15 @@
<image class="solidArrow" src="../../images/solidArrow.png" /> <image class="solidArrow" src="../../images/solidArrow.png" />
</view> </view>
</calendar> </calendar>
<!-- wx:if="{{dateObj.maxDate!=dateObj.today}}" --> <!-- -->
<view class="nextDay item" data-type="next" bindtap="dateChange"> <view class="nextDay item {{dateObj.maxDate==dateObj.today?'hidden':''}}" data-type="next" bindtap="dateChange">
后一天 后一天
<view class="arrow">{{'>'}}</view> <image
class="arrow"
src="../../images/rightArrow.png"
mode=""
binderror=""
bindload="" />
</view> </view>
</view> </view>
</view> </view>
...@@ -97,15 +106,19 @@ ...@@ -97,15 +106,19 @@
</view> </view>
</view> </view>
</view> </view>
<scroll-view class="scrollStyle" scroll-y> <!-- wx:if="{{activeTab==0}}" wx:if="{{activeTab==1}}" wx:if="{{activeTab==2}}" -->
<!-- hidden="{{activeTab!=0}}" -->
<view class="componentContainer">
<businessCell <businessCell
id="businessCell" id="businessCell"
wx:if="{{activeTab==0}}" wx:if="{{activeTab==0}}"
refresh="{{refresh}}" hidden="{{activeTab!=0}}"
dataDateStr="{{dateObj.today}}" /> dataDateStr="{{dateObj.today}}" />
<staffCell id="staffCell" wx:if="{{activeTab==1}}" dataDateStr="{{dateObj.today}}" /> <staffCell id="staffCell" wx:if="{{activeTab==1}}" dataDateStr="{{dateObj.today}}" />
<conquestCell id="conquestCell" wx:if="{{activeTab==2}}" date="{{dateObj.today}}" /> <conquestCell id="conquestCell" wx:if="{{activeTab==2}}" date="{{dateObj.today}}" />
</scroll-view> </view>
<!-- <scroll-view class="scrollStyle" scroll-y> -->
<!-- </scroll-view> -->
<!-- <block class="componentContainer" wx:for="{{tabList}}" wx:key="index"> <!-- <block class="componentContainer" wx:for="{{tabList}}" wx:key="index">
<block wx:if="{{item.active}}"> <block wx:if="{{item.active}}">
<template is="{{ item.componentsName}}" data="{{testData}}" /> <template is="{{ item.componentsName}}" data="{{testData}}" />
...@@ -128,9 +141,9 @@ ...@@ -128,9 +141,9 @@
<image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" /> <image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" />
</view> </view>
</view> </view>
</view> </view>
<!-- isFormComponent="{{true}}" bind:closePop="closePop" --> <!-- isFormComponent="{{true}}" bind:closePop="closePop" -->
<remark-popup <remark-popup
show="{{showRemark}}" show="{{showRemark}}"
isLimitNum="{{remarkObj.type== 'add'?false:true}}" isLimitNum="{{remarkObj.type== 'add'?false:true}}"
title="{{remarkObj.type== 'add'?'新增字段':'核准数据'}}" title="{{remarkObj.type== 'add'?'新增字段':'核准数据'}}"
...@@ -139,7 +152,7 @@ ...@@ -139,7 +152,7 @@
placeholder="{{remarkObj.type == 'add'?remarkObj.placeholderAdd:remarkObj.placeholderUpdate}}" placeholder="{{remarkObj.type == 'add'?remarkObj.placeholderAdd:remarkObj.placeholderUpdate}}"
maxlength="10" maxlength="10"
value="{{remarkObj.remarkValue}}" /> value="{{remarkObj.remarkValue}}" />
<tipsPopup <tipsPopup
title="字段解释" title="字段解释"
show="{{businessTipsShow}}" show="{{businessTipsShow}}"
bindconfirm="confirm" bindconfirm="confirm"
...@@ -152,8 +165,8 @@ ...@@ -152,8 +165,8 @@
<view class="item">今日太阳膜均客单价: 当日贴膜升级工单收入总和与贴膜工单量的均值</view> <view class="item">今日太阳膜均客单价: 当日贴膜升级工单收入总和与贴膜工单量的均值</view>
<view class="item">累计剩余未到店贴膜台次: 累计已发券未核销的客户数量</view> <view class="item">累计剩余未到店贴膜台次: 累计已发券未核销的客户数量</view>
<view class="item">其他产品总营业额: 除贴膜产品收入总和外,本店当日其他类型产品的收入总和</view> <view class="item">其他产品总营业额: 除贴膜产品收入总和外,本店当日其他类型产品的收入总和</view>
</tipsPopup> </tipsPopup>
<tipsPopup <tipsPopup
title="字段解释" title="字段解释"
show="{{staffTipsShow}}" show="{{staffTipsShow}}"
bindconfirm="confirm" bindconfirm="confirm"
...@@ -163,6 +176,6 @@ ...@@ -163,6 +176,6 @@
<view class="item">贴膜升级率:当日该员工的贴膜升级率</view> <view class="item">贴膜升级率:当日该员工的贴膜升级率</view>
<view class="item">均客单价:当日该员工创造的贴膜收入总和的均值</view> <view class="item">均客单价:当日该员工创造的贴膜收入总和的均值</view>
<view class="item">累计业绩:该员工累计创造的营收数据(累计接车数量/累计总贴膜升级率/累计均客单价)</view> <view class="item">累计业绩:该员工累计创造的营收数据(累计接车数量/累计总贴膜升级率/累计均客单价)</view>
</tipsPopup> </tipsPopup>
<!-- bind:close="onClose" bind:confirm="onConfirm" --> <!-- bind:close="onClose" bind:confirm="onConfirm" -->
page{background-color:#F8F9F9;font-size:24rpx}.layout{opacity:0;height:100vh;display:flex;flex-direction:column}.opacity{opacity:1}.move{transform:rotate(-180deg) translateY(0)}.headerContainer{height:306rpx;background-color:#3582EE;width:100%}.headerContainer .businessDataContainer{display:flex;width:100%;height:186rpx;text-align:center;color:#FFFFFF}.headerContainer .businessDataContainer .turnover,.headerContainer .businessDataContainer .bill{flex:1;display:flex;justify-content:center;flex-direction:column}.headerContainer .businessDataContainer .num{margin-bottom:10rpx;font-size:44rpx;font-weight:600}.headerContainer .businessDataContainer .lab{font-size:24rpx}.headerContainer .menu{width:710rpx;margin:0 auto;height:186rpx;background-color:#fff;box-shadow:0px 4px 20px 0px rgba(0,0,0,0.1);border-radius:12rpx;display:grid;align-items:center;grid-template-columns:repeat(4, 1fr);color:#666}.headerContainer .menu .item{display:flex;align-items:center;flex-direction:column;font-size:24rpx}.headerContainer .menu .item image{width:80rpx;height:80rpx;margin-bottom:8rpx}.Container{width:710rpx;flex:1;margin:90rpx auto 75rpx;overflow:hidden}.Container .dateContainer{height:106rpx;padding:0 24rpx;background-color:#fff;border-radius:32rpx 32rpx 0 0}.Container .dateContainer .date{height:100%;width:100%;position:relative;display:flex;align-items:center}.Container .dateContainer .date .onBeforeDay{flex:1;display:flex;position:relative;align-items:center;justify-content:center;font-size:24rpx;color:#000}.Container .dateContainer .date .onBeforeDay .arrow{font-weight:300;font-size:40rpx;margin-right:10rpx}.Container .dateContainer .date .nextDay{flex:1;display:flex;align-items:center;justify-content:center;position:relative;color:#000;font-size:24rpx}.Container .dateContainer .date .nextDay .arrow{font-weight:300;font-size:40rpx;margin-left:10rpx}.Container .dateContainer .date .item .solidArrow{width:14rpx;height:10rpx;margin-left:10rpx;margin-top:5rpx}.Container .dateContainer .date .dateNum{color:#3582EE;padding:12rpx 24rpx;border-radius:8rpx;border:1px solid #3582EE}.Container .componentContainer{height:1000rpx}.Container .cellTab{height:88rpx;width:100%;background-color:#fff}.Container .tabContainer{display:flex;align-items:center;justify-content:space-around;width:670rpx;height:64rpx;margin:0 auto;background:#F7F7F7;border-radius:8px}.Container .tabContainer .tabItem{width:202rpx;height:56rpx;text-align:center;line-height:56rpx;font-size:28rpx;color:#666;border:2px solid #F7F7F7;transition:all .5s}.Container .tabContainer .tabItem.active{background:#FFFFFF;font-weight:600;box-shadow:0px 0px 8px 0px rgba(0,0,0,0.06);border-radius:4px;color:#333}.Container .scrollStyle{height:calc(100% - 194rpx);background:#F8F9F9}.Container ::-webkit-scrollbar{width:0;height:0;color:transparent}.btn-box{position:fixed;bottom:0;left:0;width:100%;background-color:#fff;z-index:2}.btn-box .tips{display:flex;justify-content:center;align-items:center;height:75rpx;color:#3582EE;font-size:24rpx;font-weight:600;background-color:#EFF5FE}.btn-box .contentText{margin:0 20rpx}.tipsIcon,.closeIcon{width:32rpx;height:32rpx}.isFullSucreen-btn{padding-bottom:68rpx}.navigation-title{display:flex;align-items:center;justify-content:center}.navigation-title-text{text-align:center;max-width:calc(100% - 24rpx)}.navigation-title .arrow{width:20rpx;height:16rpx;margin-left:4rpx;transform:translateY(25%);transition:all 0.5s}.navigation-title .move{transform:rotate(-180deg) translateY(0)}.tipsShow .item{font-size:28rpx;margin-bottom:20rpx} page{background-color:#F8F9F9;font-size:24rpx}.layout{opacity:0;height:100vh;display:flex;flex-direction:column}.opacity{opacity:1}.move{transform:rotate(-180deg) translateY(0)}.headerContainer{height:306rpx;background-color:#3582EE;width:100%}.headerContainer .businessDataContainer{display:flex;width:100%;height:186rpx;text-align:center;color:#FFFFFF}.headerContainer .businessDataContainer .turnover,.headerContainer .businessDataContainer .bill{flex:1;display:flex;justify-content:center;flex-direction:column}.headerContainer .businessDataContainer .num{margin-bottom:10rpx;font-size:44rpx;font-weight:600}.headerContainer .businessDataContainer .lab{font-size:24rpx}.headerContainer .menu{width:710rpx;margin:0 auto;height:186rpx;background-color:#fff;box-shadow:0px 4px 20px 0px rgba(0,0,0,0.1);border-radius:12rpx;display:grid;align-items:center;grid-template-columns:repeat(4, 1fr);color:#666}.headerContainer .menu .item{display:flex;align-items:center;flex-direction:column;font-size:24rpx}.headerContainer .menu .item image{width:80rpx;height:80rpx;margin-bottom:8rpx}.Container{width:710rpx;flex:1;margin:90rpx auto 75rpx;overflow:hidden}.Container .dateContainer{height:106rpx;padding:0 24rpx;background-color:#fff;border-radius:12rpx}.Container .dateContainer .date{height:100%;width:100%;position:relative;display:flex;align-items:center}.Container .dateContainer .date .onBeforeDay{flex:1;display:flex;position:relative;align-items:center;justify-content:center;font-size:26rpx;color:#000}.Container .dateContainer .date .onBeforeDay .arrow{width:14rpx;height:20rpx;margin-right:10rpx}.Container .dateContainer .date .nextDay{flex:1;display:flex;align-items:center;justify-content:center;position:relative;color:#000;font-size:26rpx}.Container .dateContainer .date .nextDay .arrow{width:14rpx;height:20rpx;margin-left:10rpx}.Container .dateContainer .date .hidden{visibility:hidden}.Container .dateContainer .date .item .solidArrow{width:14rpx;height:10rpx;margin-left:10rpx;margin-top:5rpx}.Container .dateContainer .date .dateNum{color:#3582EE;padding:12rpx 24rpx;border-radius:8rpx;border:1px solid #3582EE}.Container .componentContainer{height:1000rpx}.Container .cellTab{height:88rpx;width:100%;background-color:#fff;border-radius:0 0 12rpx 12rpx}.Container .tabContainer{display:flex;align-items:center;justify-content:space-around;width:670rpx;height:64rpx;margin:0 auto;background:#F7F7F7;border-radius:8rpx}.Container .tabContainer .tabItem{width:202rpx;height:50rpx;text-align:center;line-height:50rpx;font-size:28rpx;color:#666;transition:all .5s}.Container .tabContainer .tabItem.active{background:#FFFFFF;font-weight:600;box-shadow:0px 0px 8px 0px rgba(0,0,0,0.06);border-radius:8rpx;color:#333}.Container .componentContainer{height:calc(100% - 194rpx);background:#F8F9F9}.Container ::-webkit-scrollbar{width:0;height:0;color:transparent}.btn-box{position:fixed;bottom:0;left:0;width:100%;background-color:#fff;z-index:2}.btn-box .tips{display:flex;justify-content:center;align-items:center;height:75rpx;color:#3582EE;font-size:24rpx;font-weight:600;background-color:#EFF5FE}.btn-box .contentText{margin:0 20rpx}.tipsIcon,.closeIcon{width:32rpx;height:32rpx}.isFullSucreen-btn{padding-bottom:68rpx}.navigation-title{display:flex;align-items:center;justify-content:center}.navigation-title-text{text-align:center;max-width:calc(100% - 24rpx)}.navigation-title .arrow{width:20rpx;height:16rpx;margin-left:4rpx;transform:translateY(25%);transition:all 0.5s}.navigation-title .move{transform:rotate(-180deg) translateY(0)}.tipsShow .item{font-size:28rpx;margin-bottom:20rpx}
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
padding: 20rpx 20rpx 24rpx; padding: 20rpx 20rpx 24rpx;
color: #666; color: #333;
border-bottom: 1rpx solid #C3C3C3; border-bottom: 1rpx solid #C3C3C3;
width: 100%; width: 100%;
...@@ -170,6 +170,7 @@ ...@@ -170,6 +170,7 @@
text-align: center; text-align: center;
max-width: calc(100% - 24rpx); max-width: calc(100% - 24rpx);
} }
.navigation-title .arrow { .navigation-title .arrow {
width: 20rpx; width: 20rpx;
height: 16rpx; height: 16rpx;
...@@ -177,6 +178,7 @@ ...@@ -177,6 +178,7 @@
transform: translateY(25%); transform: translateY(25%);
transition: all 0.5s; transition: all 0.5s;
} }
.arrow { .arrow {
width: 10rpx; width: 10rpx;
height: 6rpx; height: 6rpx;
......
...@@ -3,7 +3,14 @@ ...@@ -3,7 +3,14 @@
<wxs src="../index.wxs" module="filter" /> <wxs src="../index.wxs" module="filter" />
<view class="layout {{flag?'opacity':''}}"> <view class="layout {{flag?'opacity':''}}">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{true}}"> <navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{true}}">
<picker range="{{merchantRange}}" value="{{subIndex}}" range-key="merchantName" bindchange="changePicker" bindtap="tapPicker" bindcancel="tapPicker" disabled="{{merchantRange.length < 2}}"> <picker
range="{{merchantRange}}"
value="{{subIndex}}"
range-key="merchantName"
bindchange="changePicker"
bindtap="tapPicker"
bindcancel="tapPicker"
disabled="{{merchantRange.length < 2}}">
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide"> <view class="navigation-title-text text-hide">
{{merchantRange[subIndex].merchantName}} {{merchantRange[subIndex].merchantName}}
...@@ -17,7 +24,19 @@ ...@@ -17,7 +24,19 @@
<view class="header" style="margin-top:{{statusBarHeight}}px"> <view class="header" style="margin-top:{{statusBarHeight}}px">
<view class="date"> <view class="date">
<!-- {{dateObj.maxDate}} --> <!-- {{dateObj.maxDate}} -->
<CalendarMonth allowSameDay shortcut bindselect='rangeSelect' bindtapCalendar='tapCalendar' rangeAll dateType='range' calenderColor='#3582EE' vertical minDate="2020-10-01" maxDate="{{dateObj.today}}" forceFullSucreen="{{bottomLift>0?true:false}}" isComponents> <CalendarMonth
allowSameDay
shortcut
bindselect='rangeSelect'
bindtapCalendar='tapCalendar'
rangeAll
dateType='range'
calenderColor='#3582EE'
vertical
minDate="2020-10-01"
maxDate="{{dateObj.today}}"
forceFullSucreen="{{bottomLift>0?true:false}}"
isComponents>
<view class="item dateNum"> <view class="item dateNum">
<block wx:if="{{dateObj.type=='year'}}">{{dateObj.label}}年</block> <block wx:if="{{dateObj.type=='year'}}">{{dateObj.label}}年</block>
<block wx:else> <block wx:else>
...@@ -64,10 +83,23 @@ ...@@ -64,10 +83,23 @@
<!-- show-scrollbar="{{false}}" scroll-x bindscrolltoupper="getAccumulateList" --> <!-- show-scrollbar="{{false}}" scroll-x bindscrolltoupper="getAccumulateList" -->
<!-- bindrefresherrefresh="search" --> <!-- bindrefresherrefresh="search" -->
<!-- bindscrolltolower="scrollonReachBottom" --> <!-- bindscrolltolower="scrollonReachBottom" -->
<scroll-view scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" style="height:100%;" class="list" refresher-triggered="{{triggered}}"> <scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
style="height:100%;"
class="list"
refresher-triggered="{{triggered}}">
<block wx:for="{{tableList}}" wx:for-item="tableItem" wx:key="index"> <block wx:for="{{tableList}}" wx:for-item="tableItem" wx:key="index">
<view class="table-th"> <view class="table-th">
<block wx:for="{{tableHeaderList}}" wx:for-item="item" wx:for-index="tdIndex" wx:key="tdIndex"> <block
wx:for="{{tableHeaderList}}"
wx:for-item="item"
wx:for-index="tdIndex"
wx:key="tdIndex">
<!-- <view class="table-td">{{tableHeaderList[tdIndex]}}</view> --> <!-- <view class="table-td">{{tableHeaderList[tdIndex]}}</view> -->
<view class="table-td" wx:if="{{tableHeaderList[tdIndex]['propName']=='dataDateStr'&&dateObj.type =='day'}}"> <view class="table-td" wx:if="{{tableHeaderList[tdIndex]['propName']=='dataDateStr'&&dateObj.type =='day'}}">
{{filter.dateFormatSlash(tableItem[tableHeaderList[tdIndex]['propName']])}} {{filter.dateFormatSlash(tableItem[tableHeaderList[tdIndex]['propName']])}}
...@@ -98,3 +130,4 @@ ...@@ -98,3 +130,4 @@
</view> </view>
</view> </view>
</view> </view>
.layout{opacity:0;height:100vh;display:flex;flex-direction:column}.opacity{opacity:1}.header{box-sizing:border-box;width:100%;height:352rpx;background:#3582EE;padding:40rpx;display:flex;flex-direction:column;justify-content:space-between;color:#fff;font-size:24rpx}.header .dateNum{display:flex;align-items:center;white-space:nowrap;font-size:24rpx}.header .turnover{width:100%;text-align:center}.header .turnover .num{font-size:60rpx;font-weight:600;margin-bottom:10rpx}.header .orderStatistics{display:flex;padding:0 40rpx;justify-content:space-between}.header .orderStatistics .item{display:flex;align-items:flex-end}.header .orderStatistics .item .unit{display:flex;align-items:flex-end;height:100%;margin-bottom:8rpx}.header .orderStatistics .item .num{display:inline;font-size:44rpx;font-weight:600;margin-left:16rpx}.table{height:calc(100vh - 352rpx);box-sizing:border-box;overflow:hidden}.tableContainer{height:100%;overflow:hidden;box-sizing:border-box;padding:20rpx 20rpx 0}.tableContainer .table-header{box-sizing:border-box;display:flex;padding:20rpx 20rpx 24rpx;color:#666;border-bottom:1rpx solid #C3C3C3;width:100%}.tableContainer .table-header .tableHeader-td:nth-child(1){width:200rpx}.tableContainer .table-header .tableHeader-td:nth-child(n+2){flex:1;text-align:center}.tableContainer .list{box-sizing:border-box}.tableContainer .table-body{height:calc(100% - 88rpx);overflow:hidden;display:flex;flex-direction:column}.tableContainer .table-body .table-th{display:flex;padding:16rpx 20rpx;box-sizing:border-box;color:#666}.tableContainer .table-body .table-th .table-td:nth-child(1){width:200rpx}.tableContainer .table-body .table-th .table-td:nth-child(n+2){flex:1;text-align:center}.tableContainer .table-body .tips{margin-top:40rpx;text-align:center;font-size:24rpx}.tips-nothing{width:100%;padding:50rpx 0;text-align:center}::-webkit-scrollbar{width:0;height:0;color:transparent}.navigation-title{display:flex;align-items:center;justify-content:center}.navigation-title-text{text-align:center;max-width:calc(100% - 24rpx)}.navigation-title .arrow{width:20rpx;height:16rpx;margin-left:4rpx;transform:translateY(25%);transition:all 0.5s}.arrow{width:10rpx;height:6rpx;margin-left:12rpx;transform:translateY(25%);transition:all 0.5s}.move{transform:rotate(-180deg) translateY(0)} .layout{opacity:0;height:100vh;display:flex;flex-direction:column}.opacity{opacity:1}.header{box-sizing:border-box;width:100%;height:352rpx;background:#3582EE;padding:40rpx;display:flex;flex-direction:column;justify-content:space-between;color:#fff;font-size:24rpx}.header .dateNum{display:flex;align-items:center;white-space:nowrap;font-size:24rpx}.header .turnover{width:100%;text-align:center}.header .turnover .num{font-size:60rpx;font-weight:600;margin-bottom:10rpx}.header .orderStatistics{display:flex;padding:0 40rpx;justify-content:space-between}.header .orderStatistics .item{display:flex;align-items:flex-end}.header .orderStatistics .item .unit{display:flex;align-items:flex-end;height:100%;margin-bottom:8rpx}.header .orderStatistics .item .num{display:inline;font-size:44rpx;font-weight:600;margin-left:16rpx}.table{height:calc(100vh - 352rpx);box-sizing:border-box;overflow:hidden}.tableContainer{height:100%;overflow:hidden;box-sizing:border-box;padding:20rpx 20rpx 0}.tableContainer .table-header{box-sizing:border-box;display:flex;padding:20rpx 20rpx 24rpx;color:#333;border-bottom:1rpx solid #C3C3C3;width:100%}.tableContainer .table-header .tableHeader-td:nth-child(1){width:200rpx}.tableContainer .table-header .tableHeader-td:nth-child(n+2){flex:1;text-align:center}.tableContainer .list{box-sizing:border-box}.tableContainer .table-body{height:calc(100% - 88rpx);overflow:hidden;display:flex;flex-direction:column}.tableContainer .table-body .table-th{display:flex;padding:16rpx 20rpx;box-sizing:border-box;color:#666}.tableContainer .table-body .table-th .table-td:nth-child(1){width:200rpx}.tableContainer .table-body .table-th .table-td:nth-child(n+2){flex:1;text-align:center}.tableContainer .table-body .tips{margin-top:40rpx;text-align:center;font-size:24rpx}.tips-nothing{width:100%;padding:50rpx 0;text-align:center}::-webkit-scrollbar{width:0;height:0;color:transparent}.navigation-title{display:flex;align-items:center;justify-content:center}.navigation-title-text{text-align:center;max-width:calc(100% - 24rpx)}.navigation-title .arrow{width:20rpx;height:16rpx;margin-left:4rpx;transform:translateY(25%);transition:all 0.5s}.arrow{width:10rpx;height:6rpx;margin-left:12rpx;transform:translateY(25%);transition:all 0.5s}.move{transform:rotate(-180deg) translateY(0)}
...@@ -220,16 +220,16 @@ Page({ ...@@ -220,16 +220,16 @@ Page({
// 获取种草详情 // 获取种草详情
getGrass: function (orderCode) { getGrass: function (orderCode) {
let _this = this let _this = this
api // api
.getGrassDetail({ // .getGrassDetail({
orderCode // orderCode
}) // })
.then(res => { // .then(res => {
let data = res.data || {} // let data = res.data || {}
data.updatedDateTime = wx.$util.dateFormatter(data.updatedDate) // data.updatedDateTime = wx.$util.dateFormatter(data.updatedDate)
_this.setData({ // _this.setData({
grassInfo: data || {} // grassInfo: data || {}
}) // })
}) // })
} }
}) })
...@@ -260,16 +260,16 @@ Page({ ...@@ -260,16 +260,16 @@ Page({
// 获取种草详情 // 获取种草详情
getGrass: function (orderCode) { getGrass: function (orderCode) {
let _this = this let _this = this
api // api
.getGrassDetail({ // .getGrassDetail({
orderCode // orderCode
}) // })
.then(res => { // .then(res => {
let data = res.data || {} // let data = res.data || {}
data.updatedDateTime = wx.$util.dateFormatter(data.updatedDate) // data.updatedDateTime = wx.$util.dateFormatter(data.updatedDate)
_this.setData({ // _this.setData({
grassInfo: data || {} // grassInfo: data || {}
}) // })
}) // })
} }
}) })
...@@ -118,7 +118,7 @@ module.exports = { ...@@ -118,7 +118,7 @@ module.exports = {
4: { 4: {
text: '已支付', text: '已支付',
color: '#14CC68', color: '#14CC68',
background: '#F3F7FC' background: '#dffbec'
}, },
6: { 6: {
text: '已评价', text: '已评价',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!