Commit e002e12d by 张立顺

Merge branch 'v4.27.0_0831' of http://192.168.3.233:8090/saas_plus/business-assi…

…stant into v4.27.0_0831
2 parents 037dd448 b09708a1
Showing 24 changed files with 205 additions and 114 deletions
......@@ -133,15 +133,16 @@ Page({
// 逆地址解析
// 代码共6位,前两位代表省(一级)、中间两位为市/地区(二级),最后两位为区县(三级),区code获取省code和市code
mapApi.detailedAdrress([res.latitude, res.longitude]).then(obj => {
let cityName = typeof obj?.ad_info?.city == 'string' ? obj?.ad_info?.city : obj?.ad_info?.province
_this.setData({
['formData.latitude']: obj?.location?.lat,
['formData.longitude']: obj?.location?.lng,
['formData.provinceName']: obj?.ad_info?.province,
['formData.provinceCode']: obj?.ad_info?.adcode.slice(0, 2) + '0000',
['formData.cityName']: obj?.ad_info?.city,
['formData.cityName']: cityName,
['formData.cityCode']: obj?.ad_info?.adcode.slice(0, 4) + '00',
['formData.merchantAddress']: res?.name,
region: [obj?.ad_info?.province, obj?.ad_info?.city]
region: [obj?.ad_info?.province, cityName]
})
})
}
......
......@@ -135,15 +135,16 @@ Page({
// 逆地址解析
// 代码共6位,前两位代表省(一级)、中间两位为市/地区(二级),最后两位为区县(三级),区code获取省code和市code
mapApi.detailedAdrress([res.latitude, res.longitude]).then(obj => {
let cityName = typeof obj?.ad_info?.city == 'string' ? obj?.ad_info?.city : obj?.ad_info?.province
_this.setData({
['formData.latitude']: obj?.location?.lat,
['formData.longitude']: obj?.location?.lng,
['formData.provinceName']: obj?.ad_info?.province,
['formData.provinceCode']: obj?.ad_info?.adcode.slice(0, 2) + '0000',
['formData.cityName']: obj?.ad_info?.city,
['formData.cityName']: cityName,
['formData.cityCode']: obj?.ad_info?.adcode.slice(0, 4) + '00',
['formData.merchantAddress']: res?.name,
region: [obj?.ad_info?.province, obj?.ad_info?.city]
region: [obj?.ad_info?.province, cityName]
})
})
}
......
{
"component": true,
"usingComponents": {}
"usingComponents": {},
"styleIsolation": "shared"
}
......@@ -25,21 +25,22 @@
text-align: center;
font-weight: 500;
font-size: 26rpx;
color: #393B3E;
color: #323436;
padding: 20rpx 0;
}
&-txt {
font-family: "ali-medium";
font-weight: 500;
height: 40rpx;
line-height: 40rpx;
margin-bottom: 14rpx;
// font-weight: 600;
// font-family: 'number';
margin-bottom: 12rpx;
font-size: 28rpx;
}
&-label {
font-size: 20rpx;
color: #8A8C90;
font-size: 24rpx;
color: #323436;
}
}
......@@ -125,6 +126,9 @@
}
&-txt {
font-family: "ali-bold";
font-weight: 700;
font-size: 26rpx;
color: #323436;
}
......@@ -227,7 +231,7 @@
content: '';
position: absolute;
bottom: -27rpx;
right: 67rpx;
right: 67rpx;
width: 0;
height: 0;
border: 18rpx solid;
......@@ -287,6 +291,8 @@
.txt-red {
color: #F35251;
font-family: "ali-bold";
font-weight: 700;
}
// .th,
......@@ -335,14 +341,16 @@
margin-top: 32rpx;
.suggest-title {
box-sizing: border-box;
width: 116rpx;
height: 36rpx;
line-height: 36rpx;
font-weight: 600;
font-size: 20rpx;
color: #3E71FE;
background: rgba(62, 113, 254, 0.12);
background: #3e71fe1f;
border-radius: 4rpx;
padding: 0 8rpx;
}
.suggest-txt {
......@@ -371,7 +379,7 @@
.step-txt {
width: calc(100% - 72rpx);
font-size: 22rpx;
color: #8A8C90;
color: #636465;
}
}
}
......@@ -390,11 +398,12 @@
box-sizing: border-box;
display: flex;
font-size: 20rpx;
font-weight: 600;
color: #3666FE;
padding: 0 20rpx;
height: 100%;
background: rgba(54, 102, 254, 0.06);
border: 2rpx solid rgba(62,113,254,0.70);
height: 52rpx;
line-height: 51rpx;
border: 1rpx solid #3E71FE;
border-radius: 30rpx;
margin-right: 4rpx;
......
......@@ -42,7 +42,7 @@
<view class="rank-left">
<view class="rank-num">{{idx + 1}}</view>
<view class="rank-head">
<glsx-image wx:if="{{subItem.shareType == 1}}" class="icon-wechat" src="output/icon-wechat.webp" />
<glsx-image wx:if="{{subItem.shareType == 1}}" class="icon-wechat" src="output/icon-wechat-sigle.png" />
<image wx:if="{{subItem.imageUrl}}" src="{{subItem.imageUrl}}" />
<glsx-image wx:else src="output/icon-head.webp" />
</view>
......
......@@ -216,8 +216,8 @@
}
.activity-item.open.active {
background: #3666FE;
color: #FFFFFF;
background: #3666fe1a;
color: #3666FE;
}
.activity-item.no-open.active {
......
......@@ -180,7 +180,8 @@ Page({
//解决因为使用await 异步导致数据没同步已经开始调用onshow方法
this.setData({
serviceMerchantId,
userInfo: userInfo.subLoginUser
// userInfo: userInfo.subLoginUser
userInfo
})
let { serviceMerchatList } = await getMockData() || { serviceMerchatList: [] }
......
......@@ -13,33 +13,7 @@ Component({
* 组件的初始数据
*/
data: {
monthCommossionData: [
{
month: '2023-08',
ruleStatus: '1',
commission: 5230
}, {
month: '2023-07',
ruleStatus: '1',
commission: 5230
}, {
month: '2023-06',
ruleStatus: '0',
commission: 5230
}, {
month: '2023-05',
ruleStatus: '1',
commission: 5230
}, {
month: '2023-04',
ruleStatus: '0',
commission: 5230
}, {
month: '2023-03',
ruleStatus: '1',
commission: 5230.1
}
],
monthCommossionData: [],
nowMonth: getNowMonth()
},
......
......@@ -22,7 +22,7 @@
<view class="month">{{item.performanceMonth}}<view class="inline_b" wx:if="{{nowMonth == item.performanceMonth}}">(当前月)</view></view>
<view wx:if="{{nowMonth == item.performanceMonth}}" class="tips">提成在本月完结后自动计算</view>
<view wx:if="{{nowMonth != item.performanceMonth && (item.commissionBonus != null || item.constructionBonus != null)}}" class="commissionNum">¥{{filter.money_three_for_two_thousands(item.staffType == 0 ? (item.commissionBonus || '0.00') : (item.constructionBonus || '0.00'), false)}}</view>
<view wx:else="">-</view>
<view wx:elif="{{nowMonth != item.performanceMonth}}">-</view>
</view>
</scroll-view>
</popup>
......@@ -17,7 +17,7 @@ Component({
thisPage.setData({
isShowFilterScreen: true
})
if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 默认展示当前月份
// if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 默认展示当前月份
this.setViewData()
}
}
......@@ -97,7 +97,7 @@ Component({
changeMerchantRange(e) {
let { merchantRange, subIndex, formData } = this.data
let { merchantId } = e.detail
this.reset()
this.reset('', false)
merchantRange.forEach((item, index) => {
item.show = true
if (item.merchantId == merchantId) {
......@@ -106,7 +106,7 @@ Component({
}
})
formData.partnerMerchantIds = [merchantId]
if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 未选择时间默认展示当前月份
// if (!this.data.formData.startTime || !this.data.formData.endTime) this.setDate() // 未选择时间默认展示当前月份
this.setData({
merchantRange,
subIndex,
......@@ -214,7 +214,9 @@ Component({
wx.$api.showLoading('加载中')
let { userInfo, formData, staffList, sceneList } = this.data
formData.sceneType = sceneList.filter(val => val.active)[0]?.id || ''
formData.staffUUIDs = staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) return subVal.uuid})
let staffArr = []
staffList.filter(val => val.active).map(subVal => {if (subVal.uuid) staffArr.push(subVal.uuid)})
formData.staffUUIDs = staffArr
this.triggerEvent('screenFlag')
this.setData({screenConfirmFlag: true})
const thisPage = wx.$router.getPageInstance()
......@@ -242,11 +244,13 @@ Component({
this.setData({ screenConfirmFlag: false })
}
},
reset() {
reset(e, isresetTime = true) {
let { formData, userInfo, sceneList, staffList, tabType, merchantRange, subIndex } = this.data
formData.partnerMerchantIds = [userInfo.subLoginUser.merchantId]
formData.startTime = ''
formData.endTime = ''
if (isresetTime) {
formData.startTime = ''
formData.endTime = ''
}
// this.setDate()
this.setData({
isShowCalendarMonth: false
......
......@@ -50,10 +50,10 @@
</view>
<view class="date_box">
<view class="date_item" wx:if="{{formData.startTime}}">{{filter.filterDate(formData.startTime) || '开始时间'}}</view>
<view class="date_item placeholder" wx:else>YYYY/MM</view>
<view class="date_item placeholder" wx:else>请选择</view>
<view>-</view>
<view class="date_item" wx:if="{{formData.endTime}}">{{filter.filterDate(formData.endTime) || '结束时间'}}</view>
<view class="date_item placeholder" wx:else>YYYY/MM</view>
<view class="date_item placeholder" wx:else>请选择</view>
</view>
</view>
<view class="box" wx:if="{{tabType == 0}}">
......
......@@ -4,6 +4,7 @@ const IMAGES = Object.freeze({
})
import outputValueApi from '~/api/outputValueApi/index'
import { IMG_URL } from '~/utils/constantData'
import Util from '~/utils/util'
Component({
/**
* 组件的属性列表
......@@ -57,7 +58,8 @@ Component({
})
},
onBottomRefresh() {
this.getListData()
let { isInit } = this.data // 是否首次进入页面
this.getListData(false, isInit)
},
refreshList() {
this.setData({
......@@ -65,7 +67,8 @@ Component({
nothing: false,
total: 0
})
this.getListData(true)
let { isInit } = this.data
this.getListData(true, isInit)
},
actionOperationResult(val1, val2, rate = false){
......@@ -81,8 +84,19 @@ Component({
const p = Math.max(len1, len2)
return Math.pow(10, p)
},
getListData(isReset = false) {
getLastDay(year, month) {
var new_year = year //取当前的年份
var new_month = month++ //取下一个月的第一天,方便计算(最后一天不固定)
if (month > 12) {
new_month -= 12 //月份减
new_year++ //年份增
}
var new_date = new Date(new_year, new_month, 1) //取当年当月中的第一天
return new Date(new_date.getTime() - 1000 * 60 * 60 * 24).getDate() //获取当月最后一天日期
},
getListData(isReset = false, isInit = false) {
let _this = this
_this.setData({ isInit })
if (isReset) {
_this.setData({
pageNum: 1,
......@@ -92,15 +106,22 @@ Component({
}
let { pageNum, pageSize, merchantOutputValuesPageSize, nothing, isAsk, dataList } = _this.data
const thisPage = wx.$router.getPageInstance()
let params = {
let params = JSON.parse(JSON.stringify({
pageNum,
pageSize,
merchantOutputValuesPageSize,
...thisPage.data.screenFormData
}
this.setData({ searchFormData: thisPage.data.screenFormData })
}))
delete params.shopMerchantNames
delete params.sceneType // 删除场景参数
let month = new Date().getMonth() + 1
let year = new Date().getFullYear()
let day = this.getLastDay(year, month)
if (isInit) { // 首次进入页面 我的员工请求当前月份数据
params.startTime = year + '-' + month + '-01' + ' 00:00:00'
params.endTime = year + '-' + month + '-' + day + ' 23:59:59'
}
this.setData({ searchFormData: params })
if (nothing || isAsk) {
return
}
......
......@@ -25,7 +25,7 @@
background: #FFFFFF;
box-shadow: 0 2rpx 20rpx 0 #b4bacc52;
border-radius: 16rpx;
padding: 40rpx 0 24rpx 24rpx;
padding: 40rpx 0 0 24rpx;
margin: 0 24rpx 24rpx 0;
.staff_messsage{
padding-right: 26rpx;
......@@ -67,6 +67,7 @@
text{
color: #4772FC;
font-size: 36rpx;
font-family: 'ali-bold';
font-weight: 700;
}
}
......@@ -110,6 +111,7 @@
}
.merchant_box{
padding-top: 24rpx;
font-size: 28rpx;
.title{
font-size: 24rpx;
color: #8A8C90;
......@@ -120,23 +122,32 @@
.flex{
box-sizing: border-box;
padding-right: 30rpx;
font-family: 'ali-bold';
}
.flex_1{
width: calc(100% - 552rpx);
padding-right: 0;
}
.flex_2{
width: 196rpx;
width: 200rpx;
}
.flex_3{
width: 314rpx;
padding-right: 52rpx;
}
.font_wei{
font-size: 28rpx;
.font_wei700{
font-weight: 700;
color: #323436;
margin-bottom: 8rpx;
font-family: 'ali-bold';
}
.font_wei500{
font-weight: 500;
font-family: 'ali-medium';
}
.font_wei400{
font-weight: 400;
font-family: 'ali-medium';
}
.name{
font-size: 26rpx;
......@@ -160,6 +171,7 @@
display: flex;
align-items: center;
justify-content: center;
padding-bottom: 24rpx;
image{
width: 92rpx;
height: 36rpx;
......
......@@ -10,7 +10,7 @@
refresher-threshold="104"
scroll-top="{{scrollTop}}"
class="list"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100vh - 48rpx)' : '100%'}}"
style="height: {{searchFormData.startTime && searchFormData.endTime ? 'calc(100% - 48rpx)' : '100%'}}"
refresher-triggered="{{triggered}}">
<view class="empty_box"></view>
<block wx:for="{{dataList}}" wx:key="index">
......@@ -40,18 +40,20 @@
<view class="title flex_spa-arr">
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">产值/客单价</view>
<view class="flex_1 padd_r16 flex">订单/转化率</view>
<view class="flex_1 flex">订单/转化率</view>
</view>
<block wx:for="{{item.outputValueStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" wx:if="{{subIndex < 3 || item.showMore}}" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view>{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
</view>
<view class="flex_1 padd_r16 flex">
<view class="font_wei">{{subItem.orderCount}}单</view>
<view>{{subItem.conversionRate}}%</view>
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">{{'¥' + filter.money_three_for_two_thousands(subItem.totalOrderMoney || '0.00', true)}}</view>
<view class="font_wei500">{{'¥' + filter.money_three_for_two_thousands(subItem.customerUnitPrice || '0.00', true)}}</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700">{{subItem.orderCount}}单</view>
<view class="font_wei500">{{subItem.conversionRate}}%</view>
</view>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.outputValueStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{true}}">
......@@ -67,24 +69,29 @@
<view class="title flex_spa-arr" >
<view class="flex_3 flex">服务门店</view>
<view class="flex_2 flex">订单台次</view>
<view class="flex_1 padd_r16 flex">激励费</view>
<view class="flex_1 flex">激励费</view>
</view>
<block wx:for="{{item.constructionStats}}" wx:for-index="subIndex" wx:for-item="subItem" wx:key="subIndex">
<view class="merchant_item flex_spa-arr" style="{{item.constructionStats.length > 3 && !item.showMore && subIndex == 2 ? 'border:none;' : ''}}" wx:if="{{subIndex < 3 || item.showMore}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view>赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
<view hidden="{{subIndex >= 3 && !item.showMore}}" class="item_content">
<view class="merchant_item flex_spa-arr" style="{{(item.outputValueStats.length > 3 && !item.showMore && subIndex == 2) || (item.outputValueStats.length > 3 && item.showMore && subIndex == (item.outputValueStats.length - 1)) || (item.outputValueStats.length <= 3 && subIndex == (item.outputValueStats.length - 1)) ? 'border:none;' : ''}}">
<view class="flex_3 name flex">{{subItem.shopMerchantName}}</view>
<view class="flex_2 flex">
<view class="font_wei700">升级膜{{subItem.upgradeConstructionCount || '-'}}台/次</view>
<view class="font_wei400">赠送膜{{subItem.notUpgradeConstructionCount || '-'}}台/次</view>
</view>
<view class="flex_1 flex">
<view class="font_wei700" wx:if="{{subItem.upgradeIncentiveFee && subItem.upgradeConstructionCount}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei700" wx:if="{{!subItem.upgradeIncentiveFee || !subItem.upgradeConstructionCount}}">-</view>
<view class="font_wei400" wx:if="{{subItem.notUpgradeIncentiveFee && subItem.notUpgradeConstructionCount}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view class="font_wei400" wx:if="{{!subItem.notUpgradeIncentiveFee || !subItem.notUpgradeConstructionCount}}">-</view>
</view>
</view>
<view class="flex_1 padd_r16 flex">
<view class="font_wei" wx:if="{{subItem.upgradeIncentiveFee}}">¥{{subItem.upgradeIncentiveFee}}X{{subItem.upgradeConstructionCount}}</view>
<view class="font_wei" wx:if="{{!subItem.upgradeIncentiveFee}}">-</view>
<view wx:if="{{subItem.notUpgradeIncentiveFee}}">¥{{subItem.notUpgradeIncentiveFee}}X{{subItem.notUpgradeConstructionCount}}</view>
<view wx:if="{{!subItem.notUpgradeIncentiveFee}}">-</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && item.showMore}}" bindtap="showMore" data-index="{{index}}" data-flag="{{false}}">
<glsx-image src="output/show_more_icon_up.png" webp></glsx-image>
</view>
</view>
<view class="showMore" wx:if="{{subIndex >= 3 && subIndex === (item.constructionStats.length - 1) && !item.showMore}}" bindtap="showMore" data-index="{{index}}">
<glsx-image src="output/show_more_icon.png" webp></glsx-image>
</view>
</block>
</block>
......
{
"component": true,
"styleIsolation": "shared",
"usingComponents": {
"service-total": "../merchantCom/serviceTotal/serviceTotal",
"merchant-all": "../merchantCom/merchantAll/merchantAll",
......
......@@ -15,31 +15,45 @@
align-items: center;
}
.f-28 {
font-size: 28rpx;
}
.f-24 {
font-size: 24rpx;
}
.num {
font-weight: 600;
font-family: "ali-medium";
font-weight: 500;
font-size: 28rpx;
color: #323436;
}
.num-blue {
font-family: "ali-bold";
font-weight: 700;
font-size: 36rpx;
color: #4772FC;
}
.num-grey {
font-family: "ali-medium";
font-weight: 500;
font-size: 24rpx;
color: #8A8C90;
}
.num-green {
font-weight: 600;
font-family: "ali-medium";
font-weight: 500;
font-size: 24rpx;
color: #00C580;
}
.num-red {
font-weight: 600;
font-family: "ali-medium";
font-weight: 500;
font-size: 24rpx;
color: #F35251;
}
......@@ -95,10 +109,12 @@
top: 66rpx;
right: 24rpx;
text-align: right;
color: #8A8C90;
}
.business-total-other {
text-align: right;
color: #8A8C90;
}
.top-num-box {
......@@ -196,12 +212,14 @@
margin: 8rpx 0;
.crowdfund-total {
width: 260rpx;
height: 40rpx;
line-height: 40rpx;
font-size: 22rpx;
color: #B6B7B7;
margin: 0 40rpx;
flex-shrink: 1;
text-align: center;
}
.com-month {
......
......@@ -11,7 +11,7 @@
</view>
<view class="top-num-box">
<view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40"><text class="f-28">¥</text>{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt num-grey" wx:if="{{curInfo.curMonthTotalData.total == 0}}">暂无业务收入</view>
</view>
<view>
......@@ -39,7 +39,7 @@
<view class="title-name text-hide">{{item.merchantName}}</view>
<text class="tips-store">门店</text>
</view>
<view class="num-blue">¥{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
<view class="num-blue"><text class="f-24">¥</text>{{filter.money_three_for_two_thousands(item.bizTotal || 0)}}</view>
</view>
<!-- 内容 - 售后众筹 -->
<view wx:if="{{sceneObj.name == 'crowdfund'}}" class="list-content crowdfund-box">
......@@ -84,6 +84,7 @@
</view>
<view class="flex">
<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)}}
......
......@@ -15,31 +15,50 @@
align-items: center;
}
.flex-center {
display: flex;
align-items: center;
}
.f-28 {
font-size: 28rpx;
}
.f-24 {
font-size: 24rpx;
}
.num {
font-weight: 600;
font-family: "ali-medium";
font-weight: 500;
font-size: 28rpx;
color: #323436;
}
.num-blue {
font-family: "ali-bold";
font-weight: 700;
font-size: 36rpx;
color: #4772FC;
}
.num-grey {
font-family: "ali-medium";
font-weight: 500;
font-size: 24rpx;
color: #8A8C90;
}
.num-green {
font-weight: 600;
font-family: "ali-medium";
font-weight: 500;
font-size: 24rpx;
color: #00C580;
}
.num-red {
font-weight: 600;
font-family: "ali-medium";
font-weight: 500;
font-size: 24rpx;
color: #F35251;
}
......@@ -77,6 +96,8 @@
right: 24rpx;
display: flex;
align-items: center;
font-size: 24rpx;
color: #5A6066;
}
.top-num-box {
......@@ -201,6 +222,11 @@
.label.num-grey {
color: #8A8C90;
}
.icon-arrow {
width: 32rpx;
height: 32rpx;
}
}
.compare-block {
......
......@@ -3,14 +3,14 @@
<view class="merchant-all">
<view class="top">
<view class="switch-box" wx:if="{{curInfo.merchantDataList.length}}">对比上月
<switch style="zoom:.6; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
<switch style="zoom:.7; margin-left: 8rpx;" color="#3666FE" checked="{{switchChecked}}" bindchange="switchChange" />
</view>
<view>
<text class="num-month">{{date.month}}</text><text class="month">月</text><text class="year">{{date.year}}年</text>
</view>
<view class="top-num-box">
<view>
<view class="num-blue ft-40">¥{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="num-blue ft-40"><text class="f-28">¥</text>{{filter.money_three_for_two_thousands(curInfo.curMonthTotalData.total || 0)}}</view>
<view class="total-txt">本月业绩产生至{{curInfo.merchantDataList.length}}家门店</view>
</view>
<view wx:if="{{searchForm.startTime && searchForm.endTime}}">
......@@ -29,13 +29,16 @@
<view class="title-name text-hide">{{item.merchantName}}</view>
<text class="tips-store">门店</text>
</view>
<view class="num-blue">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData.total || 0)}}</view>
<view class="num-blue"><text class="f-24">¥</text>{{filter.money_three_for_two_thousands(item.curMonthTotalData.total || 0)}}</view>
</view>
<!-- 内容 -->
<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">{{subItem.label}}</view>
<view class="label num-grey flex-center">
{{subItem.label}}
<glsx-image src="output/icon-arrow-right.png" class="icon-arrow" />
</view>
<view class="num">¥{{filter.money_three_for_two_thousands(item.curMonthTotalData[subItem.name] || 0)}}</view>
</view>
</view>
......@@ -47,7 +50,7 @@
</view>
<view class="flex">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="compare-block">
<view wx:if="{{compareList[index][subItem.name] == 0}}">0</view>
<view class="num-grey" wx:if="{{compareList[index][subItem.name] == 0 || compareList[index][subItem.name] < 1}}">0</view>
<view wx:else class="{{compareList[index][subItem.name + 'Sign'] ? 'num-red' : 'num-green'}}"><text>{{compareList[index][subItem.name + 'Sign'] ? '+' : '-'}}</text>¥{{filter.money_three_for_two_thousands(compareList[index][subItem.name])}}</view>
</view>
</view>
......
{
"component": true,
"usingComponents": {}
"usingComponents": {},
"styleIsolation": "shared"
}
\ No newline at end of file
......@@ -33,7 +33,12 @@
.total {
height: 154rpx;
.money-symbol {
font-size: 28rpx;
}
.num {
font-family: "ali-bold";
font-weight: 700;
font-size: 40rpx;
color: #3666FE;
......@@ -47,12 +52,16 @@
.content {
display: flex;
justify-content: space-between;
align-items: center;
.cur-block {
width: 33.33%;
}
.num {
font-family: "ali-bold";
color: #323436;
font-weight: 600;
font-weight: 500;
margin-top: 16rpx;
}
}
......
......@@ -8,10 +8,10 @@
<view class="box">
<view class="total">
<view class="label">总产值</view>
<view class="num">¥{{filter.money_three_for_two_thousands(totalObj.total || 0)}}</view>
<view class="num"><text class="money-symbol">¥</text>{{filter.money_three_for_two_thousands(totalObj.total || 0)}}</view>
</view>
<view class="content">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view wx:for="{{sceneFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx" class="cur-block">
<view class="label">{{subItem.label}}</view>
<view class="num">¥{{filter.money_three_for_two_thousands(totalObj[subItem.name] || 0)}}</view>
</view>
......
......@@ -67,16 +67,16 @@ Page({
},
init() {
this.setUserInfo()
this.searchEvent(true)
this.searchEvent(true, true)
},
// 筛选回调
searchEvent(isNoBack = false) {
searchEvent(isNoBack = false, isInit = false) {
console.log(this.data.screenFormData, 'screenFormData')
if (!isNoBack) this.back()
let merchantModule = this.selectComponent('#merchant')
merchantModule.merchantRefresh && merchantModule.merchantRefresh(true)
let employessModule = this.selectComponent('#employess')
employessModule.getListData && employessModule.getListData(true)
employessModule.getListData && employessModule.getListData(true, isInit)
},
setUserInfo() {
let { userInfo } = wx.$storage.get()
......
cxserviceShop 5393603egh(开发)
账号登录: 10988866666(超管)xiong110
测试环境 bb123456 密码 bb123456
15816539335/a123456 测试环境超管
xiaoxiong1hao a123456
csysfws a123456
生意助手小程序--生意助手2号
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!