支付提交订单重复支付处理

master
gongfuxiang 2024-12-17 16:04:46 +08:00
parent 0ebc3e7438
commit 8ddb8d66c3
4 changed files with 19 additions and 7 deletions

View File

@ -995,7 +995,7 @@
uni.request({
url: app.globalData.get_request_url('index', 'buy'),
method: 'POST',
data: data,
data: {...data, ...{is_cart_init: 1}},
dataType: 'json',
success: (res) => {
if (res.data.code == 0) {

View File

@ -399,7 +399,9 @@
//
buy_datetime_info: {},
//
buy_extraction_contact_info: {},
buy_extraction_contact_info: {},
//
is_order_submit_payment: 0,
//
plugins_coupon_data: null,
plugins_coupon_list: [],
@ -516,7 +518,12 @@
},
//
init() {
init() {
//
if(this.is_order_submit_payment == 1) {
uni.stopPullDownRefresh();
return false;
}
//
if (this.params == null) {
this.setData({
@ -953,7 +960,10 @@
});
} else {
this.$refs.payment.pay_handle(res.data.order_ids.join(','), res.data.payment_id, this.payment_list);
}
}
this.setData({
is_order_submit_payment: 1
});
},
//

View File

@ -332,7 +332,7 @@
<view class="botton-nav bg-white round pa oh padding-sm flex-row jc-sb align-c" :style="botton_nav_style+(cart_status ? 'z-index:5;' : '')">
<view class="flex-row align-c flex-1 flex-width">
<view class="cart pr cp top-sm padding-left-sm" @tap="cart_event">
<iconfont name="icon-applet-shop-acquiesce" size="36rpx" color="#666"></iconfont>
<iconfont name="icon-menu-cart" size="36rpx" color="#666"></iconfont>
<view v-if="(cart || null) != null && (cart.buy_number || 0) != 0" class="badge-icon pa">
<component-badge :propNumber="cart.buy_number"></component-badge>
</view>

View File

@ -66,8 +66,8 @@
<view v-if="(user.user_name_view || null) != null" class="cr-base">{{ user.user_name_view }}</view>
</view>
<block v-if="current_opt_form == 'bind'">
<view class="margin-top-xxxl padding-top-xxxl">
<button class="bg-main-pair br-main-pair cr-white round text-size" type="warn" hover-class="none" data-value="bind_verify" @tap="opt_form_event">{{ $t('login.login.31r6p2') }}</button>
<view v-if="(common_user_verify_bind_mobile_list.length > 0 && common_user_verify_bind_mobile_list.indexOf(client_value) != -1) || (common_user_onekey_bind_mobile_list.length > 0 && common_user_onekey_bind_mobile_list.indexOf(client_value) != -1)" class="margin-top-xxxl padding-top-xxxl">
<button v-if="common_user_verify_bind_mobile_list.length > 0 && common_user_verify_bind_mobile_list.indexOf(client_value) != -1" class="bg-main-pair br-main-pair cr-white round text-size" type="warn" hover-class="none" data-value="bind_verify" @tap="opt_form_event">{{ $t('login.login.31r6p2') }}</button>
<button v-if="common_user_onekey_bind_mobile_list.length > 0 && common_user_onekey_bind_mobile_list.indexOf(client_value) != -1" class="margin-top-xxl bg-main br-main cr-white round text-size" type="default" hover-class="none" open-type="getPhoneNumber" @getphonenumber="confirm_phone_number_event">{{ $t('login.login.p3kxy2') }}</button>
</view>
<!-- 当前还没有账号的情况下才可以操作登录和注册绑定 -->
@ -453,6 +453,7 @@
//
is_refreshed_base_data: 0,
is_exist_base_data: 0,
common_user_verify_bind_mobile_list: [],
common_user_onekey_bind_mobile_list: [],
home_site_logo_square: null,
home_user_login_type: [],
@ -678,6 +679,7 @@
if ((status || false) == true) {
this.setData({
home_site_logo_square: app.globalData.get_config('config.home_site_logo_square'),
common_user_verify_bind_mobile_list: app.globalData.get_config('config.common_user_verify_bind_mobile_list', []),
common_user_onekey_bind_mobile_list: app.globalData.get_config('config.common_user_onekey_bind_mobile_list', []),
home_user_login_type: app.globalData.get_config('config.home_user_login_type'),
home_user_reg_type: app.globalData.get_config('config.home_user_reg_type'),