Commit 68673523 by 张卓

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

parents 5c78f6f2 dcabe71f
...@@ -14,30 +14,6 @@ ...@@ -14,30 +14,6 @@
"pages/tabBar4/main", "pages/tabBar4/main",
"pages/changeAdr/main" "pages/changeAdr/main"
], ],
"tabBar": {
"custom": true,
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/home/main"
},
{
"pagePath": "pages/tabBar1/main"
},
{
"pagePath": "pages/tabBar2/main"
},
{
"pagePath": "pages/tabBar3/main"
},
{
"pagePath": "pages/tabBar4/main"
}
]
},
"usingComponents": {}, "usingComponents": {},
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
...@@ -77,7 +77,9 @@ ...@@ -77,7 +77,9 @@
:class="{ lastchild: swiperNum == index + 1 }" :class="{ lastchild: swiperNum == index + 1 }"
@click="onclickProduct(goodsList[index])" @click="onclickProduct(goodsList[index])"
> >
<goodsItem :datas="datas" :items="item" :style="{'margin-left':datas.componentData.proGap*2+'px'}"></goodsItem> <div :style="{'margin-left':datas.componentData.proGap*2+'px'}">
<goodsItem :datas="datas" :items="item"></goodsItem>
</div>
</div> </div>
</div> </div>
<!-- 瀑布流 --> <!-- 瀑布流 -->
......
...@@ -104,6 +104,8 @@ ...@@ -104,6 +104,8 @@
<div v-if="applySucessEntry"> <div v-if="applySucessEntry">
<apply-sucess-entry></apply-sucess-entry> <apply-sucess-entry></apply-sucess-entry>
</div> </div>
<custom-tab-bar></custom-tab-bar>
</div> </div>
</template> </template>
...@@ -397,9 +399,9 @@ export default { ...@@ -397,9 +399,9 @@ export default {
this.beforeScrollTop = afterScrollTop; this.beforeScrollTop = afterScrollTop;
return; return;
} }
this.$mp.page.getTabBar().animation({'showFlag':delta>0?'down':'up'}) // this.$mp.page.getTabBar().animation({'showFlag':delta>0?'down':'up'})
console.log(showFlag,'set296' ) // console.log(showFlag,'set296' )
// this.$mp.page.getTabBar().setData({'showFlag':delta>0?'down':'up'}) this.$mp.page.getTabBar().setData({'showFlag':delta>0?'down':'up'})
}, },
scrolltolower(){ scrolltolower(){
console.log("scrolltolower") console.log("scrolltolower")
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
"van-tab": "/static/vant/tab/index", "van-tab": "/static/vant/tab/index",
"banner": "/static/nativeComponents/Banner/index", "banner": "/static/nativeComponents/Banner/index",
"goods-list": "/static/nativeComponents/GoodsList/index", "goods-list": "/static/nativeComponents/GoodsList/index",
"custom-tab-bar": "/static/nativeComponents/custom-tab-bar/index",
"time-limited-discount": "/static/nativeComponents/TimeLimitedDiscount/index", "time-limited-discount": "/static/nativeComponents/TimeLimitedDiscount/index",
"waterfall-flow": "/static/nativeComponents/module/WaterfallFlow/index", "waterfall-flow": "/static/nativeComponents/module/WaterfallFlow/index",
"van-button": "/static/vant/button/index", "van-button": "/static/vant/button/index",
......
...@@ -322,7 +322,7 @@ export default { ...@@ -322,7 +322,7 @@ export default {
// wx.navigateBack() // wx.navigateBack()
// return // return
if(isTabbarIndex>-1){ if(isTabbarIndex>-1){
wx.switchTab({ wx.reLaunch({
url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`, url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`,
}) })
}else{ }else{
......
...@@ -49,7 +49,8 @@ export function $themeToLink(data, option) { ...@@ -49,7 +49,8 @@ export function $themeToLink(data, option) {
return return
} }
isTabbarIndex = isTabbarIndex == 0 ? checkTabbarPage('/') : isTabbarIndex isTabbarIndex = isTabbarIndex == 0 ? checkTabbarPage('/') : isTabbarIndex
wx.switchTab({
wx.reLaunch({
url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`, url: parseLink == '/' ? '/pages/home/main' : `/pages/tabBar${isTabbarIndex}/main`,
}) })
return return
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
{{datas.singleItemActivityName}} {{datas.singleItemActivityName}}
</view> </view>
<view class="cover"> <view class="cover">
<image src="{{datas.singleItemActivityCoverImage}}"></image> <image mode="center" src="{{datas.singleItemActivityCoverImage}}"></image>
</view> </view>
<view class="countDown flex" wx:if="{{countDownShow}}"> <view class="countDown flex" wx:if="{{countDownShow}}">
<van-count-down <van-count-down
......
...@@ -232,7 +232,7 @@ const componentOptions = { ...@@ -232,7 +232,7 @@ const componentOptions = {
new Date(item.endTime.replace(/-/g, "/")).getTime() - new Date(item.endTime.replace(/-/g, "/")).getTime() -
new Date().getTime(); new Date().getTime();
item.singleItemActivityCoverImage = DFSImg( item.singleItemActivityCoverImage = DFSImg(
item.singleItemActivityCoverImage item.singleItemActivityCoverImage,400,400
); );
item.isStart = item.isStart =
new Date(item.startTime.replace(/-/g, "/")).getTime() > new Date(item.startTime.replace(/-/g, "/")).getTime() >
...@@ -245,6 +245,7 @@ const componentOptions = { ...@@ -245,6 +245,7 @@ const componentOptions = {
if (hideNum == actList.length) { if (hideNum == actList.length) {
this.setData({ hideAll: true }); this.setData({ hideAll: true });
} }
this.setData({ isLoading: false });
} }
} }
}); });
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"activity-list-item":"./activityListItem/index", "activity-list-item":"./activityListItem/index",
"van-count-down": "/static/vant/count-down/index" "van-count-down": "/static/vant/count-down/index",
"skeleton-block": "../module/SkeletonBlock/index"
} }
} }
...@@ -119,12 +119,21 @@ ...@@ -119,12 +119,21 @@
</view> </view>
<!-- 活动列表 --> <!-- 活动列表 -->
<activity-list-item <activity-list-item
wx:if="{{datas.componentData.dimension == 1}}" wx:if="{{datas.componentData.dimension == 1 && !isLoading}}"
wx:for="{{datas.componentData.actList}}" wx:for="{{datas.componentData.actList}}"
wx:key="index" wx:key="index"
datas="{{item}}" datas="{{item}}"
num="{{index}}" num="{{index}}"
countDownShow="{{datas.componentData['countDownShow']}}" countDownShow="{{datas.componentData['countDownShow']}}"
></activity-list-item> ></activity-list-item>
<view wx:if="{{isLoading}}">
<skeleton-block
loading="{{isLoading}}"
type="{{'row'}}"
height="60"
row="1"
col="1"
></skeleton-block>
</view>
</view> </view>
...@@ -1175,6 +1175,7 @@ ...@@ -1175,6 +1175,7 @@
bottom: 0; bottom: 0;
left: 0; left: 0;
background: #f5f5f4; background: #f5f5f4;
z-index:888;
/* border-top: 1px solid #e2e2e2; */ /* border-top: 1px solid #e2e2e2; */
} }
......
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