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 7be14a56
authored
Oct 14, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
店面产值汇总
1 parent
0cf07170
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
193 additions
and
7 deletions
app.json
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.json
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
packageOutput/pages/summary/components/outputTransform/outputTransform.js
packageOutput/pages/summary/components/outputTransform/outputTransform.json
packageOutput/pages/summary/components/outputTransform/outputTransform.scss
packageOutput/pages/summary/components/outputTransform/outputTransform.wxml
packageOutput/pages/summary/summary.js
packageOutput/pages/summary/summary.json
packageOutput/pages/summary/summary.scss
packageOutput/pages/summary/summary.wxml
app.json
View file @
7be14a5
...
@@ -11,8 +11,10 @@
...
@@ -11,8 +11,10 @@
"pages/checkProduct/checkProduct"
,
"pages/checkProduct/checkProduct"
,
"packageOutput/pages/summary/summary"
,
"packageOutput/pages/summary/summary"
,
"packageOutput/pages/openBusiness/openBusiness"
"packageOutput/pages/openBusiness/openBusiness"
],,
],
"requiredPrivateInfos"
:
[
"getLocation"
],
"requiredPrivateInfos"
:
[
"getLocation"
],
"lazyCodeLoading"
:
"requiredComponents"
,
"lazyCodeLoading"
:
"requiredComponents"
,
"window"
:
{
"window"
:
{
"backgroundTextStyle"
:
"light"
,
"backgroundTextStyle"
:
"light"
,
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
0 → 100644
View file @
7be14a5
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.json
0 → 100644
View file @
7be14a5
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
0 → 100644
View file @
7be14a5
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.layout
{
width
:
100%
;
height
:
200rpx
;
background-color
:
#F2F3F7
;
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
0 → 100644
View file @
7be14a5
<!--packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml-->
<view class="layout"></view>
packageOutput/pages/summary/components/outputTransform/outputTransform.js
0 → 100644
View file @
7be14a5
// packageOutput/pages/summary/components/outputTransform/outputTransform.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
formData
:
{
type
:
Object
,
value
:
()
=>
{}
}
},
/**
* 组件的初始数据
*/
data
:
{
formDataList
:
[{
label
:
'到店贴膜量'
,
name
:
'toShopCount'
},
{
label
:
'体验量'
,
name
:
'experienceCount'
},
{
label
:
'成交订单'
,
name
:
'upgradeCount'
},
{
label
:
'营业额'
,
name
:
'totalOrderMoney'
},
{
label
:
'客单价'
,
name
:
''
,
prefix
:
'¥'
},
{
label
:
'引流体验量'
,
name
:
''
,
suffix
:
'%'
},
{
label
:
'体验转化率'
,
name
:
''
,
suffix
:
'%'
}]
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
packageOutput/pages/summary/components/outputTransform/outputTransform.json
0 → 100644
View file @
7be14a5
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/components/outputTransform/outputTransform.scss
0 → 100644
View file @
7be14a5
/* packageOutput/pages/summary/components/outputTransform/outputTransform.wxss */
.layout
{
display
:
flex
;
flex-wrap
:
wrap
;
.block
{
width
:
calc
(
100%
/
3
);
text-align
:
center
;
padding
:
32rpx
0
;
font-size
:
32rpx
;
color
:
#323436
;
font-weight
:
600
;
.label
{
font-size
:
26rpx
;
color
:
#5A6066
;
font-weight
:
400
;
margin-top
:
8rpx
;
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/components/outputTransform/outputTransform.wxml
0 → 100644
View file @
7be14a5
<!--packageOutput/pages/summary/components/outputTransform/outputTransform.wxml-->
<view class="layout">
<view class="block" wx:for="{{formDataList}}" wx:key="index">
<view>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{formData[item.name]}}
<text wx:if="{{item.suffix}}">{{item.suffix}}</text>
</view>
<view class="label">{{item.label}}</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/summary.js
View file @
7be14a5
...
@@ -13,7 +13,7 @@ Page({
...
@@ -13,7 +13,7 @@ Page({
sence3
:
false
,
sence3
:
false
,
sence4
:
true
sence4
:
true
},
},
senceActive
:
1
,
senceActive
:
4
,
sencePriceList
:
[{
sencePriceList
:
[{
total
:
0
total
:
0
},
{
},
{
...
@@ -55,7 +55,11 @@ Page({
...
@@ -55,7 +55,11 @@ Page({
sence2
:
[{
sence2
:
[{
name
:
'座椅通风'
,
name
:
'座椅通风'
,
price
:
30
,
price
:
30
,
isOpen
:
true
isOpen
:
true
,
toShopCount
:
120
,
experienceCount
:
200
,
upgradeCount
:
300
,
totalOrderMoney
:
365
},
{
},
{
name
:
'座椅通风'
,
name
:
'座椅通风'
,
price
:
40
price
:
40
...
@@ -70,7 +74,8 @@ Page({
...
@@ -70,7 +74,8 @@ Page({
}],
}],
sence4
:
[{
sence4
:
[{
name
:
'数字化'
,
name
:
'数字化'
,
price
:
70
price
:
70
,
isOpen
:
true
},
{
},
{
name
:
'数字化'
,
name
:
'数字化'
,
price
:
80
price
:
80
...
@@ -96,6 +101,16 @@ Page({
...
@@ -96,6 +101,16 @@ Page({
price
:
80
,
price
:
80
,
isOpen
:
true
isOpen
:
true
}]
}]
},
// 产值
searchForm
:
{
sence2Idx
:
0
,
sence3Idx
:
0
,
sence4Idx
:
0
},
baseData
:
{
timeList
:
[
'全部'
,
'本月'
,
'本日'
],
actStatusList
:
[
'全部'
,
'申请中'
,
'活动中'
,
'已结束'
]
}
}
},
},
...
@@ -130,6 +145,18 @@ Page({
...
@@ -130,6 +145,18 @@ Page({
}
}
},
},
handleSelect
()
{
wx
.
showActionSheet
({
itemList
:
this
.
data
.
senceActive
!=
4
?
this
.
data
.
baseData
.
timeList
:
this
.
data
.
baseData
.
actStatusList
,
success
:
res
=>
{
this
.
setData
({
[
'searchForm.sence'
+
this
.
data
.
senceActive
+
'Idx'
]:
res
.
tapIndex
})
console
.
log
(
'调接口---'
)
}
})
},
handleJump
(
e
)
{
handleJump
(
e
)
{
console
.
log
(
this
.
data
.
activityList
[
this
.
data
.
activityActive
])
console
.
log
(
this
.
data
.
activityList
[
this
.
data
.
activityActive
])
wx
.
$router
.
go
(
'packageOutput.openBusiness'
)
wx
.
$router
.
go
(
'packageOutput.openBusiness'
)
...
...
packageOutput/pages/summary/summary.json
View file @
7be14a5
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"sence-box"
:
"../../../components/SenceBox/SenceBox"
"sence-box"
:
"../../../components/SenceBox/SenceBox"
,
"output-transform"
:
"./components/outputTransform/outputTransform"
,
"output-crowdfund"
:
"./components/outputCrowdfund/outputCrowdfund"
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/summary.scss
View file @
7be14a5
...
@@ -61,9 +61,32 @@ page {
...
@@ -61,9 +61,32 @@ page {
}
}
.activity-content
{
.activity-content
{
.activity-title
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
font-weight
:
400
;
.select
{
font-size
:
24rpx
;
color
:
#323436
;
.icon-arrow
{
width
:
24rpx
;
height
:
24rpx
;
margin
:
6rpx
0
0
6rpx
;
}
}
}
.activity-title.no-border
{
border-width
:
0
;
}
.content-empty
{
.content-empty
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
48rpx
;
margin-top
:
48rpx
;
.img-empty
{
.img-empty
{
width
:
512rpx
;
width
:
512rpx
;
height
:
512rpx
;
height
:
512rpx
;
...
...
packageOutput/pages/summary/summary.wxml
View file @
7be14a5
...
@@ -13,7 +13,18 @@
...
@@ -13,7 +13,18 @@
</scroll-view>
</scroll-view>
<!-- 活动内容 -->
<!-- 活动内容 -->
<view class="activity-content">
<view class="activity-content">
<view wx:if="{{activityList[activityActive].isOpen}}"></view>
<view wx:if="{{activityList[activityActive].isOpen && senceActive != 1}}">
<view class="activity-title title {{ senceActive == 4 ? 'no-border' : ''}}">
<view>看产值</view>
<view class="select" bindtap="handleSelect">
<text wx:if="{{senceActive == 2 || senceActive == 3}}" class="select-txt">{{baseData.timeList[senceActive == 2 ? searchForm.sence2Idx : searchForm.sence3Idx]}}</text>
<text wx:if="{{senceActive == 4}}" class="select-txt">{{baseData.actStatusList[searchForm.sence4Idx]}}</text>
<image class="icon-arrow" src="{{IMGURL}}output/arrow.png?v={{img_version}}"></image>
</view>
</view>
<output-transform wx:if="{{senceActive == 2 || senceActive == 3}}" formData="{{activityList[activityActive]}}"></output-transform>
<output-crowdfund wx:if="{{senceActive == 4}}"></output-crowdfund>
</view>
<view wx:else class="content-empty">
<view wx:else class="content-empty">
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
</view>
</view>
...
...
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