@@ -1,3 +1,4 @@ | |||||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||||
let config = require("../../config/config.js"); | let config = require("../../config/config.js"); | ||||
let app = getApp(); | let app = getApp(); | ||||
const Http = require("../../utils/HttpBasics"); | const Http = require("../../utils/HttpBasics"); | ||||
@@ -5,6 +6,7 @@ const util = require("../../utils/util"); | |||||
const imgurl = require("../../utils/imgurl"); | const imgurl = require("../../utils/imgurl"); | ||||
Page({ | Page({ | ||||
data: { | data: { | ||||
navigationBarHeight, | |||||
data: { | data: { | ||||
bgColor:"#fff" | bgColor:"#fff" | ||||
}, | }, | ||||
@@ -1,3 +1,6 @@ | |||||
{ | { | ||||
"navigationBarTitleText": "活动详情" | |||||
"navigationBarTitleText": "活动详情", | |||||
"usingComponents": { | |||||
"navbar": "../../components/navbar/navbar" | |||||
} | |||||
} | } |
@@ -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 text="专题活动" background='#fff'></navbar> | |||||
<!-- banner活动详情页面 --> | <!-- banner活动详情页面 --> | ||||
<view class='coupons' style='background:{{data.bgColor}};height:{{winHeight}}'> | |||||
<view class='coupons' style='background:{{data.bgColor}};height:{{winHeight}};padding-top:{{navigationBarHeight}}'> | |||||
<view class="coupons-body"> | <view class="coupons-body"> | ||||
<view class='banner'> | <view class='banner'> | ||||
<image src='{{data.advert}}' mode='widthFix'></image> | <image src='{{data.advert}}' mode='widthFix'></image> | ||||