页面效果:
template>
view class="order-intro-item">
text class="left-label">日期/text>
text class="right-info time-text">{{startClearingTime | formatData}} 至 {{endClearingTime | formatData}}/text>
/view>
/template>
script>
export default {
data() {
return {
startClearingTime:"2023-07-12 16:00",
endClearingTime :"2023-07-12 16:00"
}
},
computed: {
},
// 格式化日期
filters: {
formatData() {
const date = new Date();
// let year = date.getFullYear();
let month = date.getMonth() + 1;
let day = date.getDate();
let hour = date.getHours();
let minute = date.getMinutes();
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
hour = hour > 9 ? hour : '0' + hour;
return `${month}-${day} ${hour}:00`;
},
},
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: nodejs搭建https服务app.js完整配置
前面成功访问后台端口后 这个HTTPS服务器只返回了一个”访问成功”的响应。要使前台HTTPS请求能访问到ajaxRouter里面的接口应该修改配置为 1. 将ajartRouter路由(app.use(route))添加到HTTPS服务器的请求监听器app…