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 c1e5dc56
authored
Oct 18, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交代码
1 parent
c91a3411
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
376 additions
and
90 deletions
api/outPut/index.js
api/outPut/outPut.js
pages/mineDetail/customerManagement/customerManagement.js
pages/mineDetail/customerManagement/customerManagement.scss
pages/mineDetail/customerManagement/customerManagement.wxml
pages/tab/output/components/merchant/mrechant.js
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.js
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.json
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.scss
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxml
pages/tab/output/output.js
utils/request/environment.js
api/outPut/index.js
0 → 100644
View file @
c1e5dc5
import
outPut
from
'./outPut.js'
export
default
new
outPut
()
api/outPut/outPut.js
0 → 100644
View file @
c1e5dc5
import
api
from
'~/utils/request/request'
const
{
appId
}
=
wx
.
getAccountInfoSync
().
miniProgram
const
CODE
=
{
platformEntrance
:
'BUSINESS_ASSISTANT'
,
productCode
:
'PC00c3'
}
class
outPut
{
/**获取园区店开通场景数据 */
getSignMerchant
(
data
)
{
return
api
.
post
(
{
method
:
'scrm.api.boutiquecoupon.getSceneTotal.byYqMerchantId'
,
...
data
}
// true
)
}
/**获取服务商(生意助手看产值)我的门店页数据 */
partnerMerchantTotal
(
data
)
{
return
api
.
post
(
{
method
:
'scrm.api.boutiquecoupon.partnermerchant.yqList'
,
...
data
}
// true
)
}
}
export
default
outPut
pages/mineDetail/customerManagement/customerManagement.js
View file @
c1e5dc5
...
@@ -9,7 +9,7 @@ const listObj = Object.freeze([
...
@@ -9,7 +9,7 @@ const listObj = Object.freeze([
{
{
key
:
'merchantName'
,
key
:
'merchantName'
,
label
:
'门店名称:'
,
label
:
'门店名称:'
,
placeholder
:
'请输入您的客户门店简称
,不超过20个字符
'
,
placeholder
:
'请输入您的客户门店简称'
,
editLabel
:
'门店名称'
,
editLabel
:
'门店名称'
,
maxLength
:
20
maxLength
:
20
},
},
...
@@ -25,12 +25,14 @@ const listObj = Object.freeze([
...
@@ -25,12 +25,14 @@ const listObj = Object.freeze([
label
:
'手机号:'
,
label
:
'手机号:'
,
placeholder
:
'请输入客户门店联系人手机号'
,
placeholder
:
'请输入客户门店联系人手机号'
,
editLabel
:
'手机号'
,
editLabel
:
'手机号'
,
maxLength
:
11
maxLength
:
11
,
reg
:
'/[^d]/g,'
},
},
{
{
key
:
'mainBrand'
,
key
:
'mainBrand'
,
label
:
'主营品牌:'
,
label
:
'主营品牌:'
,
placeholder
:
'请输入客户门店主营品牌,多个品牌以分号区隔'
,
// 请输入客户门店主营品牌,
placeholder
:
'多个品牌以分号区隔'
,
editLabel
:
'主营品牌'
,
editLabel
:
'主营品牌'
,
maxLength
:
20
maxLength
:
20
},
},
...
@@ -39,14 +41,16 @@ const listObj = Object.freeze([
...
@@ -39,14 +41,16 @@ const listObj = Object.freeze([
label
:
'新车销量:'
,
label
:
'新车销量:'
,
placeholder
:
'请输入客户门店新车月平均销售数'
,
placeholder
:
'请输入客户门店新车月平均销售数'
,
editLabel
:
'新车销量'
,
editLabel
:
'新车销量'
,
maxLength
:
5
maxLength
:
5
,
reg
:
'/[^d]/g,'
},
},
{
{
key
:
'existUserNumber'
,
key
:
'existUserNumber'
,
label
:
'存量用户数:'
,
label
:
'存量用户数:'
,
placeholder
:
'请输入客户门店存量用户数'
,
placeholder
:
'请输入客户门店存量用户数'
,
editLabel
:
'存量用户数'
,
editLabel
:
'存量用户数'
,
maxLength
:
8
maxLength
:
8
,
reg
:
'/[^d]/g,'
}
}
])
])
Component
({
Component
({
...
@@ -99,6 +103,25 @@ Component({
...
@@ -99,6 +103,25 @@ Component({
deletedFlag
:
'string'
,
deletedFlag
:
'string'
,
partnerMerchantId
:
0
,
partnerMerchantId
:
0
,
actualMerchantName
:
'string'
,
actualMerchantName
:
'string'
,
isEdit
:
false
},
{
id
:
0
,
merchantId
:
0
,
merchantName
:
'string'
,
loginAccountUuid
:
'string'
,
contactName
:
'string'
,
phone
:
'string'
,
mainBrand
:
'string'
,
newCarSales
:
0
,
existUserNumber
:
0
,
createdBy
:
'string'
,
createdDate
:
'2022-10-14T07:33:40.778Z'
,
updatedBy
:
'string'
,
updatedDate
:
'2022-10-14T07:33:40.778Z'
,
deletedFlag
:
'string'
,
partnerMerchantId
:
0
,
actualMerchantName
:
'string'
,
isEdit
:
true
isEdit
:
true
}
}
],
],
...
@@ -143,16 +166,38 @@ Component({
...
@@ -143,16 +166,38 @@ Component({
.
catch
(
err
=>
{})
.
catch
(
err
=>
{})
},
},
changeStatus
(
e
)
{
changeStatus
(
e
)
{
console
.
log
(
e
)
// console.log(e)
let
{
customerList
}
=
this
.
data
let
{
index
,
isEdit
}
=
e
.
currentTarget
.
dataset
// let
let
status
=
customerList
[
index
].
isEdit
if
(
isEdit
)
{
// 提交客户信息更新
this
.
checkout
(
customerList
[
index
])
}
else
{
customerList
[
index
][
'isEdit'
]
=
true
this
.
setData
({
customerList
})
}
},
},
input
(
e
)
{
input
(
e
)
{
let
{
orderObj
,
userInfo
,
goodsList
}
=
this
.
data
let
{
index
,
name
}
=
e
.
currentTarget
.
dataset
console
.
log
(
index
)
console
.
log
(
name
)
let
{
customerList
,
listObj
}
=
this
.
data
let
{
value
}
=
e
.
detail
let
{
value
}
=
e
.
detail
let
{
name
}
=
e
.
currentTarget
.
dataset
// listObj
customerList
[
index
][
name
]
=
value
this
.
setData
({
this
.
setData
({
[
`orderObj.
${
name
}
`
]:
value
customerList
})
})
// let { name } = e.currentTarget.dataset
// this.setData({
// [`orderObj.${name}`]: value
// })
}
}
}
}
})
})
pages/mineDetail/customerManagement/customerManagement.scss
View file @
c1e5dc5
...
@@ -3,9 +3,15 @@ page {
...
@@ -3,9 +3,15 @@ page {
background-color
:
#F2F3F7
;
background-color
:
#F2F3F7
;
}
}
.customerManagementCon
{
height
:
100%
;
}
.input
{
.input
{
text-align
:
left
;
text-align
:
left
;
font-size
:
28rpx
;
font-size
:
28rpx
;
caret-color
:
#3666FE
;
}
}
.placeholder-class
{
.placeholder-class
{
...
@@ -38,8 +44,17 @@ page {
...
@@ -38,8 +44,17 @@ page {
}
}
}
}
.list
{
overflow
:
scroll
;
}
.cellSty
{
.cellSty
{
display
:
block
;
display
:
block
;
height
:
80rpx
;
height
:
80rpx
;
line-height
:
80rpx
;
line-height
:
80rpx
;
}
.placeholder-class
{
color
:
#666
;
font-size
:
20rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/mineDetail/customerManagement/customerManagement.wxml
View file @
c1e5dc5
...
@@ -5,23 +5,27 @@
...
@@ -5,23 +5,27 @@
scroll-y
scroll-y
enable-back-to-top
enable-back-to-top
refresher-enabled="{{true}}"
refresher-enabled="{{true}}"
bindrefresherrefresh="refreshList"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
refresher-threshold="104"
style="height:100%;"
style="height:100vh;"
scroll-top="{{scrollTop}}"
class=" list"
class="businessPage list"
refresher-triggered="{{triggered}}">
refresher-triggered="{{triggered}}">
<view class="customerBox" wx:for="{{customerList}}" wx:key="index">
<view class="customerBox" wx:for="{{customerList}}" wx:key="index">
<view class="titleCon">
<view class="titleCon">
<view class="name">嘀加鹏辉奥迪4S店</view>
<view class="name">嘀加鹏辉奥迪4S店</view>
<view class="statusBtn" data-index="{{index}}" bind:tap="changeStatus">
<view
class="statusBtn"
data-index="{{index}}"
data-isEdit="{{item.isEdit}}"
bind:tap="changeStatus">
{{item.isEdit?'完成':'编辑'}}
{{item.isEdit?'完成':'编辑'}}
</view>
</view>
</view>
</view>
<view/>
<view/>
<gl-cell
<gl-cell
wx:for="{{listObj}}"
wx:for="{{listObj}}"
wx:key="
{{ind}}
"
wx:key="
ind
"
wx:for-index="ind"
wx:for-index="ind"
wx:for-item="childItem"
wx:for-item="childItem"
valueAlign="right"
valueAlign="right"
...
@@ -31,14 +35,17 @@
...
@@ -31,14 +35,17 @@
cellHeight="{{false}}"
cellHeight="{{false}}"
labelWidth="200rpx">
labelWidth="200rpx">
<input
<input
placeholder="
点击输入
"
placeholder="
{{item.isEdit? childItem['placeholder']:''}}
"
class="input"
class="input"
placeholder-class="placeholder-class"
placeholder-class="placeholder-class"
maxlength="{{childItem.maxLength}}"
maxlength="{{childItem.maxLength}}"
value="{{item[childItem[
key
]] }}"
value="{{item[childItem[
'key'
]] }}"
bindinput="input"
bindinput="input"
data-name="{{childItem[key]}}"
type="number"
disabled="{{!item.isEdit}}"
data-index="{{index}}"
data-name="{{childItem['key']}}"
data-reg="{{childItem['reg']}}"
disabled="{{!item.isEdit || ind == 0 }}"
always-embed></input>
always-embed></input>
</gl-cell>
</gl-cell>
<!-- <gl-cell
<!-- <gl-cell
...
...
pages/tab/output/components/merchant/mrechant.js
View file @
c1e5dc5
// pages/tab/output/components/merchant/mrechant.js
// pages/tab/output/components/merchant/mrechant.js
import
outPut
from
'~/api/outPut/index'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -12,9 +13,23 @@ Component({
...
@@ -12,9 +13,23 @@ Component({
tabIndx
:
4
,
tabIndx
:
4
,
noProduct
:
false
noProduct
:
false
},
},
attached
()
{
this
.
getTotalMerchantCount
()
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{}
methods
:
{
getTotalMerchantCount
()
{
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
merchantId
}
=
userInfo
.
subLoginUser
console
.
log
(
'merchantId'
,
merchantId
)
outPut
.
partnerMerchantTotal
(
merchantId
)
.
then
(
result
=>
{
console
.
log
(
result
)
})
.
catch
(
err
=>
{})
}
}
})
})
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.js
View file @
c1e5dc5
...
@@ -4,7 +4,9 @@ import { IMG_URL } from '~/utils/constantData'
...
@@ -4,7 +4,9 @@ import { IMG_URL } from '~/utils/constantData'
// ;('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/')
// ;('https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/')
const
IMAGES
=
{
const
IMAGES
=
{
arrow
:
`
${
IMG_URL
}
/output/arrow.png`
,
arrow
:
`
${
IMG_URL
}
/output/arrow.png`
,
funnel
:
`
${
IMG_URL
}
/output/funnel.png`
funnel
:
`
${
IMG_URL
}
/output/funnel.png`
,
money
:
`
${
IMG_URL
}
/output/money.png`
,
paper
:
`
${
IMG_URL
}
/output/paper.png`
}
}
Component
({
Component
({
// behaviors: [imgUrlMixin],
// behaviors: [imgUrlMixin],
...
@@ -18,18 +20,95 @@ Component({
...
@@ -18,18 +20,95 @@ Component({
*/
*/
data
:
{
data
:
{
IMAGES
,
IMAGES
,
sceneIndx
:
1
,
sceneIndx
:
3
,
isAct
:
true
,
isAct
:
true
,
background
:
[
'demo-text-1'
,
'demo-text-2'
,
'demo-text-3'
],
indicatorDots
:
true
,
indicatorDots
:
true
,
vertical
:
false
,
vertical
:
false
,
autoplay
:
false
,
autoplay
:
false
,
interval
:
2000
,
interval
:
2000
,
duration
:
500
duration
:
500
,
list
:
[
{
id
:
1
,
merchantName
:
'广西弘泽汽车销售服务有限公司'
,
totalMoney
:
'14580.00'
,
sence1
:
false
,
sence2
:
true
,
sence3
:
false
,
sence4
:
true
,
newList
:
[
{
time
:
'09-28 11:19'
,
content
:
'今日升级2单,产值¥4480'
},
{
time
:
'09-28 11:19'
,
content
:
'今日升级2单,产值¥4480'
}
]
},
{
id
:
2
,
merchantName
:
'广西弘泽汽车销售服务有限公司7483493849389348938'
,
totalMoney
:
'14580.00'
,
sence1
:
false
,
sence2
:
false
,
sence3
:
false
,
sence4
:
false
,
newList
:
[]
},
{
id
:
3
,
merchantName
:
'广西弘泽汽车销售服务有限公司'
,
totalMoney
:
'14580.00'
,
sence1
:
false
,
sence2
:
true
,
sence3
:
false
,
sence4
:
true
,
newList
:
[
{
time
:
'09-28 11:19'
,
content
:
'今日升级2单,产值¥4480'
},
{
time
:
'09-28 11:19'
,
content
:
'今日升级2单,产值¥4480'
}
]
},
{
id
:
4
,
merchantName
:
'广西弘泽汽车销售服务有限公司7483493849389348938'
,
totalMoney
:
'14580.00'
,
sence1
:
false
,
sence2
:
false
,
sence3
:
false
,
sence4
:
false
,
newList
:
[]
}
],
funnelList
:
{
3
:
[
{
label
:
'到店量'
,
key
:
'toShopCount'
},
{
label
:
'核销数'
,
key
:
'couponUsedCount'
},
{
label
:
'体验数'
,
key
:
'experienceCount'
},
{
label
:
'订单成交'
,
key
:
'upgradeCount'
}
],
other
:
[
{
label
:
'转发量'
,
key
:
'shareCount'
},
{
label
:
'访客数'
,
key
:
'visitCount'
},
{
label
:
'成交数'
,
key
:
'dealCount'
},
{
label
:
'产值'
,
key
:
'totalMoney'
}
]
}
},
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{}
methods
:
{
handleSenceChange
(
e
)
{
console
.
log
(
e
)
}
}
})
})
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.json
View file @
c1e5dc5
{
{
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"s
cene-select"
:
"../sceneSelect/sceneSelect
"
"s
ence-box"
:
"../../../../../components/SenceBox/SenceBox
"
}
}
}
}
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.scss
View file @
c1e5dc5
...
@@ -51,20 +51,112 @@
...
@@ -51,20 +51,112 @@
padding
:
12rpx
;
padding
:
12rpx
;
}
}
.full
{
.fluuelCon
{
height
:
800rpx
!
important
;
width
:
670rpx
;
height
:
550rpx
;
position
:
relative
;
}
.bg-image
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
// width: 670rpx;
// height: 550rpx;
// z-index: -1;
// object-fit: cover;
}
}
.short
{
.diagnosisCon
{
height
:
600rpx
!
important
;
box-sizing
:
border-box
;
width
:
100%
;
padding
:
20rpx
;
border
:
2rpx
dashed
#CCCED1
;
display
:
flex
;
.tipsIcon
{
box-sizing
:
border-box
;
width
:
56rpx
;
height
:
64rpx
;
padding
:
8rpx
;
background
:
rgba
(
62
,
113
,
254
,
0
.12
);
border-radius
:
4rpx
;
font-family
:
PingFangSC-Medium
;
font-weight
:
500
;
font-size
:
20rpx
;
color
:
#3E71FE
;
}
.tips
{
width
:
560rpx
;
margin-left
:
16rpx
;
font-size
:
20rpx
;
color
:
#5A6066
;
line-height
:
32rpx
;
}
}
}
}
.bg-image
{
.swiper-item
{
width
:
670
rpx
;
padding
:
32rpx
20rpx
24
rpx
;
height
:
550rp
x
;
display
:
fle
x
;
z-index
:
-1
;
flex-direction
:
column
;
// object-fit: cov
er;
align-items
:
cent
er
;
.merchantCount
{
box-sizing
:
border-box
;
display
:
flex
;
margin
:
32rpx
0
;
.turnover
,
.customerUnitPrice
{
box-sizing
:
border-box
;
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
start
;
justify-content
:
center
;
width
:
328rpx
;
height
:
128rpx
;
padding-left
:
110rpx
;
background-image
:
linear-gradient
(
90deg
,
#FFFFFF
3%
,
#F7F8FC
100%
);
text-align-last
:
left
;
.img
{
position
:
absolute
;
top
:
24rpx
;
left
:
36rpx
;
width
:
60rpx
;
height
:
60rpx
;
}
.num
{
font-family
:
MiSans-S0rpxibold
;
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#323436
;
margin-bottom
:
14rpx
;
}
.label
{
font-weight
:
400
;
font-size
:
24rpx
;
color
:
#323436
;
}
}
.customerUnitPrice
{
margin-left
:
6rpx
;
}
}
}
}
.full
{
height
:
1350rpx
!
important
;
}
.short
{
height
:
1050rpx
!
important
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxml
View file @
c1e5dc5
<!-- pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxml -->
<!-- pages/tab/output/components/merchantDataStatistics/merchantDataStatistics.wxml -->
<view class="merchantDataStatistics-con">
<swiper
<view class="contitle">
indicator-dots="{{indicatorDots}}"
<view class="name">广西宏泽汽车有限公司</view>
class="{{sceneIndx==3? 'short':'full'}}"
<view class="select">
autoplay="{{autoplay}}"
<view>全部</view>
interval="{{interval}}"
<image
duration="{{duration}}">
class="arrow {{isAct?'isAct':''}}"
<block wx:for="{{list}}" wx:key="*this">
webp
<swiper-item>
src="{{IMAGES.arrow}}"
<view class="merchantDataStatistics-con">
alt="" />
<view class="contitle">
</view>
<view class="name">广西宏泽汽车有限公司</view>
</view>
<view class="select">
<scene-select/>
<view>全部</view>
<!-- <view class="senceCon">
<image
<view>1</view>
class="arrow {{isAct?'isAct':''}}"
<view>2</view>
webp
<view>3</view>
src="{{IMAGES.arrow}}"
<view>4</view>
alt="" />
</view> -->
</view>
<view class="outputValueCon">
</view>
<view class="title">产值图</view>
<!-- <scene-select/> -->
<view class="swiperCon">
<sence-box formData="{{item}}" senceActive="{{(sceneIndx+1)}}" />
<swiper
<view class="outputValueCon">
indicator-dots="{{indicatorDots}}"
<view class="title">产值图</view>
class="{{sceneIndx==3? 'short':'full'}}"
<view class="swiperCon">
autoplay="{{autoplay}}"
interval="{{interval}}"
duration="{{duration}}">
<block wx:for="{{background}}" wx:key="*this">
<swiper-item>
<view class="swiper-item ">
<view class="swiper-item ">
<image class="bg-image" src="{{IMAGES.funnel}}" />
<view class="fluuelCon">
<!-- 统计 -->
<image class="bg-image" src="{{IMAGES.funnel}}" />
<view class="merchantCount">
</view>
<view class="turnover">
<!-- <block wx:for="{{items}}"></block> -->
<view class="img" />
<view hidden="{{sceneIndx==3}}">
<view class="num">200</view>
<!-- 统计 -->
<view class="label">营业额</view>
<view class="merchantCount">
<view class="turnover">
<image class="img " webp src="{{IMAGES.money}}" />
<view class="num">200</view>
<view class="label">营业额/¥</view>
</view>
<view class="customerUnitPrice">
<image class="img " webp src="{{IMAGES.paper}}" />
<view class="num">2000</view>
<view class="label">客单价/¥</view>
</view>
</view>
</view>
<view class="customerUnitPrice">
<!-- 指标诊断 -->
<view class="img" />
<view class="diagnosisCon">
<view class="num">2000</view>
<view class="tipsIcon">指标诊断</view>
<view class="label">营业额</view>
<view class="tips">
日均升级客单价低于1000/低于上2个月平均日升级客单价的10%,建议梳理驻店销售的技能,以及加强与流量方的互动。
</view>
</view>
</view>
</view>
</view>
<!-- 指标诊断 -->
<view class="diagnosisCon">
<view class="img">图片</view>
<view class="tips">日均升级客单价低于1000/低于上2个月平均日升级客单价的10%,建议梳理驻店销售的技能,以及加强与流量方的互动。</view>
</view>
</view>
</view>
</
swiper-item
>
</
view
>
</
block
>
</
view
>
</
swiper
>
</
view
>
</
view
>
</
swiper-item
>
</
view
>
</
block
>
</
view
>
</
swiper
>
pages/tab/output/output.js
View file @
c1e5dc5
...
@@ -48,7 +48,7 @@ Page({
...
@@ -48,7 +48,7 @@ Page({
getMerchantRange
(
e
)
{
getMerchantRange
(
e
)
{
// 重新刷新
// 重新刷新
let
{
detail
}
=
e
//
let { detail } = e
let
{
userInfo
}
=
wx
.
$storage
.
get
()
let
{
userInfo
}
=
wx
.
$storage
.
get
()
// 有问题 先取反调试
// 有问题 先取反调试
...
...
utils/request/environment.js
View file @
c1e5dc5
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
...
@@ -6,7 +6,7 @@ const target = ['ip', 'dev', 'uat', 'prod']
2测试
2测试
3生产
3生产
*/
*/
const
index
=
0
const
index
=
1
const
secretKey
=
{
const
secretKey
=
{
ip
:
{},
ip
:
{},
dev
:
{
dev
:
{
...
...
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