Commit 5cf657cd authored by lujunye's avatar lujunye

打印模板图片调整完成

parent 5d61ba01
{
"images" : [
{
"filename" : "编组 3.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "编组 3@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "编组 3@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -245,8 +245,8 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt ...@@ -245,8 +245,8 @@ class PrintListMgVc: BaseViewController, PagingViewControllerDelegate,UIPrintInt
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
web_vc.wkWebView.navigationDelegate = self web_vc.wkWebView.navigationDelegate = self
let vc = viewControllers[0]
vc.isNormal = true
let vc2 = viewControllers[1] let vc2 = viewControllers[1]
vc2.type = 2 vc2.type = 2
let vc3 = viewControllers[2] let vc3 = viewControllers[2]
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="csb-7S-KV5"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="csb-7S-KV5">
<rect key="frame" x="0.0" y="44" width="414" height="774"/> <rect key="frame" x="0.0" y="44" width="414" height="774"/>
<subviews> <subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="print_img" translatesAutoresizingMaskIntoConstraints="NO" id="YMY-lm-aa2"> <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="print_img_2" translatesAutoresizingMaskIntoConstraints="NO" id="YMY-lm-aa2">
<rect key="frame" x="8" y="15" width="398" height="212.5"/> <rect key="frame" x="8" y="15" width="398" height="212.5"/>
<constraints> <constraints>
<constraint firstAttribute="width" secondItem="YMY-lm-aa2" secondAttribute="height" multiplier="15:8" id="M2P-wM-MmU"/> <constraint firstAttribute="width" secondItem="YMY-lm-aa2" secondAttribute="height" multiplier="15:8" id="M2P-wM-MmU"/>
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
</designable> </designable>
</designables> </designables>
<resources> <resources>
<image name="print_img" width="355" height="210"/> <image name="print_img_2" width="355" height="210"/>
<namedColor name="按钮渐变色上"> <namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
......
...@@ -17,6 +17,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat ...@@ -17,6 +17,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
day = date_arr[2] day = date_arr[2]
list_view.reloadData() list_view.reloadData()
} }
var isNormal = false
func GLTimeSelectViewClose() { func GLTimeSelectViewClose() {
...@@ -453,7 +454,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat ...@@ -453,7 +454,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.row == 0 { if indexPath.row == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "print_top_btn_cell") as! print_top_btn_cell let cell = tableView.dequeueReusableCell(withIdentifier: "print_top_btn_cell") as! print_top_btn_cell
cell.isNormal = isNormal
return cell return cell
} }
......
...@@ -9,7 +9,16 @@ ...@@ -9,7 +9,16 @@
import UIKit import UIKit
class print_top_btn_cell: UITableViewCell { class print_top_btn_cell: UITableViewCell {
var isNormal = false{
didSet{
if isNormal {
img_View.image = UIImage(named: "print_img_2")
}else{
img_View.image = UIImage(named: "print_img")
}
}
}
@IBOutlet weak var img_View: UIImageView!
override func awakeFromNib() { override func awakeFromNib() {
super.awakeFromNib() super.awakeFromNib()
self.selectionStyle = .none self.selectionStyle = .none
......
...@@ -29,6 +29,9 @@ ...@@ -29,6 +29,9 @@
</constraints> </constraints>
</tableViewCellContentView> </tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/> <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="img_View" destination="QHd-cH-MIc" id="vAj-mA-EN6"/>
</connections>
<point key="canvasLocation" x="141" y="89"/> <point key="canvasLocation" x="141" y="89"/>
</tableViewCell> </tableViewCell>
</objects> </objects>
......
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