fix:修复bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
import * as R from "ramda";
|
||||
const { t } = useI18n();
|
||||
// @ts-ignore
|
||||
import {debounce} from "throttle-debounce";
|
||||
import { debounce } from "throttle-debounce";
|
||||
// @ts-ignore
|
||||
import Config from "@/config";
|
||||
|
||||
@@ -24,10 +24,10 @@ const handleSubmit = debounce(Config.debounceLongTime, submit, {
|
||||
</script>
|
||||
<script>
|
||||
// @ts-ignore
|
||||
import {debounce} from "throttle-debounce";
|
||||
import { debounce } from "throttle-debounce";
|
||||
// @ts-ignore
|
||||
import Config from "@/config";
|
||||
import {appUserCardSavePost} from "@/service";
|
||||
import { appUserCardSavePost } from "@/service";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -37,7 +37,7 @@ export default {
|
||||
},
|
||||
onLoad() {
|
||||
console.log('onLoad')
|
||||
// @ts-ignore
|
||||
// @ts-ignore
|
||||
this.handleSuccess = debounce(Config.debounceLongTime, this.handleSuccess, {
|
||||
atBegin: true
|
||||
})
|
||||
@@ -59,11 +59,17 @@ export default {
|
||||
body: params
|
||||
})
|
||||
console.log('handleSuccess', res)
|
||||
|
||||
await uni.showToast({
|
||||
icon: 'none',
|
||||
title: 'The credit card was added successfully.'
|
||||
})
|
||||
if (uni.getStorageSync('UNI_LOCALE') == 'zh-Hans') {
|
||||
await uni.showToast({
|
||||
icon: 'none',
|
||||
title: '信用卡添加成功'
|
||||
})
|
||||
} else {
|
||||
await uni.showToast({
|
||||
icon: 'none',
|
||||
title: 'The credit card was added successfully.'
|
||||
})
|
||||
}
|
||||
// const eventChannel = this.getOpenerEventChannel();
|
||||
// const id = res.data
|
||||
// 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-28rpx lh-28rpx text-#999">{{ t('pages-user.card.desc') }}</view>
|
||||
</view>
|
||||
<view class="mt-188rpx px-30rpx py-40rpx bg-#fff" id="payment-form"
|
||||
:prop="isSubmit"
|
||||
:change:prop="addRenderjs.handleSubmit"
|
||||
></view>
|
||||
<view class="mt-188rpx px-30rpx py-40rpx bg-#fff" id="payment-form" :prop="isSubmit"
|
||||
:change:prop="addRenderjs.handleSubmit"></view>
|
||||
|
||||
<!-- 底部确认按钮 -->
|
||||
<fixed-bottom-large-btn
|
||||
class="z-100"
|
||||
fixed
|
||||
:text="t('common.save')"
|
||||
@click="handleSubmit"
|
||||
/>
|
||||
<fixed-bottom-large-btn class="z-100" fixed :text="t('common.save')" @click="handleSubmit" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user