<?php

/* ========================================================================
 * $Id: setting.php 1824 2020-07-07 19:35:48Z onez $
 * 
 * Email: www@onez.cn
 * QQ: 6200103
 * HomePage: http://www.onez.cn
 * ========================================================================
 * Copyright 2016-2017 佳蓝科技.
 * 
 * ======================================================================== */

!defined('IN_ONEZ') && exit('Access Denied');
# edit
#请求数据
if($MODE=='$post'){
  $id=onez()->gp('id');
  $action=onez()->gp('action');
  if($action=='data'){
    $A['pagedata']['title']='支付方式设置';
    
    $A['pagedata']['paytypes']=onez('bs.pay')->paytypes('setting');
  }
  return;
}
$this->add(array(
  'type'=>'breadcrumb',
  'name'=>'面包屑导航',
  'data'=>'pagedata',
));
?>
<section class="content">
<div class="box box-info">
  <div class="box-header with-border">
    <h3 class="box-title">支付方式</h3>
  </div>
  <div class="box-body  table-responsive no-padding">
    <table class="table table-striped">
      <thead>
        <tr>
          <th width="100">名称</th>
          <th width="220">名称</th>
          <th>描述</th>
          <th>状态</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
<template v-for="Cat in $pagedata.paytypes">
  <tr>
    <td>
      <span><img :src="Cat.logo" class="logo" /></span>
    </td>
    <td>
      <span>{{Cat.name}} </span>
      <a :href="Cat.link" v-if="Cat.link" islink target="_blank">官网</a>
    </td>
    <td colspan="3">
      {{Cat.summary}}
    </td>
  </tr>
  <template v-for="item in Cat.paytypes">
    <tr>
      <td>
      </td>
      <td>
        <img :src="item.logo" class="ico" />
        <span>{{item.name}}</span>
      </td>
      <td>
        <span>{{item.summary}}</span>
      </td>
      <td>
        <span :class="'status status-'+item.status">{{item.statusName}}</span>
      </td>
      <td>
        <a :href="'bs.pay:/setting/detail.php?token='+Cat.token+'.'+item.token" :args="'width=960&height=650&title='+Cat.name+'|'+item.name" class="btn btn-xs btn-info">设置</a>
      </td>
    </tr>
  </template>
</template>
       </tbody>
    </table>
  </div>
</div>
</section>