Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
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
高淑倩
7-Eleven
Commits
25746091
Commit
25746091
authored
Mar 13, 2020
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3254fb8b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
achievement.js
src/shoppingGuid/page/pages/achievement/achievement.js
+15
-0
achievement.wxml
src/shoppingGuid/page/pages/achievement/achievement.wxml
+1
-1
paymentStatus.js
src/subPackage/page/pages/paymentStatus/paymentStatus.js
+5
-2
shareArticle.js
src/subPackageA/page/pages/shareArticle/shareArticle.js
+1
-1
No files found.
src/shoppingGuid/page/pages/achievement/achievement.js
View file @
25746091
...
...
@@ -28,6 +28,11 @@ wxService.page({
},
achivementType
:
1
,
//1 个人 2门店
chartImg
:
''
,
monthAchievement
:
{
amount
:
0
,
monthAchievementObj
:
null
},
},
//切换个人和门店
...
...
@@ -244,6 +249,16 @@ wxService.page({
wxService
.
post
(
'/marketing/shoppingguide/achievement/orderPreview?type='
+
type
).
then
(
res
=>
{
if
(
!
res
)
return
;
this
.
data
.
currentOrderData
=
res
.
data
.
data
;
if
(
type
==
1
){
//记录一下本月的业绩
this
.
data
.
monthAchievement
.
monthAchievementObj
=
this
.
data
.
currentOrderData
;
let
salesVolume
=
this
.
data
.
currentOrderData
.
salesVolume
?
this
.
data
.
currentOrderData
.
salesVolume
:
0
;
let
refundVolume
=
this
.
data
.
currentOrderData
.
refundVolume
?
this
.
data
.
currentOrderData
.
refundVolume
:
0
;
this
.
data
.
monthAchievement
.
amount
=
parseFloat
(
salesVolume
-
refundVolume
).
toFixed
(
2
);
this
.
setData
({
monthAchievement
:
this
.
data
.
monthAchievement
});
}
this
.
setData
({
currentOrderData
:
this
.
data
.
currentOrderData
})
...
...
src/shoppingGuid/page/pages/achievement/achievement.wxml
View file @
25746091
...
...
@@ -30,7 +30,7 @@
<view class='number-item'>
<view>本月业绩(元)</view>
<view class='number' style='color:#F7B500;'>
{{
achievement.achievementMonth ? achievement.achievementMonth : 0
}}
{{
monthAchievement.amount
}}
</view>
</view>
<view class='number-item'>
...
...
src/subPackage/page/pages/paymentStatus/paymentStatus.js
View file @
25746091
...
...
@@ -22,6 +22,10 @@ wxService.page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
this
.
data
.
amount
=
options
.
amount
;
this
.
setData
({
amount
:
this
.
data
.
amount
,
});
this
.
data
.
type
=
options
.
type
;
wx
.
hideShareMenu
()
},
...
...
@@ -36,9 +40,8 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
const
{
amount
,
status
}
=
this
.
options
const
{
status
}
=
this
.
options
this
.
setData
({
amount
,
status
},
()
=>
{
// 当前用户是否关注公众号
...
...
src/subPackageA/page/pages/shareArticle/shareArticle.js
View file @
25746091
...
...
@@ -301,7 +301,7 @@ wxService.page({
ctx
.
setTextAlign
(
'left'
)
ctx
.
fillText
(
self
.
data
.
username
,
rpx2px
(
66
*
2
),
rpx2px
(
65
*
2
))
ctx
.
setFillStyle
(
'#000'
)
ctx
.
fillText
(
'
跟我一起种草,我们一起收益哟~
'
,
rpx2px
(
66
*
2
),
rpx2px
(
85
*
2
))
ctx
.
fillText
(
'
Pick我的种草指南!
'
,
rpx2px
(
66
*
2
),
rpx2px
(
85
*
2
))
//商品文字
self
.
data
.
product
.
productName
=
self
.
data
.
product
.
productName
?
self
.
data
.
product
.
productName
:
'暂无分享文本信息~'
;
...
...
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