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
override func viewDidLoad() {
super.viewDidLoad()
web_vc.wkWebView.navigationDelegate = self
let vc = viewControllers[0]
vc.isNormal = true
let vc2 = viewControllers[1]
vc2.type = 2
let vc3 = viewControllers[2]
......
......@@ -27,7 +27,7 @@
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="csb-7S-KV5">
<rect key="frame" x="0.0" y="44" width="414" height="774"/>
<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"/>
<constraints>
<constraint firstAttribute="width" secondItem="YMY-lm-aa2" secondAttribute="height" multiplier="15:8" id="M2P-wM-MmU"/>
......@@ -103,7 +103,7 @@
</designable>
</designables>
<resources>
<image name="print_img" width="355" height="210"/>
<image name="print_img_2" width="355" height="210"/>
<namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......
......@@ -17,6 +17,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
day = date_arr[2]
list_view.reloadData()
}
var isNormal = false
func GLTimeSelectViewClose() {
......@@ -453,7 +454,7 @@ class PrintViewController: BaseViewController,UITableViewDelegate,UITableViewDat
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.row == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "print_top_btn_cell") as! print_top_btn_cell
cell.isNormal = isNormal
return cell
}
......
......@@ -9,7 +9,16 @@
import UIKit
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() {
super.awakeFromNib()
self.selectionStyle = .none
......
......@@ -29,6 +29,9 @@
</constraints>
</tableViewCellContentView>
<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"/>
</tableViewCell>
</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