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 215aaf7c
authored
Nov 10, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
冲突解决
2 parents
35cd8e72
2ef12d84
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
362 additions
and
128 deletions
api/outputApi/output.js
app.wxss
components/CrowdfundPoster/CrowdfundPoster.js
login/index/components/Box/Box.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
packagesList/packageOutput/pages/summary.scss
packagesList/packageOutput/pages/summary.wxml
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.scss
pages/tab/output/components/client/client.wxml
utils/request/environment.js
api/outputApi/output.js
View file @
215aaf7
...
...
@@ -84,5 +84,12 @@ class outputApi {
...
data
})
}
/**长按海报埋点 */
reportPosterTrack
(
data
)
{
return
api
.
post
({
method
:
'scrm.api.busassistant.crowdFunding.poster.shared.createRecord'
,
...
data
})
}
}
export
default
outputApi
app.wxss
View file @
215aaf7
...
...
@@ -15,7 +15,6 @@
}
page {
background-color: #F7F7F7;
color: #282829;
...
...
components/CrowdfundPoster/CrowdfundPoster.js
View file @
215aaf7
...
...
@@ -21,6 +21,10 @@ Component({
findKey
:
{
type
:
String
,
value
:
'activityId'
},
scrollImg
:
{
type
:
Boolean
,
value
:
true
}
},
...
...
login/index/components/Box/Box.js
View file @
215aaf7
...
...
@@ -212,7 +212,10 @@ Component({
wxLogin
({
detail
})
{
if
(
!
detail
.
code
)
return
if
(
!
detail
.
code
)
{
wx
.
$api
.
showToast
(
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
)
return
}
this
.
setBtnLoading
()
USERAPI
.
authUserPhone
(
detail
,
this
.
loginToken
)
.
then
(({
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
View file @
215aaf7
// packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
import
wxqrcode
from
'~/utils/lib/wxqrcode'
import
{
IMG_URL
}
from
'~/utils/constantData'
import
{
IMG_URL
}
from
'~/utils/constantData'
import
outputApi
from
'~/api/outputApi/index'
const
IMAGES
=
Object
.
freeze
({
download
:
`
${
IMG_URL
}
/output/download.webp`
...
...
@@ -30,8 +32,7 @@ Component({
IMGURL
:
IMG_URL
,
IMAGES
,
isShowTip
:
true
,
orderFormList
:
[
{
orderFormList
:
[{
label
:
'总场次'
,
name
:
'totalNum'
},
...
...
@@ -45,8 +46,7 @@ Component({
prefix
:
'¥'
}
],
merchantFormList
:
[
{
merchantFormList
:
[{
label
:
'活动时间'
,
name
:
'time'
},
...
...
@@ -94,6 +94,34 @@ Component({
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({
})
},
handleMore
(
e
)
{
var
{
idx
}
=
e
.
currentTarget
.
dataset
var
{
idx
}
=
e
.
currentTarget
.
dataset
var
list
=
this
.
data
.
orderObj
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
)
...
...
@@ -124,7 +154,9 @@ Component({
})
},
handleCopy
(
e
)
{
var
{
idx
}
=
e
.
currentTarget
.
dataset
var
{
idx
}
=
e
.
currentTarget
.
dataset
var
currentItem
=
this
.
data
.
orderObj
.
activityList
[
idx
]
var
qr
=
wxqrcode
.
createQrCodeImg
(
currentItem
.
activityUrl
)
const
base64src
=
function
(
base64data
)
{
...
...
@@ -185,14 +217,21 @@ Component({
posterItem
:
item
,
isShowTip
:
false
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
wx
.
$api
.
showToast
(
'下载海报失败'
)
})
}
},
/**长按海报 */
longtouch
(
e
){
console
.
log
(
'长按海报'
,
e
)
async
longtouch
(
e
)
{
console
.
log
(
'长按海报'
,
e
)
let
{
activityId
}
=
e
.
detail
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
})
console
.
log
(
res
)
}
}
})
})
\ No newline at end of file
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
215aaf7
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.crowdfund-layout
{
margin
:
20rpx
20rpx
;
padding-bottom
:
136rpx
;
.box
{
background-color
:
#FFFFFF
;
...
...
@@ -133,15 +134,15 @@
background
:
#F7F8FC
;
border-radius
:
20rpx
;
margin-top
:
16rpx
;
padding
:
0
12rpx
;
.rank-title
{
position
:
relative
;
height
:
5
2rpx
;
line-height
:
5
2rpx
;
height
:
7
2rpx
;
line-height
:
7
2rpx
;
text-align
:
center
;
font-size
:
20rpx
;
color
:
#5A6066
;
margin-bottom
:
20rpx
;
border-bottom
:
1rpx
solid
rgba
(
204
,
206
,
209
,
0
.50
);
// .activity-status {
...
...
@@ -155,21 +156,79 @@
.rank-table
{
color
:
#5A6066
;
font-size
:
20rpx
;
padding-left
:
20rpx
;
.rank
{
display
:
flex
;
justify-content
:
space-between
;
height
:
64rpx
;
padding-bottom
:
16rpx
;
padding
:
20rpx
16rpx
;
border-bottom
:
1rpx
dotted
rgba
(
204
,
206
,
209
,
0
.50
);
.rank-left
{
display
:
flex
;
}
&
-num
{
width
:
40rpx
;
line-height
:
64rpx
;
text-align
:
center
;
}
.rank-head
{
width
:
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,
...
...
@@ -185,6 +244,10 @@
// }
}
.rank
:last-child
{
border
:
none
;
}
.tr-no-data
{
text-align
:
center
;
height
:
32rpx
;
...
...
@@ -195,11 +258,16 @@
.btn-more
{
height
:
56rpx
;
line-height
:
56rpx
;
color
:
#5A6066
;
border
:
2rpx
solid
#EEEEEE
;
border-radius
:
28rpx
;
//
color: #5A6066;
//
border: 2rpx solid #EEEEEE;
//
border-radius: 28rpx;
text-align
:
center
;
margin
:
0
20rpx
16rpx
;
margin
:
0
20rpx
;
.icon-more
{
width
:
92rpx
;
height
:
36rpx
;
}
}
}
}
...
...
@@ -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
;
}
}
}
}
}
}
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
215aaf7
...
...
@@ -72,63 +72,60 @@
</view>
</view>
</view> -->
<view class="rank-table">
<block
wx:for="{{item.showStaffList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="rank">
<view class="rank-num">{{idx + 1}}</view>
<glsx-image class="rank-head" src="output/icon-head.webp" />
<view>
<view>
<text>{{subItem.shareName}}</text>
<text>运营部</text>
</view>
<view>
<text>访客</text>
<text>成交</text>
</view>
</view>
<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 class="rank-table">
<view wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<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-content">
<view class="rank-row">
<text class="rank-row-name">{{subItem.shareName}}</text>
<text class="rank-row-dept">运营部</text>
</view>
<view class="rank-row">
<text class="rank-row-txt">访客136人</text>
<text class="rank-row-txt">成交</text>
</view>
</view>
</view>
<view class="rank-price">¥ {{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>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
</view> -->
</view>
</block>
<view
wx:if="{{item.staffList.length}}"
class="btn-more"
bindtap="handleMore"
data-idx="{{index}}">
查看更多
</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
{{item.suggestTxt}}推荐以下建议:
</view>
<view class="suggest-block">
<view
class="suggest-step"
wx:for="{{item.suggestList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
<glsx-image class="icon-more" src="output/icon-more.webp"></glsx-image>
</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
{{item.suggestTxt}}推荐以下建议:
</view>
<view class="suggest-block">
<view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
<!-- 战报 -->
<view class="new-report">
<view class="report-left">
<glsx-image class="icon-report" src="output/icon-report.webp"></glsx-image>
生成最新战报
</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" />
packagesList/packageOutput/pages/summary.scss
View file @
215aaf7
...
...
@@ -151,17 +151,27 @@
}
}
.btn
{
.btn
-box
{
position
:
fixed
;
bottom
:
16rpx
;
bottom
:
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
);
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
font-size
:
28rpx
;
color
:
#FFFFFF
;
margin
:
0
32rpx
;
margin
:
14rpx
32rpx
;
.btn-blue
{
background
:
#3666FE
;
...
...
@@ -172,6 +182,34 @@
background
:
#CCCED1
;
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
);
}
}
...
...
packagesList/packageOutput/pages/summary.wxml
View file @
215aaf7
...
...
@@ -49,11 +49,20 @@
</view>
</view>
<view wx:if="{{sceneActive != 1}}">
<view class="isFullSucreen btn" wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}">
<view class="btn-blue" bindtap="handleJump">点击开通</view>
<view class="isFullSucreen btn-box" wx:if="{{ activityList[activityActive].productStatus != 2 && !merchantInfo.isSuper}}">
<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 class="isFullSucreen btn" wx:if="{{sceneActive == 1}}">
<view class="btn-disabled">点击开通</view>
<view wx:if="{{sceneActive == 4}}" class="isFullSucreen btn-box shadow">
<view class="btn">
<view class="btn-share">活动进行中,分享母链海报开展活动</view>
</view>
</view>
</view>
\ No newline at end of file
pages/tab/output/components/client/client.js
View file @
215aaf7
...
...
@@ -103,6 +103,11 @@ Component({
handleJumpIdx
()
{
wx
.
$router
.
go
(
'pages.index'
)
},
handleShare
(
e
)
{
let
{
idx
}
=
e
.
currentTarget
.
dataset
var
currentItem
=
this
.
data
.
list
[
idx
]
console
.
log
(
'分享----'
,
currentItem
)
},
handleJump
(
e
)
{
let
{
idx
}
=
e
.
currentTarget
.
dataset
var
currentItem
=
this
.
data
.
list
[
idx
]
...
...
pages/tab/output/components/client/client.scss
View file @
215aaf7
...
...
@@ -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
{
font-size
:
24rpx
;
text-align
:
center
;
...
...
pages/tab/output/components/client/client.wxml
View file @
215aaf7
<!-- 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}}">
<!-- <view class="test">1234567890</view> -->
<view class="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦!
</view>
</view>
<!-- <view class="test">1234567890</view> -->
<view class="client-box">
<view class="profit-box flex-between">
<text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text>
</view>
<view wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="box share">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view>
</view>
<!-- 场景内容 -->
<view class="box-content">
<scene-box formData="{{item}}" hasLockIcon="{{false}}" />
<!-- 通知 -->
<view class="box-bottom">
<view wx:if="{{item.msgList.length}}" class="flex">
<view class="tip-blue">最新</view>
<view class="bottom-content">
<view class="flex-between tip-row" wx:for="{{item.msgList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view>{{subItem.msg}}</view>
<view class="time">{{subItem.createTime}}</view>
</view>
</view>
</view>
<view wx:if="{{!item.msgList.length && !item.isOpenScene}}" class="flex">
<view class="tip-blue">通知</view>
<view class="bottom-content">
<view class="tip-row">
<view>
运营建议:您的门店尚未开展活动,暂无产值。建议
<text class="tip-link" catchtap="handleJumpIdx">开通新产品</text>
拓展营收范围。
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<!-- 分享海报 -->
<view class="box-share">
<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>
\ No newline at end of file
utils/request/environment.js
View file @
215aaf7
...
...
@@ -17,7 +17,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
release
=
false
let
index
=
1
let
index
=
2
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
...
...
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