|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
<u-input :placeholder="'请选择'" v-model="form.siteName" type="select" @click="siteShow = true" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<u-form-item label="预约日期" prop="date" required>
|
|
|
|
|
<picker mode="date" :value="form.date" :start="startDate" @change="dateConfirm">
|
|
|
|
|
<picker v-if="showStartDate" mode="date" :value="form.date" :start="startDate" @change="dateConfirm">
|
|
|
|
|
<view style="display: flex;align-items: center;justify-content: space-between;">
|
|
|
|
|
<view v-if="form.date">{{form.date}}</view>
|
|
|
|
|
<view style="color:#808080" v-else>请选择</view>
|
|
|
|
|
@ -221,20 +221,25 @@
|
|
|
|
|
}],
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
startDate:'',
|
|
|
|
|
showStartDate:false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onReady() {
|
|
|
|
|
this.$refs.uForm.setRules(this.rules);
|
|
|
|
|
console.log("this.startDate", this.startDate)
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
startDate() {
|
|
|
|
|
return this.$moment().format("YYYY-MM-DD").toString()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// computed: {
|
|
|
|
|
// startDate() {
|
|
|
|
|
// return this.$moment().add(1,'days').format("YYYY-MM-DD").toString()
|
|
|
|
|
// }
|
|
|
|
|
// },
|
|
|
|
|
async onLoad(options) {
|
|
|
|
|
this.appoinementType = options.type ? options.type : ''
|
|
|
|
|
|
|
|
|
|
this.startDate = this.$moment().add(1,'days').format("YYYY-MM-DD").toString()
|
|
|
|
|
this.form.date = this.startDate
|
|
|
|
|
this.showStartDate = true
|
|
|
|
|
await this.getUser()
|
|
|
|
|
await this.getSites()
|
|
|
|
|
},
|
|
|
|
|
@ -446,6 +451,7 @@
|
|
|
|
|
}
|
|
|
|
|
// 如果所有条件都满足,则显示验证通过的信息
|
|
|
|
|
result = '时间验证通过';
|
|
|
|
|
return true
|
|
|
|
|
console.log("result", result)
|
|
|
|
|
},
|
|
|
|
|
submit() {
|
|
|
|
|
@ -537,7 +543,7 @@
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/packages/mybook/index'
|
|
|
|
|
})
|
|
|
|
|
}, 100)
|
|
|
|
|
}, 1500)
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
// 用户没有订阅该消息模板,显示订阅弹窗
|
|
|
|
|
@ -559,7 +565,7 @@
|
|
|
|
|
})
|
|
|
|
|
console.log("settime",
|
|
|
|
|
that.isLocked)
|
|
|
|
|
}, 100)
|
|
|
|
|
}, 1500)
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
fail(err) {
|
|
|
|
|
@ -568,7 +574,7 @@
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/packages/mybook/index'
|
|
|
|
|
})
|
|
|
|
|
}, 100)
|
|
|
|
|
}, 1500)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
@ -578,7 +584,7 @@
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/packages/mybook/index'
|
|
|
|
|
})
|
|
|
|
|
}, 100)
|
|
|
|
|
}, 1500)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -591,7 +597,7 @@
|
|
|
|
|
uni.redirectTo({
|
|
|
|
|
url: '/packages/mybook/index'
|
|
|
|
|
})
|
|
|
|
|
}, 100)
|
|
|
|
|
}, 1500)
|
|
|
|
|
})
|
|
|
|
|
// 用户尚未开启订阅消息总开关,建议提醒用户开启
|
|
|
|
|
}
|
|
|
|
|
|