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
451c0cc8
Commit
451c0cc8
authored
Feb 03, 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
3290e924
4be4b1ce
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
7 deletions
+19
-7
src/App.vue
+1
-0
src/main.js
+1
-0
src/pages/home/index.vue
+13
-2
static/nativeComponents/GoodsList/GoodsItem/index.wxss
+3
-3
static/nativeComponents/TimeLimitedDiscount/activityListItem/index.wxss
+0
-1
static/nativeComponents/TimeLimitedDiscount/index.wxss
+1
-1
No files found.
src/App.vue
View file @
451c0cc8
...
...
@@ -76,6 +76,7 @@ export default {
// 设置主题色
themeColor
[
'--main-color'
]
=
val
.
themeColor
.
mainColor
themeColor
[
'--minor-color'
]
=
val
.
themeColor
.
minorColor
mpApp
.
themeColorCallBack
(
themeColor
);
//
console
.
log
(
this
.
mpApp
,
'mmmmm74'
,
themeColor
)
}
...
...
src/main.js
View file @
451c0cc8
...
...
@@ -41,6 +41,7 @@ mpApp.footerCallBack = function () { }
// webview变化
mpApp
.
webviewCallBack
=
function
()
{
}
mpApp
.
shareInit
=
function
()
{};
mpApp
.
themeColorCallBack
=
function
()
{};
console
.
log
(
'3555555'
,
wx
)
// 全局跳转 data为link对象
...
...
src/pages/home/index.vue
View file @
451c0cc8
<
template
>
<div
class=
"domain"
>
<div
class=
"domain"
:style=
"
{'--main-color':themeColor['--main-color'],'--minor-color':themeColor['--minor-color']}"
>
<!--
<view
class=
"ant-daipinglun"
>
1
</view>
-->
<!--
<goods-list
id=
"goodsList"
></goods-list>
-->
<!--
<scroll-view
@
scroll=
"scrolls"
@
scrolltolower=
"scrolltolower"
style=
"height:100vh;overflow-y:auto;"
scroll-y=
"true"
>
-->
...
...
@@ -89,7 +89,7 @@ import shopPopup from '@/components/basicTool/shop-popup/index.vue'
import
text
from
'@/components/content/text'
import
imgText
from
'@/components/content/imgText'
import
videoPlayer
from
'@/components/content/videoPlayer'
import
{
setTabBarActive
,
checkTabbarPage
}
from
"../../utils/mayi.js"
;
import
{
setTabBarActive
,
checkTabbarPage
,
themeColor
}
from
"../../utils/mayi.js"
;
const
app
=
getApp
();
export
default
{
...
...
@@ -97,6 +97,10 @@ export default {
return
{
pageInfo
:
{},
pageData
:
{},
themeColor
:{
'--main-color'
:
""
,
'--minor-color'
:
""
,
}
};
},
components
:{
...
...
@@ -166,6 +170,13 @@ export default {
that
.
init
(
params
);
};
}
if
(
themeColor
[
'--main-color'
]
!=
'#ffffff'
){
this
.
themeColor
=
themeColor
}
else
{
this
.
mpApp
.
themeColorCallBack
=
(
res
)
=>
{
this
.
themeColor
=
res
}
}
},
onShow
()
{
setTabBarActive
.
bind
(
this
)(
checkTabbarPage
(
'/'
));
...
...
static/nativeComponents/GoodsList/GoodsItem/index.wxss
View file @
451c0cc8
...
...
@@ -16,7 +16,7 @@ image{
.goods-item-child {
position: relative;
overflow: hidden;
background: #fff
fff
;
background: #fff;
}
.goodsRowList .goods-item-child{
display: flex;
...
...
@@ -88,7 +88,7 @@ align-items: flex-start;
color: #fff;
}
.goodsPicture .saleWay .saleWayBg{
background:
#eee
;
background:
var(--main-color)
;
position: absolute;
top: 0;
left: 0;
...
...
@@ -256,7 +256,7 @@ align-items: flex-start;
right: 0;
bottom: 0;
border-radius: 30rpx;
background-color:
#333
;
background-color:
var(--main-color)
;
width: 140rpx;
white-space: nowrap;
padding: 8rpx 20rpx;
...
...
static/nativeComponents/TimeLimitedDiscount/activityListItem/index.wxss
View file @
451c0cc8
...
...
@@ -26,7 +26,6 @@
height: 100%;
}
.countDown {
padding: 4rpx 10rpx;
justify-content: flex-end;
font-size: 24rpx;
color: #666;
...
...
static/nativeComponents/TimeLimitedDiscount/index.wxss
View file @
451c0cc8
...
...
@@ -96,7 +96,7 @@
}
.goods-item-child .info .allPrice .btn {
font-size: 24rpx;
background:
#333
;
background:
var(--main-color)
;
padding: 8rpx;
color: #fff;
border-radius: 10rpx;
...
...
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