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
51410d77
Commit
51410d77
authored
Feb 24, 2021
by
程智春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
背景颜色背景图片
parent
46f8709b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
src/App.vue
+4
-0
src/components/ThemeDataPlant.vue
+9
-0
src/main.js
+2
-0
static/nativeComponents/FloatButton/index.wxml
+1
-1
static/nativeComponents/FloatButton/index.wxss
+0
-2
No files found.
src/App.vue
View file @
51410d77
...
...
@@ -194,6 +194,10 @@ export default {
if
(
this
.
mpApp
.
pageCallBack
)
{
this
.
mpApp
.
pageCallBack
(
data
);
}
if
(
this
.
mpApp
.
indexBgCallBack
){
this
.
mpApp
.
indexBgCallBack
(
data
)
}
});
}
...
...
src/components/ThemeDataPlant.vue
View file @
51410d77
...
...
@@ -7,6 +7,7 @@
'background-image':bacImage,
'background-repeat':pageSettingData.backgroundFit == 'repeat' ? 'repeat' : 'no-repeat',
'position':pageSettingData.backgroundImageLock ? 'fixed' : 'absolute',
'background-size' : '100% auto'
}"
>
</div>
...
...
@@ -34,6 +35,14 @@ export default {
this
.
pageInfo
=
this
.
mpApp
.
globalData
.
pageList
.
filter
((
item
)
=>
item
.
pageCode
==
1
)[
0
];
this
.
pageSettingData
=
JSON
.
parse
(
this
.
pageInfo
.
pageSettingData
);
console
.
log
(
this
.
pageInfo
.
pageSettingData
,
'kl'
)
}
else
{
let
_this
=
this
this
.
mpApp
.
indexBgCallBack
=
function
(
data
){
_this
.
pageInfo
=
_this
.
mpApp
.
globalData
.
pageList
.
filter
((
item
)
=>
item
.
pageCode
==
1
)[
0
];
_this
.
pageSettingData
=
JSON
.
parse
(
_this
.
pageInfo
.
pageSettingData
);
console
.
log
(
_this
.
pageSettingData
,
'kl1'
)
_this
.
bacImage
=
`url(
${
_this
.
pageSettingData
.
backgroundImage
}
)`
}
}
},
mounted
(){
...
...
src/main.js
View file @
51410d77
...
...
@@ -44,6 +44,8 @@ mpApp.shareInit = function () {};
mpApp
.
themeColorCallBack
=
function
()
{};
mpApp
.
indexBgCallBack
=
function
(){
}
// 全局数据
mpApp
.
processEnv
=
process
.
env
;
console
.
log
(
'3555555'
,
wx
)
...
...
static/nativeComponents/FloatButton/index.wxml
View file @
51410d77
...
...
@@ -18,7 +18,7 @@
<image wx:elif="{{datas.componentData.icon.type==2}}" class="content-img" src="{{datas.componentData.icon.src}}"></image>
<view class="content-name" style="font-size:{{datas.componentData['fontSize']}}em;color:{{datas.componentData['contentColor']}}">{{datas.componentData['content']}}</view>
</view>
<image wx:else class="imgs" src="{{imgIcon}}">
<image wx:else class="imgs" src="{{imgIcon}}"
mode="aspectFit"
>
</image>
</movable-view>
</movable-area>
static/nativeComponents/FloatButton/index.wxss
View file @
51410d77
...
...
@@ -43,5 +43,4 @@
.imgs {
width: 100%;
height: 100%;
object-fit: contain;
}
\ No newline at end of file
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