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 f2e242e9
authored
Mar 02, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sentry 报错修改
1 parent
537c8386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
components/subShopMerchant/subShopMerchant.js
components/subShopMerchant/subShopMerchant.js
View file @
f2e242e
...
@@ -27,8 +27,8 @@ Component({
...
@@ -27,8 +27,8 @@ Component({
// 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择
// 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择
let
hasSubShopMerchantId
=
subShopMerchantList
.
some
(
item
=>
item
.
subMerchantId
==
orderObj
.
subShopMerchantId
)
let
hasSubShopMerchantId
=
subShopMerchantList
.
some
(
item
=>
item
.
subMerchantId
==
orderObj
.
subShopMerchantId
)
if
(
!
hasSubShopMerchantId
&&
subShopMerchantList
.
length
)
{
if
(
!
hasSubShopMerchantId
&&
subShopMerchantList
.
length
)
{
delete
orderObj
.
subShopMerchantId
delete
orderObj
?
.
subShopMerchantId
delete
orderObj
.
subShopMerchantName
delete
orderObj
?
.
subShopMerchantName
}
}
thisPage
.
setData
({
thisPage
.
setData
({
orderObj
orderObj
...
@@ -90,8 +90,8 @@ Component({
...
@@ -90,8 +90,8 @@ Component({
// 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择
// 校验历史订单二级流量方是否在配置的二级流量方数据中包含 不包含清空二级流量方重新选择
let
hasSubShopMerchantId
=
data
.
some
(
item
=>
item
.
subMerchantId
==
orderObj
.
subShopMerchantId
)
let
hasSubShopMerchantId
=
data
.
some
(
item
=>
item
.
subMerchantId
==
orderObj
.
subShopMerchantId
)
if
(
!
hasSubShopMerchantId
)
{
if
(
!
hasSubShopMerchantId
)
{
delete
orderObj
.
subShopMerchantId
delete
orderObj
?
.
subShopMerchantId
delete
orderObj
.
subShopMerchantName
delete
orderObj
?
.
subShopMerchantName
}
}
thisPage
.
setData
({
thisPage
.
setData
({
requiredList
,
requiredList
,
...
@@ -104,8 +104,8 @@ Component({
...
@@ -104,8 +104,8 @@ Component({
})
})
}
else
{
}
else
{
// 无二级流量方字段时 清空选择的二级流量方字段
// 无二级流量方字段时 清空选择的二级流量方字段
delete
orderObj
.
subShopMerchantId
delete
orderObj
?
.
subShopMerchantId
delete
orderObj
.
subShopMerchantName
delete
orderObj
?
.
subShopMerchantName
if
(
requiredList
.
includes
(
'subShopMerchantId'
))
requiredList
.
splice
(
requiredList
.
indexOf
(
'subShopMerchantId'
),
1
)
if
(
requiredList
.
includes
(
'subShopMerchantId'
))
requiredList
.
splice
(
requiredList
.
indexOf
(
'subShopMerchantId'
),
1
)
thisPage
.
setData
({
thisPage
.
setData
({
isShowSubShopMerchant
:
false
,
isShowSubShopMerchant
:
false
,
...
...
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