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 67710aa0
authored
Jul 17, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
9ab5ad8c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
6 deletions
api/mineApi/mineCustomer.js
packageMine/pages/customerManagement/customerList/customerList.wxml
packageMine/pages/customerManagement/saleList/saleList.js
utils/request/environment.js
api/mineApi/mineCustomer.js
View file @
67710aa
...
@@ -62,11 +62,26 @@ const getSetStaffList = data => {
...
@@ -62,11 +62,26 @@ const getSetStaffList = data => {
)
)
}
}
// 根据门店查场景值
const
getSceneList
=
data
=>
{
return
api
.
post
(
{
method
:
'dj.api.smartcarlife.scenemerchantref.listScene'
,
...
data
,
apiProjectName
:
'djsmart'
},
false
,
'dj'
)
}
export
default
{
export
default
{
getCustomerList
,
getCustomerList
,
saveCustomer
,
saveCustomer
,
updateCustomer
,
updateCustomer
,
getEmployeeList
,
getEmployeeList
,
getInviteCode
,
getInviteCode
,
getSetStaffList
getSetStaffList
,
getSceneList
}
}
\ No newline at end of file
\ No newline at end of file
packageMine/pages/customerManagement/customerList/customerList.wxml
View file @
67710aa
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<glsx-image src="personal/customer_head.png" class="avatar" />
<glsx-image src="personal/customer_head.png" class="avatar" />
<view class="message-text">
<view class="message-text">
<view class="name">{{item.merchantName}}</view>
<view class="name">{{item.merchantName}}</view>
<view class="tips">{{item.merchantId}} | {{item.contactName}} {{item.phone}}</view>
<view class="tips">{{item.merchantId}} | {{item.contactName
|| ''
}} {{item.phone}}</view>
</view>
</view>
</view>
</view>
<!-- <glsx-image src="personal/arrow_right.png" class="arrow_right" /> -->
<!-- <glsx-image src="personal/arrow_right.png" class="arrow_right" /> -->
...
...
packageMine/pages/customerManagement/saleList/saleList.js
View file @
67710aa
...
@@ -109,7 +109,14 @@ Page({
...
@@ -109,7 +109,14 @@ Page({
wx
.
$api
.
hideLoading
()
wx
.
$api
.
hideLoading
()
})
})
},
},
getSceneList
(
merchantId
)
{
let
{
customerInfo
}
=
this
.
data
mineCustomerApi
.
getSceneList
({
merchantId
}).
then
(
res
=>
{
this
.
setData
({
[
'customerInfo.sceneList'
]:
res
||
customerInfo
.
sceneList
||
[]
})
})
},
handleShow
()
{
handleShow
()
{
this
.
setData
({
this
.
setData
({
isTipShow
:
!
this
.
data
.
isTipShow
isTipShow
:
!
this
.
data
.
isTipShow
...
@@ -135,6 +142,9 @@ Page({
...
@@ -135,6 +142,9 @@ Page({
this
.
setData
({
this
.
setData
({
customerInfo
:
res
customerInfo
:
res
})
})
if
(
res
.
merchantId
)
{
this
.
getSceneList
(
res
.
merchantId
)
}
this
.
getList
()
this
.
getList
()
})
})
},
},
...
...
utils/request/environment.js
View file @
67710aa
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -29,7 +29,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
2
let
index
=
1
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
@@ -119,7 +119,7 @@ const domain = {
...
@@ -119,7 +119,7 @@ const domain = {
scrm
:
'http://192.168.1.165:8292'
scrm
:
'http://192.168.1.165:8292'
},
},
dev
:
{
dev
:
{
dj
:
'http
s://dj.dev.glsx.com.cn
'
,
dj
:
'http
://192.168.3.122:9203
'
,
scrm
:
'https://scrm.dev.glsx.com.cn'
scrm
:
'https://scrm.dev.glsx.com.cn'
},
},
uat
:
{
uat
:
{
...
@@ -152,7 +152,8 @@ const pathEnum = {
...
@@ -152,7 +152,8 @@ const pathEnum = {
drac
:
'/rop-scrm-entmicro/'
,
drac
:
'/rop-scrm-entmicro/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
busassistant
:
'/rop-scrm-busassistant/'
,
assistant
:
'/rop-scrm-stoassistant/'
,
assistant
:
'/rop-scrm-stoassistant/'
,
smartcarlife
:
'/rop-dj-car-boutique/'
smartcarlife
:
'/rop-dj-car-boutique/'
,
djsmart
:
'/rop-dj-smartcarlife/'
}
}
const
defaultMerchantId
=
{
const
defaultMerchantId
=
{
ip
:
'44184606'
,
ip
:
'44184606'
,
...
...
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