Commit c81354a55497fedb01776e43ed981cd20fca23c9

Authored by boyang
2 parents 66ed627c 4ec8c0af

Merge branch 'dev' into 'master'

Dev



See merge request !1
components/MobileProductDetail.vue
@@ -163,9 +163,9 @@ @@ -163,9 +163,9 @@
163 </td> 163 </td>
164 <td v-if="item.priceShow" class="td"> 164 <td v-if="item.priceShow" class="td">
165 <div style="color: #df3931">${{ item.price }}</div> 165 <div style="color: #df3931">${{ item.price }}</div>
166 - <s style="font-size: 13px; color: #757575">  
167 - ${{ item.originPrice }}</s  
168 - > 166 +<!-- <s style="font-size: 13px; color: #757575">-->
  167 +<!-- ${{ item.originPrice }}</s-->
  168 +<!-- >-->
169 </td> 169 </td>
170 <!-- <td class="td"> 170 <!-- <td class="td">
171 <v-btn 171 <v-btn
components/ProductDetail.vue
@@ -158,9 +158,9 @@ @@ -158,9 +158,9 @@
158 <div style="color: #df3931"> 158 <div style="color: #df3931">
159 {{ item.price + " " + item.priceUnit }} 159 {{ item.price + " " + item.priceUnit }}
160 </div> 160 </div>
161 - <s style="font-size: 13px; color: #757575">{{  
162 - item.originPrice + " " + item.priceUnit  
163 - }}</s> 161 +<!-- <s style="font-size: 13px; color: #757575">{{-->
  162 +<!-- item.originPrice + " " + item.priceUnit-->
  163 +<!-- }}</s>-->
164 </td> 164 </td>
165 <td class="td"> 165 <td class="td">
166 <v-btn 166 <v-btn
deploy/prod2.sh
1 #!/bin/bash 1 #!/bin/bash
2 # 变量定义 2 # 变量定义
3 -LAST_TAG="1.0.72"  
4 -TAG="1.0.73" 3 +LAST_TAG="1.0.74"
  4 +TAG="1.0.75"
5 TARGET_PATH="/root/web/canrud-outside-nuxt-front" 5 TARGET_PATH="/root/web/canrud-outside-nuxt-front"
6 DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front" 6 DOCKERFILE_PATH="/root/web/canrud-outside-nuxt-front/canrud-nuxt-front"
7 IMAGE_NAME="canrud-outside-front" 7 IMAGE_NAME="canrud-outside-front"
pages/contact.vue
@@ -254,7 +254,13 @@ const state = reactive({ @@ -254,7 +254,13 @@ const state = reactive({
254 }); 254 });
255 255
256 const handleSubmit = async () => { 256 const handleSubmit = async () => {
257 - // Removed verification condition since recaptcha is commented out 257 + // Directly check if any field is empty
  258 + if (!state.firstName || !state.lastName || !state.email || !state.text) {
  259 + // At least one field is empty, stop here
  260 + return;
  261 + }
  262 +
  263 + // All fields have values, proceed with form submission
258 let { data } = await useAsyncData( 264 let { data } = await useAsyncData(
259 "sendEmail", 265 "sendEmail",
260 () => 266 () =>
@@ -265,7 +271,6 @@ const handleSubmit = async () =&gt; { @@ -265,7 +271,6 @@ const handleSubmit = async () =&gt; {
265 lastName: state.lastName, 271 lastName: state.lastName,
266 email: state.email, 272 email: state.email,
267 message: state.text, 273 message: state.text,
268 - subject: "",  
269 }, 274 },
270 }), 275 }),
271 { 276 {