Showing
4 changed files
with
11 additions
and
14 deletions
| @@ -35,9 +35,9 @@ App({ | @@ -35,9 +35,9 @@ App({ | ||
| 35 | this.getSystemInfo(); | 35 | this.getSystemInfo(); |
| 36 | this.openid=await this.getOpenid(); | 36 | this.openid=await this.getOpenid(); |
| 37 | console.log('this.openid',this.openid,mta); | 37 | console.log('this.openid',this.openid,mta); |
| 38 | - | ||
| 39 | }, | 38 | }, |
| 40 | onShow:async function(){ | 39 | onShow:async function(){ |
| 40 | + this._getOpenid(); | ||
| 41 | if (wx.canIUse('getUpdateManager')) { | 41 | if (wx.canIUse('getUpdateManager')) { |
| 42 | const updateManager = wx.getUpdateManager(); | 42 | const updateManager = wx.getUpdateManager(); |
| 43 | updateManager.onCheckForUpdate(function (res) { | 43 | updateManager.onCheckForUpdate(function (res) { |
| @@ -456,7 +456,7 @@ Page({ | @@ -456,7 +456,7 @@ Page({ | ||
| 456 | this.checkedTables={}; | 456 | this.checkedTables={}; |
| 457 | App.Reserve.Detail({rid: _id, openid: ''}, 'clear') | 457 | App.Reserve.Detail({rid: _id, openid: ''}, 'clear') |
| 458 | wx.navigateTo({ | 458 | wx.navigateTo({ |
| 459 | - url: 'b_invitation?id=' + _id, | 459 | + url: util.http_build_query({id:_id,tplid:1},'b_invitation'), |
| 460 | }); | 460 | }); |
| 461 | } else { | 461 | } else { |
| 462 | util.toast(res.msg, 'none') | 462 | util.toast(res.msg, 'none') |
| @@ -33,20 +33,17 @@ Page({ | @@ -33,20 +33,17 @@ Page({ | ||
| 33 | onShareAppMessage: function () { | 33 | onShareAppMessage: function () { |
| 34 | this.selectComponent('#notice').close(); | 34 | this.selectComponent('#notice').close(); |
| 35 | var obj=this.data.bookInfo; | 35 | var obj=this.data.bookInfo; |
| 36 | - var path='/pages/customer/index?id='+this.data.bookInfo.id; | ||
| 37 | - if(this.enter_params){ | ||
| 38 | - path+='&fromid='+this.enter_params.seller_openid | ||
| 39 | - } | ||
| 40 | - let nickname=""; | ||
| 41 | - try{ | ||
| 42 | - nickname='"'+this.sc.seller_user.nickname+'"'; | ||
| 43 | - }catch(e){} | ||
| 44 | - let imageUrl=util.cgi('index.php?service=App.Reserve.MakePic&rid=').replace('?s=','')+obj.id | ||
| 45 | - console.log('App.Reserve.MakePic',imageUrl); | 36 | + let path=util.http_build_query({ |
| 37 | + id:this.data.bookInfo.id, | ||
| 38 | + fromid:getApp().openid, | ||
| 39 | + hasSellerShare:1, | ||
| 40 | + hasInvitation:1, | ||
| 41 | + tplid:1 | ||
| 42 | + },'/pages/customer/index') | ||
| 46 | return { | 43 | return { |
| 47 | //title: (nickname||'')+'给你发送了一个订座信息,点击查看详情', | 44 | //title: (nickname||'')+'给你发送了一个订座信息,点击查看详情', |
| 48 | title: '点击查看详情,发邀请函', | 45 | title: '点击查看详情,发邀请函', |
| 49 | - path: path+'&hasInvitation=1&hasSellerShare=1', | 46 | + path: path, |
| 50 | imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E5%95%86%E5%8A%A1.jpg', | 47 | imageUrl:'http://qn.colorcun.com/manager-invitation/wx2/%E9%A2%84%E5%AE%9A%E5%AE%89%E6%8E%92-%E5%95%86%E5%8A%A1.jpg', |
| 51 | success: function (res) { | 48 | success: function (res) { |
| 52 | console.log(res,666666) | 49 | console.log(res,666666) |
| @@ -123,7 +123,7 @@ Page({ | @@ -123,7 +123,7 @@ Page({ | ||
| 123 | fromid:getApp().openid, | 123 | fromid:getApp().openid, |
| 124 | hasSellerShare:1, | 124 | hasSellerShare:1, |
| 125 | hasInvitation:1, | 125 | hasInvitation:1, |
| 126 | - },'/pages/manager-invitation/display') | 126 | + },'/pages/customer/index') |
| 127 | return { | 127 | return { |
| 128 | title: '点击查看详情,发邀请函', | 128 | title: '点击查看详情,发邀请函', |
| 129 | path: path, | 129 | path: path, |
-
Please register or login to post a comment