优化结账账单地址判断
This commit is contained in:
parent
752200ea93
commit
9212617242
|
|
@ -106,8 +106,8 @@
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div>
|
<div>
|
||||||
<b>@{{ variant.name[current_language_code] }}</b>
|
<b>@{{ variant.name[current_language_code] }}</b>
|
||||||
<el-link type="primary" @click="modalVariantOpenButtonClicked(variantIndex, null)">{{ __('admin/product.edit') }}</el-link>
|
<el-link type="primary" @click="modalVariantOpenButtonClicked(variantIndex, null)">{{ __('common.edit') }}</el-link>
|
||||||
<el-link type="danger" class="ms-2" @click="removeSourceVariant(variantIndex)">{{ __('admin/product.delete') }}</el-link>
|
<el-link type="danger" class="ms-2" @click="removeSourceVariant(variantIndex)">{{ __('common.delete') }}</el-link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<el-checkbox v-model="variant.isImage" border size="mini" class="me-2 bg-white">{{ __('admin/product.add_variable_image') }}</el-checkbox>
|
<el-checkbox v-model="variant.isImage" border size="mini" class="me-2 bg-white">{{ __('admin/product.add_variable_image') }}</el-checkbox>
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ return [
|
||||||
'select_province' => 'Please select province',
|
'select_province' => 'Please select province',
|
||||||
'enter_city' => 'Please fill in the city ',
|
'enter_city' => 'Please fill in the city ',
|
||||||
'check_form' => 'Please check that the form is filled out correctly',
|
'check_form' => 'Please check that the form is filled out correctly',
|
||||||
|
'error_payment_address' => 'Please select a billing address',
|
||||||
|
|
||||||
'payment' => [
|
'payment' => [
|
||||||
'index' => 'Please Pay',
|
'index' => 'Please Pay',
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ return [
|
||||||
'select_province' => '请选择省份',
|
'select_province' => '请选择省份',
|
||||||
'enter_city' => '请填写城市',
|
'enter_city' => '请填写城市',
|
||||||
'check_form' => '请检查表单是否填写正确',
|
'check_form' => '请检查表单是否填写正确',
|
||||||
|
'error_payment_address' => '请选择账单地址',
|
||||||
|
|
||||||
'payment' => [
|
'payment' => [
|
||||||
'index' => '请付款',
|
'index' => '请付款',
|
||||||
|
|
|
||||||
|
|
@ -371,6 +371,11 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
checkedBtnCheckoutConfirm() {
|
checkedBtnCheckoutConfirm() {
|
||||||
|
if (!this.form.payment_address_id) {
|
||||||
|
layer.msg('{{ __('shop/checkout.error_payment_address') }}', ()=>{})
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$http.post('/checkout/confirm', this.form).then((res) => {
|
$http.post('/checkout/confirm', this.form).then((res) => {
|
||||||
location = 'orders/' + res.number + '/success?type=create'
|
location = 'orders/' + res.number + '/success?type=create'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue