<?php

/* ========================================================================
 * $Id: link.php 1294 2020-07-07 12:17:04Z onez $
 * 
 * Email: www@onez.cn
 * QQ: 6200103
 * HomePage: http://www.onez.cn
 * ========================================================================
 * Copyright 2016-2017 佳蓝科技.
 * 
 * ======================================================================== */

!defined('IN_ONEZ') && exit('Access Denied');
# 链接
# link
#请求数据
if($MODE=='$post'){
  $action=onez()->gp('action');
  if($action=='data'){
    $items=array();
    $A['items']=$items;
  }
  return;
}
?>
<a :href="data.link" v-if="data.link" islink target="_blank">
  <div class="item">
    <img :src="data.icon" />
    <h3 v-html="data.name"></h3>
    <p v-html="data.summary"></p>
    <div class="status" :class="'status-'+data.status">{{data.statusName}}</div>
  </div>
</a>
<a :href="data.url" v-else-if="data.url">
  <div class="item">
    <img :src="data.icon" />
    <h3 v-html="data.name"></h3>
    <p v-html="data.summary"></p>
    <div class="status" :class="'status-'+data.status">{{data.statusName}}</div>
  </div>
</a>
<a :href="data.action" v-else-if="data.action" target="_blank">
  <div class="item">
    <img :src="data.icon" />
    <h3 v-html="data.name"></h3>
    <p v-html="data.summary"></p>
    <div class="status" :class="'status-'+data.status">{{data.statusName}}</div>
  </div>
</a>
<a href="javascript:;" islink v-else @click="click(data)">
  <div class="item">
    <img :src="data.icon" />
    <h3 v-html="data.name"></h3>
    <p v-html="data.summary"></p>
    <div class="status" :class="'status-'+data.status">{{data.statusName}}</div>
  </div>
</a>