<template>
<view>
<view v-for="(item,index) in timelimitList" :key="index">
{
{item.grouptime_d}}天
{
{item.grouptime_h}}时
{
{item.grouptime_m}}分
{
{item.grouptime_s}}秒
</view>
</view>
</template>
<script>
import request from "../../static/common/common.js"
export default {
data() {
return {
timer: null, //重复执行
timelimitList: [],
}
},
methods: {
// 限时拼团倒计时
gettimelimitpuzzle() {
var that = this;
request.httpRequest({
url: 'api/index/timelimitpuzzles'
}).then(res => {
if (res.data.data == null) {
that.homeheight = 60;
that.timeli