Commit c260202ae7b7a391dc07f51137e99a0b55a1eac3

Authored by wangfan
1 parent df1eacb4

ui fix

@@ -54,12 +54,6 @@ @@ -54,12 +54,6 @@
54 "borderStyle": "", 54 "borderStyle": "",
55 "list": [ 55 "list": [
56 { 56 {
57 - "pagePath": "pages/reserve/index",  
58 - "text": "订座",  
59 - "iconPath": "pages/image/tabicon-reserve.png",  
60 - "selectedIconPath": "pages/image/tabicon-reserve-checked.png"  
61 - },  
62 - {  
63 "pagePath": "pages/customer/list", 57 "pagePath": "pages/customer/list",
64 "text": "日程", 58 "text": "日程",
65 "iconPath": "pages/image/tabicon-schedule.png", 59 "iconPath": "pages/image/tabicon-schedule.png",
@@ -52,8 +52,8 @@ Page({ @@ -52,8 +52,8 @@ Page({
52 /** 52 /**
53 * 用户点击右上角分享 53 * 用户点击右上角分享
54 */ 54 */
55 - onShareAppMessage: function () {  
56 - return this.shareSetting(); 55 + onShareAppMessage: function (e) {
  56 + return this.shareSetting(e);
57 }, 57 },
58 getListData(fouce=false){ 58 getListData(fouce=false){
59 App.Reserve.GetListFromScheAndRes({ 59 App.Reserve.GetListFromScheAndRes({
@@ -112,6 +112,7 @@ Page({ @@ -112,6 +112,7 @@ Page({
112 }, 112 },
113 shareSetting(e){ 113 shareSetting(e){
114 console.log('shareSetting',e) 114 console.log('shareSetting',e)
  115 + let id=e.target.dataset.id
115 //this.data.detail.openid==getApp().openid 116 //this.data.detail.openid==getApp().openid
116 let nickname=""; 117 let nickname="";
117 try{ 118 try{
@@ -120,7 +121,7 @@ Page({ @@ -120,7 +121,7 @@ Page({
120 return { 121 return {
121 //title: (nickname||'')+'给你发了一个邀请,点击查看', 122 //title: (nickname||'')+'给你发了一个邀请,点击查看',
122 title: '你收到一个邀请函,点击查看', 123 title: '你收到一个邀请函,点击查看',
123 - path: '/pages/customer/index?id='+this.id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1', 124 + path: '/pages/customer/index?id='+id+'&fromid='+getApp().openid+'&invite_name='+nickname+'&hasInvitation=1',
124 imageUrl:util.cgi('App.Reserve.MakePic&rid=')+this.id, 125 imageUrl:util.cgi('App.Reserve.MakePic&rid=')+this.id,
125 } 126 }
126 }, 127 },