Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 580cfe9d
authored
Apr 23, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改小程序码,增加场景类型和商户
1 parent
c1c6a28f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
pages/boutique/components/CouponPop.vue
utils/logger/LocalLog.js
pages/boutique/components/CouponPop.vue
View file @
580cfe9
...
...
@@ -277,6 +277,10 @@ export default {
watchStatus
()
{
return
this
.
$store
.
state
.
user
.
historyStatus
},
shopMerchantId
()
{
const
{
shopMerchantId
}
=
uni
.
$storage
.
get
(
'userInfo'
)
return
shopMerchantId
},
},
data
()
{
return
{
...
...
@@ -367,12 +371,12 @@ export default {
})
let
scene
=
''
if
(
customerInfo
.
inviteRecordId
)
{
this
.
customerInfo
=
customerInfo
scene
=
`url=/tabDate/pages/detail/detail&id=
${
customerInfo
.
inviteRecordId
}
`
scene
=
`url=/tabDate/pages/detail/detail&id=
${
customerInfo
.
inviteRecordId
}
`
}
else
{
let
params
=
encodeURIComponent
(
`couponId=
${
customerInfo
.
customerCouponId
}
`
)
scene
=
`url=/tabWorkOrder/pages/createOrder/createOrder&scene=
${
params
}
`
}
scene
=
`
${
scene
}
&sceneType=1&shopMerchantId=
${
this
.
shopMerchantId
}
`
uni
.
$api
.
commonApi
.
createQrcode
({
scene
,
path
:
'/pages/loading/loading'
,
...
...
@@ -383,6 +387,9 @@ export default {
if
(
data
)
{
this
.
pageParams
.
customerCouponId
=
customerInfo
.
customerCouponId
this
.
pageParams
.
customerQr
=
data
if
(
customerInfo
.
inviteRecordId
)
this
.
customerInfo
=
customerInfo
console
.
log
(
customerInfo
)
}
else
throw
'生成小程序码失败,请重试!'
}
else
throw
message
...
...
utils/logger/LocalLog.js
View file @
580cfe9
...
...
@@ -4,19 +4,20 @@ import { getTime, withinSpliter, daysBetween } from './util'
class
LocalLog
{
logger
=
null
constructor
()
{
this
.
logger
=
new
LogCat
()
this
.
logger
=
{}
// this.logger = new LogCat()
}
debug
(
msg
)
{
this
.
logger
.
writeLog
(
LogLevel
.
DEBUG
,
msg
)
//
this.logger.writeLog(LogLevel.DEBUG, msg)
}
info
(
msg
)
{
this
.
logger
.
writeLog
(
LogLevel
.
INFO
,
msg
)
//
this.logger.writeLog(LogLevel.INFO, msg)
}
warn
(
msg
)
{
this
.
logger
.
writeLog
(
LogLevel
.
WARN
,
msg
)
//
this.logger.writeLog(LogLevel.WARN, msg)
}
error
(
msg
)
{
this
.
logger
.
writeLog
(
LogLevel
.
ERROR
,
msg
)
//
this.logger.writeLog(LogLevel.ERROR, msg)
}
getFiles
(
beginDate
,
endDate
)
{
const
logFiles
=
this
.
logger
.
getLogFileList
()
...
...
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