songxingwei пре 2 година
родитељ
комит
d22ae51c16

+ 130 - 94
application/store/view/config/platform-set.html

@@ -2,135 +2,171 @@
 
     <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">CancelTime</span>
-            <input name="cancel_time" type="number" required placeholder="自动取消订单时间" value="{:sysconf('cancel_time')}" class="layui-input">
-            <p class="help-block">用户下单后??分之后未支付自动取消(正整数)</p>
-        </label>
-
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">二级市场自动取消订单时间(分)</span><span class="nowrap color-desc">SecondaryCancelTime</span>
-            <input name="secondary_cancel_time" type="number" required placeholder="自动取消订单时间" value="{:sysconf('secondary_cancel_time')}" class="layui-input">
-            <p class="help-block">用户下单后??分之后未支付自动取消(正整数)</p>
-        </label>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">一级市场自动取消订单时间(分)</span><span class="nowrap color-desc">CancelTime</span>
+                <input name="cancel_time" type="number" required placeholder="自动取消订单时间" value="{:sysconf('cancel_time')}" class="layui-input">
+                <p class="help-block">用户下单后??分之后未支付自动取消(正整数)</p>
+            </label>
 
-<!--        <label class="layui-form-item block relative">-->
-<!--            <span class="color-green margin-right-10">创世勋章提前抢购分钟(分)</span><span class="nowrap color-desc">AdvanceMinutes</span>-->
-<!--            <input name="advance_minutes" type="number" required placeholder="创世勋章提前抢购分钟" value="{:sysconf('advance_minutes')}" class="layui-input">-->
-<!--            <p class="help-block">创世勋章提前抢购分钟(正整数)</p>-->
-<!--        </label>-->
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">二级市场自动取消订单时间(分)</span><span class="nowrap color-desc">SecondaryCancelTime</span>
+                <input name="secondary_cancel_time" type="number" required placeholder="自动取消订单时间" value="{:sysconf('secondary_cancel_time')}" class="layui-input">
+                <p class="help-block">用户下单后??分之后未支付自动取消(正整数)</p>
+            </label>
+        </div>
 
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">购买藏品获得积分(购买一个藏品)</span><span class="nowrap color-desc">ByCollectionIntegral</span>
-            <input name="by_collection_integral" type="number" required placeholder="购买藏品获得积分" value="{:sysconf('by_collection_integral')}" class="layui-input">
-            <p class="help-block">购买藏品成功后获得积分(正整数)</p>
-        </label>
+        <!--        <label class="layui-form-item block relative">-->
+        <!--            <span class="color-green margin-right-10">创世勋章提前抢购分钟(分)</span><span class="nowrap color-desc">AdvanceMinutes</span>-->
+        <!--            <input name="advance_minutes" type="number" required placeholder="创世勋章提前抢购分钟" value="{:sysconf('advance_minutes')}" class="layui-input">-->
+        <!--            <p class="help-block">创世勋章提前抢购分钟(正整数)</p>-->
+        <!--        </label>-->
+
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">购买藏品获得积分(购买一个藏品)</span><span class="nowrap color-desc">ByCollectionIntegral</span>
+                <input name="by_collection_integral" type="number" required placeholder="购买藏品获得积分" value="{:sysconf('by_collection_integral')}" class="layui-input">
+                <p class="help-block">购买藏品成功后获得积分(正整数)</p>
+            </label>
 
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">签到获得积分</span><span class="nowrap color-desc">SignIntegral</span>
-            <input name="sign_integral" type="number" required placeholder="签到获得积分" value="{:sysconf('sign_integral')}" class="layui-input">
-            <p class="help-block">签到获得积分(正整数)</p>
-        </label>
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">签到获得积分</span><span class="nowrap color-desc">SignIntegral</span>
+                <input name="sign_integral" type="number" required placeholder="签到获得积分" value="{:sysconf('sign_integral')}" class="layui-input">
+                <p class="help-block">签到获得积分(正整数)</p>
+            </label>
 
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">邀请好友获得积分</span><span class="nowrap color-desc">InviteFriendsIntegral</span>
-            <input name="invite_friends_integral" type="number" required placeholder="邀请好友获得积分" value="{:sysconf('invite_friends_integral')}" class="layui-input">
-            <p class="help-block">邀请好友获得积分(正整数)</p>
-        </label>
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">邀请好友获得积分</span><span class="nowrap color-desc">InviteFriendsIntegral</span>
+                <input name="invite_friends_integral" type="number" required placeholder="邀请好友获得积分" value="{:sysconf('invite_friends_integral')}" class="layui-input">
+                <p class="help-block">邀请好友获得积分(正整数)</p>
+            </label>
+        </div>
 
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">盲盒免费次数</span><span class="nowrap color-desc">FreeLuckyNumber</span>
-            <input name="free_lucky_number" type="number" required placeholder="次数" value="{:sysconf('free_lucky_number')}" class="layui-input">
-            <p class="help-block">盲盒每日每人免费抽奖次数(正整数)</p>
-        </label>
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">盲盒免费次数</span><span class="nowrap color-desc">FreeLuckyNumber</span>
+                <input name="free_lucky_number" type="number" required placeholder="次数" value="{:sysconf('free_lucky_number')}" class="layui-input">
+                <p class="help-block">盲盒每日每人免费抽奖次数(正整数)</p>
+            </label>
 
