Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TangKuPos
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
王海
TangKuPos
Commits
a6323d0f
Commit
a6323d0f
authored
Dec 22, 2017
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'master' of 192.168.254.154:w525721508/TangKuPos
# Conflicts: # app/src/main/AndroidManifest.xml
parent
f04be52d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
37 deletions
+37
-37
app/src/main/java/com/xingdata/zzdpos/ui/settle/adapter/PayAdapter.java
...ava/com/xingdata/zzdpos/ui/settle/adapter/PayAdapter.java
+36
-36
app/src/main/java/com/xingdata/zzdpos/ui/settle/fragment/CashPayFragment.java
...m/xingdata/zzdpos/ui/settle/fragment/CashPayFragment.java
+1
-1
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/settle/adapter/PayAdapter.java
View file @
a6323d0f
...
...
@@ -18,41 +18,41 @@ public class PayAdapter extends BaseAdapter<Pay, ItemPayBinding> {
@Override
protected
void
convert
(
ItemPayBinding
mViewBinding
,
Pay
item
)
{
//
int resLogo, resBackground;
//
switch (item.getPayType()) {
//
case C.PAY_CHANNEL.CASH:
//
resLogo = R.mipmap.pay_cash;
//
resBackground = R.color.red_diaochan;
//
break;
//
case C.PAY_CHANNEL.WECHAT:
//
resLogo = R.mipmap.pay_wechat;
//
resBackground = R.color.green_kongrun;
//
break;
//
case C.PAY_CHANNEL.ALI:
//
resLogo = R.mipmap.pay_alipay;
//
resBackground = R.color.blue_yuefei;
//
break;
//
case C.PAY_CHANNEL.BANK:
//
resLogo = R.mipmap.pay_card;
//
resBackground = R.color.cyan_liubei;
//
break;
//
case C.PAY_CHANNEL.CARD:
//
resLogo = R.mipmap.pay_membershipcard;
//
resBackground = R.color.yellow_huangxin;
//
break;
//
case C.PAY_CHANNEL.TALLY:
//
resLogo = R.mipmap.pay_credit;
//
resBackground = R.color.purple_yanqing;
//
break;
//
default:
//
resLogo = R.mipmap.pay_cash;
//
resBackground = R.color.red_diaochan;
//
break;
//
}
//
mViewBinding.ivLogo.setImageResource(resLogo);
//
//
GenericDraweeHierarchy hierarchy = mViewBinding.ivBackground.getHierarchy();
//
hierarchy.setBackgroundImage(mContext.getResources().getDrawable(resBackground));
//
mViewBinding.ivBackground.setHierarchy(hierarchy);
int
resLogo
,
resBackground
;
switch
(
item
.
getPayType
())
{
case
C
.
PAY_CHANNEL
.
CASH
:
resLogo
=
R
.
mipmap
.
pay_cash
;
resBackground
=
R
.
color
.
red_diaochan
;
break
;
case
C
.
PAY_CHANNEL
.
WECHAT
:
resLogo
=
R
.
mipmap
.
pay_wechat
;
resBackground
=
R
.
color
.
green_kongrun
;
break
;
case
C
.
PAY_CHANNEL
.
ALI
:
resLogo
=
R
.
mipmap
.
pay_alipay
;
resBackground
=
R
.
color
.
blue_yuefei
;
break
;
case
C
.
PAY_CHANNEL
.
BANK
:
resLogo
=
R
.
mipmap
.
pay_card
;
resBackground
=
R
.
color
.
cyan_liubei
;
break
;
case
C
.
PAY_CHANNEL
.
CARD
:
resLogo
=
R
.
mipmap
.
pay_membershipcard
;
resBackground
=
R
.
color
.
yellow_huangxin
;
break
;
case
C
.
PAY_CHANNEL
.
TALLY
:
resLogo
=
R
.
mipmap
.
pay_credit
;
resBackground
=
R
.
color
.
purple_yanqing
;
break
;
default
:
resLogo
=
R
.
mipmap
.
pay_cash
;
resBackground
=
R
.
color
.
red_diaochan
;
break
;
}
mViewBinding
.
ivLogo
.
setImageResource
(
resLogo
);
GenericDraweeHierarchy
hierarchy
=
mViewBinding
.
ivBackground
.
getHierarchy
();
hierarchy
.
setBackgroundImage
(
mContext
.
getResources
().
getDrawable
(
resBackground
));
mViewBinding
.
ivBackground
.
setHierarchy
(
hierarchy
);
}
}
app/src/main/java/com/xingdata/zzdpos/ui/settle/fragment/CashPayFragment.java
View file @
a6323d0f
...
...
@@ -59,7 +59,7 @@ public class CashPayFragment extends BaseFragment<SettlePresenter, FragmentPayCa
* @param payAmt 实付价格
*/
private
void
clickSettle
(
Long
payAmt
)
{
if
(
payAmt
-
mOrderAmt
>
0
)
{
if
(
payAmt
-
mOrderAmt
>
=
0
)
{
mPresenter
.
payInCash
(
payAmt
,
payAmt
-
mOrderAmt
);
}
}
...
...
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