Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
ios1x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
ios1x
Commits
5b9b3e13
Commit
5b9b3e13
authored
Jun 01, 2017
by
lee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正bug,新添加的商品购物车点编辑会闪退,自动设置送货方式,图片url修改
parent
206e71f1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
KWMProductDetailVC.m
iCemarose/Class/UI/Product/KWMProductDetailVC.m
+5
-1
KWMBeforePayVC.m
iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
+1
-1
No files found.
iCemarose/Class/UI/Product/KWMProductDetailVC.m
View file @
5b9b3e13
...
...
@@ -220,10 +220,14 @@
[[
KWMShoppingCart
sharedInstance
]
increaseProductWithVariantId
:
identifier
quantity
:
quantity
callback
:^
(
NSError
*
error
,
KWMCartResult
*
cart
)
{
if
(
cart
.
items
.
firstObject
&&
!
cart
.
items
.
firstObject
.
product_id
)
{
KWMShopCartModel
*
model
=
cart
.
items
.
firstObject
;
model
.
imageStr
=
[
KWMImageUtil
getProductImageUrl
:
this
.
product
.
identifier
ImageSize
:
NormalImage
];
BUYImageLink
*
il
=
this
.
product
.
images
.
firstObject
;
// model.imageStr = [KWMImageUtil getProductImageUrl:this.product.identifier ImageSize:NormalImage];
model
.
imageStr
=
[
KWMImageUtil
getProductImageUrlByOriginalUrl
:
il
.
sourceURL
.
absoluteString
ImageSize
:
NormalImage
];
model
.
name
=
this
.
product
.
title
;
model
.
brand
=
this
.
product
.
vendor
;
model
.
size
=
variant
.
title
;
model
.
price
=
variant
.
price
.
floatValue
;
model
.
product_id
=
this
.
product
.
identifier
;
}
if
(
!
error
)
{
[
this
showToast
:
@"添加成功"
];
...
...
iCemarose/Class/UI/ShopCart/KWMBeforePayVC.m
View file @
5b9b3e13
...
...
@@ -455,7 +455,7 @@
this
.
checkout
=
checkout
;
[
this
initData
];
[
this
.
userDao
saveCheckoutCache
:
responseObject
[
@"checkout"
]];
if
(
!
this
.
checkout
.
shipping
Address
)
{
if
(
!
this
.
checkout
.
shipping
Rate
)
{
[
this
requestShippingData
];
}
}
failure
:^
(
NSURLSessionDataTask
*
_Nullable
task
,
NSError
*
_Nonnull
error
)
{
...
...
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