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 ef9b7a3c
authored
Jan 02, 2023
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'huyue_v3.3.0' of
http://192.168.3.233:8090/saas/mini-program/ai-card
into huyue_v3.3.0
2 parents
51ac2e2b
18aefbaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
components/CooperationApply/CooperationApply.js
components/scene/scene.js
components/CooperationApply/CooperationApply.js
View file @
ef9b7a3
...
@@ -127,10 +127,18 @@ Component({
...
@@ -127,10 +127,18 @@ Component({
}
else
{
}
else
{
// return [params, this.data.tabIndex, this.data.applyForm.applyType];
// return [params, this.data.tabIndex, this.data.applyForm.applyType];
let
selectScene
=
this
.
selectComponent
(
"#sceneBox"
).
getSceneItems
();
let
selectScene
=
this
.
selectComponent
(
"#sceneBox"
).
getSceneItems
();
console
.
log
(
selectScene
,
999
);
if
(
selectScene
&&
!
selectScene
[
2
])
{
if
(
!
selectScene
)
return
false
wx
.
hideLoading
();
wx
.
showToast
({
title
:
"请至少选择一个产品"
,
icon
:
"none"
,
});
return
false
}
if
(
selectScene
)
{
params
.
businessScenario
=
selectScene
[
0
].
title
;
params
.
businessScenario
=
selectScene
[
0
].
title
;
params
.
productItems
=
selectScene
[
1
].
join
(
","
);
params
.
productItems
=
selectScene
[
1
].
join
(
","
);
}
let
applyType
=
this
.
data
.
tabIndex
==
0
?
'增值转化'
:
'系统订阅'
;
let
applyType
=
this
.
data
.
tabIndex
==
0
?
'增值转化'
:
'系统订阅'
;
let
ccoperationType
=
this
.
data
.
selectApply
==
1
?
'门店'
:
'代理商'
;
let
ccoperationType
=
this
.
data
.
selectApply
==
1
?
'门店'
:
'代理商'
;
params
.
merchantName
=
params
.
merchantName
+
'('
+
applyType
+
'-'
+
ccoperationType
+
')'
params
.
merchantName
=
params
.
merchantName
+
'('
+
applyType
+
'-'
+
ccoperationType
+
')'
...
...
components/scene/scene.js
View file @
ef9b7a3
...
@@ -298,15 +298,15 @@ Component({
...
@@ -298,15 +298,15 @@ Component({
return
item
.
id
==
this
.
data
.
sceneNum
;
return
item
.
id
==
this
.
data
.
sceneNum
;
});
});
}
}
if
(
!
selectFlag
)
{
//
if (!selectFlag) {
wx
.
hideLoading
();
//
wx.hideLoading();
wx
.
showToast
({
//
wx.showToast({
title
:
"请至少选择一个产品"
,
//
title: "请至少选择一个产品",
icon
:
"none"
,
//
icon: "none",
});
//
});
return
false
;
//
return false;
}
//
}
return
[
businessItem
,
productItems
]
return
[
businessItem
,
productItems
,
selectFlag
]
}
}
}
}
})
})
\ No newline at end of file
\ 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