Commit 46f8709b by 程智春

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents 99109679 44ea6e4b
...@@ -64,26 +64,27 @@ Component({ ...@@ -64,26 +64,27 @@ Component({
visible: 1 visible: 1
} }
], ],
mm:false, mm: false,
componentData: {}, componentData: {},
show: true, show: true,
mmm : false, mmm: false,
mainColor : '' mainColor: "",
showFlag: "up"
}, },
ready(){ ready() {
if (app.themeColor['--main-color'] != '#ffffff') { if (app.themeColor["--main-color"] != "#ffffff") {
this.setData({ this.setData({
mainColor: app.themeColor['--main-color'] mainColor: app.themeColor["--main-color"]
}) });
} else { } else {
app.themeColorCallBack = (res) => { app.themeColorCallBack = res => {
this.setData({ this.setData({
mainColor: res['--main-color'] mainColor: res["--main-color"]
}) });
} };
} }
console.log(this.data.themeColor,'themeColor') console.log(this.data.themeColor, "themeColor");
if (typeof this.getTabBar === "function" && this.getTabBar()) { if (typeof this.getTabBar === "function" && this.getTabBar()) {
this.getTabBar().setData({ this.getTabBar().setData({
selected: 1 selected: 1
......
...@@ -1389,7 +1389,7 @@ ...@@ -1389,7 +1389,7 @@
/* border-top: 1px solid #e2e2e2; */ /* border-top: 1px solid #e2e2e2; */
} }
.tab-bar-border { /* .tab-bar-border {
background-color: rgba(0, 0, 0, 0.33); background-color: rgba(0, 0, 0, 0.33);
position: absolute; position: absolute;
left: 0; left: 0;
...@@ -1397,7 +1397,7 @@ ...@@ -1397,7 +1397,7 @@
width: 100%; width: 100%;
height: 1px; height: 1px;
transform: scaleY(0.5); transform: scaleY(0.5);
} } */
.tab-bar-item { .tab-bar-item {
flex: 1; flex: 1;
......
...@@ -277,10 +277,10 @@ export default { ...@@ -277,10 +277,10 @@ export default {
(delta>0 && showFlag=='down') || (delta>0 && showFlag=='down') ||
(delta<0 && showFlag=='up') (delta<0 && showFlag=='up')
){ ){
this.beforeScrollTop = afterScrollTop;
return; return;
} }
this.$mp.page.getTabBar().setData({'showFlag':delta>0?'down':'up'}) this.$mp.page.getTabBar().setData({'showFlag':delta>0?'down':'up'})
this.beforeScrollTop = afterScrollTop;
}, },
scrolltolower(){ scrolltolower(){
console.log("scrolltolower") console.log("scrolltolower")
......
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
color: #333; color: #333;
font-weight: bold; font-weight: bold;
text-align: left; text-align: left;
flex: 1;
margin-right: 4rpx;
} }
.topInfo .subheading { .topInfo .subheading {
position: relative; position: relative;
...@@ -53,6 +56,7 @@ ...@@ -53,6 +56,7 @@
.goodsList { .goodsList {
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
flex-wrap: wrap;
} }
.goodsItem { .goodsItem {
box-sizing: border-box; box-sizing: border-box;
...@@ -61,7 +65,7 @@ ...@@ -61,7 +65,7 @@
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: hidden;
background: #fff; background: #fff;
margin: 0 10rpx; margin: 20rpx 10rpx 0;
} }
.goods-item-child .info { .goods-item-child .info {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment