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
ff005a84
Commit
ff005a84
authored
May 21, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待处理编辑
parent
561d82d1
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
72 additions
and
29 deletions
+72
-29
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
...nessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
+1
-1
GeliBusinessPlatform/SceneDelegate.swift
GeliBusinessPlatform/SceneDelegate.swift
+3
-5
GeliBusinessPlatform/View/Cell/AddImgCell.swift
GeliBusinessPlatform/View/Cell/AddImgCell.swift
+10
-4
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
...wController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
+44
-1
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
...iewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
+3
-6
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
...inessPlatform/ViewController/商品管理/GoodsManageListVC.swift
+9
-9
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
...sinessPlatform/ViewController/商品详情/EPViewController.swift
+0
-0
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
...orm/ViewController/商品详情/ProductDetailViewController.swift
+2
-3
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
ff005a84
No preview for this file type
GeliBusinessPlatform/Model/GoodsManageMoel/GoodsDetailModel.swift
View file @
ff005a84
...
...
@@ -163,7 +163,7 @@ class GoodsDetailSkuResModel: Mappable {
}
//副图信息
class
GoodsDetailBannerResModel
:
Mappable
{
var
img_id
:
String
?
//副图ID
var
img_id
:
Int
?
//副图ID
var
img_original
:
String
?
//副图图片地址
required
init
?(
map
:
Map
)
{
...
...
GeliBusinessPlatform/SceneDelegate.swift
View file @
ff005a84
...
...
@@ -47,10 +47,8 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
vc
.
delegate
=
self
let
contentView
=
vc
// let vc = DaiKeXiaDanGouWuViewController()
// let contentView = vc
if
let
windowScene
=
sceneC
as?
UIWindowScene
{
if
isAgain
{
...
...
@@ -96,7 +94,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
// Create the SwiftUI view that provides the window contents.
tabBarController
.
viewControllers
=
[
v1
,
v2
,
v3
,
v4
,
v5
]
//
tabBarController.selectedIndex = 1
tabBarController
.
selectedIndex
=
1
let
contentView
=
tabBarController
...
...
GeliBusinessPlatform/View/Cell/AddImgCell.swift
View file @
ff005a84
...
...
@@ -16,6 +16,7 @@ protocol AddImgCellDelegate {
}
class
AddImgCell
:
UITableViewCell
{
var
delegate
:
AddImgCellDelegate
?
var
isAllEditing
=
true
var
isEdit
:
Bool
?{
willSet
{
isEdit
=
newValue
...
...
@@ -23,8 +24,10 @@ class AddImgCell: UITableViewCell {
}
}
@IBAction
func
btnClick
(
_
sender
:
Any
)
{
if
isAllEditing
{
delegate
?
.
AddImgCellBtnClick
(
cell
:
self
)
}
}
var
isSingle
:
Bool
?
var
imgs
:
Array
<
String
>
=
[]{
...
...
@@ -138,12 +141,15 @@ class AddImgCell: UITableViewCell {
}
}
@objc
func
changeAction
(
sender
:
UIButton
){
if
isAllEditing
{
delegate
?
.
ChangeCellBtnClick
(
sender
:
sender
,
cell
:
self
)
}
}
@objc
func
delAction
(
sender
:
UIButton
){
if
isAllEditing
{
delegate
?
.
DelImgCellBtnClick
(
sender
:
sender
,
cell
:
self
)
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
selectionStyle
=
.
none
...
...
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.swift
View file @
ff005a84
...
...
@@ -7,6 +7,7 @@
//
import
UIKit
import
IQKeyboardManagerSwift
class
DaiKeXiaDanGouWuViewController
:
BaseViewController
,
UITableViewDataSource
,
UITableViewDelegate
,
DaiKeXiaDanFooterViewDelegate
,
TitleAndBtnCellDelegate
,
GLAlertSelectViewDelegate
,
DZGLViewControllerDelegate
,
XuanZeShangPinViewControllerDelegate
,
DaiKeXiaDanGouWuCellDelegate
{
func
DaiKeXiaDanGouWuCellDelAction
(
cell
:
DaiKeXiaDanGouWuCell
)
{
...
...
@@ -72,10 +73,15 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
listView
.
register
(
UINib
(
nibName
:
"TitleAndTFCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"TitleAndTFCell"
)
listView
.
register
(
UINib
(
nibName
:
"DaiKeXiaDanGouWuCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DaiKeXiaDanGouWuCell"
)
listView
.
register
(
UINib
(
nibName
:
"DKXDAdrCell"
,
bundle
:
nil
),
forCellReuseIdentifier
:
"DKXDAdrCell"
)
let
barView
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
fullScreenHeight
,
width
:
fullScreenWidth
,
height
:
30
))
barView
.
backgroundColor
=
UIColor
.
red
self
.
view
.
insertSubview
(
barView
,
at
:
self
.
view
.
subviews
.
count
)
barV
=
barView
//TitleAndBtnCell TitleAndTFCell
// Do any additional setup after loading the view.
registerNotification
()
}
var
barV
:
UIView
?
//MARK: - cell delegate
func
addAction
()
{
...
...
@@ -247,6 +253,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
cell
.
textTF
.
placeholder
=
"请输入运费"
cell
.
textTF
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
if
indexPath
.
row
==
5
{
IQKeyboardManager
.
shared
.
enableAutoToolbar
=
false
cell
.
textTF
.
placeholder
=
"请输入费用"
}
cell
.
textTF
.
textAlignment
=
.
center
...
...
@@ -369,4 +376,40 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
view
.
removeFromSuperview
()
glSelectView
=
nil
}
//键盘监听
deinit
{
NotificationCenter
.
default
.
removeObserver
(
self
)
}
func
registerNotification
(){
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
keyBoardWillShow(_ :)
)
,
name
:
UIResponder
.
keyboardWillShowNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
keyBoardWillHide(_ :)
)
,
name
:
UIResponder
.
keyboardWillHideNotification
,
object
:
nil
)
}
//MARK:键盘通知相关操作
@objc
func
keyBoardWillShow
(
_
notification
:
Notification
){
DispatchQueue
.
main
.
async
{
let
user_info
=
notification
.
userInfo
let
keyValue
=
user_info
!
[
"UIKeyboardFrameEndUserInfoKey"
]
let
keyRect
=
(
keyValue
as
AnyObject
)
.
cgRectValue
let
y
=
keyRect
?
.
origin
.
y
let
animationTime
=
user_info
!
[
"UIKeyboardAnimationDurationUserInfoKey"
]
UIView
.
animate
(
withDuration
:
0.38
)
{
self
.
barV
?
.
frame
=
CGRect
(
x
:
0
,
y
:
y
!-
30
,
width
:
fullScreenWidth
,
height
:
30
)
}
}
}
@objc
func
keyBoardWillHide
(
_
notification
:
Notification
){
DispatchQueue
.
main
.
async
{
UIView
.
animate
(
withDuration
:
0.38
)
{
self
.
barV
?
.
frame
=
CGRect
(
x
:
0
,
y
:
fullScreenHeight
,
width
:
fullScreenWidth
,
height
:
30
)
}
}
}
}
GeliBusinessPlatform/ViewController/代客下单(购物)/DaiKeXiaDanGouWuViewController.xib
View file @
ff005a84
...
...
@@ -8,7 +8,7 @@
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"DaiKeXiaDanGouWuViewController"
customModule=
"
GeliBusinessPlatform
"
customModuleProvider=
"target"
>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"DaiKeXiaDanGouWuViewController"
customModule=
"
TestClass
"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"btmView"
destination=
"Tww-Di-Bao"
id=
"sc1-iw-raM"
/>
<outlet
property=
"listView"
destination=
"7kx-vF-yfW"
id=
"ICi-ue-tem"
/>
...
...
@@ -52,9 +52,9 @@
</attributedString>
<nil
key=
"highlightedColor"
/>
</label>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"
plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"2
8"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
style=
"
grouped"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"18"
sectionFooterHeight=
"1
8"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7kx-vF-yfW"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"769"
/>
<color
key=
"backgroundColor"
name=
"app底色
"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor
"
/>
<connections>
<outlet
property=
"dataSource"
destination=
"-1"
id=
"615-RE-zVt"
/>
<outlet
property=
"delegate"
destination=
"-1"
id=
"wfr-0B-yUN"
/>
...
...
@@ -80,9 +80,6 @@
</view>
</objects>
<resources>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮渐变色上"
>
<color
red=
"0.3880000114440918"
green=
"0.62400001287460327"
blue=
"0.90200001001358032"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
...
...
GeliBusinessPlatform/ViewController/商品管理/GoodsManageListVC.swift
View file @
ff005a84
...
...
@@ -408,10 +408,10 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
}
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
print
(
"选中===
\(
indexPath
)
"
)
//
let vc = EPViewController()
//
let data = items[indexPath.row]
//
vc.goods_id = data.goods_id
//
self.navigationController?.pushViewController(vc, animated: true)
let
vc
=
EPViewController
()
let
data
=
items
[
indexPath
.
row
]
vc
.
goods_id
=
data
.
goods_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK:---cell delegate 选中
...
...
@@ -419,11 +419,11 @@ class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollect
let
idx
=
IndexPath
(
item
:
index
,
section
:
0
)
let
item
=
collection
?
.
cellForItem
(
at
:
idx
)
as!
GoodsCollectionViewCell
//
let vc = EPViewController()
//
vc.titleStrArr = [item.leftBtn.titleLabel!.text!,item.rightBtn.titleLabel!.text!]
//
let data = items[index]
//
vc.goods_id = data.goods_id
//
self.navigationController?.pushViewController(vc, animated: true)
let
vc
=
EPViewController
()
vc
.
titleStrArr
=
[
item
.
leftBtn
.
titleLabel
!.
text
!
,
item
.
rightBtn
.
titleLabel
!.
text
!
]
let
data
=
items
[
index
]
vc
.
goods_id
=
data
.
goods_id
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
//MARK:-- cell delegate 上下架,入库
func
changeGoodsIsShow
(
isTrue
:
Bool
,
byIndex
:
Int
)
{
...
...
GeliBusinessPlatform/ViewController/商品详情/EPViewController.swift
View file @
ff005a84
This source diff could not be displayed because it is too large. You can
view the blob
instead.
GeliBusinessPlatform/ViewController/商品详情/ProductDetailViewController.swift
View file @
ff005a84
...
...
@@ -1125,7 +1125,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
model
=
md
}
}
if
md
.
isJieTiOpen
{
}
if
md
.
isYsJieTiOpen
{
is_adsale_tiered
=
1
//每一个预售阶梯价
md
.
specalArr
.
forEach
{
(
obj
)
in
...
...
@@ -1147,8 +1148,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
let
pack_attr
=
[
"l"
:
"0"
,
"w"
:
"0"
,
"h"
:
"0"
,
"wg"
:
md
.
weight
,
"v"
:
"0"
]
...
...
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