Commit 215aaf7c by 张立顺

冲突解决

2 parents 35cd8e72 2ef12d84
...@@ -84,5 +84,12 @@ class outputApi { ...@@ -84,5 +84,12 @@ class outputApi {
...data ...data
}) })
} }
/**长按海报埋点 */
reportPosterTrack(data) {
return api.post({
method: 'scrm.api.busassistant.crowdFunding.poster.shared.createRecord',
...data
})
}
} }
export default outputApi export default outputApi
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
} }
page { page {
background-color: #F7F7F7; background-color: #F7F7F7;
color: #282829; color: #282829;
......
...@@ -21,6 +21,10 @@ Component({ ...@@ -21,6 +21,10 @@ Component({
findKey: { findKey: {
type: String, type: String,
value: 'activityId' value: 'activityId'
},
scrollImg: {
type: Boolean,
value: true
} }
}, },
......
...@@ -212,7 +212,10 @@ Component({ ...@@ -212,7 +212,10 @@ Component({
wxLogin({ wxLogin({
detail detail
}) { }) {
if (!detail.code) return if (!detail.code) {
wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
return
}
this.setBtnLoading() this.setBtnLoading()
USERAPI.authUserPhone(detail, this.loginToken) USERAPI.authUserPhone(detail, this.loginToken)
.then(({ .then(({
......
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js // packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import wxqrcode from '~/utils/lib/wxqrcode' import wxqrcode from '~/utils/lib/wxqrcode'
import { IMG_URL } from '~/utils/constantData' import {
IMG_URL
} from '~/utils/constantData'
import outputApi from '~/api/outputApi/index' import outputApi from '~/api/outputApi/index'
const IMAGES = Object.freeze({ const IMAGES = Object.freeze({
download: `${IMG_URL}/output/download.webp` download: `${IMG_URL}/output/download.webp`
...@@ -30,8 +32,7 @@ Component({ ...@@ -30,8 +32,7 @@ Component({
IMGURL: IMG_URL, IMGURL: IMG_URL,
IMAGES, IMAGES,
isShowTip: true, isShowTip: true,
orderFormList: [ orderFormList: [{
{
label: '总场次', label: '总场次',
name: 'totalNum' name: 'totalNum'
}, },
...@@ -45,8 +46,7 @@ Component({ ...@@ -45,8 +46,7 @@ Component({
prefix: '¥' prefix: '¥'
} }
], ],
merchantFormList: [ merchantFormList: [{
{
label: '活动时间', label: '活动时间',
name: 'time' name: 'time'
}, },
...@@ -94,6 +94,34 @@ Component({ ...@@ -94,6 +94,34 @@ Component({
prefix: '¥' prefix: '¥'
} }
] ]
// tableHeadList: [
// {
// label: 'rankIdx',
// width: '40rpx'
// },
// {
// label: '业务员',
// name: 'shareName'
// },
// {
// label: '转发',
// name: 'shareCount'
// },
// {
// label: '浏览',
// name: 'browseCount'
// },
// {
// label: '成交',
// name: 'dealCount',
// width: '92rpx'
// },
// {
// label: '产值',
// name: 'totalAmount',
// prefix: '¥'
// }
// ]
}, },
/** /**
...@@ -114,7 +142,9 @@ Component({ ...@@ -114,7 +142,9 @@ Component({
}) })
}, },
handleMore(e) { handleMore(e) {
var { idx } = e.currentTarget.dataset var {
idx
} = e.currentTarget.dataset
var list = this.data.orderObj var list = this.data.orderObj
var item = list.activityList[idx] var item = list.activityList[idx]
list.activityList[idx].showStaffList = list.activityList[idx].showStaffList.concat(item.staffList.length > 10 ? item.staffList.slice(0, 10) : item.staffList) list.activityList[idx].showStaffList = list.activityList[idx].showStaffList.concat(item.staffList.length > 10 ? item.staffList.slice(0, 10) : item.staffList)
...@@ -124,7 +154,9 @@ Component({ ...@@ -124,7 +154,9 @@ Component({
}) })
}, },
handleCopy(e) { handleCopy(e) {
var { idx } = e.currentTarget.dataset var {
idx
} = e.currentTarget.dataset
var currentItem = this.data.orderObj.activityList[idx] var currentItem = this.data.orderObj.activityList[idx]
var qr = wxqrcode.createQrCodeImg(currentItem.activityUrl) var qr = wxqrcode.createQrCodeImg(currentItem.activityUrl)
const base64src = function (base64data) { const base64src = function (base64data) {
...@@ -185,14 +217,21 @@ Component({ ...@@ -185,14 +217,21 @@ Component({
posterItem: item, posterItem: item,
isShowTip: false isShowTip: false
}) })
}).catch(()=>{ }).catch(() => {
wx.$api.showToast('下载海报失败') wx.$api.showToast('下载海报失败')
}) })
} }
}, },
/**长按海报 */ /**长按海报 */
longtouch(e){ async longtouch(e) {
console.log('长按海报',e) console.log('长按海报', e)
let {
activityId
} = e.detail
const res = await outputApi.reportPosterTrack({
activityId
})
console.log(res)
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */ /* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.crowdfund-layout { .crowdfund-layout {
margin: 20rpx 20rpx; margin: 20rpx 20rpx;
padding-bottom: 136rpx;
.box { .box {
background-color: #FFFFFF; background-color: #FFFFFF;
...@@ -133,15 +134,15 @@ ...@@ -133,15 +134,15 @@
background: #F7F8FC; background: #F7F8FC;
border-radius: 20rpx; border-radius: 20rpx;
margin-top: 16rpx; margin-top: 16rpx;
padding: 0 12rpx;
.rank-title { .rank-title {
position: relative; position: relative;
height: 52rpx; height: 72rpx;
line-height: 52rpx; line-height: 72rpx;
text-align: center; text-align: center;
font-size: 20rpx; font-size: 20rpx;
color: #5A6066; color: #5A6066;
margin-bottom: 20rpx;
border-bottom: 1rpx solid rgba(204, 206, 209, 0.50); border-bottom: 1rpx solid rgba(204, 206, 209, 0.50);
// .activity-status { // .activity-status {
...@@ -155,21 +156,79 @@ ...@@ -155,21 +156,79 @@
.rank-table { .rank-table {
color: #5A6066; color: #5A6066;
font-size: 20rpx; font-size: 20rpx;
padding-left: 20rpx;
.rank { .rank {
display: flex; display: flex;
justify-content: space-between;
height: 64rpx; height: 64rpx;
padding-bottom: 16rpx; padding: 20rpx 16rpx;
border-bottom: 1rpx dotted rgba(204, 206, 209, 0.50);
.rank-left {
display: flex;
}
&-num { &-num {
width: 40rpx; width: 40rpx;
line-height: 64rpx; line-height: 64rpx;
text-align: center;
} }
.rank-head { .rank-head {
width: 64rpx; width: 64rpx;
height: 64rpx; height: 64rpx;
margin-right: 12rpx;
}
.rank-content {
font-size: 20rpx;
.rank-row {
display: flex;
height: 32rpx;
line-height: 32rpx;
margin-bottom: 8rpx;
&-name {
font-size: 24rpx;
color: #3666FE;
margin-right: 12rpx;
}
&-dept {
color: #8A8C90;
}
&-txt {
color: rgba(90, 96, 102, 1);
padding: 0 10rpx 0 0;
}
&-txt::after {
display: inline-block;
content: '';
background-color: #CCCED1;
width: 1.2rpx;
height: 54%;
margin-left: 10rpx;
}
&-txt:last-child::after {
background-color: transparent;
}
}
.rank-row:last-child {
margin-bottom: 0;
}
}
.rank-price {
text-align: right;
font-size: 26rpx;
color: #F35251;
height: 64rpx;
line-height: 64rpx;
} }
// .th, // .th,
...@@ -185,6 +244,10 @@ ...@@ -185,6 +244,10 @@
// } // }
} }
.rank:last-child {
border: none;
}
.tr-no-data { .tr-no-data {
text-align: center; text-align: center;
height: 32rpx; height: 32rpx;
...@@ -195,11 +258,16 @@ ...@@ -195,11 +258,16 @@
.btn-more { .btn-more {
height: 56rpx; height: 56rpx;
line-height: 56rpx; line-height: 56rpx;
color: #5A6066; // color: #5A6066;
border: 2rpx solid #EEEEEE; // border: 2rpx solid #EEEEEE;
border-radius: 28rpx; // border-radius: 28rpx;
text-align: center; text-align: center;
margin: 0 20rpx 16rpx; margin: 0 20rpx;
.icon-more {
width: 92rpx;
height: 36rpx;
}
} }
} }
} }
...@@ -250,6 +318,36 @@ ...@@ -250,6 +318,36 @@
} }
} }
} }
// 战报
.new-report {
display: flex;
justify-content: space-between;
margin-top: 20rpx;
height: 52rpx;
line-height: 52rpx;
font-size: 20rpx;
color: #5A6066;
.report-left {
box-sizing: border-box;
display: flex;
font-size: 20rpx;
color: #3666FE;
padding: 0 20rpx;
height: 100%;
background: rgba(54, 102, 254, 0.06);
border: 2rpx solid #3666FE;
border-radius: 8rpx;
.icon-report {
width: 32rpx;
height: 32rpx;
vertical-align: middle;
margin-top: -2rpx;
}
}
}
} }
} }
} }
......
...@@ -72,63 +72,60 @@ ...@@ -72,63 +72,60 @@
</view> </view>
</view> </view>
</view> --> </view> -->
<view class="rank-table"> <view class="rank-table">
<block <view wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
wx:for="{{item.showStaffList}}" <view class="rank">
wx:for-item="subItem" <view class="rank-left">
wx:for-index="idx" <view class="rank-num">{{idx + 1}}</view>
wx:key="idx"> <glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
<view class="rank"> <view class="rank-content">
<view class="rank-num">{{idx + 1}}</view> <view class="rank-row">
<glsx-image class="rank-head" src="output/icon-head.webp" /> <text class="rank-row-name">{{subItem.shareName}}</text>
<view> <text class="rank-row-dept">运营部</text>
<view> </view>
<text>{{subItem.shareName}}</text> <view class="rank-row">
<text>运营部</text> <text class="rank-row-txt">访客136人</text>
</view> <text class="rank-row-txt">成交</text>
<view> </view>
<text>访客</text> </view>
<text>成交</text> </view>
</view> <view class="rank-price">¥ {{subItem.totalAmount}}</view>
</view> <!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view class="font-number">¥{{subItem.totalAmount}}</view>
<!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view wx:if="{{j == 0}}">{{idx + 1}}</view> <view wx:if="{{j == 0}}">{{idx + 1}}</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text> <text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}} {{subItem[i.name]}}
</view> --> </view> -->
</view> </view>
</block> </view>
<view <view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
wx:if="{{item.staffList.length}}" <glsx-image class="icon-more" src="output/icon-more.webp"></glsx-image>
class="btn-more" </view>
bindtap="handleMore" </view>
data-idx="{{index}}"> </view>
查看更多 <!-- 诊断 -->
</view> <view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
</view> <view class="suggest-title"># 活动诊断</view>
</view> <view class="suggest-txt">
<!-- 诊断 --> <!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}"> {{item.suggestTxt}}推荐以下建议:
<view class="suggest-title"># 活动诊断</view> </view>
<view class="suggest-txt"> <view class="suggest-block">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> --> <view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
{{item.suggestTxt}}推荐以下建议: <view class="step-label">建议{{idx + 1}}</view>
</view> <view class="step-txt">{{subItem}}</view>
<view class="suggest-block"> </view>
<view </view>
class="suggest-step" </view>
wx:for="{{item.suggestList}}" <!-- 战报 -->
wx:for-item="subItem" <view class="new-report">
wx:for-index="idx" <view class="report-left">
wx:key="idx"> <glsx-image class="icon-report" src="output/icon-report.webp"></glsx-image>
<view class="step-label">建议{{idx + 1}}</view> 生成最新战报
<view class="step-txt">{{subItem}}</view> </view>
</view> <view>最新更新:</view>
</view> </view>
</view> </view>
</view> </view>
</view>
</view> </view>
<crowdfund-poster item="{{posterItem}}" id="poster" bindlongtouch="longtouch" /> <crowdfund-poster item="{{posterItem}}" id="poster" scrollImg="{{false}}" bindlongtouch="longtouch" />
...@@ -151,17 +151,27 @@ ...@@ -151,17 +151,27 @@
} }
} }
.btn { .btn-box {
position: fixed; position: fixed;
bottom: 16rpx; bottom: 0;
left: 0; left: 0;
width: 100%;
height: 116rpx;
background-color: #FFFFFF;
}
.btn-box.shadow {
box-shadow: 0 -2rpx 2rpx 0 rgba(0, 0, 0, 0.08);
}
.btn {
width: calc(100% - 64rpx); width: calc(100% - 64rpx);
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
text-align: center; text-align: center;
font-size: 28rpx; font-size: 28rpx;
color: #FFFFFF; color: #FFFFFF;
margin: 0 32rpx; margin: 14rpx 32rpx;
.btn-blue { .btn-blue {
background: #3666FE; background: #3666FE;
...@@ -172,6 +182,34 @@ ...@@ -172,6 +182,34 @@
background: #CCCED1; background: #CCCED1;
border-radius: 8rpx; border-radius: 8rpx;
} }
.btn-share {
background: #3666FE;
border-radius: 12rpx;
// animation: xing ease-in-out 2s infinite;
}
}
}
@keyframes xing {
0% {
transform: scale(0.85);
}
25% {
transform: scale(1);
}
50% {
transform: scale(0.85);
}
75% {
transform: scale(1);
}
100% {
transform: scale(0.85);
} }
} }
......
...@@ -49,11 +49,20 @@ ...@@ -49,11 +49,20 @@
</view> </view>
</view> </view>
<view wx:if="{{sceneActive != 1}}"> <view wx:if="{{sceneActive != 1}}">
<view class="isFullSucreen btn" wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}"> <view class="isFullSucreen btn-box" wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}">
<view class="btn-blue" bindtap="handleJump">点击开通</view> <view class="btn">
<view class="btn-blue" bindtap="handleJump">点击开通</view>
</view>
</view>
</view>
<view wx:if="{{sceneActive == 1}}" class="isFullSucreen btn-box">
<view class="btn">
<view class="btn-disabled">点击开通</view>
</view> </view>
</view> </view>
<view class="isFullSucreen btn" wx:if="{{sceneActive == 1}}"> <view wx:if="{{sceneActive == 4}}" class="isFullSucreen btn-box shadow">
<view class="btn-disabled">点击开通</view> <view class="btn">
<view class="btn-share">活动进行中,分享母链海报开展活动</view>
</view>
</view> </view>
</view> </view>
\ No newline at end of file \ No newline at end of file
...@@ -103,6 +103,11 @@ Component({ ...@@ -103,6 +103,11 @@ Component({
handleJumpIdx() { handleJumpIdx() {
wx.$router.go('pages.index') wx.$router.go('pages.index')
}, },
handleShare(e) {
let { idx } = e.currentTarget.dataset
var currentItem = this.data.list[idx]
console.log('分享----', currentItem)
},
handleJump(e) { handleJump(e) {
let { idx } = e.currentTarget.dataset let { idx } = e.currentTarget.dataset
var currentItem = this.data.list[idx] var currentItem = this.data.list[idx]
......
...@@ -130,6 +130,34 @@ ...@@ -130,6 +130,34 @@
} }
} }
.box.share {
margin-bottom: 0;
}
.box-share {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
width: 100%;
padding: 12rpx 20rpx;
background: #FFF9F2;
border-radius: 0 0 8rpx 8rpx;
margin-bottom: 16rpx;
.btn-share {
width: 112rpx;
height: 56rpx;
line-height: 56rpx;
background: #3666FE;
border-radius: 28rpx;
font-size: 24rpx;
color: #FFFFFF;
text-align: center;
margin-left: 20rpx;
}
}
.end-txt { .end-txt {
font-size: 24rpx; font-size: 24rpx;
text-align: center; text-align: center;
......
<!-- pages/tab/output/components/client/client.wxml --> <!-- pages/tab/output/components/client/client.wxml -->
<scroll-view class="client" scroll-y="{{true}}" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}" bindscrolltolower="onReachBottom" bindrefresherrefresh="onBindRefresh" lower-threshold='50' scroll-top="{{scrollTop}}"> <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="test">1234567890</view> -->
<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">¥{{totalProfit}}</text>
</view> </view>
<view class="box" 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="head flex-between"> <view class="box share">
<view class="name ">{{item.merchantName}}</view> <view class="head flex-between">
<view class="price-txt ">¥{{item.totalMoney}}</view> <view class="name ">{{item.merchantName}}</view>
</view> <view class="price-txt ">¥{{item.totalMoney}}</view>
<!-- 场景内容 --> </view>
<view class="box-content"> <!-- 场景内容 -->
<scene-box formData="{{item}}" hasLockIcon="{{false}}" /> <view class="box-content">
<!-- 通知 --> <scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<view class="box-bottom"> <!-- 通知 -->
<view wx:if="{{item.msgList.length}}" class="flex"> <view class="box-bottom">
<view class="tip-blue">最新</view> <view wx:if="{{item.msgList.length}}" class="flex">
<view class="bottom-content"> <view class="tip-blue">最新</view>
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx"> <view class="bottom-content">
<view>{{subItem.msg}}</view> <view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="time">{{subItem.createTime}}</view> <view>{{subItem.msg}}</view>
</view> <view class="time">{{subItem.createTime}}</view>
</view> </view>
</view> </view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex"> </view>
<view class="tip-blue">通知</view> <view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="bottom-content"> <view class="tip-blue">通知</view>
<view class="tip-row"> <view class="bottom-content">
<view> <view class="tip-row">
运营建议:您的门店尚未开展活动,暂无产值。建议 <view>
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text> 运营建议:您的门店尚未开展活动,暂无产值。建议
拓展营收范围。 <text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
</view> 拓展营收范围。
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt"> </view>
到底啦! <!-- 分享海报 -->
</view> <view class="box-share">
</view> <view>360全景影像众筹活动正在进行,分享母链海报开展业务</view>
<view class="btn-share" catchtap="handleShare" data-idx="{{index}}">去分享</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦!
</view>
</view>
</scroll-view> </scroll-view>
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync() ...@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync()
const manual = false const manual = false
const release = false const release = false
let index = 1 let index = 2
// 判断小程序环境 // 判断小程序环境
// develop:开发版(正常开发工具,测试时) // develop:开发版(正常开发工具,测试时)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!