getOpenTime(Pinyin,Id) {
this.$post("", { token: this.token, gameId: Id }).then(res => {
this.OpenTime[Pinyin] = res.info
this.setIntervalForTime(Pinyin)
});
},
OpenTime now receives a countdown to a set of numbers
600500400300200
five sets of seconds from this interface address
//
setIntervalForTime(Pinyin) {
}
<ul>
<li v-for="(item, index) in collectionList" :key="index">
<router-link :to="{name:"/games",params:{gameId:item.Id}}" >
<img :src="item.url">
<div class="count_down">
<h2>{{item.Name}}</h2>
<div class="deadline-number">
:
{{endOpenTime[item.Pinyin].hour1}}{{endOpenTime[item.Pinyin].hour2}}
:
{{endOpenTime[item.Pinyin].minute1}}{{endOpenTime[item.Pinyin].minute2}}
:
{{endOpenTime[item.Pinyin].second1}}{{endOpenTime[item.Pinyin].second2}}
</div>
</div>
</router-link>
</li>
</ul>
what about multiple countdown?