Commit 58770778 by chenwq

金额处理;母链分享

1 parent f4518a72
......@@ -60,8 +60,5 @@ App({
onPageNotFound(e) {
wx.$router.goHome()
},
onHide() {},
globalData: {
refresh: false
}
onHide() {}
})
......@@ -213,6 +213,7 @@ Component({
const res = await outputApi.reportPosterTrack({
activityId
})
this.triggerEvent('posterTrack')
},
/**长按战报/喜报 */
async handlePosterTouch(e) {
......
......@@ -51,7 +51,7 @@
</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>
</view>
......
......@@ -289,7 +289,7 @@ Page({
getActivityRevenue(isFirst = false) {
wx.showLoading()
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, '++++++')
var actList = this.data.sceneActivityObj['scene' + (isFirst ? 4 : this.data.sceneActive)]
var total = 0
......@@ -382,10 +382,6 @@ Page({
})
},
beforeRouteLeave(to, from) {
console.log('跳走---', to)
},
// 分享母链
async handleBtnShare(e) {
const idx = this.data.activityList[this.data.activityActive].outputData.shareBtnIdx
......@@ -422,7 +418,13 @@ Page({
const res = await outputApi.reportPosterTrack({
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])
},
......
......@@ -41,7 +41,7 @@
</view>
</view>
<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 wx:else class="content-empty bg-white">
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
......
......@@ -30,6 +30,9 @@ Component({
},
lifetimes: {
attached() {
wx.$eventbus.on('clienRefresh', res => {
this.clientRefresh()
})
this.getPMerchantInfo()
this.getClientApi()
}
......@@ -148,7 +151,6 @@ Component({
const res = await outputApi.reportPosterTrack({
activityId
})
console.log(res)
},
handleJump(e) {
let { idx } = e.currentTarget.dataset
......
......@@ -5,13 +5,13 @@
<view class="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
<text class="price-txt">¥{{filter.money_three_for_two_thousands(totalProfit || 0.00)}}</text>
</view>
<view wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="box {{item.activityLastUnSharedInfo ? 'share' : ''}}">
<view class="head flex-between">
<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 class="box-content">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!