-        <label class="layui-form-item block relative">
-            <span class="color-green margin-right-10">盲盒充值价格</span><span class="nowrap color-desc">LuckyRechargePrice</span>
-            <input name="lucky_recharge_price"  required placeholder="价格" value="{:sysconf('lucky_recharge_price')}" class="layui-input">
-            <p class="help-block">盲盒次数充值价格(金额)</p>
-        </label>
+            <label class="layui-col-xs3 relative">
+                <span class="color-green margin-right-10">盲盒充值价格</span><span class="nowrap color-desc">LuckyRechargePrice</span>
+                <input name="lucky_recharge_price"  required placeholder="价格" value="{:sysconf('lucky_recharge_price')}" class="layui-input">
+                <p class="help-block">盲盒次数充值价格(金额)</p>
+            </label>
+        </div>
 
-        <div class="layui-form-item">
-            <label class="relative block">
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
                 <span class="color-green font-w7">提现最小金额 WithdrawMinPrice</span>
                 <input name="withdraw_min_price" required placeholder="请输入提现最小金额" value="{:sysconf('withdraw_min_price')}" class="layui-input">
+                <p class="help-block">提现最小金额</p>
             </label>
-            <p class="help-block">提现最小金额</p>
-        </div>
-        <div class="layui-form-item">
-            <label class="relative block">
+
+            <label class="layui-col-xs3 relative">
                 <span class="color-green font-w7">提现最大金额 WithdrawMaxPrice</span>
                 <input name="withdraw_max_price" required placeholder="请输入提现最大金额" value="{:sysconf('withdraw_max_price')}" class="layui-input">
+                <p class="help-block">提现最大金额</p>
             </label>
-            <p class="help-block">提现最大金额</p>
-        </div>
 
-        <div class="layui-form-item">
-            <label class="relative block">
+
+
+            <label class="layui-col-xs3 relative">
                 <span class="color-green font-w7">提现服务费百分比 PoundageProportion</span>
                 <input name="poundage_proportion" required placeholder="请输入余额操作服务费百分比" value="{:sysconf('poundage_proportion')}" class="layui-input">
+                <p class="help-block">余额提现服务费百分比</p>
             </label>
-            <p class="help-block">余额提现服务费百分比</p>
+
         </div>
 
 
-        <div class="layui-form-item">
-            <label class="relative block">
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs3 relative">
                 <span class="color-green font-w7">上架服务费百分比 ServiceFee</span>
                 <input name="service_fee" required placeholder="请输入服务费百分比" value="{:sysconf('service_fee')}" class="layui-input">
+                <p class="help-block">二级市场藏品上架出售服务费百分比</p>
             </label>
-            <p class="help-block">二级市场藏品上架出售服务费百分比</p>
-        </div>
-        <div class="layui-form-item">
-            <label class="relative block">
+
+            <label class="layui-col-xs3 relative">
                 <span class="color-green font-w7">上架版税百分比 Royalties</span>
                 <input name="royalties" required placeholder="请输入版税百分比" value="{:sysconf('royalties')}" class="layui-input">
+                <p class="help-block">二级市场藏品上架出售版税百分比</p>
             </label>
-            <p class="help-block">二级市场藏品上架出售版税百分比</p>
+
         </div>
 
