Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 18aefbaf
authored
Jan 02, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
6a955ab4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
13 deletions
components/CooperationApply/CooperationApply.js
components/scene/scene.js
components/CooperationApply/CooperationApply.js
View file @
18aefba
...
...
@@ -127,10 +127,18 @@ Component({
}
else
{
// return [params, this.data.tabIndex, this.data.applyForm.applyType];
let
selectScene
=
this
.
selectComponent
(
"#sceneBox"
).
getSceneItems
();
console
.
log
(
selectScene
,
999
);
if
(
!
selectScene
)
return
false
params
.
businessScenario
=
selectScene
[
0
].
title
;
params
.
productItems
=
selectScene
[
1
].
join
(
","
);
if
(
selectScene
&&
!
selectScene
[
2
])
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
"请至少选择一个产品"
,
icon
:
"none"
,
});
return
false
}
if
(
selectScene
)
{
params
.
businessScenario
=
selectScene
[
0
].
title
;
params
.
productItems
=
selectScene
[
1
].
join
(
","
);
}
let
applyType
=
this
.
data
.
tabIndex
==
0
?
'增值转化'
:
'系统订阅'
;
let
ccoperationType
=
this
.
data
.
selectApply
==
1
?
'门店'
:
'代理商'
;
params
.
merchantName
=
params
.
merchantName
+
'('
+
applyType
+
'-'
+
ccoperationType
+
')'
...
...
components/scene/scene.js
View file @
18aefba
...
...
@@ -298,15 +298,15 @@ Component({
return
item
.
id
==
this
.
data
.
sceneNum
;
});
}
if
(
!
selectFlag
)
{
wx
.
hideLoading
();
wx
.
showToast
({
title
:
"请至少选择一个产品"
,
icon
:
"none"
,
});
return
false
;
}
return
[
businessItem
,
productItems
]
//
if (!selectFlag) {
//
wx.hideLoading();
//
wx.showToast({
//
title: "请至少选择一个产品",
//
icon: "none",
//
});
//
return false;
//
}
return
[
businessItem
,
productItems
,
selectFlag
]
}
}
})
\ No newline at end of file
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