名称 | -LOGO | -适用版本 | -适用终端 | -作者 | -描述 | -是否启用 | -用户开放 | -操作 | -
---|---|---|---|---|---|---|---|---|
- {{$v.name}}
- {{if !empty($v['version'])}}
- - v {{$v.version}} - - {{/if}} - |
- - {{if !empty($v['logo'])}} - - - - {{else /}} - 暂无LOGO - {{/if}} - | -- {{if empty($v['apply_version'])}}未填写{{else /}}{{$v.apply_version}}{{/if}} - | -
- {{if !empty($v['apply_terminal'])}}
- {{foreach $v.apply_terminal as $terminal_k=>$terminal_v}}
- {{$common_platform_type[$terminal_v]['name']}}
- {{if $terminal_k LT count($v['apply_terminal'])-1}} {{/if}} - {{/foreach}} - {{else /}} - 未填写 - {{/if}} - |
- - {{if empty($v['author'])}} - 未填写 - {{else /}} - {{$v.author}} - {{if !empty($v['author_url'])}} - - - - {{/if}} - {{/if}} - | -- {{if empty($v['desc'])}}未填写{{else /}}{{$v.desc|raw}}{{/if}} - | -- {{if $v['is_install'] eq 1}} - - {{else /}} - 未安装 - {{/if}} - | -- {{if $v['is_install'] eq 1}} - - {{else /}} - 未安装 - {{/if}} - | -- - | -
上传
- × -上传
+ × +{{$common_platform_type[$terminal_v]['name']}}
+ {{/foreach}} +{{/if}} \ No newline at end of file diff --git a/application/admin/view/default/payment/module/author.html b/application/admin/view/default/payment/module/author.html new file mode 100644 index 0000000000000000000000000000000000000000..875e0e2e9b5ac106ee38d9783b9acedb5297e5f7 --- /dev/null +++ b/application/admin/view/default/payment/module/author.html @@ -0,0 +1,9 @@ + +{{if !empty($module_data)}} + {{$module_data.author}} + {{if !empty($module_data['author_url'])}} + + + + {{/if}} +{{/if}} \ No newline at end of file diff --git a/application/admin/view/default/payment/module/enable.html b/application/admin/view/default/payment/module/enable.html new file mode 100644 index 0000000000000000000000000000000000000000..b7f40e605cac287effb9943ef32017b70fb33c2d --- /dev/null +++ b/application/admin/view/default/payment/module/enable.html @@ -0,0 +1,3 @@ +{{if !empty($module_data) and isset($module_data['is_install']) and $module_data['is_install'] eq 1}} + +{{/if}} \ No newline at end of file diff --git a/application/admin/view/default/payment/module/logo.html b/application/admin/view/default/payment/module/logo.html new file mode 100644 index 0000000000000000000000000000000000000000..4fb28f021cf4e9b996a8102d84223db203c1210f --- /dev/null +++ b/application/admin/view/default/payment/module/logo.html @@ -0,0 +1,6 @@ + +{{if !empty($module_data) and !empty($module_data['logo'])}} + + + +{{/if}} \ No newline at end of file diff --git a/application/admin/view/default/payment/module/open_user.html b/application/admin/view/default/payment/module/open_user.html new file mode 100644 index 0000000000000000000000000000000000000000..c967bd0347687c9f27d23981aec9b7f4dcec1411 --- /dev/null +++ b/application/admin/view/default/payment/module/open_user.html @@ -0,0 +1,3 @@ +{{if !empty($module_data) and isset($module_data['is_install']) and $module_data['is_install'] eq 1}} + +{{/if}} \ No newline at end of file diff --git a/application/admin/view/default/payment/module/operate.html b/application/admin/view/default/payment/module/operate.html new file mode 100644 index 0000000000000000000000000000000000000000..24d4f717e3bb8f574abf8539aae2c526798d30e4 --- /dev/null +++ b/application/admin/view/default/payment/module/operate.html @@ -0,0 +1,24 @@ + +{{if $module_data['is_install'] eq 0}} + + + {{if !in_array($module_data['payment'], $cannot_deleted_list)}} + + {{/if}} +{{else /}} + + + 编辑 + + + +{{/if}} \ No newline at end of file diff --git a/application/service/PaymentService.php b/application/service/PaymentService.php index ea66f6b5d48e3f223d07a8bad956a836f5b0d810..8d1e198ca113273b3f9fb262c8f8ed48f2151a44 100755 --- a/application/service/PaymentService.php +++ b/application/service/PaymentService.php @@ -77,6 +77,7 @@ class PaymentService { if($dh = opendir(self::$payment_dir)) { + $common_platform_type = lang('common_platform_type'); while(($temp_file = readdir($dh)) !== false) { if(substr($temp_file, 0, 1) != '.') @@ -99,10 +100,24 @@ class PaymentService $temp['id'] = $db_config[0]['id']; $temp['name'] = $db_config[0]['name']; $temp['logo'] = $db_config[0]['logo']; - $temp['apply_terminal'] = $db_config[0]['apply_terminal']; $temp['config'] = $db_config[0]['config']; $temp['is_enable'] = $db_config[0]['is_enable']; $temp['is_open_user'] = $db_config[0]['is_open_user']; + + // 支付平台类型 + $apply_terminal_names = []; + if(!empty($db_config[0]['apply_terminal']) && is_array($db_config[0]['apply_terminal'])) + { + foreach($common_platform_type as $platform_type) + { + if(in_array($platform_type['value'], $db_config[0]['apply_terminal'])) + { + $apply_terminal_names[] = $platform_type['name']; + } + } + } + $temp['apply_terminal_names'] = $apply_terminal_names; + $temp['apply_terminal'] = $db_config[0]['apply_terminal']; } $data[] = $temp; } @@ -111,7 +126,7 @@ class PaymentService closedir($dh); } } - return $data; + return DataReturn('success', 0, $data); } /** diff --git a/public/static/index/default/css/goods.css b/public/static/index/default/css/goods.css index a56a131019c457485f87681c95657ce618b645b8..e2bf1294baa47abda5ae36f86fc57313fccbf768 100755 --- a/public/static/index/default/css/goods.css +++ b/public/static/index/default/css/goods.css @@ -82,7 +82,7 @@ input{font-size:12px;font-size:100%;outline:none;line-height:normal;color:#444;} .score-container .am-progress { width: calc(100% - 105px); margin-bottom: 0; margin-top: 18px; line-height: 2rem; text-align: center; } /*详情*/ -.detail-content img { max-width: 100%; } +.detail-content img { max-width: 100%; height: auto; } @media only screen and (min-width:640px) { .theme-span{height:0px;background:#fff ;}