From d92cdeb052543a565361fa333c3123f22a581b0b Mon Sep 17 00:00:00 2001
From: meo <18801474720@163.com>
Date: Thu, 1 Aug 2019 18:43:47 +0800
Subject: [PATCH] =?UTF-8?q?[=E4=BC=98=E6=83=A0=E5=88=B8][=E5=A2=9E?=
=?UTF-8?q?=E5=8A=A0]:[=E5=A2=9E=E5=8A=A0=E4=BC=98=E6=83=A0=E5=88=B8?=
=?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5=E6=8C=89=E9=92=AE]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/navbar/navbar.wxss | 2 +-
pages/coupon/detail/index.js | 12 +++++++++---
pages/coupon/detail/index.json | 3 ++-
pages/coupon/detail/index.wxml | 1 +
4 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/components/navbar/navbar.wxss b/components/navbar/navbar.wxss
index 868dfdb..70ba951 100644
--- a/components/navbar/navbar.wxss
+++ b/components/navbar/navbar.wxss
@@ -15,7 +15,7 @@
.capsule {
margin-left: 10px;
height: 32px;
- border: 2px solid #f2f2f2;
+ border: 1px solid #f2f2f2;
border-radius: 60px;
display: flex;
background: #fbfbfd;
diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js
index 913e5ed..b8679c0 100644
--- a/pages/coupon/detail/index.js
+++ b/pages/coupon/detail/index.js
@@ -1,3 +1,4 @@
+const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px'
var config = require("../../../config/config.js");
var app = getApp();
const Http = require("../../../utils/HttpBasics");
@@ -5,6 +6,7 @@ const util = require("../../../utils/util");
const imgurl = require("../../../utils/imgurl");
Page({
data: {
+ navigationBarHeight,
homeSelectedO: imgurl.homeSelectedO.url,
isshowposter:false,//是否显示分享弹框
fenxiangUrl: imgurl.fenxiang.url,
@@ -82,7 +84,8 @@ Page({
limitCondition:"",
minLimit:0,
maxLimit:0,
- dispressEndDate:false
+ dispressEndDate:false,
+ barTitle:""
},
/**
* 显示分享弹框
@@ -488,8 +491,11 @@ Page({
* 将优惠券优惠卡的详情的BarTitle
* 设置成券的名称
*/
- wx.setNavigationBarTitle({
- title: res.data.title
+ // wx.setNavigationBarTitle({
+ // title: res.data.title
+ // })
+ that.setData({
+ barTitle: res.data.title
})
var EndTime = res.data.validStartDate;
var NowTime = new Date().getTime();
diff --git a/pages/coupon/detail/index.json b/pages/coupon/detail/index.json
index ee480c2..9972df0 100644
--- a/pages/coupon/detail/index.json
+++ b/pages/coupon/detail/index.json
@@ -1,6 +1,7 @@
{
"usingComponents": {
- "c-shareposter": "../../../../components/shareposter/index"
+ "c-shareposter": "../../../../components/shareposter/index",
+ "navbar": "../../../../components/navbar/navbar"
},
"navigationBarTitleText": "",
"backgroundColor":"#f4f4f4",
diff --git a/pages/coupon/detail/index.wxml b/pages/coupon/detail/index.wxml
index ed47be0..2a62260 100644
--- a/pages/coupon/detail/index.wxml
+++ b/pages/coupon/detail/index.wxml
@@ -1,3 +1,4 @@
+