Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
NFT
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
NFT
Commits
22357750
Commit
22357750
authored
Sep 28, 2021
by
salitedfish
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加二维码扫描商城功能
parent
d7fa58f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
main.ts
src/main.ts
+2
-2
form.vue
src/view/NFT/Transfer/form.vue
+8
-4
No files found.
src/main.ts
View file @
22357750
...
@@ -13,8 +13,8 @@ import { Image as VanImage } from 'vant';
...
@@ -13,8 +13,8 @@ import { Image as VanImage } from 'vant';
import
{
Toast
,
Empty
,
Dialog
,
Lazyload
}
from
'vant'
import
{
Toast
,
Empty
,
Dialog
,
Lazyload
}
from
'vant'
import
VConsole
from
'vconsole'
;
import
VConsole
from
'vconsole'
;
const
vconsole
=
process
.
env
.
VUE_APP_ENV
===
'TEST'
?
new
VConsole
():
''
//
const vconsole = process.env.VUE_APP_ENV === 'TEST'?new VConsole():''
//
const vconsole = new VConsole()
const
vconsole
=
new
VConsole
()
window
.
console
.
log
(
vconsole
,
'移动console'
);
window
.
console
.
log
(
vconsole
,
'移动console'
);
Vue
.
use
(
Lazyload
);
Vue
.
use
(
Lazyload
);
...
...
src/view/NFT/Transfer/form.vue
View file @
22357750
...
@@ -138,10 +138,14 @@ export default Vue.extend({
...
@@ -138,10 +138,14 @@ export default Vue.extend({
getData
(
codeData
:
any
){
getData
(
codeData
:
any
){
this
.
showTransfer
=
true
this
.
showTransfer
=
true
this
.
showCamera
=
false
this
.
showCamera
=
false
const
objCodeData
=
JSON
.
parse
(
codeData
)
try
{
console
.
log
(
'原始数据'
,
codeData
)
const
objCodeData
=
JSON
.
parse
(
codeData
)
console
.
log
(
'转化后数据'
,
objCodeData
)
console
.
log
(
'原始数据'
,
codeData
)
this
.
receiver
.
addr
=
objCodeData
.
wallet
?
objCodeData
.
wallet
:
''
console
.
log
(
'转化后数据'
,
objCodeData
)
this
.
receiver
.
addr
=
objCodeData
.
wallet
?
objCodeData
.
wallet
:
''
}
catch
(
e
){
this
.
receiver
.
addr
=
codeData
}
this
.
searchUser
()
this
.
searchUser
()
},
},
getError
(
errorMes
:
any
){
getError
(
errorMes
:
any
){
...
...
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