Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eMall_miniapp
Project
Project
Details
Activity
Releases
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
高宇
eMall_miniapp
Commits
5b36a937
Commit
5b36a937
authored
Jul 26, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍摄小票查订阅
parent
392f00bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
26 deletions
+32
-26
index.vue
homePage/filmReceipt/index.vue
+32
-26
No files found.
homePage/filmReceipt/index.vue
View file @
5b36a937
...
...
@@ -105,32 +105,38 @@
})
},
handleshoot
(){
if
(
this
.
name
===
''
)
{
uni
.
showToast
({
title
:
'请选择商铺'
,
icon
:
'error'
})
}
else
{
const
that
=
this
let
tempFilePaths
=
''
uni
.
chooseImage
({
count
:
1
,
sourceType
:
[
'camera'
],
success
:
function
(
res
){
tempFilePaths
=
res
.
tempFilePaths
[
0
]
that
.
img
=
tempFilePaths
that
.
$u
.
post
(
'/user/receipt/mobile/insert'
,{
tenantId
:
that
.
tenantId
,
shopId
:
that
.
shopId
,
img
:
that
.
img
,
userId
:
that
.
userId
}).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
})
console
.
log
(
'tempFilePaths'
,
tempFilePaths
)
}
})
}
const
that
=
this
wx
.
requestSubscribeMessage
({
tmplIds
:
[
'Z1GyWI2Q9m6VZna-AeIGvvKCQzhxHWBbBVe8UY49fbA'
],
success
(
res
)
{
if
(
that
.
name
===
''
)
{
uni
.
showToast
({
title
:
'请选择商铺'
,
icon
:
'error'
})
}
else
{
let
tempFilePaths
=
''
uni
.
chooseImage
({
count
:
1
,
sourceType
:
[
'camera'
],
success
:
function
(
res
){
tempFilePaths
=
res
.
tempFilePaths
[
0
]
that
.
img
=
tempFilePaths
that
.
$u
.
post
(
'/user/receipt/mobile/insert'
,{
tenantId
:
that
.
tenantId
,
shopId
:
that
.
shopId
,
img
:
that
.
img
,
userId
:
that
.
userId
}).
then
(
res
=>
{
console
.
log
(
'res'
,
res
)
})
console
.
log
(
'tempFilePaths'
,
tempFilePaths
)
}
})
}
}
})
},
goshopList
(){
...
...
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