Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
ca01fb64
Commit
ca01fb64
authored
Sep 09, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改设置
parent
ff3f72a8
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
11 deletions
+20
-11
my-customer-app.js
src/api/my-customer-app.js
+3
-3
customer-assign.vue
src/views/apps/customer-app/customer-assign.vue
+3
-2
customer-show-set.vue
src/views/apps/customer-app/customer-show-set.vue
+14
-6
No files found.
src/api/my-customer-app.js
View file @
ca01fb64
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 09:29:13
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
8 16:43:5
2
* @LastEditTime: 2020-09-0
9 09:56:3
2
*/
import
getFetch
from
'./get-fetch.js'
;
...
...
@@ -39,7 +39,7 @@ let api = {
useIntercept
:
false
},
// 顾客展示
getShowSet
:
''
,
// 获取顾客展示数据
getShowSet
:
'
/member//switch-list
'
,
// 获取顾客展示数据
saveShowSet
:
{
// 设置顾客展示数据
url
:
'/member/switch-setting'
,
...
...
@@ -48,7 +48,7 @@ let api = {
useIntercept
:
false
},
// 顾客资料
getCustomerSet
:
''
,
// 获取顾客资料数据
getCustomerSet
:
'
/member//switch-list
'
,
// 获取顾客资料数据
saveCustomerSet
:
{
// 设置顾客资料数据
url
:
'/member/switch-setting'
,
...
...
src/views/apps/customer-app/customer-assign.vue
View file @
ca01fb64
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-09 09:5
0:49
* @LastEditTime: 2020-09-09 09:5
9:32
-->
<
template
>
<div
class=
"customer-assign-wrap"
>
...
...
@@ -248,7 +248,8 @@ export default {
const
that
=
this
;
const
para
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
,
enterpriseId
:
that
.
brandId
enterpriseId
:
that
.
brandId
,
switchType
:
2
};
getCustomerSet
(
para
)
.
then
(
res
=>
{
...
...
src/views/apps/customer-app/customer-show-set.vue
View file @
ca01fb64
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-0
8 15:17:4
5
* @LastEditTime: 2020-09-0
9 09:59:0
5
-->
<
template
>
...
...
@@ -77,12 +77,17 @@ export default {
*/
setData
()
{
const
that
=
this
;
let
openCodes
=
[];
for
(
let
i
in
that
.
customerShowData
)
{
if
(
that
.
customerShowData
[
i
]){
openCodes
.
push
(
i
);
}
}
const
para
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
,
enterpriseId
:
that
.
brandId
,
mainStoreFlag
:
that
.
customerShowData
.
mainStoreFlag
?
1
:
'0'
,
minorStoreFlag
:
that
.
customerShowData
.
minorStoreFlag
?
1
:
'0'
,
openCardStoreFlag
:
that
.
customerShowData
.
openCardStoreFlag
?
1
:
'0'
openCodes
:
openCodes
.
join
(
','
),
switchType
:
'0'
};
saveShowSet
(
para
)
.
then
(
res
=>
{
...
...
@@ -106,11 +111,14 @@ export default {
const
that
=
this
;
const
para
=
{
wxEnterpriseId
:
that
.
wxEnterpriseId
,
enterpriseId
:
that
.
brandId
enterpriseId
:
that
.
brandId
,
switchType
:
'0'
,
};
getShowSet
(
para
)
.
then
(
res
=>
{
that
.
customerShowData
=
res
.
result
||
[];
res
.
result
.
forEach
(
ele
=>
{
that
.
customerShowData
[
ele
.
switchCode
]
=
ele
.
switchFlag
==
1
?
true
:
false
;
});
})
.
catch
(
function
(
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment