Commit 2a0a0779 by chenwq

bug修复,样式走查

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