Commit 784967b03526b279002396c382225c3c2c565729

Authored by vking
1 parent 262c733a

pay

@@ -143,4 +143,12 @@ Page({ @@ -143,4 +143,12 @@ Page({
143 }).show(); 143 }).show();
144 App.PushMsg.SendUrgeMsg({rid:this.data.checkout.rid}) 144 App.PushMsg.SendUrgeMsg({rid:this.data.checkout.rid})
145 }, 145 },
  146 + pay(){
  147 + App.PayOnline.CombineTransactions().then(res=>{
  148 + res.data.timeStamp+=""
  149 + wx.requestPayment({
  150 + ...res.data,
  151 + })
  152 + })
  153 + },
146 }) 154 })
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 <view class="list-name">备注信息</view> 80 <view class="list-name">备注信息</view>
81 <view class="list-val">{{checkout.remark}}</view> 81 <view class="list-val">{{checkout.remark}}</view>
82 </view> 82 </view>
83 - <view class="checkout-get" bindtap="">立即支付{{checkout.price-user.price>0?checkout.price-user.price:0}}元</view> 83 + <view class="checkout-get" bindtap="pay">立即支付{{checkout.price-user.price>0?checkout.price-user.price:0}}元</view>
84 </view> 84 </view>
85 <view class="money-tips">注:消费清单,离店时请到前台索要;</view> 85 <view class="money-tips">注:消费清单,离店时请到前台索要;</view>
86 </block> 86 </block>
@@ -25,12 +25,15 @@ @@ -25,12 +25,15 @@
25 <card hasListShare bindevent="gotoDetail" 25 <card hasListShare bindevent="gotoDetail"
26 seller="{{detail.seller}}" detail="{{detail}}"> 26 seller="{{detail.seller}}" detail="{{detail}}">
27 <view slot="listshare" style="height:52rpx;line-height:52rpx;margin-top:4rpx;"> 27 <view slot="listshare" style="height:52rpx;line-height:52rpx;margin-top:4rpx;">
28 - <userinfo wx:if="{{detail.hasOwner}}"  
29 - data-id="{{detail.id}}"  
30 - binduserinfo="gotoDetailHan">  
31 - <!--<view class="opt-button">{{detail.hasOwner?'邀请':'分享日程'}}</view>-->  
32 - <view class="opt-button">邀请同行好友</view>  
33 - </userinfo> 28 + <view class="flex-rr" wx:if="{{detail.hasOwner}}">
  29 + <userinfo
  30 + data-id="{{detail.id}}"
  31 + binduserinfo="gotoDetailHan">
  32 + <!--<view class="opt-button">{{detail.hasOwner?'邀请':'分享日程'}}</view>-->
  33 + <view class="opt-button">邀请同行好友</view>
  34 + </userinfo>
  35 + <navigator url="/pack-checkout/pages/index?rid={{detail.id}}&sid={{detail.seller.id}}"><view class="opt-button">提前买单</view></navigator>
  36 + </view>
34 <userinfo-share wx:else="{{}}" 37 <userinfo-share wx:else="{{}}"
35 id="userinfo-share-{{detail.id}}" 38 id="userinfo-share-{{detail.id}}"
36 binduserinfo="userinfo" 39 binduserinfo="userinfo"
@@ -69,6 +69,7 @@ Page({ @@ -69,6 +69,7 @@ Page({
69 hasOnLoad:false, 69 hasOnLoad:false,
70 hasGetLocation:false,//定位信息 70 hasGetLocation:false,//定位信息
71 hasAppHide:false,//app切至后台 71 hasAppHide:false,//app切至后台
  72 + param:{},
72 onLoad: async function (options) { 73 onLoad: async function (options) {
73 this.reportTime=new Date() 74 this.reportTime=new Date()
74 75
@@ -690,6 +691,7 @@ Page({ @@ -690,6 +691,7 @@ Page({
690 return; 691 return;
691 } 692 }
692 let i=e.detail.current 693 let i=e.detail.current
  694 + if(typeof this.data.markers[i]=='undefined') return;
693 this.activeSellerID=this.data.markers[i].id 695 this.activeSellerID=this.data.markers[i].id
694 console.log('bindtransition',this.sellersNow,e.detail.current,this.sellersNow[e.detail.current],this.activeSellerID); 696 console.log('bindtransition',this.sellersNow,e.detail.current,this.sellersNow[e.detail.current],this.activeSellerID);
695 // this.activeSellerID=this.sellersNow[i]; 697 // this.activeSellerID=this.sellersNow[i];
@@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@
97 "id": 6, 97 "id": 6,
98 "name": "pages/customer/index", 98 "name": "pages/customer/index",
99 "pathName": "pages/customer/index", 99 "pathName": "pages/customer/index",
100 - "query": "id=58295&fromid=1111&hasInvitation=2", 100 + "query": "id=58295&fromid=1111&hasInvitation=1",
101 "scene": 1044, 101 "scene": 1044,
102 "shareInfo": { 102 "shareInfo": {
103 "groupName": "测试模拟群1", 103 "groupName": "测试模拟群1",
@@ -466,4 +466,8 @@ export default { @@ -466,4 +466,8 @@ export default {
466 }, 466 },
467 //催促消息 467 //催促消息
468 'App.PushMsg.SendUrgeMsg':null, 468 'App.PushMsg.SendUrgeMsg':null,
  469 + //构造支付参数
  470 + 'App.PayOnline.CombineTransactions':{
  471 + openid:'openid',
  472 + },
469 } 473 }