Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
b65022f2
Commit
b65022f2
authored
Apr 01, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9c59a22b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
77 additions
and
39 deletions
+77
-39
pages.json
pages.json
+7
-1
share-detail.vue
pages/share-team/share-detail.vue
+18
-2
fl-calendar.vue
pages/share/cp/fl-calendar.vue
+7
-5
index.vue
pages/share/index/index.vue
+1
-2
salesvolume.vue
pages/share/salesvolume.vue
+44
-29
xiaoshoue.png
static/images/xiaoshoue.png
+0
-0
No files found.
pages.json
View file @
b65022f2
...
...
@@ -157,7 +157,13 @@
},
{
"path"
:
"buyInterest/index"
}
},
{
"path"
:
"salesvolume"
,
"style"
:
{
"navigationStyle"
:
"custom"
}
}
]
},
{
...
...
pages/share-team/share-detail.vue
View file @
b65022f2
...
...
@@ -297,7 +297,16 @@
<Text
style=
"font-size: 12px;margin-top: 5px;height:19px;font-family:'cuIcon'"
>
{{
headData
.
createDateStr
}}
</Text>
</view>
</view>
<image
mode=
"widthFix"
@
click=
"godiagram"
src=
"../../static/images/useRrelationship.png"
style=
"width:75px;height:24px;"
></image>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
>
<view>
<image
mode=
"widthFix"
@
click=
"godiagram"
src=
"../../static/images/useRrelationship.png"
style=
"width:75px;height:24px;"
></image>
</view>
<view>
<image
mode=
"widthFix"
@
click=
"gosales()"
src=
"../../static/images/xiaoshoue.png"
style=
"width:70px;height:24px;margin-top: 5px;"
></image>
</view>
</view>
</view>
<view
class=
"sharebox_topc"
>
<view
class=
"center_item"
style=
"font-size: 12px;color: #FFFFFF;justify-content: space-between;"
>
...
...
@@ -791,8 +800,15 @@
}
}
);
}
},
gosales
(){
uni
.
navigateTo
({
url
:
'/pages/share/salesvolume?UserId='
+
this
.
headMsg
.
UserId
});
},
},
created
()
{
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
-
40
)
+
'px'
;
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
...
...
pages/share/cp/fl-calendar.vue
View file @
b65022f2
...
...
@@ -223,7 +223,7 @@
this
.
startTimeString
=
this
.
timeArr
[
0
]
}
console
.
log
(
'timeArr'
,
this
.
timeArr
)
// }else{
// uni.showToast({
// title:"选择日期不能小于当天!",
...
...
@@ -258,7 +258,7 @@
dayArray
:
this
.
dealDateArray
(
year
,
month
)
//日数组
})
}
console
.
log
(
'列表'
,
this
.
dateList
)
},
// 获取传参日期后处理出当天时间戳(重要)
dealStarAndEndDay
()
{
...
...
@@ -380,7 +380,8 @@
bottom:-100%;
width: 100%;
box-sizing: border-box;
padding: 0 62rpx;
padding: 0 62rpx;
z-index: 99999;
// 头部操作区域
.navTop {
position: relative;
...
...
@@ -392,7 +393,7 @@
// 取消按钮
.cancel {
font-size: 28rpx;
z-index:
10
;
z-index:
999999
;
}
// 标题
...
...
@@ -542,7 +543,8 @@
align-items: center;
justify-content: space-between;
background-color: #fff;
z-index: 1;
z-index: 199999;
border-top: 1rpx #ededed solid;
view {
...
...
pages/share/index/index.vue
View file @
b65022f2
...
...
@@ -90,7 +90,7 @@
<view
style=
"width: 2px;height: 25px;background: #FFFFFF;justify-content: space-between;"
></view>
<view
class=
"center_item"
style=
"font-size: 12px;color: #FFFFFF;"
@
click=
"gosales()"
>
<Text>
销售额
</Text>
<Text>
0
元
</Text>
<Text>
{{
sharedata
.
UserInfo
.
MySellMoney
!=
null
?
sharedata
.
UserInfo
.
MySellMoney
:
0
}}
元
</Text>
</view>
</view>
<!-- 会员购买 -->
...
...
@@ -178,7 +178,6 @@
<u-icon
name=
"arrow"
size=
"24"
color=
"#A5A3AB"
></u-icon>
</view>
</view>
</view>
<view
class=
"sharebox_menus"
v-if=
"UserPageType.UserPageType!=2"
>
<view
class=
"menus_item"
@
click=
"goUrl('/pages/share-qrcode/share-qrcode',1)"
>
...
...
pages/share/salesvolume.vue
View file @
b65022f2
...
...
@@ -83,18 +83,18 @@
</view>
<view
class=
"top-b"
>
<view
class=
"top-b-item"
>
<text
class=
"distext"
>
我的总销售额
</text>
<text
class=
"distext"
>
{{
showText
==
0
?
'我的总销售额'
:
'TA的总销售额'
}}
</text>
<view
class=
"dised"
style=
"font-size: 17px;"
>
{{
data
.
MySellMoney
?
data
.
MySellMoney
.
toFixed
(
2
):
0
}}
<text
style=
"font-size: 10px;margin-bottom: 6rpx;"
>
(元)
</text>
</view>
</view>
<view
style=
"width: 1px;height: 30px;background: #FFF;"
></view>
<view
class=
"top-b-item"
>
<text
class=
"distext"
>
线下
总销售额
</text>
<text
class=
"distext"
>
下线
总销售额
</text>
<view
class=
"dised"
style=
"font-size: 17px;"
>
{{
data
.
ReSellMoney
?
data
.
ReSellMoney
.
toFixed
(
2
):
0
}}
<text
style=
"font-size: 10px;margin-bottom: 6rpx;"
>
(元)
</text>
</view>
</view>
</view>
</view>
<view
style=
"width: 100%;padding:0 15px;display: flex;align-items: center;justify-content: space-between;height: 50px;"
>
<text
style=
"font-size: 17px;color: #000000;font-weight: bold;"
>
我的销售额
</text>
<text
style=
"font-size: 17px;color: #000000;font-weight: bold;"
>
{{
showText
==
0
?
'我的销售额'
:
'销售额'
}}
</text>
</view>
<view
style=
"width: 100%;display: flex;align-items: center;justify-content: center;"
>
...
...
@@ -104,28 +104,32 @@
</view>
</view>
<canvas
canvas-id=
"canvasColumn"
id=
"canvasColumn"
class=
"charts"
disable-scroll=
true
@
touchstart=
"touchColumn"
@
touchmove=
"moveColumn"
@
touchend=
"touchEndColumn"
>
@
touchstart=
"touchColumn"
@
touchmove=
"moveColumn"
@
touchend=
"touchEndColumn"
>
<cover-view>
<calendar
ref=
"calendar"
v-if=
"show"
@
cancel=
"show=false"
:startDate=
"msg.StartTime"
:height=
"height"
:endDate=
"msg.EndTime"
@
selectDate=
"selectDate"
:limit=
"limit"
/>
</cover-view>
</canvas>
<view
class=
"zongjie"
>
<view
class=
"zongjie-item"
>
<text>
我的销售额
</text>
<text
style=
"font-size: 22px;color: #000000;
"
>
{{
timeMySale
.
toFixed
(
2
)
}}
</text>
<text>
{{
showText
==
0
?
'我的销售额'
:
'销售额'
}}
</text>
<text
:style=
"
{'font-size':timeMySale>10000 ||timeReSale>10000 ?'12px': '22px','color': '#000000'}
">
{{
timeMySale
.
toFixed
(
2
)
}}
</text>
</view>
<view
style=
"width: 1px;height: 30px;background: #D2D2D2;"
></view>
<view
class=
"zongjie-item"
>
<text>
线下
销售额
</text>
<text
style=
"font-size: 22px;color: #000000;
"
>
{{
timeReSale
.
toFixed
(
2
)
}}
</text>
<text>
下线
销售额
</text>
<text
:style=
"
{'font-size':timeMySale>10000 ||timeReSale>10000?'12px': '22px','color': '#000000'}
">
{{
timeReSale
.
toFixed
(
2
)
}}
</text>
</view>
</view>
</view>
<calendar
ref=
"calendar"
v-if=
"show"
@
cancel=
"show=false"
:startDate=
"msg.StartTime"
:height=
"height"
:endDate=
"msg.EndTime"
@
selectDate=
"selectDate"
:limit=
"limit"
/>
</view>
</view>
</scroll-view>
...
...
@@ -151,6 +155,7 @@
secondary
:
''
,
headStyle
:
{},
scrollTop
:
0
,
showText
:
0
,
//显示我还是他 0 是我 1 是他
params
:
{
year
:
true
,
month
:
true
,
...
...
@@ -195,13 +200,18 @@
onLoad
(
options
)
{
_self
=
this
;
if
(
options
&&
options
.
UserId
)
{
this
.
msg
.
UserId
=
options
.
UserId
;
this
.
msg
.
UserId
=
options
.
UserId
;
let
UserId
=
uni
.
getStorageSync
(
'mall_UserInfo'
)?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
;
if
(
UserId
!=
this
.
msg
.
UserId
){
this
.
showText
=
1
}
this
.
getTime
()
}
},
methods
:
{
// 获取传参
selectDate
(
data
)
{
console
.
log
(
data
)
if
(
data
.
dayNum
>
30
){
uni
.
showToast
({
title
:
'时间不能超过30天'
,
...
...
@@ -232,21 +242,22 @@
res
=>
{
if
(
res
.
resultCode
==
1
)
{
this
.
data
=
res
.
data
this
.
data
.
DayList
=
[{
Day
:
"2020-04-10"
,
MySale
:
80
,
ReSale
:
70
},
{
Day
:
"2020-04-11"
,
MySale
:
100
,
ReSale
:
40
},
{
Day
:
"2020-04-12"
,
MySale
:
20
,
ReSale
:
30
},
{
Day
:
"2020-04-13"
,
MySale
:
30
,
ReSale
:
120
},
{
Day
:
"2020-04-14"
,
MySale
:
58
,
ReSale
:
67
},
{
Day
:
"2020-04-15"
,
MySale
:
90
,
ReSale
:
100
},
{
Day
:
"2020-04-16"
,
MySale
:
23
,
ReSale
:
400
},
]
//
this.data.DayList = [{Day: "2020-04-10",MySale: 80,ReSale: 70},
//
{Day: "2020-04-11",MySale: 100,ReSale: 40},
//
{Day: "2020-04-12",MySale: 20,ReSale: 30},
//
{Day: "2020-04-13",MySale: 30,ReSale: 120},
//
{Day: "2020-04-14",MySale: 58,ReSale: 67},
//
{Day: "2020-04-15",MySale: 90,ReSale: 100},
//
{Day: "2020-04-16",MySale: 23,ReSale: 400},
//
]
let
Column
=
{
categories
:
[],
series
:
[]
};
let
myName
=
this
.
showText
==
0
?
'自己销售额'
:
'销售额'
let
MySale
=
{
name
:
'自己销售额'
,
name
:
myName
,
data
:[],
color
:
"#3FE5ED"
,
index
:
0
,
...
...
@@ -257,7 +268,7 @@
};
let
ReSale
=
{
name
:
'
线下
销售额'
,
name
:
'
下线
销售额'
,
data
:[],
color
:
"#D86CFB"
,
index
:
0
,
...
...
@@ -277,7 +288,6 @@
ReSale
.
data
.
push
(
x
.
ReSale
)
})
Column
.
series
=
[
MySale
,
ReSale
]
console
.
log
(
Column
)
_self
.
showColumn
(
"canvasColumn"
,
Column
);
}
}
...
...
@@ -458,5 +468,10 @@
width
:
1px
;
margin-left
:
10px
;
line-height
:
34px
;
}
}
cover-view
,
cover-image
{
display
:
inline-block
;
}
</
style
>
static/images/xiaoshoue.png
0 → 100644
View file @
b65022f2
4.35 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment