Commit 6ed9edd9 authored by 刘俊宏's avatar 刘俊宏

处理商品管理列表

parent cfba0439
...@@ -94,7 +94,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg ...@@ -94,7 +94,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
// Create the SwiftUI view that provides the window contents. // Create the SwiftUI view that provides the window contents.
tabBarController.viewControllers = [v1, v2, v3, v4, v5] tabBarController.viewControllers = [v1, v2, v3, v4, v5]
// tabBarController.selectedIndex = 1 tabBarController.selectedIndex = 1
let contentView = tabBarController let contentView = tabBarController
......
...@@ -440,12 +440,32 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect ...@@ -440,12 +440,32 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
}else{ }else{
print("下架啦") print("下架啦")
let UserToken = UserDefaults.standard.value(forKey: "user_token")
editField(["user_token":UserToken as Any,"function_id":"15","prval":rowModel.goods_id as Any,"value":0,], success: { (data) in
let dataM = data as! UpDataModel
if dataM.code == 1 {
HUD.flash(.label("提交成功"), delay: 1.2)
self.collection?.mj_header?.beginRefreshing()
}
}) { (erro) in
}
} }
}else{ }else{
if isTrue { if isTrue {
print("赶紧上架") print("赶紧上架")
let UserToken = UserDefaults.standard.value(forKey: "user_token")
editField(["user_token":UserToken as Any,"function_id":"15","prval":rowModel.goods_id as Any,"value":1,], success: { (data) in
let dataM = data as! UpDataModel
if dataM.code == 1 {
HUD.flash(.label("提交成功"), delay: 1.2)
self.collection?.mj_header?.beginRefreshing()
}
}) { (erro) in
}
}else{ }else{
print("入库哦哦") print("入库哦哦")
let vc = RuKuViewController() let vc = RuKuViewController()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment