Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f9dabdd6
authored
Aug 21, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
功能开发
1 parent
00324d76
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
670 additions
and
50 deletions
api/outputApi/output.js
packagesList/packageOutput/components/ec-canvas/ec-canvas.js
packagesList/packageOutput/components/echart/echart.js
packagesList/packageOutput/components/echart/echart.json
packagesList/packageOutput/components/echart/echart.scss
packagesList/packageOutput/components/echart/echart.wxml
packagesList/packageOutput/components/outputEchart/outputEchart.js
packagesList/packageOutput/components/outputEchart/outputEchart.json
packagesList/packageOutput/components/outputEchart/outputEchart.scss
packagesList/packageOutput/components/outputEchart/outputEchart.wxml
packagesList/packageOutput/images/blackArrow.png
packagesList/packageOutput/images/icon-down.png
packagesList/packageOutput/images/icon-up.png
packagesList/packageOutput/index.wxs
packagesList/packageOutput/pages/newSummary/newSummary.js
packagesList/packageOutput/pages/newSummary/newSummary.json
packagesList/packageOutput/pages/newSummary/newSummary.scss
packagesList/packageOutput/pages/newSummary/newSummary.wxml
utils/request/environment.js
utils/request/request.js
密码.txt
api/outputApi/output.js
View file @
f9dabdd
...
@@ -79,11 +79,15 @@ class outputApi {
...
@@ -79,11 +79,15 @@ class outputApi {
/** 查询门店权益订单数据统计-车险升级活动产值 */
/** 查询门店权益订单数据统计-车险升级活动产值 */
getEquityRevenue
(
data
)
{
getEquityRevenue
(
data
)
{
return
api
.
post
({
return
api
.
post
(
{
// method: 'scrm.api.busassistant.merchant.equity.statistics',
// method: 'scrm.api.busassistant.merchant.equity.statistics',
method
:
'dj.api.smartcarlife.vd.quotation.merchant.statistics'
,
method
:
'dj.api.smartcarlife.vd.quotation.merchant.statistics'
,
...
data
...
data
},
false
,
'dj'
)
},
false
,
'dj'
)
}
}
/** 店面汇总-下载海报 */
/** 店面汇总-下载海报 */
...
@@ -166,5 +170,22 @@ class outputApi {
...
@@ -166,5 +170,22 @@ class outputApi {
...
data
...
data
})
})
}
}
/** 业务数据指标分析诊断-趋势分析 */
analysisTendency
(
data
)
{
return
api
.
post
({
method
:
'dj.api.smartcarlife.data.analysis.tendency'
,
...
data
},
false
,
'dj'
)
}
/** 业务数据指标分析诊断-营收概要 */
analysisOverview
(
data
)
{
return
api
.
post
({
method
:
'dj.api.smartcarlife.data.analysis.overview'
,
...
data
},
false
,
'dj'
)
}
/** 业务数据指标分析诊断-营收概要 权益会员*/
analysisOverviewVdquotation
(
data
)
{
return
api
.
post
({
method
:
'dj.api.smartcarlife.data.analysis.Vdquotation.overview'
,...
data
}
,
false
,
'dj'
)
}
/** 业务数据指标分析诊断-趋势分析 权益会员*/
analysisTendencyVdquotation
(
data
)
{
return
api
.
post
({
method
:
'dj.api.smartcarlife.data.Vdquotation.analysis.tendency'
,...
data
}
,
false
,
'dj'
)
}
}
}
export
default
outputApi
export
default
outputApi
packagesList/packageOutput/components/ec-canvas/ec-canvas.js
View file @
f9dabdd
...
@@ -70,7 +70,7 @@ Component({
...
@@ -70,7 +70,7 @@ Component({
+
'canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>'
);
+
'canvas-id="mychart-bar" ec="{{ ec }}"></ec-canvas>'
);
return
;
return
;
}
}
// console.log(this.data.ec.lazyLoad,'this.data.ec.lazyLoad');
if
(
!
this
.
data
.
ec
.
lazyLoad
)
{
if
(
!
this
.
data
.
ec
.
lazyLoad
)
{
this
.
init
();
this
.
init
();
}
}
...
...
packagesList/packageOutput/components/echart/echart.js
0 → 100644
View file @
f9dabdd
import
*
as
echarts
from
'../ec-canvas/echarts'
;
Component
({
/**
* 组件的属性列表
*/
properties
:
{
chartData
:
{
type
:
Array
,
value
:
()
=>
[]
},
keys
:
{
type
:
Array
,
value
:
[
'year'
,
'sales'
]
},
tickCount
:
{
type
:
Number
,
value
:
4
},
color
:
{
type
:
String
,
value
:
'#3975C6'
}
},
observers
:
{
'chartData'
:
function
(
data
)
{
console
.
log
(
data
,
'----------------'
)
this
.
initData
(
data
)
},
},
/**
* 组件的初始数据
*/
data
:
{
ec
:
{
// lazyLoad: false
lazyLoad
:
true
}
},
/**
* 组件的方法列表
*/
methods
:
{
onInitChart
(
xData
,
yData
)
{
this
.
ecComponent
&&
this
.
ecComponent
.
init
((
canvas
,
width
,
height
,
dpr
)
=>
{
const
chart
=
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
dpr
,
});
this
.
setOption
(
chart
,
xData
,
yData
);
return
chart
;
})
},
setOption
(
chart
,
xData
,
yData
)
{
var
option
=
{
grid
:
{
left
:
8
,
right
:
10
,
top
:
30
,
bottom
:
0
,
containLabel
:
true
},
// tooltip: {
// trigger: 'axis',
// triggerOn: "mousemove",
// axisPointer: {
// type: "none",
// lineStyle: {
// type: 'solid'
// }
// },
// padding: [0, 12],
// borderWidth: 2,
// borderColor: this.data.color,
// borderRadius: 10,
// textStyle: {
// color: this.data.color,
// fontSize: 10
// },
// position: function(pt) {
// console.log(pt)
// return [pt[0], pt[1]];
// },
// formatter: function (item) {
// return `${item[0].value}`
// }
// },
xAxis
:
{
type
:
'category'
,
axisLabel
:
{
fontSize
:
11
,
color
:
'#A6A6A6'
},
axisLine
:
{
show
:
false
//坐标轴线线
},
axisTick
:
{
show
:
false
//坐标轴刻度
},
data
:
xData
},
yAxis
:
{
x
:
'center'
,
type
:
'value'
,
axisLabel
:
{
fontSize
:
11
,
color
:
'#A6A6A6'
},
axisLine
:
{
show
:
false
//坐标轴线线
},
axisTick
:
{
show
:
false
//坐标轴刻度
},
splitLine
:
{
lineStyle
:
{
type
:
'dashed'
}
}
},
series
:
[{
data
:
yData
,
type
:
'bar'
,
label
:
{
show
:
true
,
position
:
'top'
,
color
:
this
.
data
.
color
,
},
color
:
this
.
data
.
color
,
itemStyle
:
{
borderRadius
:
[
50
,
50
,
0
,
0
],
padding
:
[
50
,
50
,
0
,
0
]
},
barWidth
:
24
}]
};
chart
.
setOption
(
option
)
},
//初始化数据
initData
(
data
)
{
const
xData
=
[],
yData
=
[];
const
[
x
,
y
]
=
this
.
data
.
keys
data
.
forEach
(
item
=>
{
xData
.
push
(
item
[
x
])
yData
.
push
(
item
[
y
])
})
this
.
setData
({
xData
,
yData
})
this
.
onInitChart
(
xData
,
yData
)
},
},
ready
()
{
// 获取组件
this
.
ecComponent
=
this
.
selectComponent
(
'#mychart-dom-bar'
);
}
})
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/components/echart/echart.json
0 → 100644
View file @
f9dabdd
{
"component"
:
true
,
"usingComponents"
:
{
"ec-canvas"
:
"../ec-canvas/ec-canvas"
}
}
packagesList/packageOutput/components/echart/echart.scss
0 → 100644
View file @
f9dabdd
/* packageOutput/components/echart/echart.wxss */
// .f2-chart {
// width: 100%;
// height: 500rpx;
// }
.ec-canvas
{
width
:
100%
;
height
:
100%
;
}
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/components/echart/echart.wxml
0 → 100644
View file @
f9dabdd
<ec-canvas class="ec-canvas" id="mychart-dom-bar" canvas-id="mychart-bar" ec="{{ ec }}" force-use-old-canvas="true"></ec-canvas>
packagesList/packageOutput/components/outputEchart/outputEchart.js
View file @
f9dabdd
...
@@ -4,20 +4,90 @@ Component({
...
@@ -4,20 +4,90 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
tabIndex
:
{
type
:
Number
,
value
:
0
},
revenueData
:{
type
:
Object
,
value
:{},
observer
:
function
(){
this
.
initRevenueData
()
}
}
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
chartData
:
[],
opts
:
{
keys
:
[
'abscissaValue'
,
'ordinateValue'
],
tickCount
:
8
},
},
revenueFormData
:
{
membraneList
:
[
{
label
:
'营业额(元)'
,
name
:
'orderMoneyTotalData'
},
{
label
:
'客单价(元)'
,
name
:
'upgradeAveragePriceData'
},
{
label
:
'订单量'
,
name
:
'upgradeCountTotalData'
},
{
label
:
'转化率'
,
name
:
'upgradeRateData'
}
],
equityList
:
[
{
label
:
'营业额(元)'
,
name
:
'outputValueData'
},
{
label
:
'权益客单价(元)'
,
name
:
'avgPriceData'
},
{
label
:
'成交客户量'
,
name
:
'successCountData'
},
{
label
:
'转化率'
,
name
:
'upgradeRateData'
}
]
}
},
attached
()
{
setTimeout
(()
=>
{
this
.
setData
({
chartData
:
[
{
abscissaValue
:
'2023-08-11'
,
ordinateValue
:
0
},
{
abscissaValue
:
'2023-08-12'
,
ordinateValue
:
0
},
{
abscissaValue
:
'2023-08-13'
,
ordinateValue
:
0
},
{
abscissaValue
:
'2023-08-14'
,
ordinateValue
:
0
},
{
abscissaValue
:
'2023-08-15'
,
ordinateValue
:
0
},
{
abscissaValue
:
'2023-08-16'
,
ordinateValue
:
9574
},
{
abscissaValue
:
'2023-08-17'
,
ordinateValue
:
0
}
]
})
},
400
)
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
initRevenueData
(){
// let {revenueData,}
}
}
}
})
})
packagesList/packageOutput/components/outputEchart/outputEchart.json
View file @
f9dabdd
{
{
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{}
"usingComponents"
:
{
"echart"
:
"../echart/echart"
}
}
}
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/components/outputEchart/outputEchart.scss
View file @
f9dabdd
/* packagesList/packageOutput/components/outputEchart/outputEchart.wxss */
/* packagesList/packageOutput/components/outputEchart/outputEchart.wxss */
.container
{
// padding: 20rpx 16rpx;
margin-bottom
:
20rpx
;
font-size
:
36rpx
;
// border-radius: 16rpx;
.title
{
display
:
flex
;
justify-content
:
space-between
;
font-weight
:
600
;
font-size
:
28rpx
;
color
:
#323436
;
.title-tip
{
font-weight
:
400
;
font-size
:
20rpx
;
color
:
#999999
;
}
.title-tip-red
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#db6d6d
;
}
}
.content
{
padding
:
24rpx
20rpx
;
.row
{
font-size
:
24rpx
;
padding
:
16rpx
0
;
border-bottom
:
0
.5rpx
solid
#e4e6ee
;
.label
{
margin-bottom
:
19rpx
;
}
.num
{
font-weight
:
600
;
font-size
:
36rpx
;
color
:
#333333
;
}
}
.row
:last-child
{
border
:
none
;
}
.td
:first-child
{
width
:
60%
;
}
.td
:nth-child
(
2
),
.td
:nth-child
(
3
)
{
width
:
20%
;
}
.icon-up-down
{
width
:
24rpx
;
height
:
24rpx
;
}
.up
{
font-weight
:
600
;
color
:
#f24724
;
}
.down
{
font-weight
:
600
;
color
:
#35c376
;
}
}
.revenue
{
box-sizing
:
border-box
;
background-color
:
#fff
;
padding
:
20rpx
16rpx
40rpx
;
margin-bottom
:
20rpx
;
}
.pro-rank
{
.rank-item
{
border-bottom
:
0
.5rpx
solid
#e4e6ee
;
padding
:
24rpx
0
;
}
.rank-idx
{
width
:
36rpx
;
height
:
36rpx
;
line-height
:
40rpx
;
text-align
:
center
;
background
:
#999999
;
border-radius
:
8rpx
;
font-weight
:
600
;
font-size
:
20rpx
;
color
:
#ffffff
;
margin-right
:
10rpx
;
}
.rank-0
{
background-image
:
linear-gradient
(
180deg
,
#ffd767
0%
,
#f7c33f
100%
);
color
:
#a86921
;
}
.rank-1
{
background-image
:
linear-gradient
(
180deg
,
#dfe1e5
0%
,
#cbccce
100%
);
color
:
#8b8585
;
}
.rank-2
{
background-image
:
linear-gradient
(
180deg
,
#f6dac4
0%
,
#f0be98
100%
);
color
:
#cf7334
;
}
.pro-name
{
width
:
480rpx
;
font-weight
:
600
;
font-size
:
28rpx
;
color
:
#333333
;
}
.price
{
font-weight
:
600
;
font-size
:
36rpx
;
color
:
#f24724
;
text-align
:
right
;
}
.tips
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#666666
;
margin
:
18rpx
0
0
46rpx
;
}
.icons
{
width
:
100%
;
text-align
:
center
;
padding
:
20rpx
0
0
;
}
.rank-icon
{
width
:
40rpx
;
height
:
40rpx
;
}
}
}
.container.revenue
{
padding
:
20rpx
0
20rpx
16rpx
;
.title-tip
{
margin-right
:
16rpx
;
}
}
.container.rank
{
padding
:
24rpx
10rpx
0
20rpx
;
}
.container.result
{
background-image
:
linear-gradient
(
0deg
,
#f8fbff
0%
,
#eff5fe
100%
);
border-radius
:
16rpx
;
.content
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#333333
;
}
}
.flex
{
display
:
flex
;
align-items
:
center
;
}
.container
{
// height: 370rrpx;
height
:
100%
;
overflow
:
scroll
;
background-color
:
#fff
;
}
::-webkit-scrollbar
{
width
:
0
;
height
:
0
;
color
:
transparent
;
display
:
none
;
}
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/components/outputEchart/outputEchart.wxml
View file @
f9dabdd
<!--packagesList/packageOutput/components/outputEchart/outputEchart.wxml-->
<!--packagesList/packageOutput/components/outputEchart/outputEchart.wxml-->
<text>packagesList/packageOutput/components/outputEchart/outputEchart.wxml</text>
<!-- <text>packagesList/packageOutput/components/outputEchart/outputEchart.wxml</text> -->
<wxs src="../../index.wxs" module="filter" />
<view class="container">
<view class="revenue">
<view class="title">
营收概要
<view wx:if="{{ phone && outputObj }}" class="title-tip">当月产值目标:{{
outputObj.targetOutputValue || 0 }}元
完成进度{{ outputObj.currentProgress || 0 }}%</view>
</view>
<view class="content revenue">
<view wx:for="{{ tabIndex? revenueFormData.equityList: revenueFormData.membraneList }}" wx:key="index" class="flex row">
<view class="td">
<view class="label">{{ item.label }}</view>
<view class="num">{{filter.filterItemName(item,revenueData)}}</view>
</view>
<view class="td">
<view class="label">较上月</view>
<view class="flex">
<view class="{{ revenueData[item.name].revenueToClassMonth}}">
{{revenueData[item.name].comparedWithLastMonth }}
</view>
<image wx:if="{{revenueData[item.name].revenueToClassMonth}}" class="icon-up-down"
src="../../images/icon-{{revenueData[item.name].revenueToClassMonth}}.png" />
</view>
</view>
<view class="td">
<view class="label">较去年</view>
<view class="flex">
<view :class="{{revenueData[item.name].revenueToClassYear}}">
{{revenueData[item.name].comparedWithLastYear }}</view>
<image wx:if="{{revenueData[item.name].revenueToClassYear}}" class="icon-up-down"
src="../../images/icon-'{{revenueData[item.name].revenueToClassYear}}.png" />
</view>
</view>
</view>
</view>
</view>
<!-- <echart chartData="{{ chartData }}" tickCount="{{ opts.tickCount }}" keys="{{ opts.keys }}"></echart> -->
</view>
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/images/blackArrow.png
0 → 100644
View file @
f9dabdd
1.54 KB
packagesList/packageOutput/images/icon-down.png
0 → 100644
View file @
f9dabdd
566 Bytes
packagesList/packageOutput/images/icon-up.png
0 → 100644
View file @
f9dabdd
561 Bytes
packagesList/packageOutput/index.wxs
View file @
f9dabdd
...
@@ -46,11 +46,40 @@ var threeNumForTwo = {
...
@@ -46,11 +46,40 @@ var threeNumForTwo = {
}
}
}
}
var filterItemName = function (item,revenueData) {
console.log(item,revenueData);
var unit = item.name == 'upgradeRateData' ? '%' : ''
if (revenueData && revenueData[item.name]) {
return revenueData[item.name].value + unit
} else{
return 0 + unit
}
}
var revenueToClass = function (item,revenueData,name) {
console.log(item,revenueData,name);
// var unit = item.name == 'upgradeRateData' ? '%' : ''
if (revenueData && revenueData[item.name]&&revenueData[item.name][name]) {
const val = revenueData[item.name][name]
return val > 0 ? 'up' : 'down'
}
}
// var optionalChaining = function (obj,) {
// var rest = Array.prototype.slice.call(arguments, 1);
// var tmp = obj
// for (var key in rest) {
// var name = rest[key];
// tmp = tmp !== null && tmp !== undefined ? tmp[name] : undefined;
// }
// return tmp !== null && tmp !== undefined ? tmp : "";
// }
/*
/*
* 导出
* 导出
*/
*/
module.exports = {
module.exports = {
setPrice: setPrice,
setPrice: setPrice,
filterItemName:filterItemName,
revenueToClass:revenueToClass,
// $$:optionalChaining,
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands //暴露接口调用
money_three_for_two_thousands: threeNumForTwo.money_three_for_two_thousands //暴露接口调用
}
}
packagesList/packageOutput/pages/newSummary/newSummary.js
View file @
f9dabdd
// packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.js
// packagesList/packageOutput/pages/openNewBusiness/openNewBusiness.js
Component
({
import
outputApi
from
'~/api/outputApi/index'
Page
({
/**
/**
* 组件的属性列表
* 页面的初始数据
*/
properties
:
{
},
/**
* 组件的初始数据
*/
*/
data
:
{
data
:
{
tabList
:
[{
tabList
:
[
label
:
'精品升级-太阳膜'
,
{
label
:
'精品升级-太阳膜'
,
width
:
'34%'
width
:
'34%'
},{
},
label
:
'众筹活动'
,
{
label
:
'众筹活动'
,
width
:
'25%'
width
:
'25%'
},{
},
label
:
'会员权益/升级'
,
{
label
:
'会员权益/升级'
,
width
:
'30%'
width
:
'30%'
},],
}
],
tabIndx
:
1
},
},
initData
()
{
let
{
tabIndx
}
=
this
.
data
// tabIndx == 1 ? this.crowdfundingData :
console
.
log
(
tabIndx
,
'tabIndx'
);
this
.
getAnalysisTendency
(
tabIndx
)
},
crowdfundingData
()
{},
getAnalysisTendency
(
tabIndx
)
{
console
.
log
(
tabIndx
,
'tabIndx'
);
let
params
=
{
isSuper
:
true
,
phone
:
''
,
dataDimension
:
tabIndx
,
startDate
:
'2023-08-01'
,
endDate
:
'2023-08-21'
}
// 默认是精品升级 取后面接口
let
apiName
=
outputApi
[
tabIndx
?
'analysisOverviewVdquotation'
:
'analysisOverview'
]
let
apiNameTendency
=
outputApi
[
tabIndx
?
'analysisTendencyVdquotation'
:
'analysisTendency'
]
apiName
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'analysisOverview'
)
let
revenueData
=
res
for
(
const
key
in
revenueData
)
{
let
month
=
revenueData
[
key
].
comparedWithLastMonth
let
year
=
revenueData
[
key
].
comparedWithLastYear
// let val3 = revenueData[key].comparedWithLastMonth
// let val4 = revenueData[key].comparedWithLastMonth
revenueData
[
key
].
revenueToClassMonth
=
month
==
null
||
month
==
0
?
''
:
month
>
0
?
'up'
:
'down'
revenueData
[
key
].
revenueToClassYear
=
year
==
null
||
year
==
0
?
''
:
year
>
0
?
'up'
:
'down'
revenueData
[
key
].
comparedWithLastMonth
=
month
==
null
?
'0%'
:
Math
.
abs
(
month
)
+
'%'
revenueData
[
key
].
comparedWithLastYear
=
year
==
null
?
'0%'
:
Math
.
abs
(
year
)
+
'%'
}
this
.
setData
({
revenueData
})
})
apiNameTendency
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'analysisTendency'
)
this
.
setData
({
firstOrderDate
:
res
?.
firstOrderDate
,
diagnosticResults
:
res
.
diagnosticResults
||
''
,
diagramList
:
res
.
diagramList
||
[]
// this.drawBar(data.diagramList)
})
})
},
onRoute
()
{
/**
this
.
getAnalysisTendency
(
this
.
data
.
tabIndx
)
* 组件的方法列表
// this.getListSelectAccount(sessionId)
*/
methods
:
{
}
}
})
})
packagesList/packageOutput/pages/newSummary/newSummary.json
View file @
f9dabdd
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"component"
:
true
,
"component"
:
true
,
"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"
},
},
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
...
...
packagesList/packageOutput/pages/newSummary/newSummary.scss
View file @
f9dabdd
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
position
:
relative
;
position
:
relative
;
// padding: 400rpx 16rpx 0;
// padding: 400rpx 16rpx 0;
// padding-top: 400rpx;
// padding-top: 400rpx;
padding-top
:
8
8
rpx
;
padding-top
:
8
0
rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#8A8C90
;
color
:
#8A8C90
;
display
:
flex
;
display
:
flex
;
...
@@ -12,11 +12,37 @@
...
@@ -12,11 +12,37 @@
height
:
100vh
;
height
:
100vh
;
overflow
:
hidden
;
overflow
:
hidden
;
.titleBox
{
box-sizing
:
border-box
;
position
:
relative
;
padding
:
0
32rpx
;
display
:
flex
;
height
:
88rpx
;
// padding-top: 80rpx;
align-items
:
center
;
width
:
100%
;
justify-content
:
center
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#282829
;
}
.imgBox
{
position
:
absolute
;
left
:
40rpx
;
// margin-right: auto;
}
.titleBox
.imgBox
image
{
width
:
40rpx
;
height
:
40rpx
;
display
:
inline-block
;
vertical-align
:
middle
;
}
&
:
:
after
{
&
:
:
after
{
content
:
''
;
content
:
''
;
width
:
100%
;
width
:
100%
;
// height:
486
rpx;
// height:
350
rpx;
height
:
3
5
0rpx
;
height
:
3
2
0rpx
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png')
no-repeat
;
background
:
url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/bg.png')
no-repeat
;
background-size
:
100%
264rpx
;
background-size
:
100%
264rpx
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -26,9 +52,6 @@
...
@@ -26,9 +52,6 @@
z-index
:
-1
;
z-index
:
-1
;
}
}
.merchantTitle
{
height
:
88rpx
;
}
.tabContainer
{
.tabContainer
{
height
:
100rpx
;
height
:
100rpx
;
font-weight
:
600
;
font-weight
:
600
;
...
@@ -37,24 +60,32 @@
...
@@ -37,24 +60,32 @@
// background-color: #F2F3F7;
// background-color: #F2F3F7;
}
}
.tab.active
{
.tab.active
{
.text
{
.text
{
font-size
:
34rpx
!
important
;
font-size
:
34rpx
!
important
;
color
:
#323436
!
important
;
color
:
#323436
!
important
;
}
}
}
}
.searchBar
{
height
:
88rpx
;
background-color
:
#fff
;
}
.conCom
{
box-sizing
:
border-box
;
height
:
calc
(
100%
);
padding
:
20rpx
20rpx
60rpx
;
// overflow: scroll;
overflow
:
hidden
;
}
.container
{
box-sizing
:
border-box
;
height
:
calc
(
100%
-
80rpx
);
.comCom
{
// flex: 1;
height
:
calc
(
100%
-
100rpx
);
overflow
:
scroll
;
// background-color: #fff;
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
}
}
.
co
mCom
:
:-
webkit-scrollbar
{
.
co
ntainer
:
:-
webkit-scrollbar
{
display
:
none
;
display
:
none
;
width
:
0
;
width
:
0
;
height
:
0
;
height
:
0
;
...
...
packagesList/packageOutput/pages/newSummary/newSummary.wxml
View file @
f9dabdd
<!--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> -->
<view class="layout" >
<view class="layout" >
<view class="merchantTitle">广西弘泽汽车销售服务…</view>
<view class="titleBox">
<view class="imgBox" bind:tap="back">
<image src="../../images/blackArrow.png" />
</view>
<view class="navigation-title-text">广西弘泽汽车销售服务…</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>
<view class="conCom" >
<output-echart class="container" revenueData="{{revenueData}}" tabIndex="{{tabIndx}}"></output-echart>
</view>
<!-- <output-echart></output-echart>
<!-- <output-echart></output-echart>
<output-crowdfund></output-crowdfund> -->
<output-crowdfund></output-crowdfund> -->
</view>
</view>
utils/request/environment.js
View file @
f9dabdd
...
@@ -25,7 +25,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -25,7 +25,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
1
let
index
=
2
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
@@ -146,7 +146,8 @@ const pathEnum = {
...
@@ -146,7 +146,8 @@ const pathEnum = {
sop
:
'/rop-scrm-sop/'
,
sop
:
'/rop-scrm-sop/'
,
customercollect
:
'/rop-scrm-bigdatautil/'
,
customercollect
:
'/rop-scrm-bigdatautil/'
,
drac
:
'/rop-scrm-entmicro/'
,
drac
:
'/rop-scrm-entmicro/'
,
busassistant
:
'/rop-scrm-busassistant/'
busassistant
:
'/rop-scrm-busassistant/'
,
smartcarlife
:
'/rop-dj-car-boutique/'
}
}
const
defaultMerchantId
=
{
const
defaultMerchantId
=
{
ip
:
'44184606'
,
ip
:
'44184606'
,
...
...
utils/request/request.js
View file @
f9dabdd
...
@@ -7,6 +7,7 @@ class Request {
...
@@ -7,6 +7,7 @@ class Request {
return
this
.
request
(
'GET'
,
params
,
returnAll
,
requestPath
)
return
this
.
request
(
'GET'
,
params
,
returnAll
,
requestPath
)
}
}
post
(
params
,
returnAll
=
false
,
requestPath
)
{
post
(
params
,
returnAll
=
false
,
requestPath
)
{
console
.
log
(
requestPath
,
'requestPath'
)
return
this
.
request
(
'POST'
,
params
,
returnAll
,
requestPath
)
return
this
.
request
(
'POST'
,
params
,
returnAll
,
requestPath
)
}
}
async
request
(
RequestMethods
,
params
,
returnAll
,
requestPath
=
'scrm'
)
{
async
request
(
RequestMethods
,
params
,
returnAll
,
requestPath
=
'scrm'
)
{
...
@@ -21,6 +22,7 @@ class Request {
...
@@ -21,6 +22,7 @@ class Request {
}
}
:
{}
:
{}
let
projectName
=
params
.
apiProjectName
||
this
.
getRopProject
(
params
.
method
)
let
projectName
=
params
.
apiProjectName
||
this
.
getRopProject
(
params
.
method
)
// console.log(projectName, 'projectName')
if
(
!
projectName
)
projectName
=
this
.
getRopProject
(
params
.
method
)
if
(
!
projectName
)
projectName
=
this
.
getRopProject
(
params
.
method
)
let
path
=
pathEnum
[
projectName
]
let
path
=
pathEnum
[
projectName
]
if
(
!
path
)
{
if
(
!
path
)
{
...
...
密码.txt
View file @
f9dabdd
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment