Merge branch 'dev' of https://code.itechtop.cn/yangyang/dance-pc into dev
Showing
9 changed files
with
23 additions
and
11 deletions
| ... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
| 52 | </el-card> | 52 | </el-card> |
| 53 | </el-col> | 53 | </el-col> |
| 54 | </el-row> | 54 | </el-row> |
| 55 | <el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description="" /> | 55 | <el-empty v-show="!loading&&list.length===0" :image="`/img/order_no.png`" :image-size="228" description="" /> |
| 56 | <div style="height: 50px" /> | 56 | <div style="height: 50px" /> |
| 57 | </div> | 57 | </div> |
| 58 | </div> | 58 | </div> | ... | ... |
| ... | @@ -73,7 +73,7 @@ | ... | @@ -73,7 +73,7 @@ |
| 73 | <div v-if="needPersonNum>0" class="fakeFormItem"> | 73 | <div v-if="needPersonNum>0" class="fakeFormItem"> |
| 74 | <label>需填写{{ needPersonNum }}位游客</label> | 74 | <label>需填写{{ needPersonNum }}位游客</label> |
| 75 | <div> | 75 | <div> |
| 76 | <div v-show="needPersonNum > hasPersonNum">还需填写{{ needPersonNum-hasPersonNum }}位游客</div> | 76 | <label class="text-warning" v-show="needPersonNum > hasPersonNum">还需填写{{ needPersonNum-hasPersonNum }}位游客</label> |
| 77 | </div> | 77 | </div> |
| 78 | </div> | 78 | </div> |
| 79 | <div v-for="(n,i) in gateList" :key="i"> | 79 | <div v-for="(n,i) in gateList" :key="i"> |
| ... | @@ -237,6 +237,7 @@ const checkPersonNum = () => { | ... | @@ -237,6 +237,7 @@ const checkPersonNum = () => { |
| 237 | _.each(gateList.value, item => { | 237 | _.each(gateList.value, item => { |
| 238 | needPersonNum.value += item.count | 238 | needPersonNum.value += item.count |
| 239 | _.each(item.personArr, person => { | 239 | _.each(item.personArr, person => { |
| 240 | console.log(person) | ||
| 240 | if (person.customerId) { | 241 | if (person.customerId) { |
| 241 | hasPersonNum.value++ | 242 | hasPersonNum.value++ |
| 242 | } | 243 | } |
| ... | @@ -359,8 +360,10 @@ function submit() { | ... | @@ -359,8 +360,10 @@ function submit() { |
| 359 | 360 | ||
| 360 | submitOrderScenic(form.value).then(res => { | 361 | submitOrderScenic(form.value).then(res => { |
| 361 | if (res.data) { | 362 | if (res.data) { |
| 362 | if (res.data.roomNum == -100) { | 363 | if (res.data.orderId == -400) { |
| 363 | ElMessage.warning(language.value == 0 ? '剩余票数不足' : 'The remaining number of rooms is insufficient') | 364 | ElMessage.warning(language.value == 0 ? '剩余票数不足' : 'The remaining number of rooms is insufficient') |
| 365 | } else if (res.data.orderId == -300) { | ||
| 366 | ElMessage.warning(language.value == 0 ? '提交失败,请稍后再试' : 'Submission failed, please try again later') | ||
| 364 | } else { | 367 | } else { |
| 365 | // 去付钱 | 368 | // 去付钱 |
| 366 | router.push({ | 369 | router.push({ | ... | ... |
This diff is collapsed.
Click to expand it.
| ... | @@ -123,7 +123,7 @@ function popRemark(type) { | ... | @@ -123,7 +123,7 @@ function popRemark(type) { |
| 123 | (form.value.isMealView == 0 && type == '4') || | 123 | (form.value.isMealView == 0 && type == '4') || |
| 124 | (form.value.isPhotoView == 0 && type == '5') || | 124 | (form.value.isPhotoView == 0 && type == '5') || |
| 125 | (form.value.isTicket == 0 && type == '0') || | 125 | (form.value.isTicket == 0 && type == '0') || |
| 126 | (form.value.isTravel == 0 && type == '8') | 126 | (form.value.isScenicView == 0 && type == '8') |
| 127 | ) { | 127 | ) { |
| 128 | building() | 128 | building() |
| 129 | return | 129 | return | ... | ... |
| ... | @@ -172,6 +172,8 @@ | ... | @@ -172,6 +172,8 @@ |
| 172 | </el-button> | 172 | </el-button> |
| 173 | 173 | ||
| 174 | <span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox"> | 174 | <span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox"> |
| 175 | <br v-if="language == 1"> | ||
| 176 | <br v-if="language == 1"> | ||
| 175 | <el-checkbox | 177 | <el-checkbox |
| 176 | v-model="checked" | 178 | v-model="checked" |
| 177 | :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" | 179 | :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" |
| ... | @@ -481,11 +483,13 @@ function submitForm(n) { | ... | @@ -481,11 +483,13 @@ function submitForm(n) { |
| 481 | 483 | ||
| 482 | function commit() { | 484 | function commit() { |
| 483 | if (language.value == 0 && insuranceFlag.value == 2 && checked.value == '0') { | 485 | if (language.value == 0 && insuranceFlag.value == 2 && checked.value == '0') { |
| 484 | ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事放帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?', | 486 | ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事方帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?', |
| 485 | language.value == 0 ? '提示' : 'Tip', { | 487 | language.value == 0 ? '提示' : 'Tip', { |
| 486 | confirmButtonText: language.value == 0 ? '是' : 'Yes', | 488 | confirmButtonText: language.value == 0 ? '是' : 'Yes', |
| 487 | cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next', | 489 | cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next', |
| 488 | type: 'warning' | 490 | type: 'warning', |
| 491 | closeOnClickModal: false, | ||
| 492 | showClose: false | ||
| 489 | }).then(() => { | 493 | }).then(() => { |
| 490 | checked.value = '1' | 494 | checked.value = '1' |
| 491 | router.push({ | 495 | router.push({ |
| ... | @@ -909,7 +913,7 @@ function handelInsurance() { | ... | @@ -909,7 +913,7 @@ function handelInsurance() { |
| 909 | 913 | ||
| 910 | .father { | 914 | .father { |
| 911 | position: relative; | 915 | position: relative; |
| 912 | height: 50px; | 916 | height: 85px; |
| 913 | } | 917 | } |
| 914 | 918 | ||
| 915 | .checkbox { | 919 | .checkbox { | ... | ... |
| ... | @@ -183,6 +183,8 @@ | ... | @@ -183,6 +183,8 @@ |
| 183 | </el-button> | 183 | </el-button> |
| 184 | 184 | ||
| 185 | <span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox"> | 185 | <span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox"> |
| 186 | <br v-if="language == 1"> | ||
| 187 | <br v-if="language == 1"> | ||
| 186 | <el-checkbox | 188 | <el-checkbox |
| 187 | v-model="checked" | 189 | v-model="checked" |
| 188 | :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" | 190 | :label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'" |
| ... | @@ -437,11 +439,13 @@ function submitForm() { | ... | @@ -437,11 +439,13 @@ function submitForm() { |
| 437 | type: 'warning' | 439 | type: 'warning' |
| 438 | }) | 440 | }) |
| 439 | } else if (language.value == 0 && insuranceFlag.value == '2' && checked.value == 0) { | 441 | } else if (language.value == 0 && insuranceFlag.value == '2' && checked.value == 0) { |
| 440 | ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事放帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?', | 442 | ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事方帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?', |
| 441 | language.value == 0 ? '提示' : 'Tip', { | 443 | language.value == 0 ? '提示' : 'Tip', { |
| 442 | confirmButtonText: language.value == 0 ? '是' : 'Yes', | 444 | confirmButtonText: language.value == 0 ? '是' : 'Yes', |
| 443 | cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next', | 445 | cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next', |
| 444 | type: 'warning' | 446 | type: 'warning', |
| 447 | closeOnClickModal: false, | ||
| 448 | showClose: false | ||
| 445 | }).then(() => { | 449 | }).then(() => { |
| 446 | checked.value = '1' | 450 | checked.value = '1' |
| 447 | router.push({ | 451 | router.push({ |
| ... | @@ -1083,7 +1087,7 @@ function handelInsurance() { | ... | @@ -1083,7 +1087,7 @@ function handelInsurance() { |
| 1083 | 1087 | ||
| 1084 | .father { | 1088 | .father { |
| 1085 | position: relative; | 1089 | position: relative; |
| 1086 | height: 60px; | 1090 | height: 85px; |
| 1087 | } | 1091 | } |
| 1088 | 1092 | ||
| 1089 | .checkbox { | 1093 | .checkbox { | ... | ... |
| ... | @@ -249,6 +249,7 @@ const ocrSuccess = (res) => { | ... | @@ -249,6 +249,7 @@ const ocrSuccess = (res) => { |
| 249 | form.value.passportNumber = res.data.code | 249 | form.value.passportNumber = res.data.code |
| 250 | form.value.birth = res.data.birth?.slice(0, 10) | 250 | form.value.birth = res.data.birth?.slice(0, 10) |
| 251 | form.value.sex = res.data.sex | 251 | form.value.sex = res.data.sex |
| 252 | form.value.certName = res.data.name | ||
| 252 | } else if (res.code == 500) { | 253 | } else if (res.code == 500) { |
| 253 | ElMessage.warning(res.msg) | 254 | ElMessage.warning(res.msg) |
| 254 | } | 255 | } | ... | ... |
| ... | @@ -171,7 +171,7 @@ function popRemark(type) { | ... | @@ -171,7 +171,7 @@ function popRemark(type) { |
| 171 | || (form.value.isMealView == 0 && type == '4') | 171 | || (form.value.isMealView == 0 && type == '4') |
| 172 | || (form.value.isPhotoView == 0 && type == '5') | 172 | || (form.value.isPhotoView == 0 && type == '5') |
| 173 | || (form.value.isTicket == 0 && type == '0') | 173 | || (form.value.isTicket == 0 && type == '0') |
| 174 | || (form.value.isTravel == 0 && type == '8') | 174 | || (form.value.isScenicView == 0 && type == '8') |
| 175 | ) { | 175 | ) { |
| 176 | building() | 176 | building() |
| 177 | return | 177 | return | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment