对于Jquery来说并不是很好,所以要花大量时间调整GF datepicker来完成我想要的事情。一个过滤器告诉日期选择器仅提供一个特定的工作日(在这种情况下为星期四),并且可以正常工作。另一个有一些日期应该被禁用并且也可以工作-本身就可以。两者虽然不能一起工作,但只有最后一个能起作用。长话短说..正如我从其他帖子中学到的那样,我不知何故需要将它们合并在一起..但尚未完成。
任何提示将不胜感激。这是两个过滤器
let amount = NSDecimalNumber(mantissa: 8421900, exponent: -2, isNegative: false)
let fee = NSDecimalNumber(mantissa: 121906, exponent: -2, isNegative: false)
let total = amount.adding(fee)
let request = PKPaymentRequest()
request.merchantIdentifier = applePayMerchantIds
request.supportedNetworks = supportedCards
request.merchantCapabilities = applePayCapability
request.countryCode = applePayCountryCode
request.currencyCode = currency
request.requiredBillingAddressFields = PKAddressField.all
request.paymentSummaryItems = [
PKPaymentSummaryItem(label: "Amount", amount: amount),
PKPaymentSummaryItem(label: "Fee", amount: fee),
PKPaymentSummaryItem(label: "Total", amount: total),
]