Commit 5bf09933 by 前端

fixed

1 parent 7fa4ad93
......@@ -216,6 +216,10 @@ Component({
const arr = this.data.downType == 'equity' ? item[k] && item[k].map(item => accMul(item, 100)) : item[k]
return arr
},
totalOrderAmount:(item, k) => {
const arr = this.data.downType == 'crowType' ? item[k] && item[k].map(item => accMul(item, 0.01)) : item[k]
return arr
},
}
return obj
......
......@@ -135,6 +135,7 @@
font-size: 20rpx;
color: #1B233D;
background: #F9F9F9;
white-space: normal;
image {
width: 36rpx;
......
......@@ -31,10 +31,12 @@
<view class="flex_direction_column_item" wx:for="{{sfaff}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view>
<view wx:for="{{item.list}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_desc'>
<image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}"></image>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block>
<image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}" mode="scaleToFill"></image>
<text>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block>
<block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block>
<block wx:else>{{filter.thousand(litem)||'--'}}</block>
</text>
</view>
</view>
</view>
......
......@@ -295,6 +295,7 @@ Component({
},
/**柱状图 */
getHistogram() {
wx.showLoading()
const barObj = this.selectComponent('#bar')
let {
dataType
......@@ -311,6 +312,7 @@ Component({
// endTime: ''
}
ActivityApi[methods[this.data.type]](params).then(res => {
wx.hideLoading()
this.setData({
chartData: res
})
......
......@@ -27,5 +27,5 @@
height: calc(100% - 64rpx);
}
.content-box {
padding: 0 16rpx 50rpx 16rpx;
padding: 0 16rpx 80rpx 16rpx;
}
\ No newline at end of file
......@@ -5,7 +5,7 @@
</view>
<view class="main-box">
<activity-tab class="activityItem" bind:activityTab="activityTab" tabList="{{tabList}}"></activity-tab>
<scroll-view scroll-y class="content" class="content" refresher-enabled bindrefresherrefresh="activityRefresh" bindscrolltolower="scrollonReachBottom" bindscroll="scrollIng" refresher-triggered="{{activeTrigger}}" style="{{!listData.length ? 'padding-top: 16rpx;' : ''}}{{'height: calc(100% - 50rpx);'}}">
<scroll-view scroll-y class="content" class="content" refresher-enabled bindrefresherrefresh="activityRefresh" bindscrolltolower="scrollonReachBottom" bindscroll="scrollIng" refresher-triggered="{{activeTrigger}}" style="{{!listData.length ? 'padding-top: 16rpx;' : ''}}{{'height: calc(100% - 90rpx);'}}">
<block wx:if="{{!noResult}}">
<view class="content-box">
<block wx:for="{{listData}}" wx:key="index">
......
......@@ -8,7 +8,6 @@
overflow: hidden;
// box-shadow: 0 10rpx 20rpx 0 rgba(204, 133, 122, 0.16);
border-radius: 32rpx;
.item-bg {
width: 100%;
height: 100%;
......
Component({
properties: {
data: {
type: Object,
value: {},
observer(v) {
if(!v)return
let s = v
if (s) {
v.sortList = [
{title: '访客率', sort: s.fansRate},
{title: '转化率', sort: s.conversionRate}
]
properties: {
data: {
type: Object,
value: {},
observer(v) {
if (!v) return
let s = v
if (s) {
v.numList = [
{ title: '浏览量', num: s.browsCount },
{ title: '访客量', num: s.visitCount },
{ title: '订单量', num: s.orderCount }
]
v.sortList = [
{ title: '访客率', sort: s.fansRate },
{ title: '转化率', sort: s.conversionRate }
]
}
this.setData({ data: v })
}
}
this.setData({data: v})
}
}
},
},
/**
* 组件的初始数据
*/
data: {
/**
* 组件的初始数据
*/
data: {
},
},
/**
* 组件的方法列表
*/
methods: {
/**
* 组件的方法列表
*/
methods: {
}
}
})
......@@ -15,12 +15,12 @@
top: 40rpx;
left: 50%;
transform: translate(-50%);
width: 458.18rpx;
height: 298rpx;
width: 406rpx;
height: 288rpx;
image {
width: 458.18rpx;
height: 298rpx;
width: 406rpx;
height: 288rpx;
}
}
......
......@@ -4,7 +4,7 @@
</view>
<view class="funnel-content">
<view class="left">
<view wx:for="{{data.numList}}" wx:key="index">{{item.title}}<text>{{item.num}}</text></view>
<view wx:for="{{data.numList}}" wx:key="index">{{item.title}}<text>{{item.num||0}}</text></view>
</view>
<view class="right">
<view class="sort-box" wx:for="{{data.sortList}}" wx:key="index">
......
......@@ -59,7 +59,7 @@ Page({
totalShareCount: '转发次数',
totalVisitorRank: '访客总数',
totalBrowseCount: '浏览总数',
totalOrderRank: '成交单量',
totalOrderCount: '成交单量',
conversionRate: '转化率',
}
ActivityApi.activityStaffRank({ activityId }).then(res => {
......
......@@ -8,6 +8,7 @@ Page({
data: {
show: false,
date: '2023年4月10日',
maxDate: new Date().getTime(),
navStyle: 'background-color: rgba(0,0,0,0);',
currentDate: new Date().getTime(),
timeValue: new Date().format('yyyy-MM-dd'),
......
......@@ -150,11 +150,14 @@
top: 97rpx;
left: 207rpx;
z-index: 10;
.bill-bg {
width: 233.52rpx !important;
height: 358.06rpx !important;
}
.bill-num,.bill-name {
width: 233.52rpx !important;
}
}
&:nth-child(2) {
......
......@@ -62,6 +62,6 @@
</scroll-view>
</view>
<popup bind:hidePopup="cancel" bind:confirm="confirm" show="{{show}}" height="50vh">
<van-datetime-picker value="{{ currentDate }}" type="{{timeType=='day'?'date':'year-month'}}" bind:input="onInput" />
<van-datetime-picker max-date="{{ maxDate }}" value="{{ currentDate }}" type="{{timeType=='day'?'date':'year-month'}}" bind:input="onInput" />
</popup>
</view>
\ No newline at end of file
......@@ -63,14 +63,14 @@
text-align: center;
font-size: 20rpx;
color: #999999;
margin: 10rpx 0;
margin-top: 16rpx;
.price {
font-weight: 500;
font-size: 28rpx;
color: #323436;
font-weight: 600;
margin-bottom: 16rpx;
margin-bottom: 10rpx;
}
}
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!