疗休养
This commit is contained in:
@@ -246,19 +246,16 @@ layout("/mobile/platform.html"){
|
||||
<label>{{lineData.estimatedCost}}元</label>
|
||||
</div>
|
||||
<div v-if="configData.familyInfo == 2">
|
||||
<!--<span>当前报名:</span>
|
||||
<span>当前报名:</span>
|
||||
{{lineData.signUpUserNum + lineData.signUpUserFamilyNum + '(家属' + lineData.signUpUserFamilyNum
|
||||
+
|
||||
'人)'}}-->
|
||||
<span>当前报名:</span>
|
||||
{{lineData.signUpUserNum + lineData.signUpUserFamilyNum + '人'}}
|
||||
'人)'}}
|
||||
</div>
|
||||
<div v-else>
|
||||
<span>当前报名:</span>
|
||||
<!--{{lineData.signUpUserNum + lineData.familyNumber + '(家属' + lineData.familyNumber
|
||||
{{lineData.signUpUserNum + lineData.familyNumber + '(家属' + lineData.familyNumber
|
||||
+
|
||||
'人)'}}-->
|
||||
{{lineData.signUpUserNum + lineData.familyNumber + '人'}}
|
||||
'人)'}}
|
||||
</div>
|
||||
<!--<div>
|
||||
<span class="line_label">成团人数包括家属:</span>
|
||||
@@ -274,17 +271,15 @@ layout("/mobile/platform.html"){
|
||||
</div>
|
||||
<div v-if="configData.familyInfo == 2">
|
||||
<span>当前报名:</span>
|
||||
<!--{{lineData.signUpUserNum + '(家属' + lineData.signUpUserFamilyNum
|
||||
{{lineData.signUpUserNum + '(家属' + lineData.signUpUserFamilyNum
|
||||
+
|
||||
'人)'}}-->
|
||||
{{lineData.signUpUserNum + '人'}}
|
||||
'人)'}}
|
||||
</div>
|
||||
<div v-else>
|
||||
<span>当前报名:</span>
|
||||
<!--{{lineData.signUpUserNum + '(家属' + lineData.familyNumber
|
||||
{{lineData.signUpUserNum + '(家属' + lineData.familyNumber
|
||||
+
|
||||
'人)'}}-->
|
||||
{{lineData.signUpUserNum + '人'}}
|
||||
'人)'}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -365,47 +360,6 @@ layout("/mobile/platform.html"){
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--床位信息-->
|
||||
<div v-if="configData.bedInfo === true" class="van-doc-card" style="margin-bottom: 16px">
|
||||
<div></div>
|
||||
<div class="van-card-header">
|
||||
房间信息
|
||||
</div>
|
||||
<div class="van-card-body">
|
||||
<van-field :rules="[{ required: true, message: '请选择是否包房' }]" label="是否包房" name="bedType">
|
||||
<template #input>
|
||||
<van-radio-group direction="horizontal" v-model="formData.bedInfo.bedType">
|
||||
<van-radio name="包房" shape="square">包房</van-radio>
|
||||
<van-radio name="不包房" shape="square">不包房</van-radio>
|
||||
</van-radio-group>
|
||||
</template>
|
||||
</van-field>
|
||||
<div>
|
||||
<span style="color: red;margin-left: 14px;font-size: 14px">包房需自费;不包房两位老师一间且随机分配</span>
|
||||
</div>
|
||||
<!--<van-field @click="self = true; roomVisible = true" readonly is-link label="房间" name="bedType"
|
||||
placeholder="请选择房间" v-model="formData.bedInfo.bedType"
|
||||
:rules="[{ required: true }]"></van-field>-->
|
||||
<!--<van-field v-if="formData.bedInfo.bedType == '标准间'" @click="self = true; bedVisible = true"
|
||||
readonly is-link label="床位"
|
||||
name="bedNum" placeholder="请选择床位" v-model="formData.bedInfo.bedNum"
|
||||
:rules="[{ required: true }]"></van-field>
|
||||
<van-field v-if="formData.bedInfo.bedType == '标准间'" :rules="[{ validator, message: '请选择是否拼房' }]"
|
||||
label="是否拼房" name="validator">
|
||||
<template #input>
|
||||
<van-radio-group direction="horizontal" v-model="formData.bedInfo.isSleepTogether">
|
||||
<van-radio :name="true" shape="square">是</van-radio>
|
||||
<van-radio :name="false" shape="square">否</van-radio>
|
||||
</van-radio-group>
|
||||
</template>
|
||||
</van-field>
|
||||
<van-field v-if="formData.bedInfo.bedType == '标准间' && formData.bedInfo.isSleepTogether == true"
|
||||
label="意向拼房人" name="otherSleepUser" placeholder="多个拼房人请用,隔开"
|
||||
v-model="formData.bedInfo.otherSleepUser"
|
||||
:rules="[{ required: true }]"></van-field>-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--随行人信息-->
|
||||
<div v-if="index != 2" class="van-doc-card" style="margin-bottom: 16px">
|
||||
<div></div>
|
||||
@@ -414,7 +368,8 @@ layout("/mobile/platform.html"){
|
||||
<span style="float:left;">随行人信息</span>
|
||||
<div>
|
||||
<van-tag @click="delCompanion" size="large" type="primary" color="lightgrey">删除随行人</van-tag>
|
||||
<van-tag @click="addCompanion" size="large" type="primary" color="#1867b0">添加随行人</van-tag>
|
||||
<van-tag @click="addCompanion" size="large" type="primary"
|
||||
color="#1867b0" v-if="formData.companionList.length < 3">添加随行人</van-tag>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -486,6 +441,23 @@ layout("/mobile/platform.html"){
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<!--床位信息-->
|
||||
<div v-if="configData.bedInfo === true" class="van-doc-card" style="margin-bottom: 16px">
|
||||
<div></div>
|
||||
<div class="van-card-header">
|
||||
房间信息
|
||||
</div>
|
||||
<div class="van-card-body">
|
||||
<van-field @click="self = true; roomVisible = true" readonly is-link label="房间" name="bedType"
|
||||
placeholder="请选择房间" v-model="formData.bedInfo.bedType"
|
||||
:rules="[{ required: true }]"></van-field>
|
||||
<van-field v-if="formData.bedInfo.bedType == '标准间' && formData.bedInfo.isSleepTogether == true"
|
||||
label="意向拼房人" name="otherSleepUser" placeholder="多个拼房人请用,隔开"
|
||||
v-model="formData.bedInfo.otherSleepUser"
|
||||
:rules="[{ required: true }]"></van-field>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="submitButton">
|
||||
<van-button class="join join_submit">提交报名</van-button>
|
||||
</div>
|
||||
@@ -499,7 +471,7 @@ layout("/mobile/platform.html"){
|
||||
<!--房间类型弹出框-->
|
||||
<van-popup position="bottom" round v-model="roomVisible">
|
||||
<van-picker
|
||||
title="入住房间" show-toolbar
|
||||
title="房间需求数" show-toolbar
|
||||
:columns="roomColumns"
|
||||
@confirm="roomConfirm"
|
||||
@cancel="roomCancel">
|
||||
@@ -545,7 +517,7 @@ layout("/mobile/platform.html"){
|
||||
isPdf: false,
|
||||
isLoad: false,
|
||||
active: 0,
|
||||
roomColumns: ['包房', '默认房间'],
|
||||
roomColumns: ['0.5间(一张床)', "1间(两张床)}", '1.5间(三张床)', '2间(四张床)'],
|
||||
bedColumns: ['1', '2'],
|
||||
companionColumns: ['配偶', '子女', '亲属', '其他'],
|
||||
bedVisible: false,
|
||||
@@ -658,7 +630,7 @@ layout("/mobile/platform.html"){
|
||||
url = '/platform/theRapyRecuperation/line/enroll/doSignUpForLine'
|
||||
}
|
||||
|
||||
const toast = vant.Toast.loading({
|
||||
const loading = vant.Toast.loading({
|
||||
duration: 0,
|
||||
forbidClick: true,
|
||||
overlay: true,
|
||||
@@ -667,21 +639,37 @@ layout("/mobile/platform.html"){
|
||||
const resp = await $.post(url, {
|
||||
enroll: JSON.stringify(cloneData),
|
||||
})
|
||||
setTimeout(() => {
|
||||
if (resp.code === 0) {
|
||||
toast.message = '提交成功'
|
||||
toast.type = 'success'
|
||||
} else {
|
||||
toast.message = resp.msg
|
||||
toast.type = 'fail'
|
||||
}
|
||||
setTimeout(() => {
|
||||
toast.clear()
|
||||
}, 500)
|
||||
if (resp.code === 0) {
|
||||
loading.clear()
|
||||
if (resp.code === 0) {
|
||||
vant.Dialog.alert({
|
||||
title: '提示',
|
||||
message: '报名成功',
|
||||
}).then(() => {
|
||||
location.replace('/platform/mobile/theRapyRecuperation/myRecuperation?index=' + this.index)
|
||||
}
|
||||
}, 1000)
|
||||
})
|
||||
} else {
|
||||
vant.Dialog.alert({
|
||||
title: '提示',
|
||||
message: resp.msg,
|
||||
}).then(() => {
|
||||
})
|
||||
}
|
||||
|
||||
// setTimeout(() => {
|
||||
// if (resp.code === 0) {
|
||||
// toast.message = '提交成功'
|
||||
// toast.type = 'success'
|
||||
// } else {
|
||||
// toast.message = resp.msg
|
||||
// toast.type = 'fail'
|
||||
// }
|
||||
// setTimeout(() => {
|
||||
// toast.clear()
|
||||
// }, 500)
|
||||
// if (resp.code === 0) {
|
||||
// location.replace('/platform/mobile/theRapyRecuperation/myRecuperation?index=' + this.index)
|
||||
// }
|
||||
// }, 1000)
|
||||
},
|
||||
addCompanion() {
|
||||
this.formData.companionList.push({userName: '', loginName: '', sex: '', relation: '', bedInfo: {}})
|
||||
|
||||
@@ -353,6 +353,7 @@ layout("/mobile/platform.html"){
|
||||
<div>
|
||||
<div class="van-action-sheet__name">{{item.name}}</div>
|
||||
<div class="van-action-sheet__name">{{item.playTime}}</div>
|
||||
<div class="van-action-sheet__name" style="color: #bc2a25">{{'报名人数限制:' + item.maxApplyNum + '人'}}</div>
|
||||
<div class="van-action-sheet__subname">{{item.subname}}</div>
|
||||
</div>
|
||||
<div class="sign_button">
|
||||
@@ -447,25 +448,20 @@ layout("/mobile/platform.html"){
|
||||
if(this.modifyConfig.familyInfo == 2) {
|
||||
item.subname = '已报人数:'
|
||||
+ (item.signUpUserNum + item.signUpUserFamilyNum)
|
||||
+ '人'
|
||||
+ '(家属' + item.signUpUserFamilyNum + '人)'
|
||||
} else {
|
||||
item.subname = '已报人数:'
|
||||
+ (item.signUpUserNum + item.signUpUserFamilyNum)
|
||||
+ '人'
|
||||
+ '(家属' + item.familyNumber + '人)'
|
||||
}
|
||||
// if(this.modifyConfig.familyInfo == 2) {
|
||||
// item.subname = '已报人数:'
|
||||
// + (item.signUpUserNum + item.signUpUserFamilyNum)
|
||||
// + '(家属' + item.signUpUserFamilyNum + '人)'
|
||||
// } else {
|
||||
// item.subname = '已报人数:'
|
||||
// + (item.signUpUserNum + item.signUpUserFamilyNum)
|
||||
// + '(家属' + item.familyNumber + '人)'
|
||||
// }
|
||||
})
|
||||
this.selectLinePopup = true
|
||||
},
|
||||
onSelect(item) {
|
||||
if ((item.signUpUserNum + item.signUpUserFamilyNum) >= item.maxApplyNum) {
|
||||
vant.Toast('报名人数已满')
|
||||
return
|
||||
}
|
||||
this.findOne(item)
|
||||
},
|
||||
otherUnionClick() {
|
||||
|
||||
@@ -403,11 +403,11 @@ layout("/layouts/platform.html"){
|
||||
</el-form-item>
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="交通工具">
|
||||
<el-form-item :prop="'times.' + $index + '.trafficTools'"
|
||||
:rules="{required:false,message:'交通工具',trigger:['change','blur']}"
|
||||
<el-descriptions-item label="最多报名人数">
|
||||
<el-form-item :prop="'times.' + $index + '.maxApplyNum'"
|
||||
:rules="{required:false,message:'最多报名人数',trigger:['change','blur']}"
|
||||
label-width="0">
|
||||
<el-input clearable v-model="row.trafficTools"></el-input>
|
||||
<el-input clearable v-model="row.maxApplyNum"></el-input>
|
||||
</el-form-item>
|
||||
</el-descriptions-item>
|
||||
|
||||
@@ -509,8 +509,8 @@ layout("/layouts/platform.html"){
|
||||
{{row.minimumGroupSize}}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="交通工具">
|
||||
{{row.trafficTools}}
|
||||
<el-descriptions-item label="最多报名人数">
|
||||
{{row.maxApplyNum}}
|
||||
</el-descriptions-item>
|
||||
|
||||
<el-descriptions-item label="预计费用(元/人次)">
|
||||
|
||||
Reference in New Issue
Block a user