兴业银行修改

This commit is contained in:
zhangguoping 2024-11-01 16:45:10 +08:00
parent a64ebf908b
commit 964dde74b2
1 changed files with 41 additions and 5 deletions

View File

@ -85,7 +85,7 @@
7适用场景仅限奈雪线下门店出示会员码或"奈雪的茶"小程序自取/外卖使用不适用于第三方外送服务 7适用场景仅限奈雪线下门店出示会员码或"奈雪的茶"小程序自取/外卖使用不适用于第三方外送服务
</view> </view>
<view> <view>
8优惠券仅限单笔订单当次使用不与其他优惠活动共享不可兑换现金不设找零不可拆分使用优惠券抵扣金额不予积分不适用运费 8优惠券仅限单笔订单当次使用不与其他优惠活动共享不可兑换现金不设找零不可拆分使用优惠券抵扣金额不予积分不适用运费
</view> </view>
</view> </view>
<view class="rules-text-title">售后服务</view> <view class="rules-text-title">售后服务</view>
@ -128,18 +128,54 @@ export default {
rulesFun() { rulesFun() {
this.showRules = true this.showRules = true
}, },
btnFun(type) { setPageValue(obj, defaultValue) {
if (/(iPhone|iPod|iPad|Android).*cib-ebank*/i.test(navigator.userAgent)) { // eslint-disable-next-line eqeqeq
if (obj == undefined || obj == null || obj == '' || obj.indexOf('undefined') >= 0) {
return defaultValue
} else {
return obj
}
},
nextPage(pageOptions) {
if (
window.plugins &&
window.plugins.UrlProcessPlugin &&
window.plugins.UrlProcessPlugin.nextStep
) {
const options = {
url: pageOptions.url, // url
needLogin: this.setPageValue(pageOptions.needLogin, 'false'),
pageFlag: this.setPageValue(pageOptions.pageFlag, '2'),
titleStr: this.setPageValue(pageOptions.titleStr, ''),
statusColor: this.setPageValue(pageOptions.statusColor, '1'),
foreColor: this.setPageValue(pageOptions.foreColor, '#ff333333'),
subTitle: this.setPageValue(pageOptions.subTitle, undefined),
subTitleColor: this.setPageValue(pageOptions.subTitleColor, undefined),
backColor: this.setPageValue(pageOptions.backColor, '#ffffffff'),
tipsNaviType: this.setPageValue(pageOptions.tipsNaviType, undefined),
tipsStr: this.setPageValue(pageOptions.tipsStr, undefined),
tipsUrl: this.setPageValue(pageOptions.tipsUrl, undefined),
tipsPicName: this.setPageValue(pageOptions.tipsPicName, undefined),
prevStepUrlStr: '',
isLastPage: this.setPageValue(pageOptions.isLastPage, 'false'),
closeCount: this.setPageValue(pageOptions.closeCount, '2'),
dipIn: this.setPageValue(pageOptions.dipIn, 'false'),
}
window.plugins.UrlProcessPlugin.nextStep.action(options)
} else if (/(iPhone|iPod|iPad|Android).*cib-ebank*/i.test(navigator.userAgent)) {
const params = { const params = {
url: `${this.btnUrl}&skuId=${type}`, url: pageOptions.url,
title: '', title: '',
hiddenTitle: true, hiddenTitle: true,
} }
window.plugins.urlProcessPlugin.nextStepJson(null, JSON.stringify(params)) window.plugins.urlProcessPlugin.nextStepJson(null, JSON.stringify(params))
} else { } else {
window.location.href = `${this.btnUrl}&skuId=${type}` window.location.href = pageOptions.url
} }
}, },
btnFun(type) {
this.nextPage({ url: `${this.btnUrl}&skuId=${type}`, pageFlag: '4', dipIn: 'true' })
},
videoFun(type) { videoFun(type) {
this.show = true this.show = true
this.videoSrc = this.videoSrcList[type - 1] this.videoSrc = this.videoSrcList[type - 1]