-<!--        <label class="layui-form-item block relative">-->
-<!--            <span class="color-green margin-right-10">自定义名称</span><span class="nowrap color-desc">PlatName</span>-->
-<!--            <input name="plat_name" required placeholder="" value="{:sysconf('plat_name')}" class="layui-input">-->
-<!--        </label>-->
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs2 relative">
+                <span class="color-green font-w7">二级市场商品出售开关<input checked type="radio" hidden readonly name=""  value="" lay-ignore></span>
+                <div>
+                    {if sysconf("secondary_sell_switch") eq 1}
+                    <input checked type="radio"  name="secondary_sell_switch"  value="1" title="开">
+                    <input  type="radio" name="secondary_sell_switch"  value="0" title="关">
+                    {else/}
+                    <input  type="radio"  name="secondary_sell_switch"  value="1" title="开">
+                    <input checked type="radio" name="secondary_sell_switch"  value="0" title="关">
+                    {/if}
+                </div>
+            </label>
+
+            <label class="layui-col-xs2 relative">
+                <span class="color-green font-w7">二级市场微信支付开关<input checked type="radio" hidden readonly name=""  value="" lay-ignore></span>
+                <div>
+                    {if sysconf("secondary_wx_switch") eq 1}
+                    <input checked type="radio"  name="secondary_wx_switch"  value="1" title="开">
+                    <input  type="radio" name="secondary_wx_switch"  value="0" title="关">
+                    {else/}
+                    <input  type="radio"  name="secondary_wx_switch"  value="1" title="开">
+                    <input checked type="radio" name="secondary_wx_switch"  value="0" title="关">
+                    {/if}
+                </div>
+            </label>
+
+            <label class="layui-col-xs2 relative">
+                <span class="color-green font-w7">二级市场支付宝支付开关<input checked type="radio" hidden readonly name=""  value="" lay-ignore></span>
+                <div>
+                    {if sysconf("secondary_zfb_switch") eq 1}
+                    <input checked type="radio"  name="secondary_zfb_switch"  value="1" title="开">
+                    <input  type="radio" name="secondary_zfb_switch"  value="0" title="关">
+                    {else/}
+                    <input  type="radio"  name="secondary_zfb_switch"  value="1" title="开">
+                    <input checked type="radio" name="secondary_zfb_switch"  value="0" title="关">
+                    {/if}
+                </div>
+            </label>
+
+            <label class="layui-col-xs2 relative">
+                <span class="color-green font-w7">二级市场杉德支付开关<input checked type="radio" hidden readonly name=""  value="" lay-ignore></span>
+                <div>
+                    {if sysconf("secondary_sd_switch") eq 1}
+                    <input checked type="radio"  name="secondary_sd_switch"  value="1" title="开">
+                    <input  type="radio" name="secondary_sd_switch"  value="0" title="关">
+                    {else/}
+                    <input  type="radio"  name="secondary_sd_switch"  value="1" title="开">
+                    <input checked type="radio" name="secondary_sd_switch"  value="0" title="关">
+                    {/if}
+                </div>
+            </label>
 
-<!--        <label class="layui-form-item block relative">-->
-<!--            <span class="color-green margin-right-10">关于发货</span><span class="nowrap color-desc">AboutDeliver</span>-->
-<!--            <input name="about_deliver"  placeholder="" value="{:sysconf('about_deliver')}" class="layui-input">-->
-<!--        </label>-->
+            <label class="layui-col-xs2 relative">
+                <span class="color-green font-w7">提现开关<input checked type="radio" hidden readonly name=""  value="" lay-ignore></span>
+                <div>
+                    {if sysconf("withdraw_switch") eq 1}
+                    <input checked type="radio"  name="withdraw_switch"  value="1" title="开">
+                    <input  type="radio" name="withdraw_switch"  value="0" title="关">
+                    {else/}
+                    <input  type="radio"  name="withdraw_switch"  value="1" title="开">
+                    <input checked type="radio" name="withdraw_switch"  value="0" title="关">
+                    {/if}
+                </div>
+            </label>
+        </div>
 
         <label class="layui-form-item block relative">
             <span class="color-green margin-right-10">转赠说明</span><span class="nowrap color-desc">ExamplesIllustrate</span>
             <textarea placeholder="请输入转赠说明" required class="layui-textarea" name="examples_illustrate">{:sysconf('examples_illustrate')}</textarea>
         </label>
 
