Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
7049cab3
Commit
7049cab3
authored
May 25, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心身份证
parent
98853e0c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
33 deletions
+8
-33
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
...form/ViewController/个人中心/PersonCenterViewController.swift
+1
-30
GeliBusinessPlatform/ViewController/商家信息/ShopInfoViewController.swift
...Platform/ViewController/商家信息/ShopInfoViewController.swift
+7
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7049cab3
No preview for this file type
GeliBusinessPlatform/ViewController/个人中心/PersonCenterViewController.swift
View file @
7049cab3
...
...
@@ -100,36 +100,7 @@ class PersonCenterViewController: BaseViewController,UITableViewDelegate,UITable
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
else
if
indexPath
.
row
==
2
{
//权限设置-弹窗
// _ = self.presentHGImagePicker(maxSelected:2) { (assets) in
// //结果处理
// print("共选择了\(assets.count)张图片,分别如下:")
// for asset in assets {
// print(asset)
// let option = PHImageRequestOptions()
// option.isSynchronous = true
// option.isNetworkAccessAllowed = true
// PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (imge, _: [AnyHashable : Any]?) in
//
// print("上传图片==\(imge)")
//
// let UserToken = UserDefaults.standard.value(forKey: "user_token")
// let upLoadImg = imge as! UIImage
//
// saveFile(image: upLoadImg, ["user_token":UserToken as Any], success: { (data) in
// let dataM = data as! SaveFileModel
// if dataM.code == 1 {
// print("图片上传成功\(dataM.data?.url)")
// }
// }) { (error) in
// print("图片上传失败\(error)")
//
// }
//
// })
// }
// }
HUD
.
flash
(
.
label
(
"权限设置开发中"
),
delay
:
1.2
)
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
...
...
GeliBusinessPlatform/ViewController/商家信息/ShopInfoViewController.swift
View file @
7049cab3
...
...
@@ -11,6 +11,8 @@ import UIKit
class
ShopInfoViewController
:
BaseViewController
{
@IBOutlet
weak
var
scrollHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
scrlloV
:
UIScrollView
!
var
dataModel
:
ShopInfoModel
?
=
nil
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -22,6 +24,7 @@ class ShopInfoViewController: BaseViewController {
}
loadData
()
}
//MARK:--加载数据
func
loadData
(){
let
UserToken
=
UserDefaults
.
standard
.
value
(
forKey
:
"user_token"
)
...
...
@@ -43,7 +46,7 @@ class ShopInfoViewController: BaseViewController {
self
.
emailLbl
.
text
=
self
.
dataModel
?
.
data
?
.
shop_email
self
.
businessNumLbl
.
text
=
self
.
dataModel
?
.
data
?
.
business_licence_number
self
.
businessSphereLbl
.
text
=
self
.
dataModel
?
.
data
?
.
business_sphere
// self.idCardImgV.kf.
setImage(with: URL(string: SERVERCE_ImageHost + (self.dataModel?.data?.identity_card_front)!))
self
.
idCardImgV
.
sd_
setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_front
)
!
))
})
{
(
error
)
in
//缺省数据,隐藏滚动视图,展示错误视图
...
...
@@ -51,12 +54,13 @@ class ShopInfoViewController: BaseViewController {
}
@IBAction
func
previousAction
(
_
sender
:
UIButton
)
{
// self.idCardImgV.kf.
setImage(with: URL(string: SERVERCE_ImageHost + (self.dataModel?.data?.identity_card_front)!))
self
.
idCardImgV
.
sd_
setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_front
)
!
))
rightChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard2"
),
for
:
.
normal
)
leftChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard1"
),
for
:
.
normal
)
}
@IBAction
func
nextAction
(
_
sender
:
UIButton
)
{
// self.idCardImgV.kf.setImage(with: URL(string: SERVERCE_ImageHost + (self.dataModel?.data?.identity_card_back)!))
self
.
idCardImgV
.
sd_setImage
(
with
:
URL
(
string
:
SERVERCE_ImageHost
+
(
self
.
dataModel
?
.
data
?
.
identity_card_back
)
!
))
rightChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard4"
),
for
:
.
normal
)
leftChangeImgBtn
.
setImage
(
UIImage
.
init
(
named
:
"idCard3"
),
for
:
.
normal
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment