当前位置:网站首页>Call the interface to get the time
Call the interface to get the time
2022-04-23 05:25:00 【Courtesy.】
<html>
<!-- Date call -->
<div class="center">
<div class="center-one">
//2022 year 3 month
<div class="left">
<text type="date" value="{
{params.gregoriandate}}"></text>
</div>
// the 14th day of the second lunar month
<div class="right">
<text> Lunar calendar {
{
params.lunardate}}</text>
</div>
</div>
<div class="center-two">
//16 Number
<div class="text-div">
<text class="text">{
{
params.day}}</text>
</div>
</div>
<div class="center-three">
<div class="text-div">
// Wednesday
<div class="left">
<text>{
{
params.week}}</text>
</div>
<div class="right">
//Wednesday
<!-- <text class="text">{
{
params.weekEng}}</text> -->
</div>
</div>
</div>
// Defibrillation 、 Treatment 、 Travel 、 Avoid marriage
<div class="center-four">
<div class="text-div">
<text class="text-four">{
{
params.fitness}}</text>
</div>
</div>
</div>
<js>
private: {
"params": {
gregoriandate: '',
lunardate: '',
date: '',
day: '',
weekEng:'',
fitness: '',
},
},
ranbowIndex(){
var _this = this
fetch.fetch({
url:'https://app.kuaiyingyong.vip/qucikapp/life/date',
responseType: 'json'
}).then(res => {
var data=res.data.data.data;
if(data.code==200){
var list=data.newslist;
for(var i=0;i<list.length;i++){
var data=list[i];
//2022 year 3
var gregoriandate= new Date(data.gregoriandate)
gregoriandate=gregoriandate.getFullYear()+" year "+(gregoriandate.getMonth()+1)+" month ";
_this.params.gregoriandate =gregoriandate;
//16
_this.params.day = new Date(data.gregoriandate).getDate();
if(data.id){
_this.id=data.id;
}
// the 14th day of the second lunar month
_this.params.lunardate=data.lubarmonth+data.lunarday;
// var week = new Date(data.week)
// week = ' week ' + ' One, two, three, four, five, six '.charAt(week.getDay());
// _this.params.week=data.week;
// _this.params.weekEng=data.weekEng;
// Defibrillation 、 Treatment 、 Travel 、 Avoid marriage
_this.params.fitness=data.fitness;
}
}else{
alert(" The Internet is busy , Please try again later ");
}
})
},
css
Insert a code chip here
版权声明
本文为[Courtesy.]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220544339470.html
边栏推荐
- Multiple mainstream SQL queries only take the latest one of the data
- JSP-----JSP简介
- 低代码和无代码的注意事项
- Top 25 Devops tools in 2021 (Part 2)
- Blender程序化地形制作
- What are the reasons for the failure of digital transformation?
- Data management of basic operation of mairadb database
- 使用宝塔+xdebug+vscode远程调试代码
- The introduction of lean management needs to achieve these nine points in advance
- Implementation of resnet-34 CNN with kears
猜你喜欢
随机推荐
MFC实现资源单独Dll实现
WTL self drawn control library (cqscheckcomboxbox)
TSlint注释忽略错误和RESTful理解
Using PHP post temporary file mechanism to upload arbitrary files
2021-09-28
The introduction of lean management needs to achieve these nine points in advance
领域驱动模型DDD(三)——使用Saga管理事务
2021-10-08
es6数组的使用
Click the Add button - a box appears (similar to adding learning experience - undergraduate - Graduate)
双击.jar包无法运行解决方法
跨域CORS的情缘~
Requirements for SQL server to retrieve SQL and user information
Study notes: unity customsrp-12-hdr
Multiple mainstream SQL queries only take the latest one of the data
Three 之 three.js (webgl)模型的删除/场景的清空/内存的释放 的简单整理
If I am PM's performance, movie VR ticket purchase display
数字化转型失败,有哪些原因?
npm升级后问题,慌得一批
SQLyog的基本使用