Commit 6b838f0f authored by huangyuanyuan's avatar huangyuanyuan

update

parent b09de09e
......@@ -179,7 +179,7 @@
<el-radio label="2" value="2"></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="签证有效期" :prop="'guestList.'+index+'.birthday'" :rules="[{ type: 'string', required: true, message: '请选择签证有效期日期', trigger: 'change' }]">
<!-- <el-form-item label="签证有效期" :prop="'guestList.'+index+'.birthday'" :rules="[{ type: 'string', required: true, message: '请选择签证有效期日期', trigger: 'change' }]">
<el-date-picker size="small"
v-model="item.value1"
type="daterange"
......@@ -187,7 +187,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
</el-form-item>
</el-form-item> -->
</el-col>
</div>
</el-form>
......
......@@ -291,7 +291,7 @@
<p style="font-size:12px">余位
<span style="color:#49C0A1">{{item.synum}}</span>
</p>
<el-button v-if="item.synum>0 && item.isPayOrder==1" @click="Purchase(item)" style="color:#FF6633;border:1px solid #FF6633;margin-top:10px" size="small">
<el-button v-if="item.synum>0 && item.isPayOrder==1 && item.btnshow" @click="Purchase(item)" style="color:#FF6633;border:1px solid #FF6633;margin-top:10px" size="small">
购买
</el-button>
</el-col>
......@@ -645,6 +645,8 @@ export default {
this.getList();
},
getList() {
let today_after7=moment().add('days', 6).format('YYYY-MM-DD');
// console.log("today_after7",today_after7)
this.loading = true;
this.choose_info.qFlightDateStart = moment(
this.choose_info.qFlightDateStart
......@@ -659,7 +661,11 @@ export default {
this.count = res.data.data.count;
if (this.datalist.length > 0) {
this.datalist.forEach(item => {
item.btnshow=false;
item.synum = item.airTicketScatterNum - item.useScatterNum;
if(moment(today_after7).isBefore(item.goFlightTime)){
item.btnshow=true;
}
});
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment