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
469ce6b1
Commit
469ce6b1
authored
Jul 12, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录页面可拖入其他组件
parent
2a11fe3a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletions
+34
-1
src/components/ThemeDataPlant.vue
+1
-0
src/pages/login/index.vue
+30
-0
src/pages/login/main.json
+3
-1
No files found.
src/components/ThemeDataPlant.vue
View file @
469ce6b1
...
...
@@ -3,6 +3,7 @@
ref=
"ThemeDataPlant"
class=
"ThemeDataPlant"
:style=
"
{
'position':pageCode == 14?'fixed':'',
'background-color': pageSettingData.backgroundColor,
'background-image': bacImage,
'background-size': pageSettingData.backgroundFit!='equiratioFill'?'100% auto':'',
...
...
src/pages/login/index.vue
View file @
469ce6b1
...
...
@@ -7,6 +7,25 @@
</div>
</div>
<div
v-for=
"(item,index) in pageData"
:key=
"index"
>
<!-- 其他组件 -->
<div
v-if=
"item.componentCode == 'text-text' && item.componentInfo.visible == 1"
>
<text-text
:datas=
"item"
></text-text>
</div>
<div
v-if=
"item.componentCode == 'rich-text' && item.componentInfo.visible == 1"
>
<rich-text
:datas=
"item"
></rich-text>
</div>
<div
v-if=
"item.componentCode == 'photo-gallery' && item.componentInfo.visible == 1"
>
<photo-gallery
:datas=
"item"
></photo-gallery>
</div>
<div
v-if=
"item.componentCode == 'interval' && item.componentInfo.visible == 1"
>
<interval
:datas=
"item"
></interval>
</div>
<div
v-if=
"item.componentCode == 'partition' && item.componentInfo.visible == 1"
>
<partition
:datas=
"item"
></partition>
</div>
<div
v-if=
"item.componentCode == 'notice' && item.componentInfo.visible == 1"
>
<notice
:datas=
"item"
></notice>
</div>
<!-- 登录logo名字模块 -->
<loginLogo
v-if=
"item.componentCode=='login-logo' && item.componentInfo.visible == 1"
...
...
@@ -69,10 +88,18 @@ import loginLogo from '../../components/login/loginLogo.vue';
import
loginBox
from
'../../components/login/loginBox.vue'
;
import
loginUserAgreement
from
'../../components/login/loginUserAgreement.vue'
;
import
ThemeDataPlant
from
"../../components/ThemeDataPlant"
import
text
from
'@/components/content/text'
import
richText
from
"../../components/basicTool/rich-text"
;
import
interval
from
'@/components/basicTool/interval/index.vue'
import
partition
from
'@/components/basicTool/partition/index.vue'
const
app
=
getApp
();
const
{
log
}
=
app
;
export
default
{
components
:
{
'text-text'
:
text
,
'rich-text'
:
richText
,
interval
,
partition
,
ThemeDataPlant
,
loginLogo
,
loginBox
,
...
...
@@ -797,6 +824,9 @@ export default {
height
:
100vh
;
overflow-y
:
auto
;
.tabbar{
position
:
sticky
;
top
:
0
;
z-index
:
9999
;
width
:
100%
;
box-sizing
:
border-box
;
display
:
flex
;
...
...
src/pages/login/main.json
View file @
469ce6b1
...
...
@@ -3,7 +3,9 @@
"usingComponents"
:
{
"van-checkbox"
:
"/static/vant/checkbox/index"
,
"van-popup"
:
"/static/vant/popup/index"
,
"van-icon"
:
"/static/vant/icon/index"
"van-icon"
:
"/static/vant/icon/index"
,
"photo-gallery"
:
"/static/nativeComponents/PhotoGallery/index"
,
"notice"
:
"/static/nativeComponents/Notice/index"
},
"navigationStyle"
:
"custom"
}
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