Commit 39b95ac8 by 张立顺

功能开发完成

1 parent da9808ee
...@@ -9,18 +9,6 @@ Component({ ...@@ -9,18 +9,6 @@ Component({
type: Object, type: Object,
value: {} value: {}
} }
// keys: {
// type: Array,
// value: ['year', 'sales']
// },
// tickCount: {
// type: Number,
// value: 4
// },
// color: {
// type: String,
// value: '#3975C6'
// }
}, },
observers: { observers: {
'chartData.data': function (data) { 'chartData.data': function (data) {
...@@ -35,16 +23,28 @@ Component({ ...@@ -35,16 +23,28 @@ Component({
ec: { ec: {
// lazyLoad: false // lazyLoad: false
lazyLoad: true lazyLoad: true
} },
allList: false
},
attached() {
let { chartData } = this.data
console.log(chartData, 'chartDataattached')
chartData && chartData.data && this.onInitChart()
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
showAll() {
this.setData({
allList: !this.data.allList
})
},
onInitChart() { onInitChart() {
this.ecComponent && // console.log(this.ecComponent, this.selectComponent('#mychart-dom-bar'), 'this.ecComponent')
this.ecComponent.init((canvas, width, height, dpr) => { let ecComponent = this.ecComponent || this.selectComponent('#mychart-dom-bar')
ecComponent &&
ecComponent.init((canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, { const chart = echarts.init(canvas, null, {
width: width, width: width,
height: height, height: height,
......
...@@ -223,4 +223,8 @@ ...@@ -223,4 +223,8 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.rotate {
transform: rotate(180deg);
}
} }
\ No newline at end of file \ No newline at end of file
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
<view class="invalidFlowContainer"> <view class="invalidFlowContainer">
<view class="header"> <view class="header">
<view class="title">无效流量</view> <view class="title">无效流量</view>
<view class="label">共{{chartData.customerList.lenght}}条客户信息经由跟进人处理为战败客户</view> <view class="label">共{{chartData.customerListAll.length}}条客户信息经由跟进人处理为战败客户</view>
</view> </view>
<view class="customer" wx:for="{{ chartData.customerList }}" wx:key="index"> <view class="customer" wx:for="{{ allList? chartData.customerListAll:chartData.customerList }}" wx:key="index">
<view class="header"> <view class="header">
<view class="name">{{item.customer.customerName}}</view> <view class="name">{{item.customer.customerName}}</view>
<view class="date">{{item.orderTime}}</view> <view class="date">{{item.orderTime}}</view>
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<view class="result">{{item.customer.refusalReason}}</view> <view class="result">{{item.customer.refusalReason}}</view>
</view> </view>
</view> </view>
<view class="arrow"> <view class="arrow" bind:tap="showAll" wx:if="{{chartData.customerListAll.length>2}}">
<image class="img" src="../../images/arrowIcon.png"></image> <image class="img {{ allList?'rotate':'' }}" src="../../images/arrowIcon.png"></image>
</view> </view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -10,8 +10,8 @@ Component({ ...@@ -10,8 +10,8 @@ Component({
value: 0 value: 0
}, },
chartData: { chartData: {
type: Array, type: Object,
value: [] value: {}
} }
// keys: { // keys: {
// type: Array, // type: Array,
...@@ -29,7 +29,7 @@ Component({ ...@@ -29,7 +29,7 @@ Component({
observers: { observers: {
chartData: function (data) { chartData: function (data) {
console.log(data, '----------------') console.log(data, '----------------')
data && data.length && this.initData(data) data.diagramList && data.diagramList.length && this.initData()
} }
}, },
/** /**
...@@ -47,8 +47,9 @@ Component({ ...@@ -47,8 +47,9 @@ Component({
*/ */
methods: { methods: {
onInitChart() { onInitChart() {
this.ecComponent && let ecComponent = this.ecComponent || this.selectComponent('#mychart-dom-bar')
this.ecComponent.init((canvas, width, height, dpr) => { ecComponent &&
ecComponent.init((canvas, width, height, dpr) => {
const chart = echarts.init(canvas, null, { const chart = echarts.init(canvas, null, {
width: width, width: width,
height: height, height: height,
...@@ -60,14 +61,14 @@ Component({ ...@@ -60,14 +61,14 @@ Component({
}, },
setOption(chart) { setOption(chart) {
let { chartData: diagramList, tabIndex } = this.data let { chartData, tabIndex } = this.data
const abscissaDataList = [], const abscissaDataList = [],
orderMoneyTotalList = [], orderMoneyTotalList = [],
upgradeAveragePriceList = [], upgradeAveragePriceList = [],
upgradeRateList = [] upgradeRateList = []
diagramList.forEach(element => { chartData.diagramList.forEach(element => {
abscissaDataList.push(element.abscissaData) abscissaDataList.push(element.abscissaData)
// console.log(element.orderMoneyTotal, 'orderMoneyTotal') // console.log(element.orderMoneyTotal, 'orderMoneyTotal')
orderMoneyTotalList.push(tabIndex == 0 ? element.orderMoneyTotal : element.outputValue) orderMoneyTotalList.push(tabIndex == 0 ? element.orderMoneyTotal : element.outputValue)
...@@ -103,7 +104,7 @@ Component({ ...@@ -103,7 +104,7 @@ Component({
} }
], ],
legend: { legend: {
data: ['营业额', '客单价', '转化率'], data: ['营业额', tabIndex ? '权益客单价' : '客单价', '转化率'],
top: 'bottom' top: 'bottom'
}, },
xAxis: [ xAxis: [
...@@ -128,7 +129,7 @@ Component({ ...@@ -128,7 +129,7 @@ Component({
}, },
{ {
type: 'value', type: 'value',
name: '客单价', name: tabIndex ? '权益客单价' : '客单价',
position: 'right', position: 'right',
offset: 1000, offset: 1000,
axisLabel: { axisLabel: {
...@@ -153,7 +154,7 @@ Component({ ...@@ -153,7 +154,7 @@ Component({
data: orderMoneyTotalList data: orderMoneyTotalList
}, },
{ {
name: '客单价', name: tabIndex ? '权益客单价' : '客单价',
type: 'bar', type: 'bar',
yAxisIndex: 0, yAxisIndex: 0,
data: upgradeAveragePriceList data: upgradeAveragePriceList
......
<view class="container">
<view class="container"> <view class="title">
<view class="title"> 趋势分析
趋势分析 <view class="title-tip" v-show="firstOrderDate">业务开展时间:{{ chartData.firstOrderDate }}</view>
<view class="title-tip" v-show="firstOrderDate">业务开展时间:{{ firstOrderDate }}</view> </view>
</view> <!-- <view class="" id="bar"></view> -->
<!-- <view class="" id="bar"></view> --> <view class="ec-canvas">
<view class="ec-canvas"> <ec-canvas class="echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas>
</view>
<ec-canvas class=" echart-box" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas> </view>
</view>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<view class="revenue"> <view class="revenue">
<view class="title"> <view class="title">
营收概要 营收概要
<view wx:if="{{ phone && outputObj }}" class="title-tip">当月产值目标:{{ <!-- <view wx:if="{{ phone && outputObj }}" class="title-tip">当月产值目标:{{
outputObj.targetOutputValue || 0 }}元 outputObj.targetOutputValue || 0 }}元
完成进度{{ outputObj.currentProgress || 0 }}%</view> 完成进度{{ outputObj.currentProgress || 0 }}%</view> -->
</view> </view>
<view class="content"> <view class="content">
<view wx:for="{{ tabIndex? revenueFormData.equityList: revenueFormData.membraneList }}" wx:key="index" class="flex row"> <view wx:for="{{ tabIndex? revenueFormData.equityList: revenueFormData.membraneList }}" wx:key="index" class="flex row">
...@@ -41,10 +41,16 @@ ...@@ -41,10 +41,16 @@
</view> </view>
</view> </view>
<echart chartData="{{ chartData }}" tickCount="{{ opts.tickCount }}" keys="{{ opts.keys }}" tabIndex="{{ tabIndex }}"></echart> <echart chartData="{{ chartData }}" tickCount="{{ opts.tickCount }}" keys="{{ opts.keys }}" tabIndex="{{ tabIndex }}"></echart>
<echart-pie chartData="{{ chartDataPie }}" customerList="{{ customerList }}" tickCount="{{ opts.tickCount }}" keys="{{ opts.keys }}"></echart-pie> <echart-pie
<!-- v-if="diagnosticResults && sceneId != 1" --> wx:if="{{ !tabIndex }}"
<view class="resultContainer"> chartData="{{ chartDataPie }}"
customerList="{{ customerList }}"
tickCount="{{ opts.tickCount }}"
keys="{{ opts.keys }}"
></echart-pie>
<!-- wx:if="{{ chartData.diagnosticResults && !tabIndx }}" -->
<view class="resultContainer" wx:if="{{ chartData.diagnosticResults & !tabIndex }}">
<view class="title">诊断结果</view> <view class="title">诊断结果</view>
<view class="content">诊断结果诊断结果诊断结果{{ diagnosticResults }}</view> <view class="content">{{ chartData.diagnosticResults }}</view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -63,15 +63,29 @@ var revenueToClass = function (item,revenueData,name) { ...@@ -63,15 +63,29 @@ var revenueToClass = function (item,revenueData,name) {
return val > 0 ? 'up' : 'down' return val > 0 ? 'up' : 'down'
} }
} }
// var optionalChaining = function (obj,) { var dateFormatSlash = function (date) {
// var rest = Array.prototype.slice.call(arguments, 1); // 验证日期格式
// var tmp = obj if (!date) return;
// for (var key in rest) { console.log(date);
// var name = rest[key]; // var regex = /^\d{4}-\d{2}-\d{2}$/; 不支持正则表达式
// tmp = tmp !== null && tmp !== undefined ? tmp[name] : undefined; // if (typeof date !== 'string' || !regex.test(date)) {
// } // console.log('Invalid date format. Expected format: "YYYY-MM-DD"');
// return tmp !== null && tmp !== undefined ? tmp : ""; // return
// } // }
// 解构赋值提取年、月和日
var parts = date.split('-');
var year = parts[0];
var month = parts[1];
var day = parts[2] || '';
// 构建日期字符串
if (day) {
return year + '/' + month + '/' + day; // 带有日的格式:YY/MM/DD
} else {
return year + '/' + month; // 只有年月的格式:YY/MM
}
}
/* /*
* 导出 * 导出
...@@ -80,6 +94,6 @@ module.exports = { ...@@ -80,6 +94,6 @@ module.exports = {
setPrice: setPrice, setPrice: setPrice,
filterItemName:filterItemName, filterItemName:filterItemName,
revenueToClass:revenueToClass, revenueToClass:revenueToClass,
// $$:optionalChaining, dateFormatSlash:dateFormatSlash,
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands //暴露接口调用 money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands //暴露接口调用
} }
...@@ -24,30 +24,115 @@ Page({ ...@@ -24,30 +24,115 @@ Page({
width: '30%' width: '30%'
} }
], ],
chartDataPie:{ lineChart: {},
data:[] chartDataPie: {
data: []
}, },
tabIndx: 1, tabIndx: 0,
// 众筹 // 众筹
scrollLeft: 0, scrollLeft: 0,
activityActive: 0, activityActive: 0,
isShowData: false, isShowData: false,
allType: false,
whiteArrow: false,
scenceList: [] scenceList: []
}, },
handleMonthNow() {
// this.dateObj.nowMonth = true
this.initTime()
this.getAnalysisTendency()
// this.selectConfirm(this.merchantInfo)
},
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() //获取当月最后一天日期
},
// 获取选中天数
rangeSelect(e) {
console.log(e)
// let { date } = e.detail
let { date, type } = e.detail
let { dateObj } = this.data
// 按月份
dateObj = Object.assign(dateObj, date)
// return
if (type) {
let [year, month] = date.end.split('-')
let day = this.getLastDay(year, month)
dateObj.beginDateStr = date.start + '-01'
dateObj.endDateStr = date.end + '-' + day
dateObj.pointUnit = 2
dateObj.type = 'month'
// }
} else {
// 按日期
dateObj.beginDateStr = date.start
dateObj.endDateStr = date.end
dateObj.pointUnit = 1
dateObj.type = 'day'
}
dateObj.nowMonth = false
this.dateObj = dateObj
this.setData({
dateObj
// currentPage: 1
})
this.getAnalysisTendency()
},
// 切换日历
tapCalendar() {
this.setData({
whiteArrow: !this.data.whiteArrow
})
},
initTime() {
// 获取当前日期
const currentDate = new Date()
let today = currentDate.format('yyyy-MM-dd')
let NewYearDay = currentDate.format('yyyy')
let firstDayOfMonth = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1).format('yyyy-MM-dd')
// console.log(NewYearDay)
this.setData({
dateObj: {
beginDateStr: firstDayOfMonth,
endDateStr: today,
today: today,
pointUnit: 1, // 1日,2月,默认日
type: 'today',
label: NewYearDay,
nowMonth: true
}
})
},
initData() { initData() {
let { tabIndx } = this.data let { tabIndx } = this.data
tabIndx == 1 ? this.crowdfunding() : this.getAnalysisTendency(tabIndx) tabIndx == 1 ? this.crowdfunding() : this.getAnalysisTendency(tabIndx)
console.log(tabIndx, 'tabIndx');
},
getAnalysisTendency(tabIndx) {
console.log(tabIndx, 'tabIndx') console.log(tabIndx, 'tabIndx')
},
changeStatus() {
this.setData({
allType: !this.data.allType
})
this.getAnalysisTendency()
},
getAnalysisTendency() {
// console.log(tabIndx, 'tabIndx')
let { allType, tabIndx, dateObj, merchantInfo } = this.data
let params = { let params = {
shopMerchantIdList: [44211227], shopMerchantIdList: [merchantInfo.merchantId || 44211227],
isSuper: false, isSuper: false,
phone: '', phone: '',
dataDimension: tabIndx, allType,
startDate: '2023-08-01', dataDimension: tabIndx == 0 ? 0 : 1,
endDate: '2023-08-22' startDate: dateObj.beginDateStr,
endDate: dateObj.endDateStr
} }
// debugger // debugger
// 默认是精品升级 取后面接口 // 默认是精品升级 取后面接口
...@@ -73,9 +158,11 @@ Page({ ...@@ -73,9 +158,11 @@ Page({
apiNameTendency(params).then(res => { apiNameTendency(params).then(res => {
console.log(res, 'analysisTendency') console.log(res, 'analysisTendency')
this.setData({ this.setData({
firstOrderDate: res?.firstOrderDate, lineChart: {
diagnosticResults: res.diagnosticResults || '', firstOrderDate: res?.firstOrderDate,
diagramList: res.diagramList || [] diagnosticResults: res.diagnosticResults || '',
diagramList: res.diagramList || []
}
}) })
}) })
// 精品升级请求流量接口数据 // 精品升级请求流量接口数据
...@@ -104,7 +191,8 @@ Page({ ...@@ -104,7 +191,8 @@ Page({
}) })
this.setData({ this.setData({
// analysisNotUpgradePage: res, // analysisNotUpgradePage: res,
['chartDataPie.customerList']: res.list ['chartDataPie.customerList']: res.list.slice(0, 2),
['chartDataPie.customerListAll']: res.list
}) })
}) })
}, },
...@@ -113,6 +201,7 @@ Page({ ...@@ -113,6 +201,7 @@ Page({
this.setData({ this.setData({
tabIndx: detail tabIndx: detail
}) })
this.initData()
}, },
// 众筹-start // 众筹-start
crowdfunding() { crowdfunding() {
...@@ -123,7 +212,7 @@ Page({ ...@@ -123,7 +212,7 @@ Page({
}, },
async getMockInfo(userInfo) { async getMockInfo(userInfo) {
let res = await getMockData() || { serviceMerchatList: [] } let res = (await getMockData()) || { serviceMerchatList: [] }
this.setData({ this.setData({
mockObj: res, mockObj: res,
isShowService: res.serviceMerchatList.includes(userInfo.merchantId + '') isShowService: res.serviceMerchatList.includes(userInfo.merchantId + '')
...@@ -203,11 +292,12 @@ Page({ ...@@ -203,11 +292,12 @@ Page({
sceneCode: sceneCode || '' sceneCode: sceneCode || ''
} }
outputApi.findProByScene(params).then(res => { outputApi.findProByScene(params).then(res => {
res && res[0]?.productList?.forEach(item => { res &&
if (productCodes.includes(item.productCode)) { res[0]?.productList?.forEach(item => {
item.openFlag = 1 if (productCodes.includes(item.productCode)) {
} item.openFlag = 1
}) }
})
var res = this.dealOpenActivity(res) var res = this.dealOpenActivity(res)
this.setData({ this.setData({
scenceList: res scenceList: res
...@@ -367,8 +457,11 @@ Page({ ...@@ -367,8 +457,11 @@ Page({
// 众筹-end // 众筹-end
onRoute() { onRoute() {
this.getAnalysisTendency(this.data.tabIndx) console.log('onRoute')
this.initTime()
// this.getAnalysisTendency(this.data.tabIndx)
wx.$router.getData(obj => { wx.$router.getData(obj => {
console.log(obj, 'obj')
this.setData({ this.setData({
merchantInfo: obj merchantInfo: obj
}) })
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
"usingComponents": { "usingComponents": {
"tab": "../../components/Tab/Tab", "tab": "../../components/Tab/Tab",
"output-echart": "../../components/outputEchart/outputEchart", "output-echart": "../../components/outputEchart/outputEchart",
"output-crowdfund": "../../components/outputCrowdfund/outputCrowdfund" "output-crowdfund": "../../components/outputCrowdfund/outputCrowdfund",
"CalendarMonth": "/components/CalendarMonth/CalendarMonth"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
}
\ No newline at end of file \ No newline at end of file
}
...@@ -75,7 +75,85 @@ ...@@ -75,7 +75,85 @@
.searchBar { .searchBar {
height: 88rpx; height: 88rpx;
// line-height: 88rpx;
background-color: #fff; background-color: #fff;
padding: 0 32rpx;
display: flex;
justify-content: space-between;
.calendarMonthCon {
margin-left: auto;
display: flex;
align-items: center;
}
.checkCon {
display: flex;
align-items: center;
.checkoutBox {
box-sizing: border-box;
width: 24rpx;
height: 24rpx;
border: 2rpx solid #5A6066;
border-radius: 4rpx;
}
.checkBox {
margin-right: 8rpx;
width: 24rpx;
height: 24rpx;
}
}
.monthNow {
width: 96rpx;
height: 52rpx;
background: #F7F7F7;
border-radius: 8rpx;
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 24rpx;
color: #333333;
line-height: 52rpx;
text-align: center;
margin-left: auto;
margin-right: 20rpx;
&.active {
color: #3582EE;
background: #ebf2fd;
}
}
.dateNum {
box-sizing: border-box;
display: flex;
align-items: center;
white-space: nowrap;
height: 52rpx;
padding: 8rpx 24rpx;
border-radius: 8rpx;
font-weight: 500;
font-size: 24rpx;
color: #3582ee;
background-color: rgb(234, 242, 253);
.arrow {
width: 40rpx;
height: 40rpx;
.arrowIcon {
width: 100%;
height: 100%;
}
}
}
.dateNum.custom {
color: #333333;
background: #F7F7F7;
}
} }
.conCom { .conCom {
......
<!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml--> <!--packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml-->
<!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> --> <!-- <text>packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<view class="layout"> <view class="layout">
<view class="titleBox"> <view class="titleBox">
<view class="imgBox" bind:tap="back"> <view class="imgBox" bind:tap="back">
...@@ -9,37 +10,91 @@ ...@@ -9,37 +10,91 @@
</view> </view>
<tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" /> <tab tab="{{ tabList }}" itemWidth="{{ '30%' }}" index="{{ tabIndx }}" bindclick="changeTabIndx" class="tabContainer" />
<view class="searchBar"> <view class="searchBar">
<!-- 众筹 --> <view class="checkCon" wx:if="{{ tabIndx == 0 }}">
<scroll-view wx:if="{{tabIndx == 1}}" scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}"> <view class="checkoutBox checkBox" bind:tap="changeStatus" wx:if="{{ !allType }}"></view>
<view class="flex"> <image class="checkBox" bind:tap="changeStatus" wx:if="{{ allType }}" src="../../images/checkoutIcon.png"></image>
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.openFlag == 1 ? 'open' : 'no-open'}}" wx:for="{{scenceList[0].productList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}"> 查看全部品类
{{item.productName}} </view>
</view> <view class="calendarMonthCon">
</view> <view class="monthNow {{ dateObj.nowMonth ? 'active' : '' }}" bind:tap="handleMonthNow">本月</view>
</scroll-view> <CalendarMonth
</view> allowSameDay
shortcut
bind:select="rangeSelect"
bind:tapCalendar="tapCalendar"
rangeAll
dateType="range"
calenderColor="#3582EE"
vertical
minDate="2020-10-01"
maxDate="{{ dateObj.today }}"
isComponents
isChangeType="{{ false }}"
forceFullSucreen="{{ bottomLift>0?true:false }}"
dayType="{{ 0 }}"
>
<view class="item dateNum {{ dateObj.nowMonth ? 'custom' : '' }}">
<view wx:if="{{ dateObj.type == 'today' }}">自定义</view>
<view wx:elif="{{ dateObj.nowMonth }}">{{ dateObj.today }}</view>
<view wx:else>{{filter.dateFormatSlash(dateObj.beginDateStr)}}-{{filter.dateFormatSlash(dateObj.endDateStr)}}</view>
<view class="arrow {{ whiteArrow ? 'move' : '' }}">
<image class="arrowIcon" src="../../images/blackArrowIcon.png" />
</view>
</view>
</CalendarMonth>
</view>
<!-- 众筹 -->
<scroll-view
wx:if="{{ tabIndx == 1 }}"
scroll-x="{{ true }}"
enable-flex
class="activity-box"
scroll-with-animation
scroll-left="{{ scrollLeft }}"
>
<view class="flex">
<view
class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.openFlag == 1 ? 'open' : 'no-open' }}"
wx:for="{{ scenceList[0].productList }}"
wx:key="index"
bindtap="handleActChange"
data-idx="{{ index }}"
>{{item.productName}}</view>
</view>
</scroll-view>
</view>
<view class="conCom"> <view class="conCom">
<view wx:if="{{tabIndx == 1}}" class="activity-content"> <view wx:if="{{ tabIndx == 1 }}" class="activity-content">
<output-crowdfund wx:if="{{isShowData}}" orderObj="{{activityList[activityActive].outputData}}" bind:handleZhanReport="handleZhanReport" bind:posterTrack="posterTrack" hasReport="{{!isMock.SC004}}" /> <output-crowdfund
<view wx:else class="content-empty"> wx:if="{{ isShowData }}"
<image class="img-empty" src="{{IMGURL}}output/sun-empty-transparent.png?v={{img_version}}" /> orderObj="{{ activityList[activityActive].outputData }}"
</view> bind:handleZhanReport="handleZhanReport"
<view wx:if="{{activityList.length && isShowData && activityList[activityActive].outputData.shareBtnIdx && activityList[activityActive].outputData.shareBtnIdx != -1}}" class="isFullSucreen btn-box shadow" bindtap="handleBtnShare"> bind:posterTrack="posterTrack"
<view class="btn"> hasReport="{{ !isMock.SC004 }}"
<view class="btn-share">活动进行中,分享母链海报开展活动</view> />
</view> <view wx:else class="content-empty">
</view> <image class="img-empty" src="{{ IMGURL}}output/sun-empty-transparent.png?v={{img_version }}" />
</view> </view>
<view
wx:if="{{ activityList.length && isShowData && activityList[activityActive].outputData.shareBtnIdx && activityList[activityActive].outputData.shareBtnIdx != -1 }}"
class="isFullSucreen btn-box shadow"
bindtap="handleBtnShare"
>
<view class="btn">
<view class="btn-share">活动进行中,分享母链海报开展活动</view>
</view>
</view>
</view>
<output-echart <output-echart
wx:else wx:else
class="container" class="container"
revenueData="{{ revenueData }}" revenueData="{{ revenueData }}"
chartData="{{ diagramList }}" chartData="{{ lineChart }}"
chartDataPie="{{ chartDataPie }}" chartDataPie="{{ chartDataPie }}"
tabIndex="{{ tabIndx }}" tabIndex="{{ tabIndx }}"
customerList="{{ customerList }}" customerList="{{ customerList }}"
></output-echart> ></output-echart>
</view> </view>
<!-- <output-echart></output-echart> <!-- <output-echart></output-echart>
<output-crowdfund></output-crowdfund> --> <output-crowdfund></output-crowdfund> -->
</view> </view>
\ 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!