Commit 8c71329b authored by lujunye's avatar lujunye

成功提交添加菊花

parent 0a31f184
......@@ -95,7 +95,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
tabBarController.viewControllers = [v1, v2, v3, v4, v5]
tabBarController.selectedIndex = 2
// tabBarController.selectedIndex = 2
......
......@@ -246,9 +246,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
"goods_banner":goods_bannerStr as Any, //商品副图,多张,最多5张,使用一维数组转json格式
"sku_info":sku_info as Any]
print(dic)
HUD.show(.progress)
//MARK:--新增商品接口
goodsAdd(dic, success: { (data) in
HUD.hide()
HUD.flash(.labeledSubSuccess(subtitle: "提交成功"), delay: 1.2)
self.delegate?.reloadDataByProductDetailViewController()
self.navigationController?.popViewController(animated: true)
}) { (error) in
......@@ -395,10 +398,11 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "AddGuiGe") as! AddGuiGeCell
cell.imgBtn.addTarget(self, action: #selector(addGuiGe), for: .touchUpInside)
cell.imgBtn.setImage(UIImage(named: "xinzeng"), for: .normal)
cell.webView.isHidden = true
cell.delegate = self
cell.actp.isHidden = true
cell.tag = indexPath.section
return cell
case 3:
if indexPath.row == 0 {
......@@ -457,6 +461,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
cell.imgBtn.setImage(UIImage(named: "XiaYunDanViewController"), for: .normal)
cell.delegate = self
cell.imgBtn.tag = indexPath.row
cell.tag = indexPath.section
cell.actp.isHidden = true
if goodsDesc.count > 0 {
cell.actp.isHidden = false
......@@ -493,10 +498,23 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
self.navigationController?.pushViewController(vc, animated: true)
}
func AddGuiGeCellClick(cell: AddGuiGeCell) {
if cell.tag == 5 {
let vc = LMNoteViewController()
vc.htmlStr = goodsDesc;
vc.delegatedata = self
self.navigationController?.pushViewController(vc, animated: true)
}else{
print("新增规格")
let vc = CreatNewSpecsViewController()
vc.barTitle = "新增规格"
vc.delegate = self
vc.danWeiArr = generalInfoModel?.data!.unit
vc.isYuShouSetting = isYuShouShangPin!
vc.datasArr = guiGeArr
vc.selectIdx = selectIdx
self.navigationController?.pushViewController(vc, animated: true)
}
}
//MARK: -- 点击按钮事件,跳转或者展示选择界面
func btnClick(content: String, cell: TitleAndBtnCell) {
......
......@@ -18,6 +18,7 @@ class ShopInfoViewController: BaseViewController {
super.viewDidLoad()
navbar.title = "商家信息"
self.view.addSubview(navbar)
scrlloV.showsVerticalScrollIndicator = false
scrlloV.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.bottom.right.equalTo(0)
......@@ -39,7 +40,7 @@ class ShopInfoViewController: BaseViewController {
//MARK:--需要计算高度,也可以根据行数确定
self.compInfoLbl.text = self.dataModel?.data?.shop_intro
print("简介\(self.compInfoLbl.numberOfLines)")
self.scrollHeight.constant = 1031 + CGFloat(self.compInfoLbl.numberOfLines) * 15*glscale
self.scrollHeight.constant = 1081 + CGFloat(self.compInfoLbl.numberOfLines) * 15*glscale
self.stallNameLbl.text = self.dataModel?.data?.stall_name
self.accoutLbl.text = self.dataModel?.data?.contacts_name
self.emailLbl.text = self.dataModel?.data?.shop_email
......
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