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 42e28241
authored
Nov 17, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_v3.1' of 192.168.3.233:saas_plus/business-assistant into dev_v3.1
2 parents
99e908be
34ce90a9
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
47 additions
and
21 deletions
app.js
components/SceneBox/SceneBox.wxml
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
packagesList/packageOutput/pages/openBusiness.js
packagesList/packageOutput/pages/summary.js
packagesList/packageOutput/pages/summary.wxml
pages/tab/index/components/product/product.wxml
pages/tab/output/components/client/client.js
pages/tab/output/components/client/client.wxml
app.js
View file @
42e2824
...
@@ -60,8 +60,5 @@ App({
...
@@ -60,8 +60,5 @@ App({
onPageNotFound
(
e
)
{
onPageNotFound
(
e
)
{
wx
.
$router
.
goHome
()
wx
.
$router
.
goHome
()
},
},
onHide
()
{},
onHide
()
{}
globalData
:
{
refresh
:
false
}
})
})
components/SceneBox/SceneBox.wxml
View file @
42e2824
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<!-- pages/tab/output/components/sceneBox/sceneBox.wxml -->
<wxs src="/pages/tab/output/index.wxs" module="filter" />
<view class="flex scene">
<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 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">
<view wx:if="{{hasOpenIcon && formData['scene' + (index + 1)]}}" class="open-icon">
...
@@ -14,7 +15,7 @@
...
@@ -14,7 +15,7 @@
</view>
</view>
<view>{{item.subTitle}}</view>
<view>{{item.subTitle}}</view>
<view class="total-price" wx:if="{{scenePriceList.length}}">
<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>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
View file @
42e2824
...
@@ -213,6 +213,7 @@ Component({
...
@@ -213,6 +213,7 @@ Component({
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
activityId
})
})
this
.
triggerEvent
(
'posterTrack'
)
},
},
/**长按战报/喜报 */
/**长按战报/喜报 */
async
handlePosterTouch
(
e
)
{
async
handlePosterTouch
(
e
)
{
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
42e2824
...
@@ -176,9 +176,24 @@
...
@@ -176,9 +176,24 @@
}
}
.rank-head
{
.rank-head
{
position
:
relative
;
width
:
64rpx
;
width
:
64rpx
;
height
:
64rpx
;
height
:
64rpx
;
margin-right
:
12rpx
;
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
{
.rank-content
{
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
42e2824
...
@@ -38,7 +38,11 @@
...
@@ -38,7 +38,11 @@
<view class="rank">
<view class="rank">
<view class="rank-left">
<view class="rank-left">
<view class="rank-num">{{idx + 1}}</view>
<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-content">
<view class="rank-row">
<view class="rank-row">
<text wx:if="{{subItem.goodUrl}}" class="rank-row-name" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text>
<text wx:if="{{subItem.goodUrl}}" class="rank-row-name" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text>
...
@@ -51,7 +55,7 @@
...
@@ -51,7 +55,7 @@
</view>
</view>
</view>
</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 wx:else class="rank-price">暂无业绩</view>
</view>
</view>
</view>
</view>
...
...
packagesList/packageOutput/pages/openBusiness.js
View file @
42e2824
...
@@ -132,8 +132,11 @@ Page({
...
@@ -132,8 +132,11 @@ Page({
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
()
{},
onReady
()
{
wx
.
setNavigationBarTitle
({
title
:
'开通店面业务'
,
})
},
/**
/**
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
...
...
packagesList/packageOutput/pages/summary.js
View file @
42e2824
...
@@ -74,8 +74,6 @@ Page({
...
@@ -74,8 +74,6 @@ Page({
activityActive
:
idx
,
activityActive
:
idx
,
// productStatus:0未申请;1申请中;2已开通;3:已结束
// productStatus:0未申请;1申请中;2已开通;3:已结束
isShowData
:
[
2
,
3
].
includes
(
+
this
.
data
.
activityList
[
idx
].
productStatus
)
isShowData
:
[
2
,
3
].
includes
(
+
this
.
data
.
activityList
[
idx
].
productStatus
)
// 删----
// isShowData: true
})
})
if
([
2
,
3
].
includes
(
this
.
data
.
sceneActive
))
{
if
([
2
,
3
].
includes
(
this
.
data
.
sceneActive
))
{
this
.
getCustomerDetail
(
false
,
false
)
this
.
getCustomerDetail
(
false
,
false
)
...
@@ -291,8 +289,6 @@ Page({
...
@@ -291,8 +289,6 @@ Page({
getActivityRevenue
(
isFirst
=
false
)
{
getActivityRevenue
(
isFirst
=
false
)
{
wx
.
showLoading
()
wx
.
showLoading
()
var
params
=
this
.
dealSearchStatus
()
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, '++++++')
// console.log(this.data.sceneActivityObj, '++++++')
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
4
:
this
.
data
.
sceneActive
)]
var
actList
=
this
.
data
.
sceneActivityObj
[
'scene'
+
(
isFirst
?
4
:
this
.
data
.
sceneActive
)]
...
@@ -422,7 +418,13 @@ Page({
...
@@ -422,7 +418,13 @@ Page({
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
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
])
this
.
getSceneProStatus
(
this
.
data
.
sceneCodeList
[
this
.
data
.
sceneActive
-
1
])
},
},
...
...
packagesList/packageOutput/pages/summary.wxml
View file @
42e2824
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<view class="p-rl-20 bg-white">
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<scroll-view scroll-x="{{true}}" enable-flex class="activity-box" scroll-with-animation scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{i
tem.productStatus == 2
? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{i
sShowData
? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">
{{item.productName}}
{{item.productName}}
</view>
</view>
</view>
</view>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</view>
</view>
</view>
</view>
<output-transform wx:if="{{sceneActive == 2 || sceneActive == 3}}" formData="{{activityList[activityActive].orderTotal}}" />
<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>
<view wx:else class="content-empty bg-white">
<view wx:else class="content-empty bg-white">
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
...
...
pages/tab/index/components/product/product.wxml
View file @
42e2824
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<block wx:for="{{senceData[actNum].videoList}}" wx:key="i">
<view class="video-item">
<view class="video-item">
<view class="download" bindtap="downVideo" data-url="{{videoBaseUrl}}video/{{item.videoUrl}}.mp4?v={{img_version}}">视频下载</view>
<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}}"/> --
>
<
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
>
<
!-- <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 class="video-text">{{item.name}}</view>
</view>
</view>
</block>
</block>
...
...
pages/tab/output/components/client/client.js
View file @
42e2824
...
@@ -30,6 +30,9 @@ Component({
...
@@ -30,6 +30,9 @@ Component({
},
},
lifetimes
:
{
lifetimes
:
{
attached
()
{
attached
()
{
wx
.
$eventbus
.
on
(
'clienRefresh'
,
res
=>
{
this
.
clientRefresh
()
})
this
.
getPMerchantInfo
()
this
.
getPMerchantInfo
()
this
.
getClientApi
()
this
.
getClientApi
()
}
}
...
@@ -153,7 +156,6 @@ Component({
...
@@ -153,7 +156,6 @@ Component({
const
res
=
await
outputApi
.
reportPosterTrack
({
const
res
=
await
outputApi
.
reportPosterTrack
({
activityId
activityId
})
})
console
.
log
(
res
)
},
},
handleJump
(
e
)
{
handleJump
(
e
)
{
let
{
idx
}
=
e
.
currentTarget
.
dataset
let
{
idx
}
=
e
.
currentTarget
.
dataset
...
...
pages/tab/output/components/client/client.wxml
View file @
42e2824
<!-- pages/tab/output/components/client/client.wxml -->
<!-- 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}}">
<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">¥{{
filter.money_three_for_two_thousands(totalProfit || 0.00)
}}</text>
</view>
</view>
<view 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="box {{item.activityLastUnSharedInfo ? 'share' : ''}}">
<view class="box {{item.activityLastUnSharedInfo ? 'share' : ''}}">
<view class="head flex-between">
<view class="head flex-between">
<view class="name ">{{item.merchantName}}</view>
<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>
<!-- 场景内容 -->
<!-- 场景内容 -->
<view class="box-content">
<view class="box-content">
...
...
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