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 1b9a40d8
authored
May 16, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
申请开店列表接口;我的客户样式适配,次新车转化添加
1 parent
08127c91
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
96 additions
and
29 deletions
api/mineApi/mineService.js
packageMine/pages/customerManagement/customerList/customerList.json
packageMine/pages/customerManagement/customerList/customerList.wxml
packageMine/pages/serviceManage/components/StoreApply/StoreApply.js
pages/tab/output/components/BusiCard/BusiCard.scss
pages/tab/output/components/BusiCard/BusiCard.wxml
pages/tab/output/components/BusiCard/constant/data.js
pages/tab/output/components/TotalTab/TotalTab.js
pages/tab/output/components/TotalTab/TotalTab.wxml
pages/tab/output/components/outputCrowdfund/outputCrowdfund.scss
pages/tab/output/components/outputCrowdfund/outputCrowdfund.wxml
pages/tab/output/components/sortTab/sortTab.scss
pages/tab/output/components/sortTab/sortTab.wxml
api/mineApi/mineService.js
View file @
1b9a40d
...
@@ -85,6 +85,17 @@ const deleteTechnician = data => {
...
@@ -85,6 +85,17 @@ const deleteTechnician = data => {
)
)
}
}
// 查询开店申请列表
const
getReviewList
=
data
=>
{
return
api
.
post
(
{
method
:
'scrm.api.busassistant.merchant.review.list'
,
...
data
},
true
)
}
export
default
{
export
default
{
getAllServiceList
,
getAllServiceList
,
getServiceList
,
getServiceList
,
...
@@ -93,5 +104,6 @@ export default {
...
@@ -93,5 +104,6 @@ export default {
getTechnicianList
,
getTechnicianList
,
addTechnician
,
addTechnician
,
updateTechnician
,
updateTechnician
,
deleteTechnician
deleteTechnician
,
getReviewList
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/customerManagement/customerList/customerList.json
View file @
1b9a40d
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
"select-service-popup"
:
"../../../components/selectServicePopup/selectServicePopup"
,
"select-service-popup"
:
"../../../components/selectServicePopup/selectServicePopup"
,
"van-tab"
:
"@vant/weapp/tab/index"
,
"van-tab"
:
"@vant/weapp/tab/index"
,
"van-tabs"
:
"@vant/weapp/tabs/index"
,
"van-tabs"
:
"@vant/weapp/tabs/index"
,
"store-apply"
:
"../components/StoreApply/StoreApply"
"store-apply"
:
"../
../serviceManage/
components/StoreApply/StoreApply"
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/customerManagement/customerList/customerList.wxml
View file @
1b9a40d
...
@@ -72,5 +72,5 @@
...
@@ -72,5 +72,5 @@
</view>
</view>
</view>
</view>
<!-- 开店申请 -->
<!-- 开店申请 -->
<store-apply wx:else></store-apply>
<store-apply wx:else
merchantType="2"
></store-apply>
<select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="handleSearch" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" />
<select-service-popup wx:if="{{popupShow}}" bind:hidePopup="filterTypeFn" bind:getStaffList="handleSearch" selectInfo="{{selectInfo}}" popShow="{{popupShow}}" serviceRange="{{serviceList}}" />
\ No newline at end of file
\ No newline at end of file
packageMine/pages/serviceManage/components/StoreApply/StoreApply.js
View file @
1b9a40d
...
@@ -6,7 +6,11 @@ Component({
...
@@ -6,7 +6,11 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
// 1-服务中心(园区店) 2-客户(4s店)
merchantType
:
{
type
:
Number
,
value
:
1
}
},
},
/**
/**
...
@@ -15,11 +19,10 @@ Component({
...
@@ -15,11 +19,10 @@ Component({
data
:
{
data
:
{
IMG_URL
,
IMG_URL
,
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
bgUrl
:
`
${
IMG_URL
}
/personal/empty_tran.png`
,
active
:
'service'
,
serviceList
:
[],
serviceList
:
[],
total
:
-
1
,
total
:
-
1
,
pageCof
:
{
pageCof
:
{
pageNum
:
1
,
currentPage
:
1
,
pageSize
:
10
pageSize
:
10
},
},
isAsk
:
false
isAsk
:
false
...
@@ -37,7 +40,7 @@ Component({
...
@@ -37,7 +40,7 @@ Component({
methods
:
{
methods
:
{
handleSearch
()
{
handleSearch
()
{
this
.
setData
({
this
.
setData
({
[
'pageCof.
pageNum
'
]:
1
,
[
'pageCof.
currentPage
'
]:
1
,
total
:
-
1
total
:
-
1
})
})
this
.
getList
(
true
)
this
.
getList
(
true
)
...
@@ -48,22 +51,24 @@ Component({
...
@@ -48,22 +51,24 @@ Component({
},
},
getList
(
isReset
=
false
)
{
getList
(
isReset
=
false
)
{
let
{
serviceList
,
pageCof
,
total
,
isAsk
}
=
this
.
data
let
{
serviceList
,
pageCof
,
total
,
isAsk
,
merchantType
}
=
this
.
data
let
_this
=
this
let
_this
=
this
if
(
total
==
serviceList
.
length
||
isAsk
)
{
if
(
total
==
serviceList
.
length
||
isAsk
)
{
return
true
return
true
}
}
let
params
=
{
let
params
=
{
...
pageCof
...
pageCof
,
merchantType
:
merchantType
}
}
this
.
setData
({
this
.
setData
({
isAsk
:
true
isAsk
:
true
})
})
mineServiceApi
.
getServiceList
(
params
).
then
(
res
=>
{
// mineServiceApi.getServiceList(params).then(res => {
mineServiceApi
.
getReviewList
(
params
).
then
(
res
=>
{
let
{
list
,
total
}
=
res
let
{
list
,
total
}
=
res
this
.
setData
({
this
.
setData
({
serviceList
:
pageCof
.
pageNum
==
1
?
(
list
||
[])
:
serviceList
.
concat
(
list
),
serviceList
:
pageCof
.
currentPage
==
1
?
(
list
||
[])
:
serviceList
.
concat
(
list
),
[
'pageCof.
pageNum'
]:
pageCof
.
pageNum
+
1
,
[
'pageCof.
currentPage'
]:
pageCof
.
currentPage
+
1
,
triggered
:
false
,
triggered
:
false
,
total
total
})
})
...
...
pages/tab/output/components/BusiCard/BusiCard.scss
View file @
1b9a40d
...
@@ -73,4 +73,12 @@
...
@@ -73,4 +73,12 @@
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
}
}
}
}
.row-two
{
width
:
50%
;
}
.row-four
{
width
:
25%
;
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/output/components/BusiCard/BusiCard.wxml
View file @
1b9a40d
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<view class="title">{{info.merchantName || info.merchantName4s || ''}}</view>
<view class="title">{{info.merchantName || info.merchantName4s || ''}}</view>
</view>
</view>
<view class="content">
<view class="content">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="content-item">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="content-item
{{sceneCode == -1 ? (fromPage == 'client' ?'row-two' : 'row-four') : ''}}
">
<view wx:if="{{info[item.name] == '未开通'}}" class="price">{{info[item.name]}}</view>
<view wx:if="{{info[item.name] == '未开通'}}" class="price">{{info[item.name]}}</view>
<view wx:else="" class="price">
<view wx:else="" class="price">
{{item.prefix || ''}}
{{item.prefix || ''}}
...
...
pages/tab/output/components/BusiCard/constant/data.js
View file @
1b9a40d
...
@@ -21,6 +21,11 @@ const clientFormObj = {
...
@@ -21,6 +21,11 @@ const clientFormObj = {
name
:
'vdUpgrade'
,
name
:
'vdUpgrade'
,
prefix
:
'¥'
,
prefix
:
'¥'
,
isNum
:
true
isNum
:
true
},
{
label
:
'次新车转化'
,
name
:
'vdUpgrade'
,
prefix
:
'¥'
,
isNum
:
true
}],
}],
'SC002'
:
[{
'SC002'
:
[{
label
:
'营业额'
,
label
:
'营业额'
,
...
@@ -90,6 +95,11 @@ const staffFormObj = {
...
@@ -90,6 +95,11 @@ const staffFormObj = {
name
:
'totalVdAmount'
,
name
:
'totalVdAmount'
,
prefix
:
'¥'
,
prefix
:
'¥'
,
isNum
:
true
isNum
:
true
},
{
label
:
'次新车转化'
,
name
:
'vdUpgrade'
,
prefix
:
'¥'
,
isNum
:
true
}],
}],
'SC002'
:
[{
'SC002'
:
[{
label
:
'营业额'
,
label
:
'营业额'
,
...
...
pages/tab/output/components/TotalTab/TotalTab.js
View file @
1b9a40d
...
@@ -127,14 +127,21 @@ Component({
...
@@ -127,14 +127,21 @@ Component({
})
})
},
},
handleTimeChange
()
{
handleTimeChange
(
e
)
{
let
{
baseData
:
{
timeList
}
}
=
this
.
data
let
{
scenecode
}
=
e
.
currentTarget
.
dataset
let
{
baseData
:
{
timeList
,
actStatusList
}
}
=
this
.
data
wx
.
showActionSheet
({
wx
.
showActionSheet
({
itemList
:
timeList
,
itemList
:
scenecode
==
'SC003'
?
actStatusList
:
timeList
,
success
:
res
=>
{
success
:
res
=>
{
if
(
scenecode
==
'SC003'
)
{
this
.
setData
({
[
'formData.statusIdx'
]:
res
.
tapIndex
})
}
else
{
this
.
setData
({
this
.
setData
({
[
'formData.timeIdx'
]:
res
.
tapIndex
[
'formData.timeIdx'
]:
res
.
tapIndex
})
})
}
this
.
handleBusiSearch
()
this
.
handleBusiSearch
()
}
}
})
})
...
@@ -240,7 +247,9 @@ Component({
...
@@ -240,7 +247,9 @@ Component({
'PC008'
:
4
,
'PC008'
:
4
,
'PC009'
:
5
'PC009'
:
5
}
}
if
(
formData
.
busiIdx
==
2
&&
formData
?.
proIdx
)
{
if
(
formData
.
sceneCode
==
'SC003'
)
{
params
.
activityStatusList
=
this
.
dealSearchStatus
()
}
else
if
(
formData
.
busiIdx
==
2
&&
formData
?.
proIdx
)
{
params
.
categoryList
=
[
attrToNum
[
proList
[
formData
?.
proIdx
].
productCode
]
||
'-1'
]
params
.
categoryList
=
[
attrToNum
[
proList
[
formData
?.
proIdx
].
productCode
]
||
'-1'
]
params
.
activityStatusList
=
this
.
dealSearchStatus
()
params
.
activityStatusList
=
this
.
dealSearchStatus
()
}
}
...
...
pages/tab/output/components/TotalTab/TotalTab.wxml
View file @
1b9a40d
...
@@ -9,8 +9,9 @@
...
@@ -9,8 +9,9 @@
</view>
</view>
<view class="right-box" wx:if="{{tabActive =='business'}}">
<view class="right-box" wx:if="{{tabActive =='business'}}">
<view wx:if="{{busiOptSceneCode[formData.busiIdx] == 'SC004'}}" bindtap="handleCrowdPopup">{{baseData.proList[formData.proIdx].productName}}</view>
<view wx:if="{{busiOptSceneCode[formData.busiIdx] == 'SC004'}}" bindtap="handleCrowdPopup">{{baseData.proList[formData.proIdx].productName}}</view>
<view wx:else bindtap="handleTimeChange">{{baseData.timeList[formData.timeIdx]}}</view>
<view wx:elif="{{busiOptSceneCode[formData.busiIdx] == 'SC003'}}" data-scenecode="{{busiOptSceneCode[formData.busiIdx]}}" bindtap="handleTimeChange">{{baseData.timeList[formData.timeIdx]}}</view>
<glsx-image src="output/icon-arrow.png" class="icon" bindtap="{{busiOptSceneCode[formData.busiIdx] == 'SC004' ? 'handleCrowdPopup' : 'handleTimeChange'}}"/>
<view wx:else bindtap="handleTimeChange" data-scenecode="{{busiOptSceneCode[formData.busiIdx]}}">{{baseData.timeList[formData.timeIdx]}}</view>
<glsx-image src="output/icon-arrow.png" class="icon" bindtap="{{busiOptSceneCode[formData.busiIdx] == 'SC004' ? 'handleCrowdPopup' : 'handleTimeChange'}}" data-scenecode="{{busiOptSceneCode[formData.busiIdx]}}"/>
</view>
</view>
</view>
</view>
<!-- 众筹-筛选 -->
<!-- 众筹-筛选 -->
...
...
pages/tab/output/components/outputCrowdfund/outputCrowdfund.scss
View file @
1b9a40d
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}
}
.merchant
{
.merchant
{
padding
:
0
32rpx
32rpx
;
padding
:
0
0
32rpx
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
.head
{
.head
{
...
@@ -51,15 +51,21 @@
...
@@ -51,15 +51,21 @@
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
// height: 70rpx;
// line-height: 70rpx;
padding
:
16rpx
0
;
line-height
:
40rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
font-weight
:
600
;
font-weight
:
600
;
border-bottom
:
1rpx
dashed
#CCCED1
;
margin-bottom
:
16rpx
;
margin-bottom
:
16rpx
;
.head-title
{
box-sizing
:
border-box
;
display
:
flex
;
height
:
60rpx
;
line-height
:
60rpx
;
justify-content
:
space-between
;
width
:
calc
(
100%
-
40rpx
);
border-bottom
:
2rpx
dotted
#E0E0E0
;
// padding-bottom: 14rpx;
}
.icon
{
.icon
{
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
...
@@ -110,7 +116,22 @@
...
@@ -110,7 +116,22 @@
}
}
}
}
.bf-blue
{
padding
:
0
;
}
.
bf-blue
:
:
before
{
display
:
inline-block
;
content
:
''
;
width
:
6rpx
;
height
:
28rpx
;
background
:
#3666FE
;
border-radius
:
0
4rpx
4rpx
0
;
margin
:
0
16rpx
0
0
;
}
.content
{
.content
{
padding
:
0
32rpx
;
&
-title
{
&
-title
{
font-size
:
28rpx
;
font-size
:
28rpx
;
...
...
pages/tab/output/components/outputCrowdfund/outputCrowdfund.wxml
View file @
1b9a40d
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
</view>
</view>
</view>
</view>
<view class="crowdfund-box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="crowdfund-box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<view class="head
bf-blue
">
<!-- text-hide -->
<!-- text-hide -->
<
glsx-image src="output/icon-head.png" class="icon" /
>
<
!-- <glsx-image src="output/icon-head.png" class="icon" /> --
>
<view class="head-title">{{item.merchantName}}</view>
<view class="head-title">{{item.merchantName}}</view>
</view>
</view>
<view class="content">
<view class="content">
...
...
pages/tab/output/components/sortTab/sortTab.scss
View file @
1b9a40d
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
.sort-scroll
{
.sort-scroll
{
display
:
flex
;
display
:
flex
;
width
:
calc
(
100%
-
196rpx
);
width
:
100%
;
// width: calc(100% - 196rpx);
.item
{
.item
{
display
:
flex
;
display
:
flex
;
...
...
pages/tab/output/components/sortTab/sortTab.wxml
View file @
1b9a40d
<!--pages/tab/output/components/sortTab/sortTab.wxml-->
<!--pages/tab/output/components/sortTab/sortTab.wxml-->
<view class="sort-tab">
<view class="sort-tab">
<
ciew class="title">{{title}}</ciew
>
<
!-- <ciew class="title">{{title}}</ciew> --
>
<scroll-view class="sort-scroll" scroll-x="true">
<scroll-view class="sort-scroll" scroll-x="true">
<view class="flex">
<view class="flex">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="item" bindtap="handleSort" data-idx="{{index}}">
<view wx:for="{{formObj[sceneCode]}}" wx:key="index" class="item" bindtap="handleSort" data-idx="{{index}}">
...
...
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