Showing
1 changed file
with
8 additions
and
6 deletions
| ... | @@ -124,7 +124,7 @@ | ... | @@ -124,7 +124,7 @@ |
| 124 | /> | 124 | /> |
| 125 | </div> | 125 | </div> |
| 126 | 126 | ||
| 127 | - <div> | 127 | + <!-- <div> |
| 128 | <label class="block text-sm text-gray-600 mb-1">电子邮箱</label> | 128 | <label class="block text-sm text-gray-600 mb-1">电子邮箱</label> |
| 129 | <input | 129 | <input |
| 130 | v-model="formData.receive_email" | 130 | v-model="formData.receive_email" |
| ... | @@ -132,10 +132,11 @@ | ... | @@ -132,10 +132,11 @@ |
| 132 | class="w-full px-3 py-2 border border-gray-200 rounded-lg text-sm" | 132 | class="w-full px-3 py-2 border border-gray-200 rounded-lg text-sm" |
| 133 | placeholder="请输入您的邮箱(选填)" | 133 | placeholder="请输入您的邮箱(选填)" |
| 134 | /> | 134 | /> |
| 135 | - </div> | 135 | + </div> --> |
| 136 | 136 | ||
| 137 | <div> | 137 | <div> |
| 138 | - <label class="block text-sm text-gray-600 mb-1">联系地址 <span class="text-red-500">*</span></label> | 138 | + <!-- <label class="block text-sm text-gray-600 mb-1">联系地址 <span class="text-red-500">*</span></label> --> |
| 139 | + <label class="block text-sm text-gray-600 mb-1">联系地址</label> | ||
| 139 | <input | 140 | <input |
| 140 | v-model="formData.receive_address" | 141 | v-model="formData.receive_address" |
| 141 | type="text" | 142 | type="text" |
| ... | @@ -321,9 +322,9 @@ const handleSubmit = async (e) => { | ... | @@ -321,9 +322,9 @@ const handleSubmit = async (e) => { |
| 321 | if (!formData.value.receive_phone?.trim()) { | 322 | if (!formData.value.receive_phone?.trim()) { |
| 322 | throw new Error('请输入手机号码') | 323 | throw new Error('请输入手机号码') |
| 323 | } | 324 | } |
| 324 | - if (!formData.value.receive_address?.trim()) { | 325 | + // if (!formData.value.receive_address?.trim()) { |
| 325 | - throw new Error('请输入联系地址') | 326 | + // throw new Error('请输入联系地址') |
| 326 | - } | 327 | + // } |
| 327 | if (!formData.value.pay_type) { | 328 | if (!formData.value.pay_type) { |
| 328 | throw new Error('请选择支付方式') | 329 | throw new Error('请选择支付方式') |
| 329 | } | 330 | } |
| ... | @@ -340,6 +341,7 @@ const handleSubmit = async (e) => { | ... | @@ -340,6 +341,7 @@ const handleSubmit = async (e) => { |
| 340 | if (result.success) { | 341 | if (result.success) { |
| 341 | orderId.value = result.orderId || '' | 342 | orderId.value = result.orderId || '' |
| 342 | orderComplete.value = true | 343 | orderComplete.value = true |
| 344 | + // TODO: 生成orderid, 并跳转到支付页面 | ||
| 343 | } else { | 345 | } else { |
| 344 | throw new Error(result.message || '支付失败,请重试') | 346 | throw new Error(result.message || '支付失败,请重试') |
| 345 | } | 347 | } | ... | ... |
-
Please register or login to post a comment