充值功能支付跳转
This commit is contained in:
		
							parent
							
								
									b48acb9691
								
							
						
					
					
						commit
						0adbde45b9
					
				@ -215,7 +215,7 @@ export default {
 | 
				
			|||||||
                      color: 'green'
 | 
					                      color: 'green'
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                  },
 | 
					                  },
 | 
				
			||||||
                  params.row.money
 | 
					                  this.$options.filters.unitPrice(params.row.money, '+ ¥')
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
              ]);
 | 
					              ]);
 | 
				
			||||||
            } else if (params.row.money < 0) {
 | 
					            } else if (params.row.money < 0) {
 | 
				
			||||||
@ -227,7 +227,7 @@ export default {
 | 
				
			|||||||
                      color: 'red'
 | 
					                      color: 'red'
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                  },
 | 
					                  },
 | 
				
			||||||
                  params.row.money
 | 
					                  this.$options.filters.unitPrice(0 - params.row.money, '- ¥')
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
              ]);
 | 
					              ]);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -252,7 +252,10 @@ export default {
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: '充值金额',
 | 
					          title: '充值金额',
 | 
				
			||||||
          key: 'rechargeMoney'
 | 
					          key: 'rechargeMoney',
 | 
				
			||||||
 | 
					          render: (h, params) => {
 | 
				
			||||||
 | 
					            return h('div', [h('span', this.$options.filters.unitPrice(params.row.rechargeMoney, '¥'))]);
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: '支付状态',
 | 
					          title: '支付状态',
 | 
				
			||||||
@ -281,7 +284,9 @@ export default {
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
          title: '提现金额',
 | 
					          title: '提现金额',
 | 
				
			||||||
          key: 'applyMoney',
 | 
					          key: 'applyMoney',
 | 
				
			||||||
          width: 120
 | 
					          render: (h, params) => {
 | 
				
			||||||
 | 
					            return h('div', [h('span', this.$options.filters.unitPrice(params.row.applyMoney, '¥'))]);
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: '提现状态',
 | 
					          title: '提现状态',
 | 
				
			||||||
@ -392,9 +397,10 @@ export default {
 | 
				
			|||||||
        if (valid) {
 | 
					        if (valid) {
 | 
				
			||||||
          recharge(this.formData).then((res) => {
 | 
					          recharge(this.formData).then((res) => {
 | 
				
			||||||
            if (res.message === 'success') {
 | 
					            if (res.message === 'success') {
 | 
				
			||||||
              // TODO 根据返回的值跳转到收银台进行支付,一下是输出sn
 | 
					              this.$router.push({
 | 
				
			||||||
              console.warn(res.result.rechargeSn);
 | 
					                path: '/payment',
 | 
				
			||||||
              this.modal = false;
 | 
					                query: { orderType: 'RECHARGE', sn: res.result.rechargeSn }
 | 
				
			||||||
 | 
					              });
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user