Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
cf992f74
Commit
cf992f74
authored
Dec 07, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全选逻辑补充。
parent
cb3079f7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_ListVc.swift
...form/ViewController/供应商分销商品管理/GYS_FX_Product_ListVc.swift
+0
-3
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
...sPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
+13
-2
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
cf992f74
No preview for this file type
GeliBusinessPlatform/ViewController/供应商分销商品管理/GYS_FX_Product_ListVc.swift
View file @
cf992f74
...
@@ -303,7 +303,6 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
...
@@ -303,7 +303,6 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
transitionSuccessful
:
Bool
){
transitionSuccessful
:
Bool
){
if
transitionSuccessful
{
if
transitionSuccessful
{
guard
let
item
=
pagingItem
as?
PagingIndexItem
else
{
return
}
guard
let
item
=
pagingItem
as?
PagingIndexItem
else
{
return
}
if
selectIndex
!=
item
.
index
{
if
selectIndex
!=
item
.
index
{
selectIndex
=
item
.
index
selectIndex
=
item
.
index
if
noti_str
!=
""
{
if
noti_str
!=
""
{
...
@@ -331,7 +330,6 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource {
...
@@ -331,7 +330,6 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource {
func
pagingViewController
(
_
pagingViewController
:
PagingViewController
,
didSelectItem
pagingItem
:
PagingItem
)
{
func
pagingViewController
(
_
pagingViewController
:
PagingViewController
,
didSelectItem
pagingItem
:
PagingItem
)
{
guard
let
item
=
pagingItem
as?
PagingIndexItem
else
{
return
}
guard
let
item
=
pagingItem
as?
PagingIndexItem
else
{
return
}
print
(
"abc == "
,
selectIndex
,
item
.
index
)
if
selectIndex
!=
item
.
index
{
if
selectIndex
!=
item
.
index
{
if
noti_str
!=
""
{
if
noti_str
!=
""
{
if
noti_str
.
contains
(
"铺货"
){
if
noti_str
.
contains
(
"铺货"
){
...
@@ -349,7 +347,6 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource {
...
@@ -349,7 +347,6 @@ extension GYS_FX_Product_ListVc: PagingViewControllerDataSource {
}
}
}
}
}
}
closeAction
()
closeAction
()
}
}
...
...
GeliBusinessPlatform/ViewController/分销商品管理/FX_Product_GuanLiVC.swift
View file @
cf992f74
...
@@ -80,7 +80,17 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -80,7 +80,17 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
self
.
view
.
addSubview
(
vc
)
self
.
view
.
addSubview
(
vc
)
}
}
var
datas
:
Array
<
supGoodsListResDataModel
>
=
[]
var
datas
:
Array
<
supGoodsListResDataModel
>
=
[]{
didSet
{
selectItem
.
removeAll
()
if
is_all_select
{
datas
.
forEach
{
(
model
)
in
selectItem
.
append
(
model
.
sku_id
!
)
}
}
home_list_tbv
.
reloadData
()
}
}
var
selectIndexArr
=
[
0
,
0
]
var
selectIndexArr
=
[
0
,
0
]
var
showSelectvIndex
=
0
var
showSelectvIndex
=
0
...
@@ -199,10 +209,11 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
...
@@ -199,10 +209,11 @@ class FX_Product_GuanLiVC: BaseViewController,UITableViewDelegate,UITableViewDat
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
blackBtnView
.
addTarget
(
self
,
action
:
#selector(
removeBlackBtnView
)
,
for
:
.
touchUpInside
)
return
true
return
true
}
}
var
is_all_select
=
false
@IBAction
func
allSelect
(
_
sender
:
UIButton
)
{
@IBAction
func
allSelect
(
_
sender
:
UIButton
)
{
sender
.
isSelected
=
!
sender
.
isSelected
sender
.
isSelected
=
!
sender
.
isSelected
selectItem
.
removeAll
()
selectItem
.
removeAll
()
is_all_select
=
sender
.
isSelected
if
sender
.
isSelected
{
if
sender
.
isSelected
{
datas
.
forEach
{
(
model
)
in
datas
.
forEach
{
(
model
)
in
selectItem
.
append
(
model
.
sku_id
!
)
selectItem
.
append
(
model
.
sku_id
!
)
...
...
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