fix:修复bug

This commit is contained in:
2026-02-27 15:26:17 +08:00
parent a1d4e16d83
commit e9655643d6
2 changed files with 27 additions and 28 deletions
+10 -11
View File
@@ -59,11 +59,17 @@ export default {
body: params body: params
}) })
console.log('handleSuccess', res) console.log('handleSuccess', res)
if (uni.getStorageSync('UNI_LOCALE') == 'zh-Hans') {
await uni.showToast({
icon: 'none',
title: '信用卡添加成功'
})
} else {
await uni.showToast({ await uni.showToast({
icon: 'none', icon: 'none',
title: 'The credit card was added successfully.' title: 'The credit card was added successfully.'
}) })
}
// const eventChannel = this.getOpenerEventChannel(); // const eventChannel = this.getOpenerEventChannel();
// const id = res.data // const id = res.data
// eventChannel.emit('acceptDataFromOpenedPage', {...params, id}); // eventChannel.emit('acceptDataFromOpenedPage', {...params, id});
@@ -146,18 +152,11 @@ export default {
<view class="text-32rpx text-#333 font-500 mt-70rpx mb-12rpx">{{ t('pages-user.card.title') }}</view> <view class="text-32rpx text-#333 font-500 mt-70rpx mb-12rpx">{{ t('pages-user.card.title') }}</view>
<view class="text-28rpx lh-28rpx text-#999">{{ t('pages-user.card.desc') }}</view> <view class="text-28rpx lh-28rpx text-#999">{{ t('pages-user.card.desc') }}</view>
</view> </view>
<view class="mt-188rpx px-30rpx py-40rpx bg-#fff" id="payment-form" <view class="mt-188rpx px-30rpx py-40rpx bg-#fff" id="payment-form" :prop="isSubmit"
:prop="isSubmit" :change:prop="addRenderjs.handleSubmit"></view>
:change:prop="addRenderjs.handleSubmit"
></view>
<!-- 底部确认按钮 --> <!-- 底部确认按钮 -->
<fixed-bottom-large-btn <fixed-bottom-large-btn class="z-100" fixed :text="t('common.save')" @click="handleSubmit" />
class="z-100"
fixed
:text="t('common.save')"
@click="handleSubmit"
/>
</view> </view>
</template> </template>
+9 -9
View File
@@ -470,15 +470,15 @@ function getInviteInfo() {
}); });
// 获取支付相关配置 // 获取支付相关配置
getDictFineList({ // getDictFineList({
dictType: "app_config", // dictType: "app_config",
}).then((res) => { // }).then((res) => {
res.data.map((item) => { // res.data.map((item) => {
if (item.dictValue === "stripeKey") { // if (item.dictValue === "stripeKey") {
Config.stripeKey = item.remark; // Config.stripeKey = item.remark;
} // }
}); // });
}); // });
} }
} }
</script> </script>