Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsMin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6513638c
authored
Apr 13, 2022
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
51d671d5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
pages/home/index.vue
pages/tag/print.vue
util/api.js
pages/home/index.vue
View file @
6513638c
...
...
@@ -110,7 +110,7 @@ export default {
methods
:
{
scanChange
()
{
uni
.
scanCode
({
success
:
function
(
res
)
{
success
:
res
=>
{
console
.
log
(
res
);
if
(
res
.
errMsg
==
'scanCode:ok'
)
{
uni
.
navigateTo
({
...
...
@@ -118,7 +118,7 @@ export default {
});
}
},
fail
:
function
(
res
)
{
fail
:
res
=>
{
console
.
log
(
res
);
uni
.
showToast
({
title
:
'扫码失败'
,
...
...
pages/tag/print.vue
View file @
6513638c
...
...
@@ -80,6 +80,14 @@ export default {
}
};
},
onLoad
(
option
)
{
this
.
getTraySelectOption
();
try
{
uni
.
removeStorageSync
(
'device'
);
}
catch
(
e
)
{
// error
}
},
onShow
()
{
const
deviceData
=
uni
.
getStorageSync
(
'device'
)
||
''
;
//获取已连接蓝牙设备信息
if
(
deviceData
)
{
...
...
@@ -90,9 +98,6 @@ export default {
this
.
device_name
=
''
;
}
},
onLoad
()
{
this
.
getTraySelectOption
();
},
methods
:
{
getTraySelectOption
()
{
this
.
request
(
API
.
getTraySelectOption
,
'POST'
,
{},
false
).
then
(
res
=>
{
...
...
util/api.js
View file @
6513638c
const
API_BASE
=
'https://api.ichunt.com'
;
//
const API_BASE = 'http://api.liexin.com'
//
const API_BASE = 'https://api.ichunt.com';
const
API_BASE
=
'http://api.liexin.com'
const
API
=
{
/**
* 上传数据
...
...
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