@@ -1,3 +1,4 @@ | |||||
const navigationBarHeight = (getApp().statusBarHeight + 44) + 'px' | |||||
const util = require("../../utils/util.js"); | const util = require("../../utils/util.js"); | ||||
const config = require("../../config/config.js"); | const config = require("../../config/config.js"); | ||||
const Http = require("../../utils/HttpBasics"); | const Http = require("../../utils/HttpBasics"); | ||||
@@ -5,6 +6,7 @@ const imgurl = require("../../utils/imgurl"); | |||||
let app = getApp(); | let app = getApp(); | ||||
Page({ | Page({ | ||||
data: { | data: { | ||||
navigationBarHeight, | |||||
tabData:[ | tabData:[ | ||||
{ | { | ||||
title: '全部', | title: '全部', | ||||
@@ -1,7 +1,8 @@ | |||||
{ | { | ||||
"usingComponents": { | "usingComponents": { | ||||
"i-tab": "../../../dist/tab/index", | "i-tab": "../../../dist/tab/index", | ||||
"i-tabs": "../../../dist/tabs/index" | |||||
"i-tabs": "../../../dist/tabs/index", | |||||
"navbar": "../../components/navbar/navbar" | |||||
}, | }, | ||||
"navigationBarTitleText": "消费卡", | "navigationBarTitleText": "消费卡", | ||||
"navigationBarBackgroundColor": "#F4F5F9" | "navigationBarBackgroundColor": "#F4F5F9" |
@@ -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="消费卡"></navbar> | |||||
<!-- 折扣卡list页面 --> | <!-- 折扣卡list页面 --> | ||||
<view class='content'> | |||||
<view class='content' style="padding-top:{{navigationBarHeight}}"> | |||||
<view class="market clearfix"> | <view class="market clearfix"> | ||||
<view class='tabss'> | <view class='tabss'> | ||||
<i-tabs current="{{current_scroll}}" scroll bindchange="handleChangeScroll"> | <i-tabs current="{{current_scroll}}" scroll bindchange="handleChangeScroll"> | ||||
@@ -1,6 +1,3 @@ | |||||
{ | { | ||||
"usingComponents": { | |||||
}, | |||||
"navigationBarTitleText": "" | |||||
"navigationBarTitleText": "小游戏" | |||||
} | } |
@@ -159,7 +159,7 @@ Page({ | |||||
couponId: "" + that.data.couponId | couponId: "" + that.data.couponId | ||||
}; | }; | ||||
} | } | ||||
wx.navigateTo({ | |||||
wx.redirectTo({ | |||||
url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | url: '/pages/game/index?url=' + that.data.staticGamedata.url + "&id=" + that.data.staticGamedata.id + "&gameId=" + that.data.staticGamedata.gameId, | ||||
}) | }) | ||||
}) | }) | ||||