-
-<!--        <label class="layui-form-item block relative">-->
-<!--            <span class="color-green margin-right-10">安卓版本</span><span class="nowrap color-desc">AndroidVersion</span>-->
-<!--            <input name="android_version"  required placeholder="安卓版本" value="{:sysconf('android_version')}" class="layui-input">-->
-<!--            <p class="help-block">安卓当前版本号</p>-->
-<!--        </label>-->
-
-
-<!--        <label class="layui-form-item block relative">-->
-<!--            <label class="layui-col-xs8 think-form-group-left">-->
-<!--                <input name="android_package" required value="{:sysconf('android_package')}" placeholder="请上传安卓包" class="layui-input">-->
-<!--            </label>-->
-<!--            <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="android_package" data-type="apk">-->
-<!--                <i class="layui-icon layui-icon-upload"></i> 上传-->
-<!--            </a>-->
-<!--        </label>-->
-
-<!--        <label class="layui-form-item block relative">-->
-<!--            <span class="color-green margin-right-10">ios地址</span><span class="nowrap color-desc">IosPackage</span>-->
-<!--            <input name="ios_package"  required placeholder="ios地址" value="{:sysconf('ios_package')}" class="layui-input">-->
-<!--            <p class="help-block">ios链接地址</p>-->
-<!--        </label>-->
-
-
-
-
-
         <div class="layui-form-item text-center margin-top-20">
             <button class="layui-btn" type="submit">保存配置</button>
         </div>

+ 156 - 0
application/store/view/config/platform-set2.html

