Commit 2a0a0779 by chenwq

bug修复,样式走查

1 parent 6dff304b
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
border-bottom: 2rpx dotted #CCCED1; border-bottom: 2rpx dotted #CCCED1;
.message { .message {
width: calc(100% - 36rpx);
display: flex; display: flex;
.avatar { .avatar {
...@@ -106,10 +107,12 @@ ...@@ -106,10 +107,12 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
width: calc(100% - 84rpx);
.name { .name {
color: #323436; color: #323436;
font-size: 28rpx; font-size: 28rpx;
word-break: break-all;
} }
.tips { .tips {
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
.message { .message {
width: calc(100% - 84rpx);
display: flex; display: flex;
.avatar { .avatar {
...@@ -57,10 +58,12 @@ ...@@ -57,10 +58,12 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
width: calc(100% - 84rpx);
.merchant { .merchant {
color: #323436; color: #323436;
font-size: 28rpx; font-size: 28rpx;
word-break: break-all;
} }
.contact { .contact {
......
...@@ -92,6 +92,7 @@ ...@@ -92,6 +92,7 @@
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
.message { .message {
width: calc(100% - 36rpx);
display: flex; display: flex;
.avatar { .avatar {
...@@ -105,10 +106,12 @@ ...@@ -105,10 +106,12 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
justify-content: center; justify-content: center;
width: calc(100% - 84rpx);
.merchant { .merchant {
color: #323436; color: #323436;
font-size: 28rpx; font-size: 28rpx;
word-break: break-all;
} }
.contact { .contact {
......
...@@ -58,11 +58,13 @@ Component({ ...@@ -58,11 +58,13 @@ Component({
merchantFormList: [ merchantFormList: [
{ {
label: '预计活动时间', label: '预计活动时间',
name: 'time' name: 'time',
className: 'medium-no-bold'
}, },
{ {
label: '实际活动时间', label: '实际活动时间',
name: 'realTime' name: 'realTime',
className: 'medium-no-bold'
}, },
{ {
label: '订单数', label: '订单数',
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.box { .box {
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 8rpx; border-radius: 16rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
&-txt { &-txt {
font-family: "ali-medium"; font-family: "ali-medium";
font-weight: 500; // font-weight: 500;
height: 40rpx; height: 40rpx;
line-height: 40rpx; line-height: 40rpx;
margin-bottom: 12rpx; margin-bottom: 12rpx;
...@@ -132,6 +132,11 @@ ...@@ -132,6 +132,11 @@
color: #323436; color: #323436;
} }
&-txt.medium-no-bold {
font-family: "ali-medium";
font-weight: 400;
}
&-txt.red { &-txt.red {
color: #F35251; color: #F35251;
} }
......
...@@ -15,14 +15,14 @@ ...@@ -15,14 +15,14 @@
<view class="utilBoxTitle">常用工具</view> <view class="utilBoxTitle">常用工具</view>
<view class="boxItemCon"> <view class="boxItemCon">
<view wx:for="{{boxItemList}}" wx:key="index" class="{{item.isHide ? '': 'item'}}" data-path="{{item.path}}" data-item="{{item}}" bind:tap="navGO"> <view wx:for="{{boxItemList}}" wx:key="index" class="{{item.isHide ? '': 'item'}}" data-path="{{item.path}}" data-item="{{item}}" bind:tap="navGO">
<view wx:if="{{!item.isHide}}"> <block wx:if="{{!item.isHide}}">
<view class="imgcon"> <view class="imgcon">
<view wx:if="{{item.hasRedPot}}" class="redPot" hidden="{{!item.isRead}}" ></view> <view wx:if="{{item.hasRedPot}}" class="redPot" hidden="{{!item.isRead}}" ></view>
<view wx:if="{{item.newTips}}" class="new" hidden="{{!versionData.isNew}}">new</view> <view wx:if="{{item.newTips}}" class="new" hidden="{{!versionData.isNew}}">new</view>
<glsx-image class="img" src="{{IMAGES['icon' + index]}}" /> <glsx-image class="img" src="{{IMAGES['icon' + index]}}" />
</view> </view>
<view class="name">{{item.name}}</view> <view class="name">{{item.name}}</view>
</view> </block>
</view> </view>
<!-- <view class="update" bindtap="jump"> <!-- <view class="update" bindtap="jump">
<view class="icon"> <view class="icon">
......
...@@ -23,8 +23,8 @@ Component({ ...@@ -23,8 +23,8 @@ Component({
}, },
tabBarStyle: { tabBarStyle: {
type: Number, type: Number,
observer: function(n) { observer: function (n) {
if (n) this.setData({emptyDataStyle: `height: calc(100vh - ${n}px - 88rpx - 24rpx)`}) if (n) this.setData({ emptyDataStyle: `height: calc(100vh - ${n}px - 88rpx - 24rpx)` })
} }
} }
}, },
...@@ -234,7 +234,7 @@ Component({ ...@@ -234,7 +234,7 @@ Component({
let _currentDate = new Date() let _currentDate = new Date()
// 获取前n个月的日期 // 获取前n个月的日期
let _endMonthDate = new Date() let _endMonthDate = new Date()
let searchStart = '' let searchStart = startTime ? new Date(startTime.replace(/-/g, '/')) : ''
// 翻页 // 翻页
if (startYearMonth && endYearMonth) { if (startYearMonth && endYearMonth) {
_currentDate = new Date(startYearMonth) _currentDate = new Date(startYearMonth)
...@@ -242,7 +242,8 @@ Component({ ...@@ -242,7 +242,8 @@ Component({
} else if (startTime && endTime) { } else if (startTime && endTime) {
_currentDate = new Date(endTime.replace(/-/g, '/')) _currentDate = new Date(endTime.replace(/-/g, '/'))
_endMonthDate = new Date(endTime.replace(/-/g, '/')) _endMonthDate = new Date(endTime.replace(/-/g, '/'))
searchStart = new Date(startTime.replace(/-/g, '/')) console.log(_currentDate, '_currentDate---')
console.log(_endMonthDate, '_endMonthDate---')
} }
_endMonthDate.setMonth(_currentDate.getMonth() - monthInterval) _endMonthDate.setMonth(_currentDate.getMonth() - monthInterval)
let _startMonthDate = new Date(isReset ? _currentDate : _endMonthDate) let _startMonthDate = new Date(isReset ? _currentDate : _endMonthDate)
...@@ -258,7 +259,7 @@ Component({ ...@@ -258,7 +259,7 @@ Component({
getMerchantList(isReset = false) { getMerchantList(isReset = false) {
let { userInfo } = wx.$storage.get() let { userInfo } = wx.$storage.get()
let { searchForm, merchantList, isAsk } = this.data let { searchForm, merchantList, isAsk } = this.data
if(isAsk) { if (isAsk) {
return true return true
} }
this.setData({ this.setData({
......
...@@ -8,19 +8,12 @@ ...@@ -8,19 +8,12 @@
padding: 0 16rpx; padding: 0 16rpx;
} }
.merchant-content {
// margin: 0 16rpx;
margin-bottom: 44rpx;
}
.btn-box { .btn-box {
padding-bottom: 44rpx; padding: 40rpx 0 60rpx;
} }
.btn { .btn {
width: 256rpx; width: 256rpx;
height: 80rpx;
line-height: 80rpx;
font-size: 24rpx; font-size: 24rpx;
color: #5A6066; color: #5A6066;
text-align: center; text-align: center;
...@@ -31,5 +24,5 @@ ...@@ -31,5 +24,5 @@
font-size: 24rpx; font-size: 24rpx;
text-align: center; text-align: center;
color: #CCCED1; color: #CCCED1;
padding-bottom: 60rpx; padding: 40rpx 0 60rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}"> <scroll-view class="merchant" id="scroller" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindrefresherrefresh="merchantRefresh" lower-threshold='50' scroll-top="{{busiScrollTop}}">
<!-- 全部 - 服务商总产值 --> <!-- 全部 - 服务商总产值 -->
<service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total> <service-total wx:if="{{merchantList.length}}" serviceName="{{serviceName}}" totalObj="{{totalObj}}"></service-total>
<view wx:for="{{merchantList}}" wx:key="index" class="merchant-content"> <view wx:for="{{merchantList}}" wx:key="index">
<!-- 全部 --> <!-- 全部 -->
<merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all> <merchant-all wx:if="{{!searchForm.sceneType}}" curInfo="{{item}}" searchForm="{{searchForm}}"></merchant-all>
<!-- 指定场景:太阳膜,售后众筹,会员权益/升级 --> <!-- 指定场景:太阳膜,售后众筹,会员权益/升级 -->
......
...@@ -22,9 +22,7 @@ ...@@ -22,9 +22,7 @@
<view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box"> <view wx:for="{{sceneTopList}}" wx:key="index" class="top-right-box">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<view class="num-grey"> <view class="num-grey">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text> <text wx:if="{{item.prefix}}">{{item.prefix}}</text>{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData[item.name] || 0)}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -69,9 +67,7 @@ ...@@ -69,9 +67,7 @@
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}"> <view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view class="label">{{subItem.label}}</view> <view class="label">{{subItem.label}}</view>
<view class="num"> <view class="num">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text> <text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
{{filter.money_three_for_two_thousands(item.curDayTotalData[subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -86,9 +82,7 @@ ...@@ -86,9 +82,7 @@
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}"> <view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block {{sceneObj.name}}">
<view wx:if="{{currentMonth != curInfo.yearMonth}}" class="label">{{subItem.label}}</view> <view wx:if="{{currentMonth != curInfo.yearMonth}}" class="label">{{subItem.label}}</view>
<view class="num"> <view class="num">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text> <text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>{{filter.money_three_for_two_thousands(item.curMonthTotalData[0][subItem.name] || 0)}}<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
{{filter.money_three_for_two_thousands(item.curMonthTotalData[0][subItem.name] || 0)}}
<text wx:if="{{subItem.suffix}}">{{subItem.suffix}}</text>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -215,12 +215,8 @@ ...@@ -215,12 +215,8 @@
.label { .label {
font-size: 28rpx; font-size: 28rpx;
color: #323436;
margin-bottom: 16rpx;
}
.label.num-grey {
color: #8A8C90; color: #8A8C90;
margin-bottom: 16rpx;
} }
.icon-arrow { .icon-arrow {
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<view class="list-content"> <view class="list-content">
<view class="flex"> <view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block"> <view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block">
<view class="label num-grey flex-center"> <view class="label flex-center">
{{subItem.label}} {{subItem.label}}
<glsx-image src="output/icon-arrow-right.png" class="icon-arrow" /> <glsx-image src="output/icon-arrow-right.png" class="icon-arrow" />
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!