Commit e072fcb8 authored by pete谢兆麟's avatar pete谢兆麟

开放分享小程序

parent 8e7ab464
...@@ -30,6 +30,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell { ...@@ -30,6 +30,7 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
var bottomRightLineView: UIView! var bottomRightLineView: UIView!
var fileImageView: UIImageView! var fileImageView: UIImageView!
var fileNameLabel: UILabel! var fileNameLabel: UILabel!
var shareButton: UIButton!
var editButton: UIButton! var editButton: UIButton!
var submitButton: UIButton! var submitButton: UIButton!
var lookButton: UIButton! var lookButton: UIButton!
...@@ -109,6 +110,20 @@ class YHSignatureToActionTableViewCell: UITableViewCell { ...@@ -109,6 +110,20 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
make.top.equalTo(52) make.top.equalTo(52)
} }
shareButton = {
let button = UIButton(type: .custom)
button.setBackgroundImage(UIImage(named: "share_mini_program"), for: .normal)
button.addTarget(self, action: #selector(shareButtonClick), for: .touchUpInside)
return button
}()
centerView.addSubview(shareButton)
shareButton.snp.makeConstraints { make in
make.top.equalTo(18)
make.right.equalTo(-24)
make.height.equalTo(20)
make.width.equalTo(80)
}
bottomView = { bottomView = {
let view = UIView() let view = UIView()
view.backgroundColor = UIColor.separatorColor view.backgroundColor = UIColor.separatorColor
...@@ -265,6 +280,10 @@ class YHSignatureToActionTableViewCell: UITableViewCell { ...@@ -265,6 +280,10 @@ class YHSignatureToActionTableViewCell: UITableViewCell {
} }
} }
@objc func shareButtonClick() {
YHShareManager.shared.sendMiniProgram()
}
func updataButton() { func updataButton() {
if isSign { if isSign {
bottomLeftLineView.isHidden = true bottomLeftLineView.isHidden = true
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "share_mini_program@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "share_mini_program@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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