Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
machine
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
hooloo
android
machine
Commits
a9aebfdb
Commit
a9aebfdb
authored
May 06, 2022
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
cdeeadd6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
app/src/main/java/com/ihaoin/hooloo/device/view/ConfirmOrderDialog.java
+1
-2
app/src/main/java/com/ihaoin/hooloo/device/view/TrolleyView.java
+3
-3
app/src/main/res/values/strings.xml
+1
-1
todo.md
+8
-0
No files found.
app/src/main/java/com/ihaoin/hooloo/device/view/ConfirmOrderDialog.java
View file @
a9aebfdb
...
...
@@ -135,6 +135,7 @@ public class ConfirmOrderDialog extends Dialog {
OnDismissListener
dismissListener
=
new
OnDismissListener
()
{
@Override
public
void
onDismiss
(
DialogInterface
dialog
)
{
Utils
.
sendClearGoodsBroadcast
(
getContext
());
if
(
expireThread
!=
null
)
{
expireThread
.
interrupt
();
}
...
...
@@ -206,7 +207,6 @@ public class ConfirmOrderDialog extends Dialog {
Integer
expireTimes
=
(
Integer
)
msg
.
obj
;
txtExpire
.
setText
(
getContext
().
getString
(
R
.
string
.
expire_times
,
expireTimes
.
toString
()));
if
(
expireTimes
<=
0
)
{
Utils
.
sendClearGoodsBroadcast
(
getContext
());
dismiss
();
}
break
;
...
...
@@ -214,7 +214,6 @@ public class ConfirmOrderDialog extends Dialog {
Integer
returnTimes
=
(
Integer
)
msg
.
obj
;
txtReturn
.
setText
(
getContext
().
getString
(
R
.
string
.
scan_succeed
,
returnTimes
.
toString
()));
if
(
returnTimes
<=
0
)
{
Utils
.
sendClearGoodsBroadcast
(
getContext
());
dismiss
();
}
break
;
...
...
app/src/main/java/com/ihaoin/hooloo/device/view/TrolleyView.java
View file @
a9aebfdb
...
...
@@ -67,7 +67,7 @@ public class TrolleyView extends RelativeLayout {
}
public
void
addGoods
(
Goods
goods
,
Sku
sku
,
Integer
count
)
{
if
(
getC
heckedC
ount
()
>=
Datas
.
COUNT_OF_ORDER
)
{
if
(
getCount
()
>=
Datas
.
COUNT_OF_ORDER
)
{
Toast
.
makeText
(
this
.
getContext
(),
getContext
().
getString
(
R
.
string
.
count_limit
,
Datas
.
COUNT_OF_ORDER
.
toString
()),
Toast
.
LENGTH_SHORT
).
show
();
return
;
}
...
...
@@ -99,7 +99,7 @@ public class TrolleyView extends RelativeLayout {
}
public
void
addGoods
(
Integer
position
)
{
if
(
getC
heckedC
ount
()
>=
Datas
.
COUNT_OF_ORDER
)
{
if
(
getCount
()
>=
Datas
.
COUNT_OF_ORDER
)
{
Toast
.
makeText
(
this
.
getContext
(),
getContext
().
getString
(
R
.
string
.
count_limit
,
Datas
.
COUNT_OF_ORDER
.
toString
()),
Toast
.
LENGTH_SHORT
).
show
();
return
;
}
...
...
@@ -127,7 +127,7 @@ public class TrolleyView extends RelativeLayout {
}
public
Boolean
checkGoodsCount
()
{
if
(
getC
heckedC
ount
()
>
Datas
.
COUNT_OF_ORDER
)
{
if
(
getCount
()
>
Datas
.
COUNT_OF_ORDER
)
{
Toast
.
makeText
(
this
.
getContext
(),
getContext
().
getString
(
R
.
string
.
count_limit
,
Datas
.
COUNT_OF_ORDER
.
toString
()),
Toast
.
LENGTH_SHORT
).
show
();
return
false
;
}
...
...
app/src/main/res/values/strings.xml
View file @
a9aebfdb
<resources>
<string
name=
"app_name"
>
hooloo
</string>
<string
name=
"not_found_goods"
>
未找到相应商品
</string>
<string
name=
"count_limit"
>
每个订单商品数量不能超过%1$s
</string>
<string
name=
"count_limit"
>
单次最多购买%1$s杯,请结算后再次下单
</string>
<string
name=
"error_get_qrcode"
>
获取二维码失败
</string>
<string
name=
"expire_times"
>
%1$s秒后失效
</string>
<string
name=
"scan_succeed"
>
扫码成功(%s秒后转到首页)
</string>
...
...
todo.md
0 → 100644
View file @
a9aebfdb
## 未解决事项
*****
1.
首页获取商品列表
2.
添加购物车时的SKU是否售罄校验
3.
生成二维码图片
4.
推送对接
5.
菜单屏
\ 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