@@ -1,3 +1,4 @@ | |||||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||||
let config = require("../../config/config.js"); | let config = require("../../config/config.js"); | ||||
let Http = require("../../utils/HttpBasics"); | let Http = require("../../utils/HttpBasics"); | ||||
const util = require("../../utils/util"); | const util = require("../../utils/util"); | ||||
@@ -8,6 +9,7 @@ Page({ | |||||
* 页面的初始数据 | * 页面的初始数据 | ||||
*/ | */ | ||||
data: { | data: { | ||||
navigationBarHeight, | |||||
linesUrl: imgurl.lines.url, | linesUrl: imgurl.lines.url, | ||||
loadingUrl: imgurl.loading.url, | loadingUrl: imgurl.loading.url, | ||||
wmhome: imgurl.wmhome.url, | wmhome: imgurl.wmhome.url, | ||||
@@ -1,5 +1,6 @@ | |||||
{ | { | ||||
"usingComponents": { | |||||
"usingComponents": { | |||||
"navbar": "../../components/navbar/navbar" | |||||
}, | }, | ||||
"navigationBarTitleText": "限时秒杀" | "navigationBarTitleText": "限时秒杀" | ||||
} | } |
@@ -1,6 +1,7 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<!-- <button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> --> | |||||
<navbar back home background="#fff" text="限时抢购"></navbar> | |||||
<!-- 限时抢购 查看更多对应的页面 --> | <!-- 限时抢购 查看更多对应的页面 --> | ||||
<view wx:if="{{showPage}}"> | |||||
<view wx:if="{{showPage}}" style="padding-top:{{navigationBarHeight}}"> | |||||
<view wx:for="{{list}}" wx:if="{{item.targetA!='end'&&list.length>0}}" class='flashSaleItemWrap' wx:key="index"> | <view wx:for="{{list}}" wx:if="{{item.targetA!='end'&&list.length>0}}" class='flashSaleItemWrap' wx:key="index"> | ||||
<view class='flashSaleItem' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail"> | <view class='flashSaleItem' data-couponId="{{item.couponId}}" data-couponChannelId="{{item.id}}" data-targetAd="{{item.targetAd}}" bindtap="gotodetail"> | ||||
<view class='flashSaleItemTop'> | <view class='flashSaleItemTop'> | ||||