4d13c8e8 by 华明祺

Merge branch 'dev' of https://code.itechtop.cn/yangyang/dance-pc into dev

2 parents 8b639c6f 1edf88c2
......@@ -52,7 +52,7 @@
</el-card>
</el-col>
</el-row>
<el-empty v-show="!loading&&list.length==0" :image="`/img/order_no.png`" :image-size="228" description="" />
<el-empty v-show="!loading&&list.length===0" :image="`/img/order_no.png`" :image-size="228" description="" />
<div style="height: 50px" />
</div>
</div>
......
......@@ -73,7 +73,7 @@
<div v-if="needPersonNum>0" class="fakeFormItem">
<label>需填写{{ needPersonNum }}位游客</label>
<div>
<div v-show="needPersonNum > hasPersonNum">还需填写{{ needPersonNum-hasPersonNum }}位游客</div>
<label class="text-warning" v-show="needPersonNum > hasPersonNum">还需填写{{ needPersonNum-hasPersonNum }}位游客</label>
</div>
</div>
<div v-for="(n,i) in gateList" :key="i">
......@@ -237,6 +237,7 @@ const checkPersonNum = () => {
_.each(gateList.value, item => {
needPersonNum.value += item.count
_.each(item.personArr, person => {
console.log(person)
if (person.customerId) {
hasPersonNum.value++
}
......@@ -359,8 +360,10 @@ function submit() {
submitOrderScenic(form.value).then(res => {
if (res.data) {
if (res.data.roomNum == -100) {
if (res.data.orderId == -400) {
ElMessage.warning(language.value == 0 ? '剩余票数不足' : 'The remaining number of rooms is insufficient')
} else if (res.data.orderId == -300) {
ElMessage.warning(language.value == 0 ? '提交失败,请稍后再试' : 'Submission failed, please try again later')
} else {
// 去付钱
router.push({
......
......@@ -123,7 +123,7 @@ function popRemark(type) {
(form.value.isMealView == 0 && type == '4') ||
(form.value.isPhotoView == 0 && type == '5') ||
(form.value.isTicket == 0 && type == '0') ||
(form.value.isTravel == 0 && type == '8')
(form.value.isScenicView == 0 && type == '8')
) {
building()
return
......
......@@ -172,6 +172,8 @@
</el-button>
<span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox">
<br v-if="language == 1">
<br v-if="language == 1">
<el-checkbox
v-model="checked"
:label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'"
......@@ -481,11 +483,13 @@ function submitForm(n) {
function commit() {
if (language.value == 0 && insuranceFlag.value == 2 && checked.value == '0') {
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
language.value == 0 ? '提示' : 'Tip', {
confirmButtonText: language.value == 0 ? '是' : 'Yes',
cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next',
type: 'warning'
type: 'warning',
closeOnClickModal: false,
showClose: false
}).then(() => {
checked.value = '1'
router.push({
......@@ -909,7 +913,7 @@ function handelInsurance() {
.father {
position: relative;
height: 50px;
height: 85px;
}
.checkbox {
......
......@@ -183,6 +183,8 @@
</el-button>
<span v-if="language==0&& insuranceFlag!=0||language==1&&insuranceFlag==1" class="checkbox">
<br v-if="language == 1">
<br v-if="language == 1">
<el-checkbox
v-model="checked"
:label="language==0?'我同意授权赛事方帮忙购买保险':'I agree to authorize the event organizer to purchase insurance on my behalf'"
......@@ -437,11 +439,13 @@ function submitForm() {
type: 'warning'
})
} else if (language.value == 0 && insuranceFlag.value == '2' && checked.value == 0) {
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
ElMessageBox.confirm(language.value == 0 ? '你是否同意赛事帮忙购买保险?' : 'Do you agree to have the event organizer help purchase insurance?',
language.value == 0 ? '提示' : 'Tip', {
confirmButtonText: language.value == 0 ? '是' : 'Yes',
cancelButtonText: language.value == 0 ? '否,进入下一步' : 'NO,Go Next',
type: 'warning'
type: 'warning',
closeOnClickModal: false,
showClose: false
}).then(() => {
checked.value = '1'
router.push({
......@@ -1083,7 +1087,7 @@ function handelInsurance() {
.father {
position: relative;
height: 60px;
height: 85px;
}
.checkbox {
......
......@@ -249,6 +249,7 @@ const ocrSuccess = (res) => {
form.value.passportNumber = res.data.code
form.value.birth = res.data.birth?.slice(0, 10)
form.value.sex = res.data.sex
form.value.certName = res.data.name
} else if (res.code == 500) {
ElMessage.warning(res.msg)
}
......
......@@ -171,7 +171,7 @@ function popRemark(type) {
|| (form.value.isMealView == 0 && type == '4')
|| (form.value.isPhotoView == 0 && type == '5')
|| (form.value.isTicket == 0 && type == '0')
|| (form.value.isTravel == 0 && type == '8')
|| (form.value.isScenicView == 0 && type == '8')
) {
building()
return
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!