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
21668197
Commit
21668197
authored
Mar 31, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
图片放大
parent
8cd1155e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
5 deletions
+102
-5
goodsku.vue
components/goods/goodsku.vue
+9
-2
index.vue
pages/share/index/index.vue
+15
-3
salesvolume.vue
pages/share/salesvolume.vue
+78
-0
No files found.
components/goods/goodsku.vue
View file @
21668197
...
...
@@ -3,7 +3,7 @@
length=
"auto"
:safeAreaInsetBottom=
"true"
@
close=
"popupClose"
:z-index=
"9999"
close-icon=
"close"
>
<view
class=
"goodsku"
>
<view
class=
"goods"
>
<image
:src=
"goodimage"
class=
"img"
></image>
<image
:src=
"goodimage"
class=
"img"
@
click=
"previewImage(0,goodimage)"
></image>
<view
class=
"chosen-info"
>
<view
class=
"price"
:style=
"
{ color: mc }">
<text
class=
"small"
>
¥
</text>
...
...
@@ -478,7 +478,14 @@
if
(
this
.
skuObj
)
{
this
.
goodprice
=
(
parseFloat
(
this
.
skuObj
.
price
)
*
parseFloat
(
this
.
gc
)).
toFixed
(
2
);
}
}
},
previewImage
(
index
,
images
)
{
images
=
[
images
]
uni
.
previewImage
({
urls
:
images
,
current
:
index
,
});
},
}
};
</
script
>
...
...
pages/share/index/index.vue
View file @
21668197
...
...
@@ -87,6 +87,11 @@
<Text>
{{
sharedata
.
CustomModel
.
OutstandingCommissionName
}}
</Text>
<Text>
{{
sharedata
.
UserInfo
.
WJSCommission
!=
null
?
sharedata
.
UserInfo
.
WJSCommission
:
0
}}
元
</Text>
</view>
<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>
</view>
</view>
<!-- 会员购买 -->
<view
class=
"buyvip"
v-if=
"words.isshowvipbuypic==1"
@
click=
"goUrl(words.vipbuyurl)"
>
...
...
@@ -363,6 +368,12 @@
scrollTopHandler
()
{
this
.
scrollTop
=
0
;
},
gosales
(){
//跳转销售额
let
UserId
=
uni
.
getStorageSync
(
'mall_UserInfo'
)?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
;
uni
.
navigateTo
({
url
:
'/pages/share/salesvolume?UserId='
+
UserId
});
}
}
}
</
script
>
...
...
@@ -453,13 +464,13 @@
}
.shareindexStyle
.sharebox_topc
{
width
:
94
%
;
width
:
100
%
;
height
:
40px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-
around
;
padding
:
0
2
0px
;
justify-content
:
space-
between
;
padding
:
0
1
0px
;
margin-top
:
18px
;
}
...
...
@@ -477,6 +488,7 @@
}
.shareindexStyle
.center_item
{
width
:
calc
((
100vw
-
25px
)/
3
);
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
...
...
pages/share/salesvolume.vue
0 → 100644
View file @
21668197
<
template
>
<view
class=
"salesvolume"
>
</view>
</
template
>
<
script
>
export
default
{
components
:
{
},
data
()
{
return
{
pageTitle
:
"销售额"
,
msg
:
{
UserId
:
0
,
StartTime
:
''
,
EndTime
:
''
,
},
mainColor
:
""
,
secondary
:
''
,
pricecolor
:
''
,
};
},
created
()
{
this
.
mainColor
=
this
.
$uiConfig
.
mainColor
;
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
pricecolor
=
this
.
$uiConfig
.
pricecolor
;
},
mounted
()
{
uni
.
setNavigationBarTitle
({
title
:
this
.
pageTitle
,
});
},
onLoad
(
options
)
{
if
(
options
&&
options
.
UserId
)
{
this
.
msg
.
UserId
=
options
.
UserId
;
this
.
getTime
()
}
},
methods
:
{
getTime
()
{
var
myDate
=
new
Date
();
this
.
msg
.
EndTime
=
myDate
.
getFullYear
()
+
'-'
+
(
myDate
.
getMonth
()
+
1
)
+
'-'
+
myDate
.
getDate
()
var
startDate
=
new
Date
(
myDate
.
setDate
(
myDate
.
getDate
()
-
7
))
//计算当前时间的前7天的时间
this
.
msg
.
StartTime
=
startDate
.
getFullYear
()
+
'-'
+
(
startDate
.
getMonth
()
+
1
)
+
'-'
+
startDate
.
getDate
()
this
.
init
()
},
init
()
{
this
.
request2
({
url
:
'/api/AppletUser/GetSellMoneyStatistics'
,
data
:
this
.
msg
},
res
=>
{
if
(
res
.
resultCode
==
1
)
{
}
}
);
},
},
};
</
script
>
<
style
>
.salesvolume
{
width
:
100%
;
height
:
100vh
;
background
:
#FFF
;
}
</
style
>
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