Commit b8531ea7 authored by lujunye's avatar lujunye

编辑查看详情EditProductViewController

parent c9c486a2
...@@ -11,59 +11,46 @@ import RongIMKit ...@@ -11,59 +11,46 @@ import RongIMKit
@UIApplicationMain @UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate,RCConnectionStatusChangeDelegate,RCIMClientReceiveMessageDelegate,UNUserNotificationCenterDelegate { class AppDelegate: UIResponder,UIApplicationDelegate,UNUserNotificationCenterDelegate{
func onReceived(_ message: RCMessage!, left nLeft: Int32, object: Any!) {
print("message == ",message.content)
}
func onConnectionStatusChanged(_ status: RCConnectionStatus) {
print("changed == ",status.rawValue)
}
func onReceived(_ message: RCMessage!, left nLeft: Int32, object: Any!, offline: Bool, hasPackage: Bool) {
print("onReceived == ",message.content)
}
var RY_App_Key = "3argexb63sxae" var RY_App_Key = "3argexb63sxae"
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
RCIM.shared()?.initWithAppKey(RY_App_Key) RCIM.shared()?.initWithAppKey(RY_App_Key)
registerNotification(application)
RCIMClient.shared()?.connect(withToken: "SMJo9B9AUTIHHcHCuZq8soPnFqzfPZJIh7xoVOlRtu8=@ta3m.cn.rongnav.com;ta3m.cn.rongcfg.com", success: { (userId) in
print("userid = \(userId)")
}, error: { (status) in
print("status = \(status)")
}, tokenIncorrect: {
print("错误")
})
RCIMClient.shared()?.setRCConnectionStatusChangeDelegate(self)
RCIMClient.shared()?.setReceiveMessageDelegate(self, object: nil)
registerNotification(application)
// RCIMClient.shared()?.connect(withToken: "SMJo9B9AUTIHHcHCuZq8soPnFqzfPZJIh7xoVOlRtu8=@ta3m.cn.rongnav.com;ta3m.cn.rongcfg.com", success: { (userId) in
// print("userid = \(userId)")
// }, error: { (status) in
// print("status = \(status)")
// }, tokenIncorrect: {
// print("错误")
// })
return true return true
} }
func application(_ application: UIApplication, didRegister notificationSettings: UIUserNotificationSettings) {
application.registerForRemoteNotifications() func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) {
print("通知触发--111--")
} }
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) {
print("通知触发--222--")
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
let nsdataStr = NSData(data: deviceToken)
let datastr = nsdataStr.description.replacingOccurrences(of: "<", with: "").replacingOccurrences(of: ">", with: "").replacingOccurrences(of: " ", with: "")
print("deviceToken:\(datastr)")
RCIMClient.shared()?.setDeviceToken(datastr)
} }
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) {
print("通知触发-333---")
}
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
//TODO: 注册失败后的结果, 可以在这里记录失败结果, 以后再伺机弹框给用户打开通知 //TODO: 注册失败后的结果, 可以在这里记录失败结果, 以后再伺机弹框给用户打开通知
print("错误=== ",error) print("错误=== ",error)
} }
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
RCIMClient.shared()?.setDeviceTokenData(deviceToken)
}
// MARK: UISceneSession Lifecycle // MARK: UISceneSession Lifecycle
...@@ -73,13 +60,81 @@ class AppDelegate: UIResponder, UIApplicationDelegate,RCConnectionStatusChangeDe ...@@ -73,13 +60,81 @@ class AppDelegate: UIResponder, UIApplicationDelegate,RCConnectionStatusChangeDe
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
} }
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session. // Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return. // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
} }
} }
//class AppDelegate: UIResponder, UIApplicationDelegate,RCConnectionStatusChangeDelegate,RCIMClientReceiveMessageDelegate,UNUserNotificationCenterDelegate {
// func onReceived(_ message: RCMessage!, left nLeft: Int32, object: Any!) {
// print("message == ",message.content)
// }
//
//
// func onConnectionStatusChanged(_ status: RCConnectionStatus) {
// print("changed == ",status.rawValue)
// }
// func onReceived(_ message: RCMessage!, left nLeft: Int32, object: Any!, offline: Bool, hasPackage: Bool) {
// print("onReceived == ",message.content)
// }
// var RY_App_Key = "3argexb63sxae"
// func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
//
// RCIM.shared()?.initWithAppKey(RY_App_Key)
// registerNotification(application)
//
//
// RCIMClient.shared()?.connect(withToken: "SMJo9B9AUTIHHcHCuZq8soPnFqzfPZJIh7xoVOlRtu8=@ta3m.cn.rongnav.com;ta3m.cn.rongcfg.com", success: { (userId) in
// print("userid = \(userId)")
// }, error: { (status) in
// print("status = \(status)")
// }, tokenIncorrect: {
// print("错误")
// })
// RCIMClient.shared()?.setRCConnectionStatusChangeDelegate(self)
// RCIMClient.shared()?.setReceiveMessageDelegate(self, object: nil)
//
//
// return true
// }
// func application(_ application: UIApplication, didRegister notificationSettings: UIUserNotificationSettings) {
//
// application.registerForRemoteNotifications()
// }
//
//
// func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
// let nsdataStr = NSData(data: deviceToken)
// let datastr = nsdataStr.description.replacingOccurrences(of: "<", with: "").replacingOccurrences(of: ">", with: "").replacingOccurrences(of: " ", with: "")
// print("deviceToken:\(datastr)")
//
// RCIMClient.shared()?.setDeviceToken(datastr)
//
// }
//
// func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
// //TODO: 注册失败后的结果, 可以在这里记录失败结果, 以后再伺机弹框给用户打开通知
// print("错误=== ",error)
// }
//
//
//
// // MARK: UISceneSession Lifecycle
//
// func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// // Called when a new scene session is being created.
// // Use this method to select a configuration to create the new scene with.
// return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
// }
//
//
// func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// // Called when the user discards a scene session.
// // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// // Use this method to release any resources that were specific to the discarded scenes, as they will not return.
// }
//}
extension AppDelegate{ extension AppDelegate{
......
...@@ -60,7 +60,13 @@ ...@@ -60,7 +60,13 @@
</dict> </dict>
<key>UIBackgroundModes</key> <key>UIBackgroundModes</key>
<array> <array>
<string>audio</string>
<string>bluetooth-central</string>
<string>bluetooth-peripheral</string>
<string>external-accessory</string>
<string>fetch</string>
<string>location</string> <string>location</string>
<string>processing</string>
<string>remote-notification</string> <string>remote-notification</string>
</array> </array>
<key>UILaunchStoryboardName</key> <key>UILaunchStoryboardName</key>
......
...@@ -13,6 +13,12 @@ import UIKit ...@@ -13,6 +13,12 @@ import UIKit
} }
class AddImgCell: UITableViewCell { class AddImgCell: UITableViewCell {
var delegate:AddImgCellDelegate? var delegate:AddImgCellDelegate?
var isEdit:Bool?{
willSet{
isEdit = newValue
addBtn.isHidden = !isEdit!
}
}
@IBAction func btnClick(_ sender: Any) { @IBAction func btnClick(_ sender: Any) {
delegate?.AddImgCellBtnClick?(cell: self) delegate?.AddImgCellBtnClick?(cell: self)
} }
...@@ -89,7 +95,10 @@ class AddImgCell: UITableViewCell { ...@@ -89,7 +95,10 @@ class AddImgCell: UITableViewCell {
make.right.equalTo(img.snp_right).offset(6) make.right.equalTo(img.snp_right).offset(6)
make.width.height.equalTo(15) make.width.height.equalTo(15)
} }
delImg.isHidden = isEdit!
let delBtn = UIButton() let delBtn = UIButton()
delBtn.isUserInteractionEnabled = isEdit!
scrollView!.addSubview(delBtn) scrollView!.addSubview(delBtn)
delBtn.tag = i delBtn.tag = i
delBtn.snp.makeConstraints { (make) in delBtn.snp.makeConstraints { (make) in
......
...@@ -16,6 +16,7 @@ class ShangPinGguiGeCell: UITableViewCell { ...@@ -16,6 +16,7 @@ class ShangPinGguiGeCell: UITableViewCell {
delegate?.ShangPinGguiGeCellEditAction?(cell: self) delegate?.ShangPinGguiGeCellEditAction?(cell: self)
} }
// var itemIdx:Int? // var itemIdx:Int?
@IBOutlet weak var btn: UIButton!
@IBOutlet weak var tempLbl: UILabel! @IBOutlet weak var tempLbl: UILabel!
@IBOutlet weak var weightLbl: UILabel! @IBOutlet weak var weightLbl: UILabel!
@IBOutlet weak var guiGeLbl: UILabel! @IBOutlet weak var guiGeLbl: UILabel!
......
...@@ -8,7 +8,11 @@ ...@@ -8,7 +8,11 @@
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies> </dependencies>
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner">
<connections>
<outlet property="btn" destination="yWF-ML-clI" id="Bg6-Sd-ken"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ShangPinGguiGeCell" customModule="GeliBusinessPlatform" customModuleProvider="target"> <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ShangPinGguiGeCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="146"/> <rect key="frame" x="0.0" y="0.0" width="375" height="146"/>
...@@ -149,6 +153,7 @@ ...@@ -149,6 +153,7 @@
</tableViewCellContentView> </tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/> <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections> <connections>
<outlet property="btn" destination="yWF-ML-clI" id="Doh-Sc-3q4"/>
<outlet property="danWeiLbl" destination="oOy-dE-JIB" id="Dw6-Zt-80o"/> <outlet property="danWeiLbl" destination="oOy-dE-JIB" id="Dw6-Zt-80o"/>
<outlet property="guiGeLbl" destination="GPm-DS-HCD" id="ePF-lx-scy"/> <outlet property="guiGeLbl" destination="GPm-DS-HCD" id="ePF-lx-scy"/>
<outlet property="sellPriceLbl" destination="Mw0-dB-6KQ" id="ofk-s2-w0v"/> <outlet property="sellPriceLbl" destination="Mw0-dB-6KQ" id="ofk-s2-w0v"/>
......
//
// EditProductImgCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/11.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class EditProductImgCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" rowHeight="123" id="KGk-i7-Jjw" customClass="EditProductImgCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="341" height="123"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="341" height="123"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Rz4-c4-48Q">
<rect key="frame" x="15" y="15" width="311" height="93"/>
</button>
</subviews>
<constraints>
<constraint firstItem="Rz4-c4-48Q" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="FGl-bQ-V3Q"/>
<constraint firstItem="Rz4-c4-48Q" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="MmP-IT-ujm"/>
<constraint firstAttribute="trailing" secondItem="Rz4-c4-48Q" secondAttribute="trailing" constant="15" id="VDi-Wb-lDd"/>
<constraint firstAttribute="bottom" secondItem="Rz4-c4-48Q" secondAttribute="bottom" constant="15" id="YOl-E2-RKL"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="147.10144927536234" y="130.91517857142856"/>
</tableViewCell>
</objects>
</document>
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="EditProductViewController" customModule="GeliBusinessPlatform" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="EditProductViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections> <connections>
<outlet property="btmView" destination="Hef-2C-dpL" id="WXp-fR-eCV"/> <outlet property="bottomView" destination="eFg-iG-awf" id="UXR-sY-RHK"/>
<outlet property="listView" destination="zO1-i9-3W0" id="D4J-3v-H8z"/> <outlet property="listTbv" destination="8Fv-Ss-fcb" id="xab-1c-WUC"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections> </connections>
</placeholder> </placeholder>
...@@ -20,47 +20,47 @@ ...@@ -20,47 +20,47 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/> <rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CCz-KF-dNw"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="drN-vh-kV3">
<rect key="frame" x="0.0" y="812" width="414" height="1"/> <rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="F0s-Wh-OEd"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Hef-2C-dpL">
<rect key="frame" x="0.0" y="812" width="414" height="84"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
</view> </view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="zO1-i9-3W0"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eFg-iG-awf">
<rect key="frame" x="0.0" y="44" width="414" height="768"/> <rect key="frame" x="0.0" y="813" width="414" height="49"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="Yga-Ec-b4a"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="8Fv-Ss-fcb">
<rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" name="白色背景色"/>
<connections> <connections>
<outlet property="dataSource" destination="-1" id="PZm-Wn-Pzt"/> <outlet property="dataSource" destination="-1" id="UML-aq-eZJ"/>
<outlet property="delegate" destination="-1" id="GzF-hc-T4S"/> <outlet property="delegate" destination="-1" id="LEW-Yi-wxv"/>
</connections> </connections>
</tableView> </tableView>
</subviews> </subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints> <constraints>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="zO1-i9-3W0" secondAttribute="trailing" id="2Nb-pb-HRv"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="drN-vh-kV3" secondAttribute="trailing" id="5Ua-1G-oDk"/>
<constraint firstItem="Hef-2C-dpL" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="5GE-8U-XuF"/> <constraint firstItem="eFg-iG-awf" firstAttribute="top" secondItem="8Fv-Ss-fcb" secondAttribute="bottom" id="6nY-7j-452"/>
<constraint firstItem="Hef-2C-dpL" firstAttribute="top" secondItem="CCz-KF-dNw" secondAttribute="top" id="5b2-d0-S4n"/> <constraint firstItem="8Fv-Ss-fcb" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="6vq-Th-6hv"/>
<constraint firstAttribute="bottom" secondItem="Hef-2C-dpL" secondAttribute="bottom" id="7ca-jf-iJU"/> <constraint firstAttribute="bottom" secondItem="drN-vh-kV3" secondAttribute="bottom" id="EzG-9Q-6Cg"/>
<constraint firstItem="CCz-KF-dNw" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="8g4-28-X0f"/> <constraint firstItem="drN-vh-kV3" firstAttribute="top" secondItem="eFg-iG-awf" secondAttribute="top" id="PwX-Ue-uGH"/>
<constraint firstItem="zO1-i9-3W0" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="Hhx-kG-9wz"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="8Fv-Ss-fcb" secondAttribute="trailing" id="WIB-ml-ERa"/>
<constraint firstItem="zO1-i9-3W0" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Mwt-MD-rim"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="eFg-iG-awf" secondAttribute="trailing" id="b1W-KS-K4v"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="CCz-KF-dNw" secondAttribute="trailing" id="NbZ-fZ-NUu"/> <constraint firstItem="eFg-iG-awf" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="eBR-6r-zfV"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Hef-2C-dpL" secondAttribute="trailing" id="iWW-R1-Kxq"/> <constraint firstItem="8Fv-Ss-fcb" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="j0E-Bg-S0z"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="CCz-KF-dNw" secondAttribute="bottom" constant="49" id="n7f-cH-hVx"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="eFg-iG-awf" secondAttribute="bottom" id="nwH-n3-0GY"/>
<constraint firstItem="CCz-KF-dNw" firstAttribute="top" secondItem="zO1-i9-3W0" secondAttribute="bottom" id="xtA-9H-wsx"/> <constraint firstItem="drN-vh-kV3" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="pa9-O7-nAr"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="131.91964285714286"/> <point key="canvasLocation" x="131.8840579710145" y="130.58035714285714"/>
</view> </view>
</objects> </objects>
<resources> <resources>
<namedColor name="灰色分界线"> <namedColor name="白色背景色">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
</resources> </resources>
</document> </document>
...@@ -46,14 +46,11 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -46,14 +46,11 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
var guiGeArr:NSMutableArray = []//根据规格资料数量控制右上角新增按钮是否显示 var guiGeArr:NSMutableArray = []//根据规格资料数量控制右上角新增按钮是否显示
// //
@IBOutlet weak var lgBtnLbl: UILabel! @IBOutlet weak var lgBtnLbl: UILabel!
@IBOutlet weak var btmView: UIView!
let btmTitleArr = ["编辑","入库","下架","删除"]
var isYuShouShangPin:Bool? var isYuShouShangPin:Bool?
@objc func bottomBtnClick(sender:UIButton){
print(sender.titleLabel?.text)
}
var generalInfoModel : GeneralInfoModel? = nil var generalInfoModel : GeneralInfoModel? = nil
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
......
...@@ -10,10 +10,9 @@ ...@@ -10,10 +10,9 @@
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ProductDetailViewController" customModule="GeliBusinessPlatform" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ProductDetailViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections> <connections>
<outlet property="btmView" destination="yIq-1z-cr8" id="bpj-Sz-E3q"/> <outlet property="lgBtnLbl" destination="oKy-CJ-Gra" id="S78-zK-4bF"/>
<outlet property="lgBtnLbl" destination="oKy-CJ-Gra" id="AfZ-bK-cby"/> <outlet property="listTbv" destination="IHM-ED-ttx" id="eEK-bu-GOf"/>
<outlet property="listTbv" destination="IHM-ED-ttx" id="Huh-Oq-0XN"/> <outlet property="submitBtn" destination="6Jp-Xx-Q5Z" id="Qnx-Yx-zr5"/>
<outlet property="submitBtn" destination="6Jp-Xx-Q5Z" id="C6U-uz-2vx"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections> </connections>
</placeholder> </placeholder>
...@@ -26,14 +25,10 @@ ...@@ -26,14 +25,10 @@
<rect key="frame" x="0.0" y="44" width="414" height="769"/> <rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<connections> <connections>
<outlet property="dataSource" destination="-1" id="40h-ag-zwa"/> <outlet property="dataSource" destination="-1" id="asC-XB-hGM"/>
<outlet property="delegate" destination="-1" id="OaC-hl-du0"/> <outlet property="delegate" destination="-1" id="Zd9-EK-1hh"/>
</connections> </connections>
</tableView> </tableView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yIq-1z-cr8">
<rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6Jp-Xx-Q5Z" customClass="LGButton" customModule="LGButton"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6Jp-Xx-Q5Z" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="83"/> <rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
...@@ -47,7 +42,7 @@ ...@@ -47,7 +42,7 @@
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/> <userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
<connections> <connections>
<action selector="submitAction:" destination="-1" eventType="touchUpInside" id="Miy-vj-Bgk"/> <action selector="submitAction:" destination="-1" eventType="touchUpInside" id="dZJ-kb-T6Q"/>
</connections> </connections>
</view> </view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oKy-CJ-Gra"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oKy-CJ-Gra">
...@@ -69,16 +64,12 @@ ...@@ -69,16 +64,12 @@
</subviews> </subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints> <constraints>
<constraint firstItem="yIq-1z-cr8" firstAttribute="top" secondItem="oKy-CJ-Gra" secondAttribute="top" id="0Xn-em-QbP"/>
<constraint firstItem="6Jp-Xx-Q5Z" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="2wU-Pb-jkw"/> <constraint firstItem="6Jp-Xx-Q5Z" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="2wU-Pb-jkw"/>
<constraint firstItem="IHM-ED-ttx" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="Ijg-HN-jhj"/> <constraint firstItem="IHM-ED-ttx" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="Ijg-HN-jhj"/>
<constraint firstItem="yIq-1z-cr8" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="Iur-5y-NVq"/>
<constraint firstItem="IHM-ED-ttx" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="JIK-LD-ec2"/> <constraint firstItem="IHM-ED-ttx" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="JIK-LD-ec2"/>
<constraint firstAttribute="trailing" secondItem="6Jp-Xx-Q5Z" secondAttribute="trailing" id="QFT-HA-63W"/> <constraint firstAttribute="trailing" secondItem="6Jp-Xx-Q5Z" secondAttribute="trailing" id="QFT-HA-63W"/>
<constraint firstItem="oKy-CJ-Gra" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="YP4-j3-FFj"/> <constraint firstItem="oKy-CJ-Gra" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="YP4-j3-FFj"/>
<constraint firstItem="yIq-1z-cr8" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="cQE-LF-lPv"/>
<constraint firstItem="IHM-ED-ttx" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="eh4-LD-K1H"/> <constraint firstItem="IHM-ED-ttx" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="eh4-LD-K1H"/>
<constraint firstAttribute="bottom" secondItem="yIq-1z-cr8" secondAttribute="bottom" id="gLL-aE-Fps"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="oKy-CJ-Gra" secondAttribute="trailing" id="h6U-Oq-xig"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="oKy-CJ-Gra" secondAttribute="trailing" id="h6U-Oq-xig"/>
<constraint firstItem="6Jp-Xx-Q5Z" firstAttribute="top" secondItem="IHM-ED-ttx" secondAttribute="bottom" id="hzO-95-bIf"/> <constraint firstItem="6Jp-Xx-Q5Z" firstAttribute="top" secondItem="IHM-ED-ttx" secondAttribute="bottom" id="hzO-95-bIf"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="oKy-CJ-Gra" secondAttribute="bottom" id="lOJ-Tu-3fB"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="oKy-CJ-Gra" secondAttribute="bottom" id="lOJ-Tu-3fB"/>
......
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