Commit d5f44a55 authored by lujunye's avatar lujunye

添加预售设置开关

parent d49ad703
...@@ -24,21 +24,5 @@ ...@@ -24,21 +24,5 @@
continueAfterRunningActions = "No"> continueAfterRunningActions = "No">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
uuid = "B223F50A-4F5B-423B-9F6D-A967E5BFB36E"
shouldBeEnabled = "No"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "GeliBusinessPlatform/ViewController/&#x65b0;&#x589e;&#x89c4;&#x683c;/CreatNewSpecsViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "575"
endingLineNumber = "575"
landmarkName = "YuShouCellSwitchStatus(sender:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>
...@@ -25,14 +25,18 @@ class GoodsDetailModel: Mappable { ...@@ -25,14 +25,18 @@ class GoodsDetailModel: Mappable {
} }
class GoodsDetailDataModel: Mappable { class GoodsDetailDataModel: Mappable {
var goods_res : Array<GoodsDetailGoodsResModel>? //商品数据 var goods_res : GoodsDetailGoodsResModel? //商品数据
var sku_res : Array<GoodsDetailSkuResModel>? //商品sku信息
var banner_res : Array<GoodsDetailBannerResModel>? //副图信息
required init?( map: Map) { required init?( map: Map) {
} }
func mapping(map: Map) { func mapping(map: Map) {
goods_res <- map["goods_res"] goods_res <- map["goods_res"]
sku_res <- map["sku_res"]
banner_res <- map["banner_res"]
} }
} }
...@@ -40,7 +44,9 @@ class GoodsDetailGoodsResModel: Mappable { ...@@ -40,7 +44,9 @@ class GoodsDetailGoodsResModel: Mappable {
var goods_id : Int? //商品id var goods_id : Int? //商品id
var goods_name : String? //商品名 var goods_name : String? //商品名
var cat_id : Int? //分类id var cat_id : Int? //分类id
var cat_name : String? //分类名
var brand_id : Int? //品牌id var brand_id : Int? //品牌id
var brand_name : String? //品牌名
var goods_sn : String? //商品sn var goods_sn : String? //商品sn
var market_price : String? //市场价 var market_price : String? //市场价
var shop_price : String? //(默认)售价(本店售价) var shop_price : String? //(默认)售价(本店售价)
...@@ -106,6 +112,8 @@ class GoodsDetailGoodsResModel: Mappable { ...@@ -106,6 +112,8 @@ class GoodsDetailGoodsResModel: Mappable {
set_time <- map["set_time"] set_time <- map["set_time"]
is_inquiry <- map["is_inquiry"] is_inquiry <- map["is_inquiry"]
is_qz <- map["is_qz"] is_qz <- map["is_qz"]
brand_name <- map["brand_name"]
cat_name <- map["cat_name"]
} }
......
...@@ -60,7 +60,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -60,7 +60,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
var isYuShouShangPin:Bool?//是否为预售商品 var isYuShouShangPin:Bool?//是否为预售商品
var itemTypeArr:Array<Int>? = []//多选 var itemTypeArr:Array<Int>? = []//多选
var isYuShou:Bool = false//是否预售
var shangPinStatus:Int? = 0//商品状态 var shangPinStatus:Int? = 0//商品状态
var yunShuType:Int? = 0//运输类型 var yunShuType:Int? = 0//运输类型
var maxFiveImgsArr:Array<UIImage> = []//多图 var maxFiveImgsArr:Array<UIImage> = []//多图
...@@ -770,14 +769,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -770,14 +769,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
//MARK: - GLAlertView(多选)下的页面 //MARK: - GLAlertView(多选)下的页面
func GLAlertMoreSelectViewClick(sender: Array<Int>, view:UIView) { func GLAlertMoreSelectViewClick(sender: Array<Int>, view:UIView) {
itemTypeArr = sender itemTypeArr = sender
let str = "\(sender.first!)"
if str != "99" {
isYuShou = true
}else{
isYuShou = false
}
let contentArr = ["预售","普通","期货","团购"] let contentArr = ["预售","普通","期货","团购"]
let titles = NSMutableArray() let titles = NSMutableArray()
titles.removeAllObjects() titles.removeAllObjects()
...@@ -838,7 +830,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -838,7 +830,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}else{ }else{
dataDict = guiGeArr.first dataDict = guiGeArr.first
} }
vc.price = dataDict.price vc.price = dataDict.price
vc.guiGe = dataDict.guiGe vc.guiGe = dataDict.guiGe
vc.weight = dataDict.weight vc.weight = dataDict.weight
...@@ -856,6 +847,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -856,6 +847,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
vc.delegate = self vc.delegate = self
vc.DJBiLi = dataDict.DJBiLi vc.DJBiLi = dataDict.DJBiLi
vc.ysKuCun = dataDict.ysKuCun vc.ysKuCun = dataDict.ysKuCun
vc.isYsJieTiOpen = dataDict.isYsJieTiOpen
vc.selectYuShou = dataDict.selectYuShou
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
// //MARK: - 删除规格 // //MARK: - 删除规格
...@@ -1058,13 +1051,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -1058,13 +1051,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
override func backAction() { override func backAction() {
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
IQKeyboardManager.shared.resignFirstResponder()
}
func scrollViewDidScroll(_ scrollView: UIScrollView) {
IQKeyboardManager.shared.resignFirstResponder()
}
//MARK:--处理规格数据 //MARK:--处理规格数据
var specifications = "" var specifications = ""
var shop_price: Float = 0.0 var shop_price: Float = 0.0
......
...@@ -35,16 +35,19 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -35,16 +35,19 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
var collectView:UICollectionView? var collectView:UICollectionView?
var datasArr:Array<GuiGeModel> = [] var datasArr:Array<GuiGeModel> = []
var dataModel = GuiGeModel() var dataModel = GuiGeModel()
let titleArray = ["售价:","规格:","重量:","温藏:","单位:"] let titleArray = ["售价:","规格:","重量:","温藏:","单位:"]
let pliceHolderArr = ["请输入商品售价","请输入商品规格","请输入商品重量","请选择商品温藏","请选择商品单位"] let pliceHolderArr = ["请输入商品售价","请输入商品规格","请输入商品重量","请选择商品温藏","请选择商品单位"]
@IBOutlet weak var bottomBtn: LGButton! @IBOutlet weak var bottomBtn: LGButton!
@IBOutlet weak var listTbv: UITableView! @IBOutlet weak var listTbv: UITableView!
var selectIdx:IndexPath? var selectIdx:IndexPath?
var isYuShouSetting = false//打开预售 var isYuShouSetting = false//打开预售
// var isJieTiJiaSetting = false
var isJieTiOpen = false//控制阶梯价是否打开 var isJieTiOpen = false//控制阶梯价是否打开
var isYsJieTiOpen = false//控制预售阶梯是否打开
var isOpenYSSetting = false//是否打开预售设置 var isOpenYSSetting = false//是否打开预售设置
var selectYuShou:Bool = false//是否选择设置预售价格 var selectYuShou = false//是否选择设置预售价格
//选择页面 //选择页面
var selectView:GLAlertSelectView? = nil var selectView:GLAlertSelectView? = nil
...@@ -180,9 +183,12 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -180,9 +183,12 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
dataModel.weight = weight dataModel.weight = weight
dataModel.wenDu = wenDu dataModel.wenDu = wenDu
dataModel.danWei = danWei dataModel.danWei = danWei
dataModel.isYsJieTiOpen = isYsJieTiOpen
dataModel.jieTiArr = jieTiArr as! Array<Any> dataModel.jieTiArr = jieTiArr as! Array<Any>
dataModel.specalArr = specalArr as! Array<Any> dataModel.specalArr = specalArr as! Array<Any>
dataModel.yuShouPrice = yuShouPrice dataModel.yuShouPrice = yuShouPrice
print("save == ",selectYuShou)
dataModel.selectYuShou = selectYuShou
dataModel.itemDanWeiSelect = itemDanWeiSelect dataModel.itemDanWeiSelect = itemDanWeiSelect
dataModel.tempSelect = tempSelect dataModel.tempSelect = tempSelect
dataModel.isJieTiOpen = isJieTiOpen dataModel.isJieTiOpen = isJieTiOpen
...@@ -190,10 +196,8 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -190,10 +196,8 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
dataModel.DJBiLi = DJBiLi dataModel.DJBiLi = DJBiLi
dataModel.ysKuCun = ysKuCun dataModel.ysKuCun = ysKuCun
if barTitle?.contains("编辑") == true { if barTitle?.contains("编辑") == true {
datasArr.insert(dataModel, at: selectIdx!.item) datasArr.insert(dataModel, at: selectIdx!.item)
datasArr.remove(at: selectIdx!.item+1) datasArr.remove(at: selectIdx!.item+1)
}else{ }else{
datasArr.append(dataModel) datasArr.append(dataModel)
selectIdx?.item = datasArr.count - 1 selectIdx?.item = datasArr.count - 1
...@@ -240,9 +244,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -240,9 +244,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
} }
if section == 2 { if section == 2 {
if selectYuShou {//预售 if selectYuShou {//预售
return specalArr.count return specalArr.count
}else{//非预售 }else{//非预售
return jieTiArr.count return jieTiArr.count
} }
...@@ -392,11 +394,14 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -392,11 +394,14 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
} }
} }
if indexPath.section == 2 { if indexPath.section == 2 {
if isJieTiOpen { if isJieTiOpen && selectYuShou == false {
return 49
}
if isYsJieTiOpen && selectYuShou {
return 49 return 49
}else{
return 0.001
} }
return 0.001
} }
return 49 return 49
} }
...@@ -405,30 +410,30 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -405,30 +410,30 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView() let view = UIView()
if section == 2 {//阶梯价设置 if section == 2 {//阶梯价设置
let view = NewCreateHeader(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49)) if isYuShouSetting {//预售阶梯价
view.delegate = self
view.infoSw.isOn = isJieTiOpen
if isJieTiOpen == false{
return view
}
if isYuShouSetting {//阶梯价
let view = TitleAndSwitchHeaderView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 90)) let view = TitleAndSwitchHeaderView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 90))
view.delegate = self view.delegate = self
print("selectYuShou == ",selectYuShou)
view.selectYuShou = selectYuShou view.selectYuShou = selectYuShou
view.infoSW.isOn = isJieTiOpen view.infoSW.isOn = isJieTiOpen//普通
view.ysInfoSw.isOn = isYsJieTiOpen//预售
return view
}else{//普通
let view = NewCreateHeader(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
view.delegate = self
view.infoSw.isOn = isJieTiOpen
if isJieTiOpen == false{
return view
}
return view return view
} }
return view
} }
return view return view
} }
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat { func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if section != 0 { if section != 0 {
if section == 2 { if section == 2 {
if isYuShouSetting && isJieTiOpen { if isYuShouSetting{
return 90 return 90
} }
return 59 return 59
...@@ -440,7 +445,12 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -440,7 +445,12 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
//footer //footer
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
if section == 2 { if section == 2 {
if isJieTiOpen { if isJieTiOpen && selectYuShou == false{
let view = NewCreateFooter(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
view.delegate = self
return view
}
if isYsJieTiOpen && selectYuShou{
let view = NewCreateFooter(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49)) let view = NewCreateFooter(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
view.delegate = self view.delegate = self
return view return view
...@@ -451,7 +461,10 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -451,7 +461,10 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
} }
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
if section == 2 { if section == 2 {
if isJieTiOpen { if isJieTiOpen && selectYuShou == false {
return 49
}
if isYsJieTiOpen && selectYuShou{
return 49 return 49
} }
} }
...@@ -537,8 +550,11 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -537,8 +550,11 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
} }
func switchStatus(sender: UISwitch) {//阶梯价设置 func switchStatus(sender: UISwitch) {//阶梯价设置
isJieTiOpen = sender.isOn if sender.tag == 99 {
// isJieTiJiaSetting = sender.isOn isYsJieTiOpen = sender.isOn
}else{
isJieTiOpen = sender.isOn
}
listTbv.reloadData() listTbv.reloadData()
} }
...@@ -583,11 +599,9 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -583,11 +599,9 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
func PuTongJieTiContent(price: String, count: String, cell: PuTongJieTiCell) { func PuTongJieTiContent(price: String, count: String, cell: PuTongJieTiCell) {
if selectYuShou { if selectYuShou {
specalArr.insert("\(price)_\(count)", at: cell.tag) specalArr.insert("\(price)_\(count)", at: cell.tag)
print(specalArr)
specalArr.remove(at: cell.tag+1) specalArr.remove(at: cell.tag+1)
}else{ }else{
jieTiArr.insert("\(price)_\(count)", at: cell.tag) jieTiArr.insert("\(price)_\(count)", at: cell.tag)
print(jieTiArr)
jieTiArr.remove(at: cell.tag+1) jieTiArr.remove(at: cell.tag+1)
} }
} }
...@@ -638,7 +652,9 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl ...@@ -638,7 +652,9 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
isJieTiOpen = dataDict.isJieTiOpen isJieTiOpen = dataDict.isJieTiOpen
isOpenYSSetting = dataDict.isOpenYSSetting isOpenYSSetting = dataDict.isOpenYSSetting
DJBiLi = dataDict.DJBiLi DJBiLi = dataDict.DJBiLi
isYsJieTiOpen = dataDict.isYsJieTiOpen
ysKuCun = dataDict.ysKuCun ysKuCun = dataDict.ysKuCun
selectYuShou = dataDict.selectYuShou
listTbv.reloadData() listTbv.reloadData()
collectionView.reloadData() collectionView.reloadData()
} }
......
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
import Foundation import Foundation
class GuiGeModel: NSObject { class GuiGeModel: NSObject {
///sku_id
var sku_id :Int?
///售价 ///售价
var price : String = "" var price : String = ""
///规格 ///规格
...@@ -39,4 +41,8 @@ class GuiGeModel: NSObject { ...@@ -39,4 +41,8 @@ class GuiGeModel: NSObject {
var isJieTiOpen:Bool = false var isJieTiOpen:Bool = false
///是否打开预售设置 ///是否打开预售设置
var isOpenYSSetting:Bool = false var isOpenYSSetting:Bool = false
///是否打开预售阶梯价
var isYsJieTiOpen:Bool = false
///是否选择预售阶梯
var selectYuShou:Bool = false
} }
...@@ -17,15 +17,17 @@ class TitleAndSwitchHeaderView: UIView { ...@@ -17,15 +17,17 @@ class TitleAndSwitchHeaderView: UIView {
@IBOutlet weak var bottomLine: UIView! @IBOutlet weak var bottomLine: UIView!
var selectYuShou:Bool = false{ var selectYuShou:Bool = false{
didSet{ didSet{
print("abababababab === ",selectYuShou)
var sender = 0 var sender = 0
if selectYuShou { if selectYuShou {
sender = 1 sender = 1
leftBtn.setTitleColor(UIColor(named: "标题字颜色"), for: .normal) leftBtn.setTitleColor(UIColor(named: "标题字颜色"), for: .normal)
rightBtn.setTitleColor(UIColor(named: "按钮渐变色下,字体颜色"), for: .normal) rightBtn.setTitleColor(UIColor(named: "按钮渐变色下,字体颜色"), for: .normal)
ysSettingView.isHidden = false
}else{ }else{
leftBtn.setTitleColor(UIColor(named: "按钮渐变色下,字体颜色"), for: .normal) leftBtn.setTitleColor(UIColor(named: "按钮渐变色下,字体颜色"), for: .normal)
rightBtn.setTitleColor(UIColor(named: "标题字颜色"), for: .normal) rightBtn.setTitleColor(UIColor(named: "标题字颜色"), for: .normal)
ysSettingView.isHidden = true
} }
let x = CGFloat(sender)*fullScreenWidth*0.5 let x = CGFloat(sender)*fullScreenWidth*0.5
bottomLine.snp.updateConstraints { (make) in bottomLine.snp.updateConstraints { (make) in
...@@ -38,6 +40,8 @@ class TitleAndSwitchHeaderView: UIView { ...@@ -38,6 +40,8 @@ class TitleAndSwitchHeaderView: UIView {
} }
var contentView:UIView! var contentView:UIView!
var delegate:TitleAndSwitchHeaderViewDelegate? var delegate:TitleAndSwitchHeaderViewDelegate?
@IBOutlet weak var ysSettingView: UIView!
@IBOutlet weak var ysInfoSw: UISwitch!
@IBOutlet weak var infoSW: UISwitch! @IBOutlet weak var infoSW: UISwitch!
//初始化时将xib中的view添加进来 //初始化时将xib中的view添加进来
override init(frame: CGRect) { override init(frame: CGRect) {
...@@ -45,6 +49,14 @@ class TitleAndSwitchHeaderView: UIView { ...@@ -45,6 +49,14 @@ class TitleAndSwitchHeaderView: UIView {
contentView = loadViewFromNib() contentView = loadViewFromNib()
addSubview(contentView) addSubview(contentView)
ysInfoSw.transform = CGAffineTransform(scaleX: 0.8, y: 0.8)
ysInfoSw.tag = 99
ysInfoSw.addTarget(self, action: #selector(switchChange(sender:)), for: .valueChanged)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
infoSW.transform = CGAffineTransform(scaleX: 0.8, y: 0.8) infoSW.transform = CGAffineTransform(scaleX: 0.8, y: 0.8)
infoSW.addTarget(self, action: #selector(switchChange(sender:)), for: .valueChanged) infoSW.addTarget(self, action: #selector(switchChange(sender:)), for: .valueChanged)
contentView.snp.makeConstraints { (make) in contentView.snp.makeConstraints { (make) in
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
<outlet property="infoSW" destination="CB7-5d-TkX" id="NR3-4A-D6i"/> <outlet property="infoSW" destination="CB7-5d-TkX" id="NR3-4A-D6i"/>
<outlet property="leftBtn" destination="Foa-mx-5Yx" id="T72-dm-y5o"/> <outlet property="leftBtn" destination="Foa-mx-5Yx" id="T72-dm-y5o"/>
<outlet property="rightBtn" destination="ybR-u7-XP4" id="Dk3-d2-gbZ"/> <outlet property="rightBtn" destination="ybR-u7-XP4" id="Dk3-d2-gbZ"/>
<outlet property="ysInfoSw" destination="GMQ-8b-xpg" id="Qqe-Na-SeV"/>
<outlet property="ysSettingView" destination="II7-GR-59T" id="7M4-1t-9N5"/>
</connections> </connections>
</placeholder> </placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
...@@ -77,12 +79,44 @@ ...@@ -77,12 +79,44 @@
</constraints> </constraints>
<color key="onTintColor" name="蓝色字体颜色"/> <color key="onTintColor" name="蓝色字体颜色"/>
</switch> </switch>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="II7-GR-59T">
<rect key="frame" x="0.0" y="10" width="375" height="52"/>
<subviews>
<switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="GMQ-8b-xpg">
<rect key="frame" x="311" y="10" width="51" height="31"/>
<color key="onTintColor" name="蓝色字体颜色"/>
</switch>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fzO-2v-R5h">
<rect key="frame" x="15" y="15" width="105" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="dAn-sg-2eN"/>
</constraints>
<attributedString key="attributedText">
<fragment content="预售阶梯价设置">
<attributes>
<color key="NSColor" name="标题字颜色"/>
<font key="NSFont" size="15" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="fzO-2v-R5h" firstAttribute="top" secondItem="II7-GR-59T" secondAttribute="top" constant="15" id="Tr9-yg-lIC"/>
<constraint firstAttribute="trailing" secondItem="GMQ-8b-xpg" secondAttribute="trailing" constant="15" id="ZH7-e5-ZP3"/>
<constraint firstItem="GMQ-8b-xpg" firstAttribute="centerY" secondItem="fzO-2v-R5h" secondAttribute="centerY" id="ipq-Mm-XOP"/>
<constraint firstItem="fzO-2v-R5h" firstAttribute="leading" secondItem="II7-GR-59T" secondAttribute="leading" constant="15" id="ytg-81-7V9"/>
</constraints>
</view>
</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="76R-R0-pCI" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="4o5-ak-hVE"/> <constraint firstItem="76R-R0-pCI" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="4o5-ak-hVE"/>
<constraint firstItem="FFu-OD-rc8" firstAttribute="top" secondItem="76R-R0-pCI" secondAttribute="bottom" constant="15" id="HvO-2g-yPj"/> <constraint firstItem="FFu-OD-rc8" firstAttribute="top" secondItem="76R-R0-pCI" secondAttribute="bottom" constant="15" id="HvO-2g-yPj"/>
<constraint firstAttribute="trailing" secondItem="FFu-OD-rc8" secondAttribute="trailing" id="JhF-wO-qGP"/> <constraint firstAttribute="trailing" secondItem="FFu-OD-rc8" secondAttribute="trailing" id="JhF-wO-qGP"/>
<constraint firstItem="Foa-mx-5Yx" firstAttribute="top" secondItem="II7-GR-59T" secondAttribute="bottom" id="KFe-TD-fPY"/>
<constraint firstAttribute="bottom" secondItem="Foa-mx-5Yx" secondAttribute="bottom" id="LS2-nW-eWp"/> <constraint firstAttribute="bottom" secondItem="Foa-mx-5Yx" secondAttribute="bottom" id="LS2-nW-eWp"/>
<constraint firstItem="76R-R0-pCI" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="LrY-UI-RcR"/> <constraint firstItem="76R-R0-pCI" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="LrY-UI-RcR"/>
<constraint firstAttribute="trailing" secondItem="ybR-u7-XP4" secondAttribute="trailing" id="NLC-no-i4E"/> <constraint firstAttribute="trailing" secondItem="ybR-u7-XP4" secondAttribute="trailing" id="NLC-no-i4E"/>
...@@ -91,12 +125,15 @@ ...@@ -91,12 +125,15 @@
<constraint firstItem="ybR-u7-XP4" firstAttribute="leading" secondItem="Foa-mx-5Yx" secondAttribute="trailing" id="S3X-IS-ztd"/> <constraint firstItem="ybR-u7-XP4" firstAttribute="leading" secondItem="Foa-mx-5Yx" secondAttribute="trailing" id="S3X-IS-ztd"/>
<constraint firstAttribute="trailing" secondItem="76R-R0-pCI" secondAttribute="trailing" id="Uth-qd-FUC"/> <constraint firstAttribute="trailing" secondItem="76R-R0-pCI" secondAttribute="trailing" id="Uth-qd-FUC"/>
<constraint firstAttribute="bottom" secondItem="iUg-fe-DMN" secondAttribute="bottom" id="UyW-VQ-lzx"/> <constraint firstAttribute="bottom" secondItem="iUg-fe-DMN" secondAttribute="bottom" id="UyW-VQ-lzx"/>
<constraint firstAttribute="trailing" secondItem="II7-GR-59T" secondAttribute="trailing" id="Wsj-kO-7V7"/>
<constraint firstItem="ybR-u7-XP4" firstAttribute="height" secondItem="Foa-mx-5Yx" secondAttribute="height" id="X7T-nQ-A6m"/> <constraint firstItem="ybR-u7-XP4" firstAttribute="height" secondItem="Foa-mx-5Yx" secondAttribute="height" id="X7T-nQ-A6m"/>
<constraint firstItem="CB7-5d-TkX" firstAttribute="centerY" secondItem="FFu-OD-rc8" secondAttribute="centerY" id="e18-MP-pNs"/> <constraint firstItem="CB7-5d-TkX" firstAttribute="centerY" secondItem="FFu-OD-rc8" secondAttribute="centerY" id="e18-MP-pNs"/>
<constraint firstItem="II7-GR-59T" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="10" id="eQr-UG-t4i"/>
<constraint firstItem="FFu-OD-rc8" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="kCT-vS-1St"/> <constraint firstItem="FFu-OD-rc8" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="kCT-vS-1St"/>
<constraint firstAttribute="trailing" secondItem="CB7-5d-TkX" secondAttribute="trailing" constant="15" id="ktE-YY-c70"/> <constraint firstAttribute="trailing" secondItem="CB7-5d-TkX" secondAttribute="trailing" constant="15" id="ktE-YY-c70"/>
<constraint firstItem="Foa-mx-5Yx" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="lve-Dd-EFp"/> <constraint firstItem="Foa-mx-5Yx" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="lve-Dd-EFp"/>
<constraint firstAttribute="bottom" secondItem="ybR-u7-XP4" secondAttribute="bottom" id="ras-iE-35P"/> <constraint firstAttribute="bottom" secondItem="ybR-u7-XP4" secondAttribute="bottom" id="ras-iE-35P"/>
<constraint firstItem="II7-GR-59T" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="sgG-cQ-N2v"/>
<constraint firstItem="iUg-fe-DMN" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="u3M-i0-jPq"/> <constraint firstItem="iUg-fe-DMN" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="u3M-i0-jPq"/>
</constraints> </constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/> <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
...@@ -113,6 +150,9 @@ ...@@ -113,6 +150,9 @@
<namedColor name="标题字颜色"> <namedColor name="标题字颜色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色"> <namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
......
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