Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f6d5dabb
authored
Mar 23, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除console
1 parent
b21a87e9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
project.private.config.json
store/index.js
tabWorkOrder/pages/createOrder/createOrder.js
utils/request/request.js
project.private.config.json
View file @
f6d5dab
...
@@ -144,6 +144,13 @@
...
@@ -144,6 +144,13 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
"新建工单"
,
"pathName"
:
"tabWorkOrder/pages/createOrder/createOrder"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
store/index.js
View file @
f6d5dab
...
@@ -97,6 +97,11 @@ export const getYQorderInfo = () => {
...
@@ -97,6 +97,11 @@ export const getYQorderInfo = () => {
// console.log(res)
// console.log(res)
let
{
code
,
data
}
=
res
let
{
code
,
data
}
=
res
if
(
code
==
0
)
{
if
(
code
==
0
)
{
// console.log(data);
// debugger
console
.
log
(
data
.
yqPhoneConfig
,
'data.yqPhoneConfig'
);
console
.
log
(
typeof
data
.
yqPhoneConfig
,
'data.yqPhoneConfig'
);
// 过滤园区店是否需要屏蔽手机号选项
// 过滤园区店是否需要屏蔽手机号选项
let
filterYqPhoneConfig
=
JSON
.
parse
(
data
.
yqPhoneConfig
)
let
filterYqPhoneConfig
=
JSON
.
parse
(
data
.
yqPhoneConfig
)
// console.log(filterYqPhoneConfig)
// console.log(filterYqPhoneConfig)
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
f6d5dab
...
@@ -595,7 +595,7 @@ Page({
...
@@ -595,7 +595,7 @@ Page({
// app .
// app .
getYQorderInfo
()
getYQorderInfo
()
.
then
(
merchantSettingInfo
=>
{
.
then
(
merchantSettingInfo
=>
{
// console.log(merchantSettingInfo
)
console
.
log
(
merchantSettingInfo
,
'merchantSettingInfo'
)
let
dictionaryObj
=
{
let
dictionaryObj
=
{
carTypeRequiredFlag
:
'carBrand'
,
carTypeRequiredFlag
:
'carBrand'
,
standNoRequiredFlag
:
'standNo'
,
standNoRequiredFlag
:
'standNo'
,
...
@@ -607,7 +607,7 @@ Page({
...
@@ -607,7 +607,7 @@ Page({
requiredList
.
push
(
dictionaryObj
[
key
])
requiredList
.
push
(
dictionaryObj
[
key
])
}
}
}
}
//
console.log(merchantSettingInfo.yqPhoneConfig,'merchantSettingInfo.yqPhoneConfig');
console
.
log
(
merchantSettingInfo
.
yqPhoneConfig
,
'merchantSettingInfo.yqPhoneConfig'
);
// console.log(deepClone(merchantSettingInfo.yqPhoneConfig), 'deepClone(merchantSettingInfo.yqPhoneConfig)')
// console.log(deepClone(merchantSettingInfo.yqPhoneConfig), 'deepClone(merchantSettingInfo.yqPhoneConfig)')
this
.
setData
({
this
.
setData
({
requiredList
:
[...
new
Set
(
requiredList
)],
requiredList
:
[...
new
Set
(
requiredList
)],
...
...
utils/request/request.js
View file @
f6d5dab
...
@@ -94,7 +94,7 @@ class Request {
...
@@ -94,7 +94,7 @@ class Request {
getData
(
data
,
method
,
noSignAttr
)
{
getData
(
data
,
method
,
noSignAttr
)
{
let
sessionId
=
util
.
getSessionId
()
let
sessionId
=
util
.
getSessionId
()
if
(
sessionId
)
data
[
'sessionId'
]
=
sessionId
if
(
sessionId
)
data
[
'sessionId'
]
=
sessionId
console
.
log
(
data
,
'request'
);
//
console.log(data,'request');
data
[
'v'
]
=
'1.0.0'
data
[
'v'
]
=
'1.0.0'
data
[
'method'
]
=
method
data
[
'method'
]
=
method
data
[
'format'
]
=
'json'
data
[
'format'
]
=
'json'
...
@@ -104,7 +104,7 @@ class Request {
...
@@ -104,7 +104,7 @@ class Request {
// 兼容线上appkey和secret不一样的情况
// 兼容线上appkey和secret不一样的情况
let
djapi
=
data
.
method
.
includes
(
'dj.api'
)
let
djapi
=
data
.
method
.
includes
(
'dj.api'
)
let
scmrapi
=
data
.
method
.
includes
(
'scrm.api'
)
let
scmrapi
=
data
.
method
.
includes
(
'scrm.api'
)
console
.
log
(
scmrapi
,
'scmrapi'
);
//
console.log(scmrapi,'scmrapi');
const
appKey
=
scmrapi
?
scrmSecretKey
.
appKey
:
djapi
?
secretKey
.
appKey
:
''
const
appKey
=
scmrapi
?
scrmSecretKey
.
appKey
:
djapi
?
secretKey
.
appKey
:
''
const
secret
=
scmrapi
?
scrmSecretKey
.
secret
:
djapi
?
secretKey
.
secret
:
''
const
secret
=
scmrapi
?
scrmSecretKey
.
secret
:
djapi
?
secretKey
.
secret
:
''
...
...
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