Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ea18f29
authored
Jan 18, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
4f096331
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
18 deletions
src/views/coupon/verificationList.vue
src/views/coupon/verificationList.vue
View file @
7ea18f2
...
@@ -165,7 +165,7 @@
...
@@ -165,7 +165,7 @@
</template>
</template>
<div
<div
class=
"scan flex"
class=
"scan flex"
v-if=
"type != 1"
v-if=
"type != 1
&& showScan
"
@
click=
"scan"
@
click=
"scan"
>
>
<div
class=
"sprite-icon icon-scan"
></div>
<div
class=
"sprite-icon icon-scan"
></div>
...
@@ -196,6 +196,20 @@ const itemObj = [
...
@@ -196,6 +196,20 @@ const itemObj = [
key
:
'verificationOperator'
key
:
'verificationOperator'
}
}
]
]
const
itemObj2
=
[
{
label
:
'券名'
,
key
:
'couponName'
},
{
label
:
'发放人'
,
key
:
'employeeName'
},
{
label
:
'核销人'
,
key
:
'sellerName'
}
]
export
default
{
export
default
{
name
:
''
,
name
:
''
,
data
()
{
data
()
{
...
@@ -216,20 +230,8 @@ export default {
...
@@ -216,20 +230,8 @@ export default {
itemObj
,
itemObj
,
total
:
0
,
total
:
0
,
userName
:
''
,
userName
:
''
,
itemObj2
:
[
itemObj2
,
{
showScan
:
false
label
:
'券名'
,
key
:
'couponName'
},
{
label
:
'发放人'
,
key
:
'employeeName'
},
{
label
:
'核销人'
,
key
:
'sellerName'
}
]
}
}
},
},
beforeRouteEnter
(
to
,
from
,
next
)
{
beforeRouteEnter
(
to
,
from
,
next
)
{
...
@@ -262,8 +264,9 @@ export default {
...
@@ -262,8 +264,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
getTabNum
()
this
.
getTabNum
()
window
.
$wx
=
wxConfig
wxConfig
.
init
([
'scanQRCode'
]).
then
(()
=>
{
window
.
$wx
.
init
([
'scanQRCode'
])
this
.
showScan
=
true
})
},
},
methods
:
{
methods
:
{
/**获取列表数量 */
/**获取列表数量 */
...
@@ -422,7 +425,7 @@ export default {
...
@@ -422,7 +425,7 @@ export default {
},
},
scan
()
{
scan
()
{
// let resultStr = 't=2&c=3483845737948516352'
// let resultStr = 't=2&c=3483845737948516352'
w
indow
.
$wx
.
scanQRCode
(
1
).
then
(({
resultStr
})
=>
{
w
xConfig
.
scanQRCode
(
1
).
then
(({
resultStr
})
=>
{
let
name
=
'verificationDetail'
let
name
=
'verificationDetail'
let
[
t
,
c
]
=
resultStr
.
split
(
'&'
)
let
[
t
,
c
]
=
resultStr
.
split
(
'&'
)
let
type
=
t
.
split
(
'='
)[
1
]
let
type
=
t
.
split
(
'='
)[
1
]
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment