songxingwei 3 anni fa
parent
commit
7cec3ce09c

+ 0 - 32
application/store/view/config/index-store-config.html

@@ -1,32 +0,0 @@
-<form onsubmit="return false;" data-auto="true" action="{:url('save')}" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body padding-40">
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">商城展示名称</span><span class="nowrap color-desc">StoreTitle</span>
-            <input name="store_title" required placeholder="请输入商城展示名称" value="{:sysconf('store_title')}" class="layui-input">
-            <p class="help-block">订单支付等待时长,新下订单未在此时间内容完成支付将会被自动取消</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">未订单的支付等待时长(小时)</span><span class="nowrap color-desc">OrderWaitTime</span>
-            <input onblur="this.value=Math.abs(parseFloat(this.value)||0.00).toFixed(2)" name="store_order_wait_time" required placeholder="请输入订单支付等待时长" value="{:sysconf('store_order_wait_time')}" class="layui-input">
-            <p class="help-block">订单支付等待时长,新下订单未在此时间内容完成支付将会被自动取消</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">已取消的订单清理时长(小时)</span><span class="nowrap color-desc">OrderClearTime</span>
-            <input onblur="this.value=Math.abs(parseFloat(this.value)||0.00).toFixed(2)" name="store_order_clear_time" required placeholder="请输入已取消订单清理时长" value="{:sysconf('store_order_clear_time')}" class="layui-input">
-            <p class="help-block">已取消订单清理时长,已取消未支付订单将在此时间点将被自动清理掉</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">已发货订单自动确认收货时长(小时)</span><span class="nowrap color-desc">OrderConfirmTime</span>
-            <input onblur="this.value=Math.abs(parseFloat(this.value)||0.00).toFixed(2)" name="store_order_confirm_time" required placeholder="请输入已发货订单自动确认收货时长" value="{:sysconf('store_order_confirm_time')}" class="layui-input">
-            <p class="help-block">已取消订单清理时长,已取消未支付订单将在此时间点将被自动清理掉</p>
-        </label>
-
-        <div class="layui-form-item text-center margin-top-20">
-            <button class="layui-btn" type="submit">保存配置</button>
-        </div>
-    </div>
-</form>

+ 0 - 45
application/store/view/config/index-store-message1.html

@@ -1,45 +0,0 @@
-<form onsubmit="return false;" data-auto="true" action="{:url('save')}" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body padding-40">
-
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">接口查询状态</span><span class="nowrap color-desc">UserState</span>
-            {if empty($query.code)}
-            <p class="layui-input layui-bg-gray color-red">{$query.msg|default=''}</p>
-            {elseif $query.code eq 1}
-            <p class="layui-input layui-bg-gray color-green">平台剩余 {$query.num|default=0} 条可用短信,{$query.msg|default=''}</p>
-            {else}
-            <p class="layui-input layui-bg-gray color-text">没有结果</p>
-            {/if}
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">短信平台账号</span><span class="nowrap color-desc">Username</span>
-            <input name="sms_zt_username" required placeholder="请输入助通短信平台账号" value="{:sysconf('sms_zt_username')}" class="layui-input">
-            <p class="help-block">短信平台账号,可以联系18122377655获取账号与密码</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">短信平台密码</span><span class="nowrap color-desc">Password</span>
-            <input name="sms_zt_password" required placeholder="请输入助通短信平台密码" value="{:sysconf('sms_zt_password')}" class="layui-input">
-            <p class="help-block">短信平台密码,可以联系18122377655获取账号与密码</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">短信发送安全码</span><span class="nowrap color-desc">Secure</span>
-            <input name="sms_secure" required placeholder="请输入短信发送安全码" value="{:sysconf('sms_secure')}" class="layui-input">
-            <p class="help-block">短信发送安全码,调用接口发短信时需要传入此参数</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">注册短信模板</span><span class="nowrap color-desc">Template</span>
-            <textarea class="layui-textarea" required name="sms_reg_template" placeholder="请输入助通短信平台密码">{:sysconf('sms_reg_template')}</textarea>
-            <p class="help-block">会员注册短信模板,验证码变量使用 {code} 代替</p>
-        </label>
-
-        <div class="layui-form-item text-center margin-top-20">
-            <button class="layui-btn" type="submit">保存配置</button>
-        </div>
-
-    </div>
-</form>

+ 0 - 45
application/store/view/config/index-store-message2.html

@@ -1,45 +0,0 @@
-<form onsubmit="return false;" data-auto="true" action="{:url('save')}" method="post" class='layui-form layui-card' autocomplete="off">
-
-    <div class="layui-card-body padding-40">
-
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">接口查询状态</span><span class="nowrap color-desc">UserState</span>
-            {if empty($query2.code)}
-            <p class="layui-input layui-bg-gray color-red">{$query2.msg|default=''}</p>
-            {elseif $query2.code eq 1}
-            <p class="layui-input layui-bg-gray color-green">平台剩余 {$query2.num|default=0} 元可用余额,{$query2.msg|default=''}</p>
-            {else}
-            <p class="layui-input layui-bg-gray color-text">没有结果</p>
-            {/if}
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">短信平台账号</span><span class="nowrap color-desc">Username</span>
-            <input name="sms_zt_username2" required placeholder="请输入短信平台账号" value="{:sysconf('sms_zt_username2')}" class="layui-input">
-            <p class="help-block">短信平台账号,可以联系18122377655获取账号与密码</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">短信平台密码</span><span class="nowrap color-desc">Password</span>
-            <input name="sms_zt_password2" required placeholder="请输入短信平台密码" value="{:sysconf('sms_zt_password2')}" class="layui-input">
-            <p class="help-block">短信平台密码,可以联系18122377655获取账号与密码</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">短信发送安全码</span><span class="nowrap color-desc">Secure</span>
-            <input name="sms_secure2" required placeholder="请输入短信发送安全码" value="{:sysconf('sms_secure2')}" class="layui-input">
-            <p class="help-block">短信发送安全码,调用接口发短信时需要传入此参数</p>
-        </label>
-
-        <label class="layui-form-item margin-top-20 block relative">
-            <span class="color-green margin-right-10">注册短信模板</span><span class="nowrap color-desc">Template</span>
-            <textarea class="layui-textarea" required name="sms_reg_template2" placeholder="请输入短信平台密码">{:sysconf('sms_reg_template2')}</textarea>
-            <p class="help-block">会员注册短信模板,验证码变量使用 {code} 代替</p>
-        </label>
-
-        <div class="layui-form-item text-center margin-top-20">
-            <button class="layui-btn" type="submit">保存配置</button>
-        </div>
-
-    </div>
-</form>

+ 0 - 30
application/store/view/config/index.html

@@ -1,30 +0,0 @@
-{extend name="admin@main"}
-
-{block name="content"}
-
-<div class="layui-tab layui-tab-card think-bg-white">
-    <ul class="layui-tab-title notselect">
-        <li data-type='store-config-type-params'>商城参数设置</li>
-        <li data-type="store-config-type-sms1">国内短信设置</li>
-        <li data-type="store-config-type-sms2">国际短信设置</li>
-    </ul>
-    <div class="layui-tab-content">
-        <div class="layui-tab-item">{include file='config/index-store-config'}</div>
-        <div class="layui-tab-item">{include file='config/index-store-message1'}</div>
-        <div class="layui-tab-item">{include file='config/index-store-message2'}</div>
-    </div>
-</div>
-
-<script>
-    (function (storage) {
-        (function (type, $default, $checked) {
-            $default = $('.layui-tab ul.layui-tab-title li:first');
-            $checked = $('.layui-tab ul.layui-tab-title li[data-type="' + type + '"]');
-            ($checked.length > 0 ? $checked : $default).trigger('click');
-        })(layui.data(storage)['type'] || '');
-        $('.layui-tab ul.layui-tab-title li[data-type]').on('click', function () {
-            layui.data(storage, {key: 'type', value: this.getAttribute('data-type')});
-        });
-    })('store-config-type');
-</script>
-{/block}