فهرست منبع

feat:修复订单列表一键支付、余额不显示问题

LuoDLeo 2 سال پیش
والد
کامیت
49af4bcc10
2فایلهای تغییر یافته به همراه9 افزوده شده و 4 حذف شده
  1. 5 3
      orderPages/orderDetail/index.vue
  2. 4 1
      pages/order/index.vue

+ 5 - 3
orderPages/orderDetail/index.vue

@@ -277,11 +277,12 @@ export default {
     onLoad(e) {
         this.orderId = e.id
         this.getOrderDetailByOrderId(e.id)
-        this.userInfo = uni.getStorageSync('userInfo')
-
+        this.getUserInfo();
     },
     methods: {
-
+      getUserInfo() {
+        this.userInfo = uni.getStorageSync('userInfo');
+      },
         balancePay(){
 
             let that = this;
@@ -361,6 +362,7 @@ export default {
         },
 
         qenPayInfo(){
+          this.getUserInfo();
             let orderServiceIds = []
             this.order.child.forEach(i=>{
                 if (i.tick){

+ 4 - 1
pages/order/index.vue

@@ -206,7 +206,9 @@
 
 		methods: {
 
-
+      getUserInfo() {
+        this.userInfo = uni.getStorageSync('userInfo');
+      },
 
 			balancePay(){
 
@@ -246,6 +248,7 @@
 			},
 
 			openPay(order){
+        this.getUserInfo();
 				this.$api.oneClickPay({
 					orderId:order.orderId
 				}).then(res=>{