{template 'header'} {if $operate == 'display'} {if $_GPC['type'] != STORE_TYPE_PACKAGE && $_GPC['type'] != STORE_TYPE_USER_PACKAGE}
{loop $store_goods $goods}
{if $goods['type'] == STORE_TYPE_API}
{elseif in_array($goods['type'], array(STORE_TYPE_PACKAGE, STORE_TYPE_ACCOUNT, STORE_TYPE_WXAPP, STORE_TYPE_ACCOUNT_RENEW, STORE_TYPE_WXAPP_RENEW))}
{else} {/if}
{if $goods['type'] == STORE_TYPE_PACKAGE} {$module_groups[$goods['module_group']]['name']} {elseif $goods['type'] == STORE_TYPE_USER_PACKAGE} {$user_groups[$goods['user_group']]['name']} {/if} {php echo $goods['title']}
￥{$goods['price']}元 / {if $goods['unit'] == 'month'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}月 {elseif $goods['unit'] == 'ten_thousand'} {$goods['api_num']}万次 {elseif $goods['unit'] == 'day'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}天 {elseif $goods['unit'] == 'year'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}年 {/if}
查看详情>
{/loop}
{/if} {if $_GPC['type'] == STORE_TYPE_PACKAGE}
应用权限组
{loop $store_goods $goods}

| {$module_groups[$goods['module_group']]['name']}¥ {$goods['price']}元/{if $goods['type'] != STORE_TYPE_API}{if $goods['unit'] == 'month'}月{elseif $goods['unit'] == 'day'}日{elseif $goods['unit'] == 'year'}年{/if}{/if} | 查看详情 >
可使用模块 {php echo empty($module_groups[$goods['module_group']]['modules'])? 0 : count($module_groups[$goods['module_group']]['modules'])} {php echo empty($module_groups[$goods['module_group']]['wxapp'])? 0 : count($module_groups[$goods['module_group']]['wxapp'])} {php echo empty($module_groups[$goods['module_group']]['webapp'])? 0 : count($module_groups[$goods['module_group']]['webapp'])} {php echo empty($module_groups[$goods['module_group']]['phoneapp'])? 0 : count($module_groups[$goods['module_group']]['phoneapp'])}

{/loop}
{/if} {if $_GPC['type'] == STORE_TYPE_USER_PACKAGE}
用户权限组
{loop $store_goods $goods}

| {$user_groups[$goods['user_group']]['name']}¥ {$goods['price']}元/{if $goods['type'] != STORE_TYPE_API}{if $goods['unit'] == 'month'}月{elseif $goods['unit'] == 'day'}日{elseif $goods['unit'] == 'year'}年{/if}{/if} | 查看详情 >
可创建 {$user_groups[$goods['user_group']]['maxaccount']} {$user_groups[$goods['user_group']]['maxwxapp']} {$user_groups[$goods['user_group']]['maxwebapp']} {$user_groups[$goods['user_group']]['maxphoneapp']}

{/loop}
{/if}
{$pager}
{elseif $operate == 'goods_info'}
{if $goods['type'] == STORE_TYPE_API}
{elseif in_array($goods['type'], array(STORE_TYPE_PACKAGE, STORE_TYPE_ACCOUNT, STORE_TYPE_WXAPP, STORE_TYPE_ACCOUNT_RENEW, STORE_TYPE_WXAPP_RENEW))}
{elseif $goods['type'] == STORE_TYPE_USER_PACKAGE}
{else}
{/if}
{if in_array($goods['type'], array(STORE_TYPE_MODULE, STORE_TYPE_WXAPP_MODULE, STORE_TYPE_API, STORE_TYPE_ACCOUNT_RENEW, STORE_TYPE_WXAPP_RENEW))} {$goods['title']} {elseif in_array($goods['type'], array(STORE_TYPE_ACCOUNT, STORE_TYPE_WXAPP))} 创建{$goods['num']}个{$goods['title']} {elseif $goods['type'] == STORE_TYPE_USER_PACKAGE} {$user_group_info['name']} 套餐 {else} {$module_groups[$goods['module_group']]['name']} 套餐 {/if}
{if in_array($goods['type'], array(STORE_TYPE_MODULE, STORE_TYPE_WXAPP_MODULE))} {$goods['synopsis']} {elseif in_array($goods['type'], array(STORE_TYPE_ACCOUNT, STORE_TYPE_WXAPP))} 增加创建{$goods['title']}数量 {elseif $goods['type'] == STORE_TYPE_API} 总计{$goods['api_num']}{if $goods['unit'] == 'ten_thousand'}万次{/if}浏览次数，不限时间 {elseif $goods['type'] == STORE_TYPE_ACCOUNT_RENEW} 延长公众号到期时间 {elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW} 延长小程序到期时间 {else} 增加公众号应用，小程序，模板数量 {/if}
单价￥ {$goods['price']} {if $goods['type'] != STORE_TYPE_API}/{if $goods['unit'] == 'month'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}月 {elseif $goods['unit'] == 'day'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}日 {elseif $goods['unit'] == 'year'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}年 {/if} {/if}
{if in_array($goods['type'], array(STORE_TYPE_MODULE, STORE_TYPE_WXAPP_MODULE, STORE_TYPE_PACKAGE, STORE_TYPE_ACCOUNT_RENEW, STORE_TYPE_WXAPP_RENEW, STORE_TYPE_USER_PACKAGE))}
{elseif $goods['type'] == STORE_TYPE_API}
{else}
{/if}

