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 5531dbdd
authored
Oct 20, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
查看更多
1 parent
69968a0c
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
21 deletions
components/SceneBox/SceneBox.wxss
packageOutput/pages/openBusiness/openBusiness.js
packageOutput/pages/openBusiness/openBusiness.wxml
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
packageOutput/pages/summary/summary.js
components/SceneBox/SceneBox.wxss
View file @
5531dbd
...
@@ -60,8 +60,20 @@
...
@@ -60,8 +60,20 @@
background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%);
background-image: linear-gradient(145deg, #F0F7FF 0%, #FFFFFF 73%);
border: 2rpx solid #3666FE;
border: 2rpx solid #3666FE;
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32), 0 8rpx 20rpx 0 rgba(180, 186, 204, 0.40);
/* background: url('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/output/carselect.png') no-repeat;
background-size: 100% 100%; */
}
.active::after {
position: absolute;
left: 50%;
bottom: -7px;
display: block;
content: "";
width: 6px;
height: 6px;
border-bottom: 1px solid var(--btnColor);
border-right: 1px solid var(--btnColor);
transform: rotate(45deg) translateX(-50%);
background-color: #fff;
}
}
/* 选中 - end */
/* 选中 - end */
...
...
packageOutput/pages/openBusiness/openBusiness.js
View file @
5531dbd
...
@@ -37,7 +37,7 @@ Page({
...
@@ -37,7 +37,7 @@ Page({
var
proList
=
res
.
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
var
proList
=
res
.
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
console
.
log
(
proList
,
'??????'
)
console
.
log
(
proList
,
'??????'
)
this
.
setData
({
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
proList
.
productList
.
filter
(
item
=>
!
item
.
openFlag
)
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
proList
.
productList
.
filter
(
item
=>
item
.
openFlag
==
0
)
})
})
this
.
setCurActivity
()
this
.
setCurActivity
()
})
})
...
...
packageOutput/pages/openBusiness/openBusiness.wxml
View file @
5531dbd
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view class="layout">
<view class="layout">
<view class="form m-b-32">
<view class="form m-b-32">
<text class="label">开通门店:</text>
<text class="label">开通门店:</text>
<text>
嘀加鹏辉奥迪4S店
</text>
<text>
{{merchantInfo.merchantName}}
</text>
</view>
</view>
<view class="head m-b-32">开通门店产品/活动</view>
<view class="head m-b-32">开通门店产品/活动</view>
<!-- 场景活动 -->
<!-- 场景活动 -->
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<!-- 活动 -->
<!-- 活动 -->
<view class="box">
<view class="box">
<view class="box-title">产品/活动<text class="title-tip">(可多选)</text></view>
<view class="box-title">产品/活动<text class="title-tip">(可多选)</text></view>
<view class="activity-box">
<view class="activity-box"
wx:if="{{sceneActive != 1}}"
>
<view class="activity-item text-hide {{ item.checked ? 'active' : '' }}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActClick" data-idx="{{index}}">{{item.productName}}</view>
<view class="activity-item text-hide {{ item.checked ? 'active' : '' }}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActClick" data-idx="{{index}}">{{item.productName}}</view>
</view>
</view>
</view>
</view>
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
5531dbd
...
@@ -67,7 +67,7 @@ Component({
...
@@ -67,7 +67,7 @@ Component({
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
console
.
log
(
this
.
data
.
orderObj
,
'///////////'
)
this
.
dealStaffList
(
)
},
},
},
},
...
@@ -75,6 +75,25 @@ Component({
...
@@ -75,6 +75,25 @@ Component({
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
dealStaffList
()
{
var
list
=
this
.
data
.
orderObj
list
.
activityList
.
forEach
(
item
=>
{
item
.
showStaffList
=
item
.
staffList
.
length
>
10
?
item
.
staffList
.
slice
(
0
,
10
)
:
item
.
staffList
item
.
staffList
=
item
.
staffList
.
length
>
10
?
item
.
staffList
.
slice
(
10
)
:
[]
})
this
.
setData
({
orderObj
:
list
})
},
handleMore
(
e
)
{
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
)
list
.
activityList
[
idx
].
staffList
=
item
.
staffList
.
length
>
10
?
item
.
staffList
.
slice
(
10
)
:
[]
this
.
setData
({
orderObj
:
list
})
}
}
}
})
})
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
View file @
5531dbd
...
@@ -129,6 +129,16 @@
...
@@ -129,6 +129,16 @@
width
:
calc
((
100%
-
116rpx
)
/
4
);
width
:
calc
((
100%
-
116rpx
)
/
4
);
}
}
}
}
.btn-more
{
height
:
56rpx
;
line-height
:
56rpx
;
color
:
#5A6066
;
border
:
2rpx
solid
#EEEEEE
;
border-radius
:
28rpx
;
text-align
:
center
;
margin
:
0
20rpx
16rpx
;
}
}
}
}
}
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
View file @
5531dbd
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
<view class="tr">
<view class="tr">
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">{{subItem.label}}</view>
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">{{subItem.label}}</view>
</view>
</view>
<view wx:if="{{item.staffList.length}}">
<view wx:if="{{item.s
howS
taffList.length}}">
<block wx:for="{{item.staffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<block wx:for="{{item.s
howS
taffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="tr">
<view class="tr">
<view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
</view>
</view>
</view>
</view>
</block>
</block>
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">查看更多</view>
</view>
</view>
<view class="tr" wx:else>
<view class="tr" wx:else>
<view>暂无数据</view>
<view>暂无数据</view>
...
...
packageOutput/pages/summary/summary.js
View file @
5531dbd
...
@@ -118,7 +118,7 @@ Page({
...
@@ -118,7 +118,7 @@ Page({
outputApi
.
getSceneProStatus
(
params
).
then
(
res
=>
{
outputApi
.
getSceneProStatus
(
params
).
then
(
res
=>
{
var
proList
=
res
.
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
var
proList
=
res
.
find
(
item
=>
item
.
sceneCode
==
sceneCode
)
// 删----
// 删----
proList
.
productList
[
1
].
productStatus
=
2
//
proList.productList[1].productStatus = 2
this
.
setData
({
this
.
setData
({
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
proList
.
productList
[
'sceneActivityObj.scene'
+
this
.
data
.
sceneActive
]:
proList
.
productList
})
})
...
@@ -220,8 +220,8 @@ Page({
...
@@ -220,8 +220,8 @@ Page({
getActivityRevenue
()
{
getActivityRevenue
()
{
var
params
=
this
.
dealSearchStatus
()
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
(
res
)
//
console.log(res)
console
.
log
(
this
.
data
.
sceneActivityObj
,
'++++++'
)
//
console.log(this.data.sceneActivityObj, '++++++')
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
this
.
data
.
sceneActive
]
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
this
.
data
.
sceneActive
]
actList
.
forEach
((
item
,
idx
)
=>
{
actList
.
forEach
((
item
,
idx
)
=>
{
var
curItem
=
res
.
find
(
k
=>
k
.
goodsCategoryCode
==
item
.
productCode
)
var
curItem
=
res
.
find
(
k
=>
k
.
goodsCategoryCode
==
item
.
productCode
)
...
@@ -229,8 +229,9 @@ Page({
...
@@ -229,8 +229,9 @@ Page({
console
.
log
(
curItem
)
console
.
log
(
curItem
)
curItem
.
totalNum
=
curItem
.
activityList
.
length
curItem
.
totalNum
=
curItem
.
activityList
.
length
curItem
.
activityList
.
forEach
(
k
=>
{
curItem
.
activityList
.
forEach
(
k
=>
{
// 时间
k
.
time
=
k
.
startTime
.
slice
(
5
).
replace
(
/-/g
,
'/'
)
+
'~'
+
k
.
endTime
.
slice
(
5
).
replace
(
/-/g
,
'/'
)
k
.
time
=
k
.
startTime
.
slice
(
5
).
replace
(
/-/g
,
'/'
)
+
'~'
+
k
.
endTime
.
slice
(
5
).
replace
(
/-/g
,
'/'
)
// 0-未开始;1-
开始
中;2-已结束
// 0-未开始;1-
活动
中;2-已结束
if
(
new
Date
(
k
.
startTime
)
>
new
Date
())
{
if
(
new
Date
(
k
.
startTime
)
>
new
Date
())
{
k
.
actStatus
=
0
k
.
actStatus
=
0
k
.
interDays
=
parseInt
((
new
Date
().
getTime
(
k
.
startTime
)
-
new
Date
().
getTime
())
/
(
1000
*
60
*
60
*
24
))
+
1
k
.
interDays
=
parseInt
((
new
Date
().
getTime
(
k
.
startTime
)
-
new
Date
().
getTime
())
/
(
1000
*
60
*
60
*
24
))
+
1
...
@@ -244,6 +245,7 @@ Page({
...
@@ -244,6 +245,7 @@ Page({
}
}
k
.
suggestTxtList
=
[]
k
.
suggestTxtList
=
[]
k
.
suggestList
=
[]
k
.
suggestList
=
[]
if
(
k
.
actStatus
==
1
)
{
if
(
k
.
visitCount
<
200
)
{
if
(
k
.
visitCount
<
200
)
{
if
((
k
.
actStatus
==
2
&&
k
.
interDays
<
8
)
||
k
.
actStatus
!=
2
)
{
if
((
k
.
actStatus
==
2
&&
k
.
interDays
<
8
)
||
k
.
actStatus
!=
2
)
{
k
.
suggestTxtList
.
push
(
'距离活动结束剩余'
+
k
.
toEndDays
+
'天'
)
k
.
suggestTxtList
.
push
(
'距离活动结束剩余'
+
k
.
toEndDays
+
'天'
)
...
@@ -259,6 +261,7 @@ Page({
...
@@ -259,6 +261,7 @@ Page({
k
.
suggestList
.
push
(
'建议调整该产品的品类话术和营销内容'
)
k
.
suggestList
.
push
(
'建议调整该产品的品类话术和营销内容'
)
}
}
k
.
suggestTxt
=
k
.
suggestTxtList
.
join
(
','
)
+
'。'
k
.
suggestTxt
=
k
.
suggestTxtList
.
join
(
','
)
+
'。'
}
})
})
actList
[
idx
].
outputData
=
curItem
actList
[
idx
].
outputData
=
curItem
}
}
...
@@ -275,14 +278,15 @@ Page({
...
@@ -275,14 +278,15 @@ Page({
*/
*/
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
setData
({
// 删----
merchantInfo
:
{
// this.setData({
pMerchantId
:
44209845
,
// merchantInfo: {
merchantId
:
44209390
,
// pMerchantId: 44209845,
merchantName
:
'????'
// merchantId: 44209390,
},
// merchantName: '????'
sceneCodeList
:
[
'SC001'
,
'SC002'
,
'SC003'
,
'SC004'
]
// },
})
// sceneCodeList: ['SC001', 'SC002', 'SC003', 'SC004']
// })
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
wx
.
$router
.
getData
(
obj
=>
{
wx
.
$router
.
getData
(
obj
=>
{
...
...
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