Commit 42e28241 by 张立顺

Merge branch 'dev_v3.1' of 192.168.3.233:saas_plus/business-assistant into dev_v3.1

2 parents 99e908be 34ce90a9
......@@ -60,8 +60,5 @@ App({
onPageNotFound(e) {
wx.$router.goHome()
},
onHide() {},
globalData: {
refresh: false
}
onHide() {}
})
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<wxs src="/pages/tab/output/index.wxs" module="filter" />
<view class="flex scene">
<view class="scene-item {{ (formData['scene' + (index + 1)] && hasOpenIcon) ? 'open' : ''}} {{ (sceneActive != -1 && sceneActive == index + 1) ? 'active' : ''}}" wx:for="{{custSceneList}}" wx:key="index" bindtap="handleClick" data-idx="{{index + 1}}">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)]}}" class="open-icon">
......@@ -14,7 +15,7 @@
</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">
¥ {{scenePriceList[index].total}}
¥ {{filter.money_three_for_two_thousands(scenePriceList[index].total || 0.00)}}
</view>
</view>
</view>
\ No newline at end of file
......@@ -213,6 +213,7 @@ Component({
const res = await outputApi.reportPosterTrack({
activityId
})
this.triggerEvent('posterTrack')
},
/**长按战报/喜报 */
async handlePosterTouch(e) {
......
......@@ -176,9 +176,24 @@
}
.rank-head {
position: relative;
width: 64rpx;
height: 64rpx;
margin-right: 12rpx;
.icon-wechat {
position: absolute;
bottom: -4rpx;
right: -4rpx;
width: 40rpx;
height: 40rpx;
}
image {
width: 100%;
height: 100%;
border-radius: 50%;
}
}
.rank-content {
......
......@@ -38,7 +38,11 @@
<view class="rank">
<view class="rank-left">
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
<view class="rank-head">
<!-- <glsx-image class="icon-wechat" src="output/icon-wechat.webp"></glsx-image> -->
<image wx:if="{{subItem.imageUrl}}" src="{{subItem.imageUrl}}"></image>
<glsx-image wx:else src="output/icon-head.webp"></glsx-image>
</view>
<view class="rank-content">
<view class="rank-row">
<text wx:if="{{subItem.goodUrl}}" class="rank-row-name" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text>
......@@ -51,7 +55,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>
......
......@@ -132,8 +132,11 @@ Page({
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {},
onReady() {
wx.setNavigationBarTitle({
title: '开通店面业务',
})
},
/**
* 生命周期函数--监听页面显示
*/
......
......@@ -74,8 +74,6 @@ Page({
activityActive: idx,
// productStatus:0未申请;1申请中;2已开通;3:已结束
isShowData: [2, 3].includes(+this.data.activityList[idx].productStatus)
// 删----
// isShowData: true
})
if ([2, 3].includes(this.data.sceneActive)) {
this.getCustomerDetail(false, false)
......@@ -291,9 +289,7 @@ Page({
getActivityRevenue(isFirst = false) {
wx.showLoading()
var params = this.dealSearchStatus()
// 删----
// outputApi.getActivityRevenue({ merchantId: 44211227, ...params }).then(res => {
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
......@@ -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])
},
......
......@@ -19,7 +19,7 @@
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.productStatus == 2 ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{isShowData ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
{{item.productName}}
</view>
</view>
......@@ -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}}" />
......
......@@ -84,8 +84,8 @@
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
<view class="download" bindtap="downVideo" data-url="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}">视频下载</view>
<!-- <video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}"/> -->
<image class="video-card" webp bindtap="getVideoUrl" data-title="{{item.name}}" data-src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" src="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}"></image>
<video poster="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}" title="{{item.name}}" src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" />
<!-- <image class="video-card" webp bindtap="getVideoUrl" data-title="{{item.name}}" data-src="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}" src="{{videoBaseUrl}}video/{{item.posterUrl}}.png?v={{img_version}}"></image> -->
<view class="video-text">{{item.name}}</view>
</view>
</block>
......
......@@ -30,6 +30,9 @@ Component({
},
lifetimes: {
attached() {
wx.$eventbus.on('clienRefresh', res => {
this.clientRefresh()
})
this.getPMerchantInfo()
this.getClientApi()
}
......@@ -153,7 +156,6 @@ Component({
const res = await outputApi.reportPosterTrack({
activityId
})
console.log(res)
},
handleJump(e) {
let { idx } = e.currentTarget.dataset
......
<!-- pages/tab/output/components/client/client.wxml -->
<wxs src="../../index.wxs" module="filter" />
<scroll-view class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}">
<!-- <view class="test">1234567890</view> -->
<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!