Commit 49d45d9c authored by lujunye's avatar lujunye

修改预售价格按钮显示bug

parent 5aae080e
...@@ -1097,10 +1097,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo ...@@ -1097,10 +1097,11 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
func uploadImg (imge:UIImage,isOriginal:Bool,tag:Int){ func uploadImg (imge:UIImage,isOriginal:Bool,tag:Int){
let UserToken = UserDefaults.standard.value(forKey: "user_token") let UserToken = UserDefaults.standard.value(forKey: "user_token")
let upLoadImg = imge as! UIImage let upLoadImg = imge as! UIImage
HUD.show(.progress)
saveFile(image: upLoadImg, ["user_token":UserToken as Any], success: { (data) in saveFile(image: upLoadImg, ["user_token":UserToken as Any], success: { (data) in
let dataM = data as! SaveFileModel let dataM = data as! SaveFileModel
if dataM.code == 1 { if dataM.code == 1 {
print("图片上传成功\(dataM.data?.url)") print("图片上传成功\(dataM.data?.url)")
if isOriginal { if isOriginal {
self.original_img = dataM.data?.url! self.original_img = dataM.data?.url!
...@@ -1118,6 +1119,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo ...@@ -1118,6 +1119,7 @@ class EPViewController: BaseViewController,UITableViewDelegate,UITableViewDataSo
}) })
} }
self.listTbv.reloadData() self.listTbv.reloadData()
HUD.hide()
} }
}) { (error) in }) { (error) in
print("图片上传失败\(error)") print("图片上传失败\(error)")
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="XiuGaiYuShouJiaViewController" customModule="TestClass" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="XiuGaiYuShouJiaViewController" customModule="TestClass" customModuleProvider="target">
<connections> <connections>
<outlet property="color" destination="af6-Wa-4Sy" id="gC1-9R-E1C"/>
<outlet property="countLbl" destination="nUd-42-xVV" id="HNp-gi-Qb7"/> <outlet property="countLbl" destination="nUd-42-xVV" id="HNp-gi-Qb7"/>
<outlet property="detailLbl" destination="I9g-lp-0v0" id="rHR-wj-lrt"/> <outlet property="detailLbl" destination="I9g-lp-0v0" id="rHR-wj-lrt"/>
<outlet property="dingJinTF" destination="7wy-zh-JHv" id="ILI-Po-TUm"/> <outlet property="dingJinTF" destination="7wy-zh-JHv" id="ILI-Po-TUm"/>
...@@ -102,29 +101,6 @@ ...@@ -102,29 +101,6 @@
<constraint firstItem="pQu-JC-quJ" firstAttribute="leading" secondItem="1Eq-MP-yKq" secondAttribute="trailing" constant="9.5" id="x7Z-8k-G8P"/> <constraint firstItem="pQu-JC-quJ" firstAttribute="leading" secondItem="1Eq-MP-yKq" secondAttribute="trailing" constant="9.5" id="x7Z-8k-G8P"/>
</constraints> </constraints>
</view> </view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4mD-rm-kxf" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="LdC-FV-lYN"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
<userDefinedRuntimeAttribute type="string" keyPath="titleString" value="确定"/>
<userDefinedRuntimeAttribute type="number" keyPath="titleFontSize">
<real key="value" value="17"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitACTION:" destination="-1" eventType="touchUpInside" id="rH5-Yh-oFl"/>
</connections>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Vi4-93-9FJ"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Vi4-93-9FJ">
<rect key="frame" x="0.0" y="164" width="414" height="94"/> <rect key="frame" x="0.0" y="164" width="414" height="94"/>
<subviews> <subviews>
...@@ -228,9 +204,24 @@ ...@@ -228,9 +204,24 @@
<constraint firstItem="7wy-zh-JHv" firstAttribute="leading" secondItem="oMs-bA-MjV" secondAttribute="trailing" constant="5" id="yvI-DZ-ESa"/> <constraint firstItem="7wy-zh-JHv" firstAttribute="leading" secondItem="oMs-bA-MjV" secondAttribute="trailing" constant="5" id="yvI-DZ-ESa"/>
</constraints> </constraints>
</view> </view>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="af6-Wa-4Sy" customClass="LGButton" customModule="LGButton"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Xs5-Fe-lg4">
<rect key="frame" x="0.0" y="860" width="414" height="128"/> <rect key="frame" x="0.0" y="813" width="414" height="49"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <constraints>
<constraint firstAttribute="height" constant="49" id="oVG-QE-HWg"/>
</constraints>
<attributedString key="attributedText">
<fragment content="确定">
<attributes>
<color key="NSColor" name="白色背景色"/>
<font key="NSFont" size="17" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4mD-rm-kxf" customClass="LGButton" customModule="LGButton">
<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"/>
<userDefinedRuntimeAttributes> <userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor"> <userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
...@@ -241,17 +232,24 @@ ...@@ -241,17 +232,24 @@
</userDefinedRuntimeAttribute> </userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/> <userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
<connections>
<action selector="submitACTION:" destination="-1" eventType="touchUpInside" id="rH5-Yh-oFl"/>
</connections>
</view> </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="qeZ-zl-Yky" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="3eK-88-rxz"/> <constraint firstItem="qeZ-zl-Yky" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="3eK-88-rxz"/>
<constraint firstItem="Xs5-Fe-lg4" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="94H-JR-UV2"/>
<constraint firstItem="4mD-rm-kxf" firstAttribute="top" secondItem="Xs5-Fe-lg4" secondAttribute="top" id="9hh-3N-y9F"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Vi4-93-9FJ" secondAttribute="trailing" id="Jww-ei-Or6"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Vi4-93-9FJ" secondAttribute="trailing" id="Jww-ei-Or6"/>
<constraint firstAttribute="bottom" secondItem="4mD-rm-kxf" secondAttribute="bottom" id="KrG-KU-K0i"/>
<constraint firstAttribute="trailing" secondItem="4mD-rm-kxf" secondAttribute="trailing" id="Lad-vV-Us6"/>
<constraint firstItem="Vi4-93-9FJ" firstAttribute="top" secondItem="qeZ-zl-Yky" secondAttribute="bottom" id="MKb-PS-3Kw"/> <constraint firstItem="Vi4-93-9FJ" firstAttribute="top" secondItem="qeZ-zl-Yky" secondAttribute="bottom" id="MKb-PS-3Kw"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="4mD-rm-kxf" secondAttribute="bottom" id="Ol9-7H-BUb"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="Xs5-Fe-lg4" secondAttribute="bottom" id="SmJ-eN-bxi"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="4mD-rm-kxf" secondAttribute="trailing" id="Q9c-Ul-Xo5"/>
<constraint firstItem="qeZ-zl-Yky" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="hTX-bp-Cs4"/> <constraint firstItem="qeZ-zl-Yky" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="hTX-bp-Cs4"/>
<constraint firstItem="4mD-rm-kxf" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="x4w-sI-21I"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Xs5-Fe-lg4" secondAttribute="trailing" id="mEh-nn-yWd"/>
<constraint firstItem="4mD-rm-kxf" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="p0f-zU-sUP"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="qeZ-zl-Yky" secondAttribute="trailing" id="xbK-PQ-8Of"/> <constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="qeZ-zl-Yky" secondAttribute="trailing" id="xbK-PQ-8Of"/>
<constraint firstItem="Vi4-93-9FJ" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="yYJ-7p-Dox"/> <constraint firstItem="Vi4-93-9FJ" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="yYJ-7p-Dox"/>
</constraints> </constraints>
...@@ -275,5 +273,8 @@ ...@@ -275,5 +273,8 @@
<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>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources> </resources>
</document> </document>
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