Commit 5aae080e authored by 刘俊宏's avatar 刘俊宏

修改代客下单

parent 84c36db8
......@@ -61,9 +61,16 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
HUD.flash(.label("请选择地址"), delay: 1.2)
return
}
print(logistics_price)
print(other_price)
if orderType == 1 {
if djTFstr.count == 0 || wkTFstr.count == 0 {
HUD.flash(.label("请修改相应的定金和尾款"), delay: 1.2)
return
}
}
if logistics_price.count > 0 {
if !isPurnNumber(str: logistics_price) {
HUD.flash(.label("请填写正确的运费价格"), delay: 1.2)
......
......@@ -56,13 +56,13 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
//MARK:--代客下单流程
if inputData.count > 0 {
let cell1 = inputData[0]
// titleLbl.text = cell1.nameLbl.text
// detailLbl.text = cell1.detailLbl.text
// icomImg.sd_setImage(with: URL(string: cell1.imgUrlPath!))
countLbl.isHidden = true
let item = inputData[0]
titleLbl.text = item.goods_name
detailLbl.text = item.spec_str
icomImg.sd_setImage(with: URL(string:SERVERCE_ImageHost + item.goods_img!))
dingJinTF.text = djTFstr
weiKuanTF.text = wkTFstr
countLbl.text = "¥" + item.target_Price! + "x\(item.target_Count!)"
}
}
......
<?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">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" 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"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......
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