Ver código fonte

[优惠券][增加]:[增加优惠券返回首页按钮]

tags/河北版C.8.1.01
meo 6 anos atrás
pai
commit
d92cdeb052
4 arquivos alterados com 13 adições e 5 exclusões
  1. +1
    -1
      components/navbar/navbar.wxss
  2. +9
    -3
      pages/coupon/detail/index.js
  3. +2
    -1
      pages/coupon/detail/index.json
  4. +1
    -0
      pages/coupon/detail/index.wxml

+ 1
- 1
components/navbar/navbar.wxss Ver arquivo

@@ -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;


+ 9
- 3
pages/coupon/detail/index.js Ver arquivo

@@ -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();


+ 2
- 1
pages/coupon/detail/index.json Ver arquivo

@@ -1,6 +1,7 @@
{
"usingComponents": {
"c-shareposter": "../../../../components/shareposter/index"
"c-shareposter": "../../../../components/shareposter/index",
"navbar": "../../../../components/navbar/navbar"
},
"navigationBarTitleText": "",
"backgroundColor":"#f4f4f4",


+ 1
- 0
pages/coupon/detail/index.wxml Ver arquivo

@@ -1,3 +1,4 @@
<navbar back home text="{{barTitle}}" background='#fff'></navbar>
<view wx:if="{{showPage}}">
<!-- 券的详情页面 -->
<view class='coupons'>


Carregando…
Cancelar
Salvar