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
db59de93
Commit
db59de93
authored
Dec 28, 2017
by
zhang_z
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码输入Fragment;
parent
6ad83c87
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
167 additions
and
2 deletions
+167
-2
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettleActivity.java
...in/java/com/xingdata/zzdpos/ui/settle/SettleActivity.java
+6
-1
app/src/main/java/com/xingdata/zzdpos/ui/settle/fragment/PasswordFragment.java
.../xingdata/zzdpos/ui/settle/fragment/PasswordFragment.java
+28
-0
app/src/main/java/com/xingdata/zzdpos/ui/store/fragment/StoreFragment.java
.../com/xingdata/zzdpos/ui/store/fragment/StoreFragment.java
+6
-1
app/src/main/res/layout/dialog_password.xml
app/src/main/res/layout/dialog_password.xml
+127
-0
No files found.
app/src/main/java/com/xingdata/zzdpos/ui/settle/SettleActivity.java
View file @
db59de93
...
@@ -16,6 +16,7 @@ import com.xingdata.zzdpos.model.Vip;
...
@@ -16,6 +16,7 @@ import com.xingdata.zzdpos.model.Vip;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.dialog.LoadingDialog
;
import
com.xingdata.zzdpos.ui.main.MainActivity
;
import
com.xingdata.zzdpos.ui.main.MainActivity
;
import
com.xingdata.zzdpos.ui.settle.fragment.CashPayFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.CashPayFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.PasswordFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.PayResultFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.PayResultFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.SettleFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.SettleFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.TicketFragment
;
import
com.xingdata.zzdpos.ui.settle.fragment.TicketFragment
;
...
@@ -32,6 +33,7 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
...
@@ -32,6 +33,7 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
private
VipFragment
mVipFragment
=
new
VipFragment
();
private
VipFragment
mVipFragment
=
new
VipFragment
();
private
CashPayFragment
mCashPayFragment
=
new
CashPayFragment
();
private
CashPayFragment
mCashPayFragment
=
new
CashPayFragment
();
private
PasswordFragment
mPasswordFragment
=
new
PasswordFragment
();
private
PayResultFragment
mPayResultFragment
=
new
PayResultFragment
();
private
PayResultFragment
mPayResultFragment
=
new
PayResultFragment
();
private
LoadingDialog
mLoadingDialog
=
new
LoadingDialog
();
private
LoadingDialog
mLoadingDialog
=
new
LoadingDialog
();
...
@@ -123,7 +125,10 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
...
@@ -123,7 +125,10 @@ public class SettleActivity extends BaseActivity<SettlePresenter, ActivitySettle
case
C
.
PAY_CHANNEL
.
CASH
:
case
C
.
PAY_CHANNEL
.
CASH
:
this
.
start
(
mCashPayFragment
);
this
.
start
(
mCashPayFragment
);
break
;
break
;
case
C
.
PAY_CHANNEL
.
TALLY
:
case
C
.
PAY_CHANNEL
.
CARD
:
mPasswordFragment
.
show
(
this
);
break
;
}
}
}
}
...
...
app/src/main/java/com/xingdata/zzdpos/ui/settle/fragment/PasswordFragment.java
0 → 100644
View file @
db59de93
package
com
.
xingdata
.
zzdpos
.
ui
.
settle
.
fragment
;
import
com.blankj.utilcode.util.FragmentUtils
;
import
com.xingdata.zzdpos.R
;
import
com.xingdata.zzdpos.base.BaseSheetDialog
;
import
com.xingdata.zzdpos.databinding.DialogPasswordBinding
;
import
com.xingdata.zzdpos.ui.settle.SettlePresenter
;
import
com.xingdata.zzdpos.ui.settle.view.InputerView
;
public
class
PasswordFragment
extends
BaseSheetDialog
<
SettlePresenter
,
DialogPasswordBinding
>
{
private
InputerView
<
SettlePresenter
>
mInputerView
=
new
InputerView
<>();
@Override
protected
boolean
isTransparentBackground
()
{
return
true
;
}
@Override
public
int
getLayoutId
()
{
return
R
.
layout
.
dialog_password
;
}
@Override
public
void
initView
()
{
FragmentUtils
.
add
(
getFragmentManager
(),
mInputerView
,
R
.
id
.
f_inputer
);
}
}
app/src/main/java/com/xingdata/zzdpos/ui/store/fragment/StoreFragment.java
View file @
db59de93
...
@@ -102,7 +102,12 @@ public class StoreFragment extends BaseFragment<StorePresenter, FragmentStoreBin
...
@@ -102,7 +102,12 @@ public class StoreFragment extends BaseFragment<StorePresenter, FragmentStoreBin
* @param skugrpId 分组ID
* @param skugrpId 分组ID
*/
*/
public
void
loadSkugrpState
(
Long
skugrpId
)
{
public
void
loadSkugrpState
(
Long
skugrpId
)
{
for
(
int
i
=
0
;
i
<
mSkugrpAdapter
.
getData
().
size
();
i
++)
{
if
(
mSkugrpAdapter
.
getData
().
get
(
i
).
getSkuGrpId
().
longValue
()
==
skugrpId
)
{
mSkugrpAdapter
.
setSelectedPosition
(
i
);
}
}
mSkugrpAdapter
.
notifyDataSetChanged
();
}
}
/**
/**
...
...
app/src/main/res/layout/dialog_password.xml
0 → 100644
View file @
db59de93
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"4"
android:background=
"@color/transparent"
android:gravity=
"bottom"
>
<android.support.v7.widget.CardView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"@dimen/all_margin"
android:layout_marginEnd=
"@dimen/all_margin"
android:layout_marginStart=
"@dimen/all_margin"
>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:orientation=
"vertical"
android:paddingBottom=
"@dimen/all_margin"
android:paddingTop=
"@dimen/all_margin"
>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"center"
android:text=
"会员账户支付"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_text_size"
/>
<TextView
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"@dimen/all_spacing"
android:gravity=
"center"
android:text=
"$30.00"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/fragment_settle_bigtextsize"
/>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_marginTop=
"@dimen/all_margin"
android:gravity=
"center"
android:orientation=
"horizontal"
>
<TextView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/shape_white_round_rectangle_dark"
android:gravity=
"center"
android:text=
"*"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_title_size"
/>
<TextView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/shape_white_round_rectangle_dark"
android:gravity=
"center"
android:text=
"*"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_title_size"
/>
<TextView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/shape_white_round_rectangle_dark"
android:gravity=
"center"
android:text=
"*"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_title_size"
/>
<TextView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/shape_white_round_rectangle_dark"
android:gravity=
"center"
android:text=
"*"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_title_size"
/>
<TextView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/shape_white_round_rectangle_dark"
android:gravity=
"center"
android:text=
"*"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_title_size"
/>
<TextView
android:layout_width=
"48dp"
android:layout_height=
"48dp"
android:background=
"@drawable/shape_white_round_rectangle_dark"
android:gravity=
"center"
android:text=
"*"
android:textColor=
"@color/black_baozheng"
android:textSize=
"@dimen/all_title_size"
/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
<FrameLayout
android:id=
"@+id/f_inputer"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"7"
android:background=
"@color/red_xishi"
/>
</LinearLayout>
</layout>
\ No newline at end of file
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