shish 11 miesięcy temu
rodzic
commit
a1f57302a7
1 zmienionych plików z 4 dodań i 6 usunięć
  1. 4 6
      mallApp/src/pages/order/buy.vue

+ 4 - 6
mallApp/src/pages/order/buy.vue

@@ -234,12 +234,10 @@ export default {
       createOrder({...form, ...this.form,hdId:hdId}).then(res => {
       createOrder({...form, ...this.form,hdId:hdId}).then(res => {
         uni.hideLoading()
         uni.hideLoading()
         uni.removeStorageSync("buyGoodsDetil")
         uni.removeStorageSync("buyGoodsDetil")
-
-        this.$util.pageTo({ 
-          url: "/pages/callback/pay",
-          type: 2,
-          query: { pageStatus: 1, ...res.data, hdId:hdId, account:account } 
-        })
+        let orderSn = res.data.orderSn?res.data.orderSn:''
+        let id = res.data.id?res.data.id:0
+        let totalPrice = res.data.totalPrice?res.data.totalPrice:0
+        this.$util.pageTo({url:"/pages/callback/pay?pageStatus=1&orderSn="+orderSn+'&hdId='+hdId+'&account='+account+'&id='+id+'&couponId=0&totalPrice='+totalPrice,type:2})
       }).catch(()=>{
       }).catch(()=>{
         uni.hideLoading()
         uni.hideLoading()
       })
       })