Commit 58770778 by chenwq

金额处理;母链分享

1 parent f4518a72
...@@ -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
}
}) })
...@@ -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) {
......
...@@ -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>
......
...@@ -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])
}, },
......
...@@ -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}}" />
......
...@@ -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
......
...@@ -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">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!