充值方式字段描述
This commit is contained in:
		
							parent
							
								
									cfe9b07fe8
								
							
						
					
					
						commit
						081d251594
					
				@ -281,7 +281,18 @@ export default {
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: '支付方式',
 | 
					          title: '支付方式',
 | 
				
			||||||
          key: 'rechargeWay'
 | 
					          key: 'rechargeWay',
 | 
				
			||||||
 | 
					          render: (h, params) => {
 | 
				
			||||||
 | 
					            if (params.row.rechargeWay === 'ALIPAY') {
 | 
				
			||||||
 | 
					              return h('div', [h('span', {}, '支付宝')]);
 | 
				
			||||||
 | 
					            } else if (params.row.rechargeWay === 'WECHAT') {
 | 
				
			||||||
 | 
					              return h('div', [h('span', {}, '微信')]);
 | 
				
			||||||
 | 
					            } else if (params.row.rechargeWay === 'BANK_TRANSFER') {
 | 
				
			||||||
 | 
					              return h('div', [h('span', {}, '线下转账')]);
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					              return h('div', [h('span', {}, '未知方式')]);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          title: '支付时间',
 | 
					          title: '支付时间',
 | 
				
			||||||
 | 
				
			|||||||
@ -122,6 +122,17 @@
 | 
				
			|||||||
            title: "充值方式",
 | 
					            title: "充值方式",
 | 
				
			||||||
            key: "rechargeWay",
 | 
					            key: "rechargeWay",
 | 
				
			||||||
            width: 120,
 | 
					            width: 120,
 | 
				
			||||||
 | 
					            render: (h, params) => {
 | 
				
			||||||
 | 
					              if (params.row.rechargeWay === 'ALIPAY') {
 | 
				
			||||||
 | 
					                return h('div', [h('span', {}, '支付宝')]);
 | 
				
			||||||
 | 
					              } else if (params.row.rechargeWay === 'WECHAT') {
 | 
				
			||||||
 | 
					                return h('div', [h('span', {}, '微信')]);
 | 
				
			||||||
 | 
					              } else if (params.row.rechargeWay === 'BANK_TRANSFER') {
 | 
				
			||||||
 | 
					                return h('div', [h('span', {}, '线下转账')]);
 | 
				
			||||||
 | 
					              } else {
 | 
				
			||||||
 | 
					                return h('div', [h('span', {}, '未知方式')]);
 | 
				
			||||||
 | 
					              }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            title: "支付状态",
 | 
					            title: "支付状态",
 | 
				
			||||||
 | 
				
			|||||||
@ -78,7 +78,7 @@ export default {
 | 
				
			|||||||
                      color: "red",
 | 
					                      color: "red",
 | 
				
			||||||
                    },
 | 
					                    },
 | 
				
			||||||
                  },
 | 
					                  },
 | 
				
			||||||
                  this.$options.filters.unitPrice(params.row.money, "¥")
 | 
					                  this.$options.filters.unitPrice(-params.row.money, "- ¥")
 | 
				
			||||||
                ),
 | 
					                ),
 | 
				
			||||||
              ]);
 | 
					              ]);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user