Commit f4955d03 by 郑炬波

feat: 优惠券

parent 81dbb618
{
"name": "@ydl-packages/toolkit",
"version": "1.0.6",
"version": "1.0.6-next.1",
"description": "",
"main": "./dist/index.umd.js",
"scripts": {
......
......@@ -145,43 +145,43 @@ export const FULL_PAY_METHODS: PayMethod[] = [
{
label: '余额',
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
},
{
label: '微信支付',
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
},
{
label: '支付宝支付',
label: '支付宝',
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
},
{
label: '微信支付',
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
},
{
label: '支付宝支付',
label: '支付宝',
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
},
{
label: '花呗支付',
label: '花呗',
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
},
{
label: '花呗支付',
label: '花呗',
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
}
]
\ No newline at end of file
......@@ -121,7 +121,7 @@ export class Payment {
case PayType.BALANCE:
return {
...item,
label: `余额支付(¥${this.balance})`,
label: `余额<span class="balance">(可用¥${this.balance})</span>`,
disabled: this.balance > 0 && this.balance < totalAmount
}
}
......@@ -152,7 +152,7 @@ export class Payment {
case PayType.BALANCE:
return {
...item,
label: `余额支付(¥${payBalance})`,
label: `余额<span class="balance">(可用¥${this.balance})</span>`,
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