diff --git a/components/navbar/navbar.wxss b/components/navbar/navbar.wxss index 25774b2..f9e767e 100644 --- a/components/navbar/navbar.wxss +++ b/components/navbar/navbar.wxss @@ -5,6 +5,8 @@ left: 0; top: 0; z-index: 400000000; + top:0; + left: 0; } .title-container { diff --git a/pages/spellDetail/index.js b/pages/spellDetail/index.js index 1b03fd3..ee33a28 100644 --- a/pages/spellDetail/index.js +++ b/pages/spellDetail/index.js @@ -1,4 +1,5 @@ // pages/spellDetail/index.js +const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' var config = require("../../config/config.js"); const Http = require("../../utils/HttpBasics"); const imgurl = require("../../utils/imgurl"); @@ -9,6 +10,7 @@ Page({ * 页面的初始数据 */ data: { + navigationBarHeight, orangeImg: imgurl.orange.url, blueImg: imgurl.blue.url, grayImg: imgurl.gray.url, diff --git a/pages/spellDetail/index.json b/pages/spellDetail/index.json index 797f2ef..ad596b9 100644 --- a/pages/spellDetail/index.json +++ b/pages/spellDetail/index.json @@ -1,6 +1,8 @@ { "navigationBarTitleText": "拼团详情", - "usingComponents": {}, + "usingComponents": { + "navbar": "../../components/navbar/navbar" + }, "navigationBarBackgroundColor": "#F4F5F9", "navigationBarTextStyle": "black", "enablePullDownRefresh": true diff --git a/pages/spellDetail/index.wxml b/pages/spellDetail/index.wxml index 25edd26..d17dfc3 100644 --- a/pages/spellDetail/index.wxml +++ b/pages/spellDetail/index.wxml @@ -1,5 +1,6 @@ - + + diff --git a/pages/spellGroup/paySpellGroup/index.js b/pages/spellGroup/paySpellGroup/index.js index 0bb67d2..41a6c34 100644 --- a/pages/spellGroup/paySpellGroup/index.js +++ b/pages/spellGroup/paySpellGroup/index.js @@ -1,4 +1,5 @@ // pages/spellDetail/index.js +const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' var config = require("../../../config/config.js"); const Http = require("../../../utils/HttpBasics"); const imgurl = require("../../../utils/imgurl"); @@ -9,6 +10,7 @@ Page({ * 页面的初始数据 */ data: { + navigationBarHeight, blueImg: imgurl.blue.url, tuanzhang: imgurl.tuanzhang.url, spellBg: imgurl.spellBg.url, diff --git a/pages/spellGroup/paySpellGroup/index.json b/pages/spellGroup/paySpellGroup/index.json index 90c37e2..ad76a62 100644 --- a/pages/spellGroup/paySpellGroup/index.json +++ b/pages/spellGroup/paySpellGroup/index.json @@ -1,5 +1,7 @@ { "navigationBarTitleText": "拼团详情", - "usingComponents": {}, + "usingComponents": { + "navbar": "../../../../components/navbar/navbar" + }, "enablePullDownRefresh": true } \ No newline at end of file diff --git a/pages/spellGroup/paySpellGroup/index.wxml b/pages/spellGroup/paySpellGroup/index.wxml index 7ec7ed5..c093290 100644 --- a/pages/spellGroup/paySpellGroup/index.wxml +++ b/pages/spellGroup/paySpellGroup/index.wxml @@ -1,5 +1,6 @@ - + + diff --git a/pages/spellGroup/spellGroup.js b/pages/spellGroup/spellGroup.js index f6dbcb6..112f5a4 100644 --- a/pages/spellGroup/spellGroup.js +++ b/pages/spellGroup/spellGroup.js @@ -1,3 +1,4 @@ +const navigationBarHeight = (getApp().statusBarHeight + 50) + 'px' var config = require("../../config/config.js"); const Http = require("../../utils/HttpBasics"); const imgurl = require("../../utils/imgurl"); @@ -7,6 +8,7 @@ Page({ * 页面的初始数据 */ data: { + navigationBarHeight, noCoupon: imgurl.noCoupon.url, bannerUrl: imgurl.banner.url, loadingUrl: imgurl.loading.url, diff --git a/pages/spellGroup/spellGroup.json b/pages/spellGroup/spellGroup.json index 113445a..e1283b0 100644 --- a/pages/spellGroup/spellGroup.json +++ b/pages/spellGroup/spellGroup.json @@ -6,6 +6,7 @@ "usingComponents": { "c-banner": "../../components/spellbanner/index", "i-tab": "../../../dist/tab/index", - "i-tabs": "../../../dist/tabs/index" + "i-tabs": "../../../dist/tabs/index", + "navbar": "../../components/navbar/navbar" } } \ No newline at end of file diff --git a/pages/spellGroup/spellGroup.wxml b/pages/spellGroup/spellGroup.wxml index 9830145..f4ab12a 100644 --- a/pages/spellGroup/spellGroup.wxml +++ b/pages/spellGroup/spellGroup.wxml @@ -1,5 +1,5 @@ - - + +