Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
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
mobile-group
galaxy-iOS
Commits
052f52c8
Commit
052f52c8
authored
Apr 08, 2025
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
重复选择问题修复
parent
5aaba841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
YHMakePlanModel.swift
...Classes/Modules/Plan(方案)/MakePlan/M/YHMakePlanModel.swift
+1
-1
YHMakePlanSelectAlertView.swift
...dules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
+6
-0
No files found.
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/M/YHMakePlanModel.swift
View file @
052f52c8
...
...
@@ -139,7 +139,7 @@ extension YHMakePlanModel {
}
}
// If we get here, we need to check sub_products (product_id == 0 cases)
// If we get here, we need to check sub_products (product_id == 0 cases)
checkSubProducts
(
in
:
&
localBasic
,
for
:
productId
)
checkSubProducts
(
in
:
&
localWork
,
for
:
productId
)
checkSubProducts
(
in
:
&
localLive
,
for
:
productId
)
...
...
galaxy/galaxy/Classes/Modules/Plan(方案)/MakePlan/V/YHMakePlanSelectAlertView.swift
View file @
052f52c8
...
...
@@ -21,6 +21,7 @@ class YHMakePlanSelectAlertView: UIView {
var
lineView
:
UIView
!
var
selectIndex
:
Int
=
0
var
selectProductId
:
Int
=
0
var
firstData
:
YHMakePlanMainModel
?
var
dataSource
:
YHMakePlanMainModel
?
{
didSet
{
updata
()
...
...
@@ -52,6 +53,7 @@ class YHMakePlanSelectAlertView: UIView {
static
func
show
(
dataSource
:
YHMakePlanMainModel
,
callBack
:
@escaping
((
Int
)
->
Void
))
{
let
view
=
YHMakePlanSelectAlertView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
KScreenHeight
))
view
.
dataSource
=
dataSource
view
.
firstData
=
dataSource
view
.
block
=
callBack
let
window
=
UIApplication
.
shared
.
yhKeyWindow
()
window
?
.
addSubview
(
view
)
...
...
@@ -217,6 +219,10 @@ class YHMakePlanSelectAlertView: UIView {
@objc
func
orderButtonClick
()
{
if
let
block
=
block
{
if
dataSource
?
.
sub_product
[
selectIndex
]
.
is_add_cart
==
firstData
?
.
sub_product
[
selectIndex
]
.
is_add_cart
{
dismiss
()
return
}
block
(
dataSource
?
.
sub_product
[
selectIndex
]
.
product_id
??
0
)
}
dismiss
()
...
...
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