#### {if $goods['type'] == STORE_TYPE_PACKAGE} 购买应用套餐 {elseif $goods['type'] == STORE_TYPE_USER_PACKAGE} 购买用户组权限套餐 {elseif $goods['type'] == STORE_TYPE_ACCOUNT_RENEW} 续费公众号 {elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW} 续费小程序 {else} 购买{$goods['title']}应用 {/if}

应用单价
￥{$goods['price']}{if $goods['type'] != STORE_TYPE_API}/ {if $goods['unit'] == 'month'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}月 {elseif $goods['unit'] == 'day'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}日 {elseif $goods['unit'] == 'year'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}{$goods['wxapp_num']}{/if}年 {/if} {/if}
购买时长
{if $goods['type'] != STORE_TYPE_API} {if $goods['unit'] == 'month'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}*{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}*{$goods['wxapp_num']}{/if}月 {elseif $goods['unit'] == 'day'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}*{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}*{$goods['wxapp_num']}{/if}日 {elseif $goods['unit'] == 'year'}{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW}*{$goods['account_num']}{elseif $goods['type'] == STORE_TYPE_WXAPP_RENEW}*{$goods['wxapp_num']}{/if}年 {/if} {/if} {if $goods['type'] == STORE_TYPE_MODULE || $goods['type'] == STORE_TYPE_WXAPP_MODULE} ,有效期至{{ expiretime }} {/if}
{if in_array($goods['type'], array(STORE_TYPE_MODULE, STORE_TYPE_WXAPP_MODULE, STORE_TYPE_WXAPP_RENEW, STORE_TYPE_ACCOUNT_RENEW)) || $goods['type'] == STORE_TYPE_PACKAGE && !empty($user_account)}
{if $goods['type'] == STORE_TYPE_WXAPP_MODULE}小程序{else}公众号{/if}
注意!请确认服务所需绑定的公众号,购买后不可更换.
{/if} {if $goods['type'] == STORE_TYPE_PACKAGE && !empty($wxapp_account_list)}
小程序
注意!请确认服务所需绑定的小程序,购买后不可更换.
{/if}
费用明细
实付总计￥{{ price }}
支付方式

#### 购买{$goods['title']}

应用单价
￥{$goods['price']}{if $goods['type'] != STORE_TYPE_API}/{if $goods['unit'] == 'month'}月{elseif $goods['unit'] == 'day'}日{elseif $goods['unit'] == 'year'}年{/if}{/if}
费用明细
实付总计￥{{ price }}
支付方式

#### 购买API浏览次数

商品单价
￥{$goods['price']} / {$goods['api_num']}{if $goods['unit'] == 'ten_thousand'}万次{/if}
购买份数
份，共购买万次浏览量
公众号
注意!请确认服务所需绑定的公众号,购买后不可更换.
费用明细
实付总计 ￥
支付方式
{if in_array($goods['type'], array(STORE_TYPE_MODULE, STORE_TYPE_WXAPP_MODULE))}
{loop $goods['slide'] $picture}
{/loop}
应用介绍
{$goods['description']}
{elseif in_array($goods['type'], array(STORE_TYPE_ACCOUNT, STORE_TYPE_WXAPP, STORE_TYPE_API))}
商品介绍
{if $goods['type'] == STORE_TYPE_API} 购买API浏览次数，购买之后使用时间不限 {else} 1.购买商品后您将多创建{$goods['num']}个{$goods['title']}, 不受已有用户组限制。
2.购买的{$goods['title']}是有时效的，到期需要继续购买方可使用。 {/if}
{elseif in_array($goods['type'], array(STORE_TYPE_ACCOUNT_RENEW, STORE_TYPE_WXAPP_RENEW))}
商品介绍
{if $goods['type'] == STORE_TYPE_ACCOUNT_RENEW} 续费公众号 {else} 续费小程序 {/if}
{elseif $goods['type'] == STORE_TYPE_USER_PACKAGE}

购买商品后您将拥有相应的公众号应用，小程序应用，模板的使用权限，不受已有用户组的限制。

# 可创建数量

- 公众号
  {$user_group_info['maxaccount']}
- 子公众号
  {$user_group_info['maxsubaccount']}
- 小程序
  {$user_group_info['maxwxapp']}
- PC应用
  {$user_group_info['maxwebapp']}
- APP
  {$user_group_info['maxphoneapp']}

# 包含应用权限组

{else}
购买商品后您将拥有相应的公众号应用，小程序应用，模板的使用权限，不受已有用户组的限制。
公众号应用
{loop $module_groups[$goods['module_group']]['modules'] $module}
{$module['title']}
{/loop}
小程序应用
{loop $module_groups[$goods['module_group']]['wxapp'] $wxapp_module}
{$wxapp_module['title']}
{/loop}
模板
{loop $module_groups[$goods['module_group']]['templates'] $template}
{$template['title']}
{/loop}
{/if}
{/if} {template 'common/footer'}