Commit bf37d94f authored by jiangjiantao's avatar jiangjiantao

bugfix

parent 0be00890
......@@ -74,7 +74,7 @@
<view class="operating-bottom">
<text class="total-num">共{{totalQuantity}}件商品,合计金额</text>
<text class="pay-price">¥{{totalPrice}}</text>
<button class="go-pay" size="default" type="primary" onTap="goPay">收款</button>
<button class="go-pay" size="default" type="primary" onTap="directPayment">收款</button>
</view>
</view>
</view>
......
......@@ -149,6 +149,11 @@ Page({
context.setData({
storeName:res.data.storeName
});
}else if(res.action == ACTION_DIRECT_PAYMENT){
if(res.data != null){
context.setData({totalPrice:res.data})
}
context.goPage('waitoperate');
}
}
});
......@@ -275,7 +280,6 @@ Page({
data: commonRequest,
success: (res) => {
console.log("发送直接收款事件到前屏小程序 成功 ===》" + JSON.stringify(res));
this.setData({totalPrice:payment})
},
fail: (res) => {
console.log("发送收款事件到前屏小程序 失败 ===》 " + JSON.stringify(res));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment