作者 wumengyu

优化火柴一盒,优化钱包,

{
"navigationBarTitleText": "关于火柴一盒"
"navigationBarTitleText": "关于火柴西路"
}
\ No newline at end of file
... ...
<!--pages/my/about/about.wxml-->
<view class="content">
<view class="main">
<!--<view class="title">关于火柴一盒</view>-->
<!--<view class="title">关于火柴西路</view>-->
<!--<view class="detail">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Asperiores debitis, fuga nisi officia quae soluta sunt vero. Debitis dolorem ea eos est laudantium, modi non reiciendis sapiente ut, vero voluptate?</view>-->
<import src="../../../wxParse/wxParse.wxml" />
<template is='wxParse' data='{{wxParseData:content.nodes}}' />
... ...
... ... @@ -24,7 +24,7 @@ Page({
})
},
getScreenHeight() {
console.log('获取屏幕', wx.getSystemInfoSync());
// console.log('获取屏幕', wx.getSystemInfoSync());
this.setData({screenHeight:wx.getSystemInfoSync().windowHeight})
},
//获取我的钱包详情
... ... @@ -35,12 +35,13 @@ Page({
activeId:this.data.id,
};
app.post(url, params, {}).then((res) => {
console.log('获取我的钱包详情', res);
// console.log('获取我的钱包详情', res);
if (+res.code === 1) {
this.setData({
detail: res.data.list,
join:res.data.join,
});
wx.setNavigationBarTitle({title:this.data.detail.type===1?'活动票':'餐票'});
// console.log(self.data.questionList);
}
});
... ...
... ... @@ -10,6 +10,7 @@ Page({
},
goDetail(e) {
const id = e.currentTarget.dataset.id;
// console.log('id', id);
wx.navigateTo({url:'/pages/my/my-wallet/detail/detail?id=' + id})
},
//获取我的钱包
... ...
... ... @@ -64,7 +64,7 @@
<view class="btn-box" bindtap="goAbout">
<image src="../../images/about@2x.png" class="icon-address"></image>
<view class="right">
<view class="text">关于火柴一盒</view>
<view class="text">关于火柴西路</view>
<image src="../../images/arrow@2x.png" class="arrow"></image>
</view>
</view>
... ...