作者 wumengyu

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

1 { 1 {
2 - "navigationBarTitleText": "关于火柴一盒" 2 + "navigationBarTitleText": "关于火柴西路"
3 } 3 }
1 <!--pages/my/about/about.wxml--> 1 <!--pages/my/about/about.wxml-->
2 <view class="content"> 2 <view class="content">
3 <view class="main"> 3 <view class="main">
4 - <!--<view class="title">关于火柴一盒</view>--> 4 + <!--<view class="title">关于火柴西路</view>-->
5 <!--<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>--> 5 <!--<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>-->
6 <import src="../../../wxParse/wxParse.wxml" /> 6 <import src="../../../wxParse/wxParse.wxml" />
7 <template is='wxParse' data='{{wxParseData:content.nodes}}' /> 7 <template is='wxParse' data='{{wxParseData:content.nodes}}' />
@@ -24,7 +24,7 @@ Page({ @@ -24,7 +24,7 @@ Page({
24 }) 24 })
25 }, 25 },
26 getScreenHeight() { 26 getScreenHeight() {
27 - console.log('获取屏幕', wx.getSystemInfoSync()); 27 + // console.log('获取屏幕', wx.getSystemInfoSync());
28 this.setData({screenHeight:wx.getSystemInfoSync().windowHeight}) 28 this.setData({screenHeight:wx.getSystemInfoSync().windowHeight})
29 }, 29 },
30 //获取我的钱包详情 30 //获取我的钱包详情
@@ -35,12 +35,13 @@ Page({ @@ -35,12 +35,13 @@ Page({
35 activeId:this.data.id, 35 activeId:this.data.id,
36 }; 36 };
37 app.post(url, params, {}).then((res) => { 37 app.post(url, params, {}).then((res) => {
38 - console.log('获取我的钱包详情', res); 38 + // console.log('获取我的钱包详情', res);
39 if (+res.code === 1) { 39 if (+res.code === 1) {
40 this.setData({ 40 this.setData({
41 detail: res.data.list, 41 detail: res.data.list,
42 join:res.data.join, 42 join:res.data.join,
43 }); 43 });
  44 + wx.setNavigationBarTitle({title:this.data.detail.type===1?'活动票':'餐票'});
44 // console.log(self.data.questionList); 45 // console.log(self.data.questionList);
45 } 46 }
46 }); 47 });
@@ -10,6 +10,7 @@ Page({ @@ -10,6 +10,7 @@ Page({
10 }, 10 },
11 goDetail(e) { 11 goDetail(e) {
12 const id = e.currentTarget.dataset.id; 12 const id = e.currentTarget.dataset.id;
  13 + // console.log('id', id);
13 wx.navigateTo({url:'/pages/my/my-wallet/detail/detail?id=' + id}) 14 wx.navigateTo({url:'/pages/my/my-wallet/detail/detail?id=' + id})
14 }, 15 },
15 //获取我的钱包 16 //获取我的钱包
@@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
64 <view class="btn-box" bindtap="goAbout"> 64 <view class="btn-box" bindtap="goAbout">
65 <image src="../../images/about@2x.png" class="icon-address"></image> 65 <image src="../../images/about@2x.png" class="icon-address"></image>
66 <view class="right"> 66 <view class="right">
67 - <view class="text">关于火柴一盒</view> 67 + <view class="text">关于火柴西路</view>
68 <image src="../../images/arrow@2x.png" class="arrow"></image> 68 <image src="../../images/arrow@2x.png" class="arrow"></image>
69 </view> 69 </view>
70 </view> 70 </view>