优化结账账单地址判断

This commit is contained in:
pushuo 2022-08-30 11:05:38 +08:00
parent 752200ea93
commit 9212617242
4 changed files with 9 additions and 2 deletions

View File

@ -106,8 +106,8 @@
<div class="title">
<div>
<b>@{{ variant.name[current_language_code] }}</b>
<el-link type="primary" @click="modalVariantOpenButtonClicked(variantIndex, null)">{{ __('admin/product.edit') }}</el-link>
<el-link type="danger" class="ms-2" @click="removeSourceVariant(variantIndex)">{{ __('admin/product.delete') }}</el-link>
<el-link type="primary" @click="modalVariantOpenButtonClicked(variantIndex, null)">{{ __('common.edit') }}</el-link>
<el-link type="danger" class="ms-2" @click="removeSourceVariant(variantIndex)">{{ __('common.delete') }}</el-link>
</div>
<div>
<el-checkbox v-model="variant.isImage" border size="mini" class="me-2 bg-white">{{ __('admin/product.add_variable_image') }}</el-checkbox>

View File

@ -28,6 +28,7 @@ return [
'select_province' => 'Please select province',
'enter_city' => 'Please fill in the city ',
'check_form' => 'Please check that the form is filled out correctly',
'error_payment_address' => 'Please select a billing address',
'payment' => [
'index' => 'Please Pay',

View File

@ -28,6 +28,7 @@ return [
'select_province' => '请选择省份',
'enter_city' => '请填写城市',
'check_form' => '请检查表单是否填写正确',
'error_payment_address' => '请选择账单地址',
'payment' => [
'index' => '请付款',

View File

@ -371,6 +371,11 @@
},
checkedBtnCheckoutConfirm() {
if (!this.form.payment_address_id) {
layer.msg('{{ __('shop/checkout.error_payment_address') }}', ()=>{})
return;
}
$http.post('/checkout/confirm', this.form).then((res) => {
location = 'orders/' + res.number + '/success?type=create'
})