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
b7d442ce
Commit
b7d442ce
authored
Feb 24, 2021
by
程默
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'nativehome_tst' of
http://code.mayi888.com/chengmo/mayi-mp-shop
into nativehome_tst
parents
60fdf6f2
2728b5e9
Show 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 @
b7d442ce
...
@@ -197,6 +197,10 @@ export default {
...
@@ -197,6 +197,10 @@ export default {
if
(
this
.
mpApp
.
pageCallBack
)
{
if
(
this
.
mpApp
.
pageCallBack
)
{
this
.
mpApp
.
pageCallBack
(
data
);
this
.
mpApp
.
pageCallBack
(
data
);
}
}
if
(
this
.
mpApp
.
indexBgCallBack
){
this
.
mpApp
.
indexBgCallBack
(
data
)
}
});
});
}
}
...
...
src/components/ThemeDataPlant.vue
View file @
b7d442ce
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
'background-image':bacImage,
'background-image':bacImage,
'background-repeat':pageSettingData.backgroundFit == 'repeat' ? 'repeat' : 'no-repeat',
'background-repeat':pageSettingData.backgroundFit == 'repeat' ? 'repeat' : 'no-repeat',
'position':pageSettingData.backgroundImageLock ? 'fixed' : 'absolute',
'position':pageSettingData.backgroundImageLock ? 'fixed' : 'absolute',
'background-size' : '100% auto'
}"
}"
>
>
</div>
</div>
...
@@ -34,6 +35,14 @@ export default {
...
@@ -34,6 +35,14 @@ export default {
this
.
pageInfo
=
this
.
mpApp
.
globalData
.
pageList
.
filter
((
item
)
=>
item
.
pageCode
==
1
)[
0
];
this
.
pageInfo
=
this
.
mpApp
.
globalData
.
pageList
.
filter
((
item
)
=>
item
.
pageCode
==
1
)[
0
];
this
.
pageSettingData
=
JSON
.
parse
(
this
.
pageInfo
.
pageSettingData
);
this
.
pageSettingData
=
JSON
.
parse
(
this
.
pageInfo
.
pageSettingData
);
console
.
log
(
this
.
pageInfo
.
pageSettingData
,
'kl'
)
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
(){
mounted
(){
...
...
src/main.js
View file @
b7d442ce
...
@@ -44,6 +44,8 @@ mpApp.shareInit = function () {};
...
@@ -44,6 +44,8 @@ mpApp.shareInit = function () {};
mpApp
.
themeColorCallBack
=
function
()
{};
mpApp
.
themeColorCallBack
=
function
()
{};
mpApp
.
indexBgCallBack
=
function
(){
}
// 全局数据
// 全局数据
mpApp
.
processEnv
=
process
.
env
;
mpApp
.
processEnv
=
process
.
env
;
console
.
log
(
'3555555'
,
wx
)
console
.
log
(
'3555555'
,
wx
)
...
...
static/nativeComponents/FloatButton/index.wxml
View file @
b7d442ce
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<image wx:elif="{{datas.componentData.icon.type==2}}" class="content-img" src="{{datas.componentData.icon.src}}"></image>
<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 class="content-name" style="font-size:{{datas.componentData['fontSize']}}em;color:{{datas.componentData['contentColor']}}">{{datas.componentData['content']}}</view>
</view>
</view>
<image wx:else class="imgs" src="{{imgIcon}}">
<image wx:else class="imgs" src="{{imgIcon}}"
mode="aspectFit"
>
</image>
</image>
</movable-view>
</movable-view>
</movable-area>
</movable-area>
static/nativeComponents/FloatButton/index.wxss
View file @
b7d442ce
...
@@ -43,5 +43,4 @@
...
@@ -43,5 +43,4 @@
.imgs {
.imgs {
width: 100%;
width: 100%;
height: 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