Commit 880f5751 authored by zhengke's avatar zhengke

no message

parent ff62e740
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<view style="margin-top:30px"> <view style="margin-top:30px">
<u-button @click="getDataInfo" type="error" shape="circle" :loading="loading">支付</u-button> <u-button @click="Pay" type="error" shape="circle" :loading="loading">支付</u-button>
</view> </view>
</view> </view>
</u-popup> </u-popup>
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
closePay() { closePay() {
this.$emit('closePay'); this.$emit('closePay');
}, },
getDataInfo() { Pay() {
let msg = { let msg = {
'pay_channel':this.payType,//网页打开支付宝支付:alipay_wap 支付宝正扫:alipay_qr 支付宝app:alipay 微信小程序:wx_lite 微信公众号:wx_pub 'pay_channel':this.payType,//网页打开支付宝支付:alipay_wap 支付宝正扫:alipay_qr 支付宝app:alipay 微信小程序:wx_lite 微信公众号:wx_pub
'open_id':this.payType=='wx_lite'?this.payInfo.OpenId:'', 'open_id':this.payType=='wx_lite'?this.payInfo.OpenId:'',
...@@ -106,7 +106,6 @@ export default { ...@@ -106,7 +106,6 @@ export default {
}, },
// 微信支付 // 微信支付
wxPay(payData) { wxPay(payData) {
console.log(payData,'----payData')
let that = this let that = this
uni.showLoading({ uni.showLoading({
title:'支付中...' title:'支付中...'
...@@ -119,19 +118,19 @@ export default { ...@@ -119,19 +118,19 @@ export default {
"signType": payData.signType, //微信签名方式: "signType": payData.signType, //微信签名方式:
"paySign": payData.paySign, //微信签名 "paySign": payData.paySign, //微信签名
'success':function(res){ 'success':function(res){
uni.showLoading({ uni.hideLoading()
title:JSON.stringify(res) uni.showToast({
title:'支付成功'
}) })
uni.navigateTo({
url: '/pages/reserve/offline-success?payInfo='+JSON.stringify(that.payInfo)
});
}, },
'fail':function(res){ 'fail':function(res){
uni.showLoading({ uni.hideLoading()
title:JSON.stringify(res)
})
}, },
'complete':function(res){} 'complete':function(res){
uni.showToast({
title:res.errMsg
})
}
}) })
}, },
} }
......
...@@ -393,7 +393,7 @@ ...@@ -393,7 +393,7 @@
IsFormShoppingCart: 2, IsFormShoppingCart: 2,
adressInfo: {}, adressInfo: {},
payInfo: { payInfo: {
OpenId: 'ow_7I5XC1-RGwwk8QANBmWKYKmOc', OpenId: '',//ow_7I5XC1-RGwwk8QANBmWKYKmOc
OrderId: '', OrderId: '',
OrderPayType: 1, OrderPayType: 1,
GoodsName: '' GoodsName: ''
...@@ -505,10 +505,10 @@ ...@@ -505,10 +505,10 @@
// 提交订单 // 提交订单
submitOrderHandler() { submitOrderHandler() {
let that = this; let that = this;
that.adressInfo.Consignee = '测试' // that.adressInfo.Consignee = '测试'
that.adressInfo.ShoppingAddress = '四川成都龙泉驿1' // that.adressInfo.ShoppingAddress = '四川成都龙泉驿1'
that.JJSWStuId = '10724'; // that.JJSWStuId = '10724';
that.Thename="HK"; // that.Thename="HK";
if (that.adressInfo.Consignee == '') { if (that.adressInfo.Consignee == '') {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '请选择收货信息!', title: '请选择收货信息!',
......
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