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 58770778
authored
Nov 15, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
金额处理;母链分享
1 parent
f4518a72
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
15 deletions
app.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
packagesList/packageOutput/pages/summary.js
packagesList/packageOutput/pages/summary.wxml
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.wxml
app.js
View file @
5877077
...
@@ -60,8 +60,5 @@ App({
...
@@ -60,8 +60,5 @@ App({
onPageNotFound
(
e
)
{
onPageNotFound
(
e
)
{
wx
.
$router
.
goHome
()
wx
.
$router
.
goHome
()
},
},
onHide
()
{},
onHide
()
{}
globalData
:
{
refresh
:
false
}
})
})
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
View file @
5877077
...
@@ -213,6 +213,7 @@ Component({
...
@@ -213,6 +213,7 @@ Component({
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
activityId
})
})
this
.
triggerEvent
(
'posterTrack'
)
},
},
/**长按战报/喜报 */
/**长按战报/喜报 */
async
handlePosterTouch
(
e
)
{
async
handlePosterTouch
(
e
)
{
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
5877077
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{subItem.totalAmount}}" class="rank-price txt-red font-number">¥ {{
subItem.totalAmount
}}</view>
<view wx:if="{{subItem.totalAmount}}" class="rank-price txt-red font-number">¥ {{
filter.money_three_for_two_thousands(subItem.totalAmount || 0.00)
}}</view>
<view wx:else class="rank-price">暂无业绩</view>
<view wx:else class="rank-price">暂无业绩</view>
</view>
</view>
</view>
</view>
...
...
packagesList/packageOutput/pages/summary.js
View file @
5877077
...
@@ -289,7 +289,7 @@ Page({
...
@@ -289,7 +289,7 @@ Page({
getActivityRevenue
(
isFirst
=
false
)
{
getActivityRevenue
(
isFirst
=
false
)
{
wx
.
showLoading
()
wx
.
showLoading
()
var
params
=
this
.
dealSearchStatus
()
var
params
=
this
.
dealSearchStatus
()
outputApi
.
getActivityRevenue
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
outputApi
.
getActivityRevenue
({
merchantId
:
this
.
data
.
merchantInfo
.
merchantId
,
...
params
}).
then
(
res
=>
{
// console.log(this.data.sceneActivityObj, '++++++')
// console.log(this.data.sceneActivityObj, '++++++')
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
4
:
this
.
data
.
sceneActive
)]
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
4
:
this
.
data
.
sceneActive
)]
var
total
=
0
var
total
=
0
...
@@ -382,10 +382,6 @@ Page({
...
@@ -382,10 +382,6 @@ Page({
})
})
},
},
beforeRouteLeave
(
to
,
from
)
{
console
.
log
(
'跳走---'
,
to
)
},
// 分享母链
// 分享母链
async
handleBtnShare
(
e
)
{
async
handleBtnShare
(
e
)
{
const
idx
=
this
.
data
.
activityList
[
this
.
data
.
activityActive
].
outputData
.
shareBtnIdx
const
idx
=
this
.
data
.
activityList
[
this
.
data
.
activityActive
].
outputData
.
shareBtnIdx
...
@@ -422,7 +418,13 @@ Page({
...
@@ -422,7 +418,13 @@ Page({
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
activityId
})
})
// console.log(res)
wx
.
$eventbus
.
emit
(
'clienRefresh'
)
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
},
// 母链分享
posterTrack
()
{
wx
.
$eventbus
.
emit
(
'clienRefresh'
)
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
},
},
...
...
packagesList/packageOutput/pages/summary.wxml
View file @
5877077
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</view>
</view>
</view>
</view>
<output-transform wx:if="{{sceneActive == 2 || sceneActive == 3}}" formData="{{activityList[activityActive].orderTotal}}" />
<output-transform wx:if="{{sceneActive == 2 || sceneActive == 3}}" formData="{{activityList[activityActive].orderTotal}}" />
<output-crowdfund wx:if="{{sceneActive == 4}}" orderObj="{{activityList[activityActive].outputData}}" bind:handleZhanReport="handleZhanReport"/>
<output-crowdfund wx:if="{{sceneActive == 4}}" orderObj="{{activityList[activityActive].outputData}}" bind:handleZhanReport="handleZhanReport"
bind:posterTrack="posterTrack"
/>
</view>
</view>
<view wx:else class="content-empty bg-white">
<view wx:else class="content-empty bg-white">
<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}}" />
...
...
pages/tab/output/components/client/client.js
View file @
5877077
...
@@ -30,6 +30,9 @@ Component({
...
@@ -30,6 +30,9 @@ Component({
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
wx
.
$eventbus
.
on
(
'clienRefresh'
,
res
=>
{
this
.
clientRefresh
()
})
this
.
getPMerchantInfo
()
this
.
getPMerchantInfo
()
this
.
getClientApi
()
this
.
getClientApi
()
}
}
...
@@ -148,7 +151,6 @@ Component({
...
@@ -148,7 +151,6 @@ Component({
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
activityId
})
})
console
.
log
(
res
)
},
},
handleJump
(
e
)
{
handleJump
(
e
)
{
let
{
idx
}
=
e
.
currentTarget
.
dataset
let
{
idx
}
=
e
.
currentTarget
.
dataset
...
...
pages/tab/output/components/client/client.wxml
View file @
5877077
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
<view class="client-box">
<view class="client-box">
<view class="profit-box flex-between">
<view class="profit-box flex-between">
<text>总收益</text>
<text>总收益</text>
<text class="price-txt">¥{{
totalProfit
}}</text>
<text class="price-txt">¥{{
filter.money_three_for_two_thousands(totalProfit || 0.00)
}}</text>
</view>
</view>
<view wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="box {{item.activityLastUnSharedInfo ? 'share' : ''}}">
<view class="box {{item.activityLastUnSharedInfo ? 'share' : ''}}">
<view class="head flex-between">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{
item.totalMoney
}}</view>
<view class="price-txt ">¥{{
filter.money_three_for_two_thousands(item.totalMoney || 0.00)
}}</view>
</view>
</view>
<!-- 场景内容 -->
<!-- 场景内容 -->
<view class="box-content">
<view class="box-content">
...
...
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