Commit f4955d03 by 郑炬波

feat: 优惠券

parent 81dbb618
{ {
"name": "@ydl-packages/toolkit", "name": "@ydl-packages/toolkit",
"version": "1.0.6", "version": "1.0.6-next.1",
"description": "", "description": "",
"main": "./dist/index.umd.js", "main": "./dist/index.umd.js",
"scripts": { "scripts": {
......
...@@ -145,43 +145,43 @@ export const FULL_PAY_METHODS: PayMethod[] = [ ...@@ -145,43 +145,43 @@ export const FULL_PAY_METHODS: PayMethod[] = [
{ {
label: '余额', label: '余额',
value: PayType.BALANCE, value: PayType.BALANCE,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-qb.png', icon: 'https://static.ydlcdn.com/m/order/balance.png',
disabled: false disabled: false
}, },
{ {
label: '微信支付', label: '微信支付',
value: PayType.WECHAT, value: PayType.WECHAT,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-wx.png', icon: 'https://static.ydlcdn.com/m/order/weixinzhifu.png',
disabled: false disabled: false
}, },
{ {
label: '支付宝支付', label: '支付宝',
value: PayType.ALIPAY, value: PayType.ALIPAY,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-zfb.png', icon: 'https://static.ydlcdn.com/m/order/zhifubaozhifu.png',
disabled: false disabled: false
}, },
{ {
label: '微信支付', label: '微信支付',
value: PayType.WECHAT_BALANCE, value: PayType.WECHAT_BALANCE,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-wx.png', icon: 'https://static.ydlcdn.com/m/order/weixinzhifu.png',
disabled: false disabled: false
}, },
{ {
label: '支付宝支付', label: '支付宝',
value: PayType.ALIPAY_BALANCE, value: PayType.ALIPAY_BALANCE,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-zfb.png', icon: 'https://static.ydlcdn.com/m/order/zhifubaozhifu.png',
disabled: false disabled: false
}, },
{ {
label: '花呗支付', label: '花呗',
value: PayType.HUABEI, value: PayType.HUABEI,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-hb.png', icon: 'https://static.ydlcdn.com/m/order/huabei.png',
disabled: false disabled: false
}, },
{ {
label: '花呗支付', label: '花呗',
value: PayType.HUABEI_BALANCE, value: PayType.HUABEI_BALANCE,
icon: 'https://static.ydlcdn.com/m/order/icon-pay-hb.png', icon: 'https://static.ydlcdn.com/m/order/huabei.png',
disabled: false disabled: false
} }
] ]
\ No newline at end of file
...@@ -121,7 +121,7 @@ export class Payment { ...@@ -121,7 +121,7 @@ export class Payment {
case PayType.BALANCE: case PayType.BALANCE:
return { return {
...item, ...item,
label: `余额支付(¥${this.balance})`, label: `余额<span class="balance">(可用¥${this.balance})</span>`,
disabled: this.balance > 0 && this.balance < totalAmount disabled: this.balance > 0 && this.balance < totalAmount
} }
} }
...@@ -152,7 +152,7 @@ export class Payment { ...@@ -152,7 +152,7 @@ export class Payment {
case PayType.BALANCE: case PayType.BALANCE:
return { return {
...item, ...item,
label: `余额支付(¥${payBalance})`, label: `余额<span class="balance">(可用¥${this.balance})</span>`,
disabled: this.balance > 0 && this.balance < totalAmount disabled: this.balance > 0 && this.balance < totalAmount
} }
} }
......
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