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
0f8ff26c
Commit
0f8ff26c
authored
Jun 06, 2022
by
wjg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改购物车数据格式
parent
235a6e22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
73 additions
and
44 deletions
+73
-44
app/src/main/java/com/ihaoin/hooloo/device/config/AppConfig.java
+5
-4
app/src/main/java/com/ihaoin/hooloo/device/view/GoodsDetailDialog.java
+65
-38
app/src/main/java/com/ihaoin/hooloo/device/view/SettingsActivity.java
+1
-1
app/src/main/java/com/ihaoin/hooloo/device/view/TrolleyView.java
+1
-1
app/src/main/res/values/strings.xml
+1
-0
No files found.
app/src/main/java/com/ihaoin/hooloo/device/config/AppConfig.java
View file @
0f8ff26c
...
@@ -3,12 +3,13 @@ package com.ihaoin.hooloo.device.config;
...
@@ -3,12 +3,13 @@ package com.ihaoin.hooloo.device.config;
public
class
AppConfig
{
public
class
AppConfig
{
public
static
Boolean
DEBUG
=
true
;
// TODO false
public
static
Boolean
DEBUG
=
true
;
// TODO false
public
static
String
TAG
=
"HL_TEST"
;
public
static
String
HL
=
"HL"
;
public
static
String
TAG_PUSH
=
TAG
+
"_PUSH"
;
public
static
String
TAG
=
HL
+
"_TEST"
;
public
static
String
TAG_NETWORK
=
TAG
+
"_NETWORK"
;
public
static
String
TAG_PUSH
=
HL
+
"_PUSH"
;
public
static
String
TAG_NETWORK
=
HL
+
"_NETWORK"
;
/** 点单屏编码 */
/** 点单屏编码 */
public
static
String
DEFAULT_SCREEN_NO
=
"
A
"
;
public
static
String
DEFAULT_SCREEN_NO
=
"
1
"
;
/** 机器编码 */
/** 机器编码 */
public
static
String
MACHINE_CODE
=
""
;
public
static
String
MACHINE_CODE
=
""
;
/** 打开微信网址 */
/** 打开微信网址 */
...
...
app/src/main/java/com/ihaoin/hooloo/device/view/GoodsDetailDialog.java
View file @
0f8ff26c
This diff is collapsed.
Click to expand it.
app/src/main/java/com/ihaoin/hooloo/device/view/SettingsActivity.java
View file @
0f8ff26c
...
@@ -72,7 +72,7 @@ public class SettingsActivity extends Activity {
...
@@ -72,7 +72,7 @@ public class SettingsActivity extends Activity {
private
void
showEditScreen
()
{
private
void
showEditScreen
()
{
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
AlertDialog
.
Builder
builder
=
new
AlertDialog
.
Builder
(
this
);
builder
.
setTitle
(
"修改点单屏编码"
);
builder
.
setTitle
(
"修改点单屏编码"
);
String
[]
items
=
new
String
[]{
"
A"
,
"B
"
};
String
[]
items
=
new
String
[]{
"
1"
,
"2
"
};
builder
.
setSingleChoiceItems
(
items
,
StringUtils
.
indexOf
(
items
,
SharedPreferencesUtils
.
getScreenNo
(
SettingsActivity
.
this
)),
(
dialog
,
which
)
->
{
builder
.
setSingleChoiceItems
(
items
,
StringUtils
.
indexOf
(
items
,
SharedPreferencesUtils
.
getScreenNo
(
SettingsActivity
.
this
)),
(
dialog
,
which
)
->
{
SharedPreferencesUtils
.
setScreenNo
(
SettingsActivity
.
this
,
items
[
which
]);
SharedPreferencesUtils
.
setScreenNo
(
SettingsActivity
.
this
,
items
[
which
]);
txtScreenNo
.
setText
(
SharedPreferencesUtils
.
getScreenNo
(
SettingsActivity
.
this
));
txtScreenNo
.
setText
(
SharedPreferencesUtils
.
getScreenNo
(
SettingsActivity
.
this
));
...
...
app/src/main/java/com/ihaoin/hooloo/device/view/TrolleyView.java
View file @
0f8ff26c
...
@@ -94,7 +94,7 @@ public class TrolleyView extends RelativeLayout {
...
@@ -94,7 +94,7 @@ public class TrolleyView extends RelativeLayout {
public
void
handleMessage
(
@NonNull
Message
msg
)
{
public
void
handleMessage
(
@NonNull
Message
msg
)
{
super
.
handleMessage
(
msg
);
super
.
handleMessage
(
msg
);
if
(
msg
.
what
!=
1
)
{
if
(
msg
.
what
!=
1
)
{
Toast
.
makeText
(
getContext
(),
((
Exception
)
msg
.
obj
).
getMessage
()
,
Toast
.
LENGTH_SHORT
).
show
();
Toast
.
makeText
(
getContext
(),
R
.
string
.
error_check_sku
,
Toast
.
LENGTH_SHORT
).
show
();
return
;
return
;
}
}
addGoods
(
goods
,
sku
,
count
);
addGoods
(
goods
,
sku
,
count
);
...
...
app/src/main/res/values/strings.xml
View file @
0f8ff26c
...
@@ -10,4 +10,5 @@
...
@@ -10,4 +10,5 @@
<string
name=
"error_price"
>
商品金额错误
</string>
<string
name=
"error_price"
>
商品金额错误
</string>
<string
name=
"error_sku_state"
>
本商品已售罄或已经下架
</string>
<string
name=
"error_sku_state"
>
本商品已售罄或已经下架
</string>
<string
name=
"error_load_main_data"
>
获取数据失败
</string>
<string
name=
"error_load_main_data"
>
获取数据失败
</string>
<string
name=
"error_check_sku"
>
商品状态获取失败
</string>
</resources>
</resources>
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