fix:修复bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
import * as R from "ramda";
|
import * as R from "ramda";
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {debounce} from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import Config from "@/config";
|
import Config from "@/config";
|
||||||
|
|
||||||
@@ -24,10 +24,10 @@ const handleSubmit = debounce(Config.debounceLongTime, submit, {
|
|||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import {debounce} from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import Config from "@/config";
|
import Config from "@/config";
|
||||||
import {appUserCardSavePost} from "@/service";
|
import { appUserCardSavePost } from "@/service";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -37,7 +37,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
console.log('onLoad')
|
console.log('onLoad')
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.handleSuccess = debounce(Config.debounceLongTime, this.handleSuccess, {
|
this.handleSuccess = debounce(Config.debounceLongTime, this.handleSuccess, {
|
||||||
atBegin: true
|
atBegin: true
|
||||||
})
|
})
|
||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user