@@ -0,0 +1,156 @@
+<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">CancelTime</span>
+            <input name="cancel_time" type="number" required placeholder="自动取消订单时间" value="{:sysconf('cancel_time')}" class="layui-input">
+            <p class="help-block">用户下单后??分之后未支付自动取消(正整数)</p>
+        </label>
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">二级市场自动取消订单时间(分)</span><span class="nowrap color-desc">SecondaryCancelTime</span>
+            <input name="secondary_cancel_time" type="number" required placeholder="自动取消订单时间" value="{:sysconf('secondary_cancel_time')}" class="layui-input">
+            <p class="help-block">用户下单后??分之后未支付自动取消(正整数)</p>
+        </label>
+
+<!--        <label class="layui-form-item block relative">-->
+<!--            <span class="color-green margin-right-10">创世勋章提前抢购分钟(分)</span><span class="nowrap color-desc">AdvanceMinutes</span>-->
+<!--            <input name="advance_minutes" type="number" required placeholder="创世勋章提前抢购分钟" value="{:sysconf('advance_minutes')}" class="layui-input">-->
+<!--            <p class="help-block">创世勋章提前抢购分钟(正整数)</p>-->
+<!--        </label>-->
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">购买藏品获得积分(购买一个藏品)</span><span class="nowrap color-desc">ByCollectionIntegral</span>
+            <input name="by_collection_integral" type="number" required placeholder="购买藏品获得积分" value="{:sysconf('by_collection_integral')}" class="layui-input">
+            <p class="help-block">购买藏品成功后获得积分(正整数)</p>
+        </label>
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">签到获得积分</span><span class="nowrap color-desc">SignIntegral</span>
+            <input name="sign_integral" type="number" required placeholder="签到获得积分" value="{:sysconf('sign_integral')}" class="layui-input">
+            <p class="help-block">签到获得积分(正整数)</p>
+        </label>
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">邀请好友获得积分</span><span class="nowrap color-desc">InviteFriendsIntegral</span>
+            <input name="invite_friends_integral" type="number" required placeholder="邀请好友获得积分" value="{:sysconf('invite_friends_integral')}" class="layui-input">
+            <p class="help-block">邀请好友获得积分(正整数)</p>
+        </label>
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">盲盒免费次数</span><span class="nowrap color-desc">FreeLuckyNumber</span>
+            <input name="free_lucky_number" type="number" required placeholder="次数" value="{:sysconf('free_lucky_number')}" class="layui-input">
+            <p class="help-block">盲盒每日每人免费抽奖次数(正整数)</p>
+        </label>
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">盲盒充值价格</span><span class="nowrap color-desc">LuckyRechargePrice</span>
+            <input name="lucky_recharge_price"  required placeholder="价格" value="{:sysconf('lucky_recharge_price')}" class="layui-input">
+            <p class="help-block">盲盒次数充值价格(金额)</p>
+        </label>
+
+        <div class="layui-form-item">
+            <label class="relative block">
+                <span class="color-green font-w7">提现最小金额 WithdrawMinPrice</span>
+                <input name="withdraw_min_price" required placeholder="请输入提现最小金额" value="{:sysconf('withdraw_min_price')}" class="layui-input">
+            </label>
+            <p class="help-block">提现最小金额</p>
+        </div>
+        <div class="layui-form-item">
+            <label class="relative block">
+                <span class="color-green font-w7">提现最大金额 WithdrawMaxPrice</span>
+                <input name="withdraw_max_price" required placeholder="请输入提现最大金额" value="{:sysconf('withdraw_max_price')}" class="layui-input">
+            </label>
+            <p class="help-block">提现最大金额</p>
+        </div>
+
+        <div class="layui-form-item">
+            <label class="relative block">
+                <span class="color-green font-w7">提现服务费百分比 PoundageProportion</span>
+                <input name="poundage_proportion" required placeholder="请输入余额操作服务费百分比" value="{:sysconf('poundage_proportion')}" class="layui-input">
+            </label>
+            <p class="help-block">余额提现服务费百分比</p>
+        </div>
+
+
+        <div class="layui-form-item">
+            <label class="relative block">
+                <span class="color-green font-w7">上架服务费百分比 ServiceFee</span>
+                <input name="service_fee" required placeholder="请输入服务费百分比" value="{:sysconf('service_fee')}" class="layui-input">
+            </label>
+            <p class="help-block">二级市场藏品上架出售服务费百分比</p>
+        </div>
+        <div class="layui-form-item">
+            <label class="relative block">
+                <span class="color-green font-w7">上架版税百分比 Royalties</span>
+                <input name="royalties" required placeholder="请输入版税百分比" value="{:sysconf('royalties')}" class="layui-input">
+            </label>
+            <p class="help-block">二级市场藏品上架出售版税百分比</p>
+        </div>
+
+<!--        <label class="layui-form-item block relative">-->
+<!--            <span class="color-green margin-right-10">自定义名称</span><span class="nowrap color-desc">PlatName</span>-->
+<!--            <input name="plat_name" required placeholder="" value="{:sysconf('plat_name')}" class="layui-input">-->
+<!--        </label>-->
+
+<!--        <label class="layui-form-item block relative">-->
+<!--            <span class="color-green margin-right-10">关于发货</span><span class="nowrap color-desc">AboutDeliver</span>-->
+<!--            <input name="about_deliver"  placeholder="" value="{:sysconf('about_deliver')}" class="layui-input">-->
+<!--        </label>-->
+
+        <label class="layui-form-item block relative">
+            <span class="color-green margin-right-10">转赠说明</span><span class="nowrap color-desc">ExamplesIllustrate</span>
+            <textarea placeholder="请输入转赠说明" required class="layui-textarea" name="examples_illustrate">{:sysconf('examples_illustrate')}</textarea>
+        </label>
+
+
+<!--        <label class="layui-form-item block relative">-->
+<!--            <span class="color-green margin-right-10">安卓版本</span><span class="nowrap color-desc">AndroidVersion</span>-->
+<!--            <input name="android_version"  required placeholder="安卓版本" value="{:sysconf('android_version')}" class="layui-input">-->
+<!--            <p class="help-block">安卓当前版本号</p>-->
+<!--        </label>-->
+
+
+<!--        <label class="layui-form-item block relative">-->
+<!--            <label class="layui-col-xs8 think-form-group-left">-->
+<!--                <input name="android_package" required value="{:sysconf('android_package')}" placeholder="请上传安卓包" class="layui-input">-->
+<!--            </label>-->
+<!--            <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="android_package" data-type="apk">-->
+<!--                <i class="layui-icon layui-icon-upload"></i> 上传-->
+<!--            </a>-->
+<!--        </label>-->
+
+<!--        <label class="layui-form-item block relative">-->
+<!--            <span class="color-green margin-right-10">ios地址</span><span class="nowrap color-desc">IosPackage</span>-->
+<!--            <input name="ios_package"  required placeholder="ios地址" value="{:sysconf('ios_package')}" class="layui-input">-->
+<!--            <p class="help-block">ios链接地址</p>-->
+<!--        </label>-->
+
+
+
+
+
+        <div class="layui-form-item text-center margin-top-20">
+            <button class="layui-btn" type="submit">保存配置</button>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('laydate', function(){
+        var laydate = layui.laydate;
+        //时间选择器
+        laydate.render({
+            elem: '#start_time_cost'
+            ,type: 'time'
+        });
+        laydate.render({
+            elem: '#end_time_cost'
+            ,type: 'time'
+        });
+    })
+
+
+
+
+</script>