Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
a1c3cbc2
Commit
a1c3cbc2
authored
Jun 12, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 加日志
parent
a3ad214f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
7 deletions
+35
-7
src/components/common/pageLoading.vue
+35
-7
No files found.
src/components/common/pageLoading.vue
View file @
a1c3cbc2
<
template
>
<div
class=
"loadings"
>
<div
class=
"img flex"
>
<image
:src=
"shopLogo"
alt=
""
mode=
"aspectFill"
></image>
<image
:src=
"shopLogo"
alt=
""
mode=
"aspectFill"
@
click=
"showD"
></image>
<van-loading
color=
"#333"
size=
"60px"
/>
</div>
</div>
...
...
@@ -10,6 +10,7 @@
<
script
>
import
{
DFSImg
}
from
"@/utils/index"
;
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
props
:
{
toHide
:
{
...
...
@@ -18,7 +19,9 @@ export default {
}
},
data
()
{
return
{};
return
{
count
:
0
,
};
},
computed
:
{
shopLogo
()
{
...
...
@@ -30,13 +33,34 @@ export default {
}
else
{
logoUrl
=
app
.
globalData
&&
app
.
globalData
.
shopInfo
&&
app
.
globalData
.
shopInfo
.
logoUrl
;
}
return
logoUrl
?
DFSImg
(
logoUrl
):
""
;
return
logoUrl
?
DFSImg
(
logoUrl
)
:
""
;
},
},
created
()
{
},
mounted
()
{
},
methods
:
{
showD
()
{
this
.
count
++
;
if
(
this
.
count
>
20
)
{
let
val
=
[
`[wx.getExtConfigSync()]->:
${
JSON
.
stringify
(
wx
.
getExtConfigSync
())}
`
,
`[$store.state.extConfig]->:
${
JSON
.
stringify
(
this
.
$store
.
state
.
extConfig
)}
`
,
`[wx.getStorageSync('extConfig')]->:
${
JSON
.
stringify
(
wx
.
getStorageSync
(
'extConfig'
))}
`
,
];
log
.
info
(
'pageLoading-showD->'
,
val
.
join
(
'
\
n'
))
wx
.
showModal
({
title
:
'提示'
,
content
:
val
.
join
(
"
\
n"
),
success
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'用户点击确定'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'用户点击取消'
)
}
}
})
}
}
}
};
</
script
>
...
...
@@ -50,7 +74,8 @@ export default {
width
:
100%
;
height
:
100%
;
z-index
:
9999
;
.img{
.img
{
width
:
50px
;
height
:
50px
;
position
:
relative
;
...
...
@@ -58,7 +83,8 @@ export default {
margin
:
40vh
auto
0
;
justify-content
:
center
;
align-items
:
center
;
image{
image
{
width
:
50px
;
height
:
50px
;
border-radius
:
50%
;
...
...
@@ -66,9 +92,11 @@ export default {
z-index
:
1
;
}
}
._van-loading
{
._van-loading
{
position
:
absolute
;
}
.van-loading
{
position
:
absolute
;
top
:
-2px
;
...
...
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