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
7258a268
Commit
7258a268
authored
Oct 22, 2024
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善信息领取奖励
parent
75163640
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
0 deletions
+136
-0
src/components/common/ImproveInformation.vue
+136
-0
src/utils/themeModule.js
+0
-0
No files found.
src/components/common/ImproveInformation.vue
0 → 100644
View file @
7258a268
<!-- 完善信息领取奖励 -->
<
template
>
<div
class=
"ImproveInformation"
v-if=
"show"
catchtouchmove=
"true"
>
<div
class=
"ImproveInformation__bg"
></div>
<div
class=
"ImproveInformation__content"
>
<div
class=
"close"
@
click=
"close"
>
<i
class=
"iconfont icon-guanbi"
></i>
</div>
<div
class=
"title"
>
完善信息领奖励
</div>
<div
class=
"banner"
>
xxx
</div>
<div
class=
"bottom"
>
<div
class=
"bottom__left"
>
<checkbox
v-model=
"notPromptFlag"
@
click=
"notPrompt"
color=
"var(--main-color)"
><span>
不再提示
</span></checkbox>
</div>
<div
class=
"bottom__right"
>
<van-button
type=
"danger"
@
click=
"confirm"
size=
"small"
>
立即前往
</van-button>
</div>
</div>
</div>
</div>
</
template
>
<
script
type=
"text/ecmascript-6"
>
const
app
=
getApp
()
export
default
{
name
:
"ImproveInformation"
,
data
()
{
return
{
show
:
false
,
// 弹窗显示
notPromptFlag
:
false
,
}
},
components
:
{},
computed
:
{},
created
()
{
this
.
open
();
},
mounted
()
{
},
methods
:
{
open
()
{
if
(
wx
.
getStorageSync
(
'notPromptFlag'
))
{
this
.
show
=
false
;
return
;
}
this
.
show
=
true
;
},
notPrompt
()
{
this
.
notPromptFlag
=
!
this
.
notPromptFlag
;
},
close
()
{
console
.
log
(
'close->'
,
this
.
notPromptFlag
)
if
(
this
.
notPromptFlag
)
{
wx
.
setStorageSync
(
'notPromptFlag'
,
true
);
}
this
.
show
=
false
;
},
confirm
()
{
app
.
$themeToLink
({
type
:
1
,
link
:
`/personalCenter/userInfo`
,
})
this
.
close
();
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.ImproveInformation
{
z-index
:
9999
;
position
:
fixed
;
width
:
100vw
;
height
:
100%
;
left
:
0
;
bottom
:
0
;
margin
:
0
auto
;
padding
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
&__bg
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100vw
;
height
:
100%
;
z-index
:
6
;
background
:
rgba
(
0
,
0
,
0
,
0.4
);
opacity
:
0.8
;
}
&
__content
{
position
:
relative
;
box-sizing
:
border-box
;
width
:
80vw
;
border-radius
:
8px
;
overflow
:
hidden
;
z-index
:
11
;
background
:
#fff
;
padding
:
10px
;
.close
{
position
:
absolute
;
right
:
10px
;
top
:
10px
;
i
{
font-size
:
12px
;
}
}
.title
{
font-size
:
16px
;
color
:
#333
;
font-weight
:
bold
;
text-align
:
center
;
}
.banner
{
margin-top
:
20px
;
background
:
#333
;
height
:
100px
;
}
.bottom
{
margin-top
:
20px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
}
}
</
style
>
src/utils/themeModule.js
View file @
7258a268
This diff is collapsed.
Click to expand it.
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