Commit 5bf09933 by 前端

fixed

1 parent 7fa4ad93
...@@ -216,6 +216,10 @@ Component({ ...@@ -216,6 +216,10 @@ Component({
const arr = this.data.downType == 'equity' ? item[k] && item[k].map(item => accMul(item, 100)) : item[k] const arr = this.data.downType == 'equity' ? item[k] && item[k].map(item => accMul(item, 100)) : item[k]
return arr 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 return obj
......
...@@ -135,6 +135,7 @@ ...@@ -135,6 +135,7 @@
font-size: 20rpx; font-size: 20rpx;
color: #1B233D; color: #1B233D;
background: #F9F9F9; background: #F9F9F9;
white-space: normal;
image { image {
width: 36rpx; width: 36rpx;
......
...@@ -31,10 +31,12 @@ ...@@ -31,10 +31,12 @@
<view class="flex_direction_column_item" wx:for="{{sfaff}}" wx:for-index="index" wx:key="index"> <view class="flex_direction_column_item" wx:for="{{sfaff}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item.name}}</view> <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'> <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> <image wx:if="{{item.name == '员工'&& litem.avatarUrl}}" src="{{ litem.avatarUrl? litem.avatarUrl:''}}" mode="scaleToFill"></image>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block> <text>
<block wx:if="{{item.name == '转化率'}}">{{litem?litem+'%': '--'}}</block>
<block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block> <block wx:elif="{{item.name == '员工'}}">{{litem.transferName?litem.transferName:'--'}}</block>
<block wx:else>{{filter.thousand(litem)||'--'}}</block> <block wx:else>{{filter.thousand(litem)||'--'}}</block>
</text>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -295,6 +295,7 @@ Component({ ...@@ -295,6 +295,7 @@ Component({
}, },
/**柱状图 */ /**柱状图 */
getHistogram() { getHistogram() {
wx.showLoading()
const barObj = this.selectComponent('#bar') const barObj = this.selectComponent('#bar')
let { let {
dataType dataType
...@@ -311,6 +312,7 @@ Component({ ...@@ -311,6 +312,7 @@ Component({
// endTime: '' // endTime: ''
} }
ActivityApi[methods[this.data.type]](params).then(res => { ActivityApi[methods[this.data.type]](params).then(res => {
wx.hideLoading()
this.setData({ this.setData({
chartData: res chartData: res
}) })
......
...@@ -27,5 +27,5 @@ ...@@ -27,5 +27,5 @@
height: calc(100% - 64rpx); height: calc(100% - 64rpx);
} }
.content-box { .content-box {
padding: 0 16rpx 50rpx 16rpx; padding: 0 16rpx 80rpx 16rpx;
} }
\ No newline at end of file \ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</view> </view>
<view class="main-box"> <view class="main-box">
<activity-tab class="activityItem" bind:activityTab="activityTab" tabList="{{tabList}}"></activity-tab> <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}}"> <block wx:if="{{!noResult}}">
<view class="content-box"> <view class="content-box">
<block wx:for="{{listData}}" wx:key="index"> <block wx:for="{{listData}}" wx:key="index">
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
overflow: hidden; overflow: hidden;
// box-shadow: 0 10rpx 20rpx 0 rgba(204, 133, 122, 0.16); // box-shadow: 0 10rpx 20rpx 0 rgba(204, 133, 122, 0.16);
border-radius: 32rpx; border-radius: 32rpx;
.item-bg { .item-bg {
width: 100%; width: 100%;
height: 100%; height: 100%;
......
Component({ Component({
properties: { properties: {
data: { data: {
type: Object, type: Object,
value: {}, value: {},
observer(v) { observer(v) {
if(!v)return if (!v) return
let s = v let s = v
if (s) { if (s) {
v.sortList = [ v.numList = [
{title: '访客率', sort: s.fansRate}, { title: '浏览量', num: s.browsCount },
{title: '转化率', sort: s.conversionRate} { 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 @@ ...@@ -15,12 +15,12 @@
top: 40rpx; top: 40rpx;
left: 50%; left: 50%;
transform: translate(-50%); transform: translate(-50%);
width: 458.18rpx; width: 406rpx;
height: 298rpx; height: 288rpx;
image { image {
width: 458.18rpx; width: 406rpx;
height: 298rpx; height: 288rpx;
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</view> </view>
<view class="funnel-content"> <view class="funnel-content">
<view class="left"> <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>
<view class="right"> <view class="right">
<view class="sort-box" wx:for="{{data.sortList}}" wx:key="index"> <view class="sort-box" wx:for="{{data.sortList}}" wx:key="index">
......
...@@ -59,7 +59,7 @@ Page({ ...@@ -59,7 +59,7 @@ Page({
totalShareCount: '转发次数', totalShareCount: '转发次数',
totalVisitorRank: '访客总数', totalVisitorRank: '访客总数',
totalBrowseCount: '浏览总数', totalBrowseCount: '浏览总数',
totalOrderRank: '成交单量', totalOrderCount: '成交单量',
conversionRate: '转化率', conversionRate: '转化率',
} }
ActivityApi.activityStaffRank({ activityId }).then(res => { ActivityApi.activityStaffRank({ activityId }).then(res => {
......
...@@ -8,6 +8,7 @@ Page({ ...@@ -8,6 +8,7 @@ Page({
data: { data: {
show: false, show: false,
date: '2023年4月10日', date: '2023年4月10日',
maxDate: new Date().getTime(),
navStyle: 'background-color: rgba(0,0,0,0);', navStyle: 'background-color: rgba(0,0,0,0);',
currentDate: new Date().getTime(), currentDate: new Date().getTime(),
timeValue: new Date().format('yyyy-MM-dd'), timeValue: new Date().format('yyyy-MM-dd'),
......
...@@ -150,11 +150,14 @@ ...@@ -150,11 +150,14 @@
top: 97rpx; top: 97rpx;
left: 207rpx; left: 207rpx;
z-index: 10; z-index: 10;
.bill-bg { .bill-bg {
width: 233.52rpx !important; width: 233.52rpx !important;
height: 358.06rpx !important; height: 358.06rpx !important;
} }
.bill-num,.bill-name {
width: 233.52rpx !important;
}
} }
&:nth-child(2) { &:nth-child(2) {
......
...@@ -62,6 +62,6 @@ ...@@ -62,6 +62,6 @@
</scroll-view> </scroll-view>
</view> </view>
<popup bind:hidePopup="cancel" bind:confirm="confirm" show="{{show}}" height="50vh"> <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> </popup>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -63,14 +63,14 @@ ...@@ -63,14 +63,14 @@
text-align: center; text-align: center;
font-size: 20rpx; font-size: 20rpx;
color: #999999; color: #999999;
margin: 10rpx 0; margin-top: 16rpx;
.price { .price {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #323436; color: #323436;
font-weight: 600; font-weight: 600;
margin-bottom: 16rpx; margin-bottom: 10rpx;
} }
} }
} }
\ No newline at end of file \ 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!