123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card" data-auto="true" method="post">
- <div class="layui-card-body padding-left-40">
- <fieldset class="layui-form-item">
- <legend><span class="layui-badge layui-bg-cyan">用户等级</span></legend>
- <div class="layui-form-item layui-row layui-col-space15">
- <div class="layui-col-xs3 block relative">
- <span class="color-green label-required-prev">等级序号</span><span class="margin-left-5 color-desc">Number</span>
- <select class="layui-select" name="number">
- {for start="1" end="10" name="i"}{if isset($vo.number) and $vo.number eq $i}
- <option selected value="{$i}">当前 VIP {$vo.number} 等级</option>
- {else}
- <option value="{$i}">设置 VIP {$i} 等级</option>
- {/if}{/for}
- </select>
- </div>
- <label class="layui-col-xs9 block relative">
- <span class="color-green label-required-prev">等级名称</span><span class="margin-left-5 color-desc">Level Name</span>
- <input class="layui-input" name="name" placeholder="请输入等级名称" required value="{$vo.name|default=''}">
- </label>
- </div>
- </fieldset>
- <fieldset class="layui-form-item">
- <legend><span class="layui-badge layui-bg-cyan">升级规则</span></legend>
- <div class="layui-form-item">
- {php}$vo['upgrade_type'] = $vo['upgrade_type'] ?? 1;{/php}
- {foreach [1=>'达成所有条件',0=>'达成任何条件'] as $k => $v}
- {if isset($vo.upgrade_type) and $vo.upgrade_type eq $k}
- <label class="think-radio"><input checked lay-ignore name="upgrade_type" type="radio" value="{$k}"> {$v}</label>
- {else}
- <label class="think-radio"><input lay-ignore name="upgrade_type" type="radio" value="{$k}"> {$v}</label>
- {/if}{/foreach}
- </div>
- </fieldset>
- <fieldset class="layui-form-item">
- <legend><span class="layui-badge layui-bg-cyan">升级条件</span></legend>
- <div class="font-s13">
- <label class="layui-form-item block relative think-checkbox notselect">
- {if isset($vo.goods_vip_status) and $vo.goods_vip_status eq 1}
- ① <input checked lay-ignore name="goods_vip_status" type="checkbox" value="1">开启
- {else}
- ① <input lay-ignore name="goods_vip_status" type="checkbox" value="1">开启
- {/if}
- 需要 <span class="color-blue">购买入会礼包</span> 达成升级;
- </label>
- <label class="layui-form-item block relative think-checkbox notselect">
- {if isset($vo.teams_direct_status) and $vo.teams_direct_status eq 1}
- ② <input checked lay-ignore name="teams_direct_status" type="checkbox" value="1">开启
- {else}
- ② <input lay-ignore name="teams_direct_status" type="checkbox" value="1">开启
- {/if}
- <span class="color-blue">直推团队</span> 升级,<span class="color-blue">直推团队</span> 达到
- <input class="inline-block text-center" data-blur-number="0" name="teams_direct_number" style="width:80px" value="{$vo.teams_direct_number|default='0'}">
- 人;
- </label>
- <label class="layui-form-item block relative think-checkbox notselect">
- {if isset($vo.teams_indirect_status) and $vo.teams_indirect_status eq 1}
- ③ <input checked lay-ignore name="teams_indirect_status" type="checkbox" value="1">开启
- {else}
- ③ <input lay-ignore name="teams_indirect_status" type="checkbox" value="1">开启
- {/if}
- <span class="color-blue">间接团队</span> 升级,<span class="color-blue">间接团队</span> 达到
- <input class="inline-block text-center" data-blur-number="0" name="teams_indirect_number" style="width:80px" value="{$vo.teams_indirect_number|default='0'}">
- 人;
- </label>
- <label class="layui-form-item block relative think-checkbox notselect">
- {if isset($vo.teams_users_status) and $vo.teams_users_status eq 1}
- ④ <input checked lay-ignore name="teams_users_status" type="checkbox" value="1">开启
- {else}
- ④ <input lay-ignore name="teams_users_status" type="checkbox" value="1">开启
- {/if}
- <span class="color-blue">团队总数</span> 升级,<span class="color-blue">团队总数</span> 达到
- <input class="inline-block text-center" data-blur-number="0" name="teams_users_number" style="width:80px" value="{$vo.teams_users_number|default='0'}">
- 人;
- </label>
- <label class="layui-form-item block relative think-checkbox notselect">
- {if isset($vo.order_amount_status) and $vo.order_amount_status eq 1}
- ⑤ <input checked lay-ignore name="order_amount_status" type="checkbox" value="1">开启
- {else}
- ⑤ <input lay-ignore name="order_amount_status" type="checkbox" value="1">开启
- {/if}
- <span class="color-blue">订单总额</span> 升级,<span class="color-blue">订单总额</span> 达到
- <input class="inline-block text-center" data-blur-number="2" name="order_amount_number" style="width:80px" value="{$vo.order_amount_number|default='0'}">
- 元;
- </label>
- </div>
- </fieldset>
- <fieldset class="layui-form-item">
- <legend><span class="layui-badge layui-bg-cyan">发放奖利</span></legend>
- <div class="layui-form-item notselect">
- {foreach $prizes as $prize}{if isset($vo.rebate_rule) && is_array($vo.rebate_rule) && in_array($prize.code, $vo.rebate_rule)}
- <label class="think-checkbox"><input checked lay-ignore name="rebate_rule[]" type="checkbox" value="{$prize.code}"> {$prize.name}</label>
- {else}
- <label class="think-checkbox"><input lay-ignore name="rebate_rule[]" type="checkbox" value="{$prize.code}"> {$prize.name}</label>
- {/if}{/foreach}
- </div>
- </fieldset>
- <fieldset class="layui-form-item layui-hide">
- <legend><span class="layui-badge layui-bg-cyan">等级描述</span></legend>
- <label class="layui-form-item block relative">
- <textarea class="layui-textarea" name="remark" placeholder="请输入用户等级描述">{$vo.remark|default=''}</textarea>
- </label>
- </fieldset>
- <div class="hr-line-dashed"></div>
- {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}
- {notempty name='vo.number'}<input name='old_number' type='hidden' value='{$vo.number}'>{/notempty}
- <div class="layui-form-item text-center">
- <button class="layui-btn" type='submit'>保存数据</button>
- <button class="layui-btn layui-btn-danger" data-close data-confirm="确定要取消编辑吗?" type='button'>取消编辑</button>
- </div>
- </div>
- <script>form.render()</script>
- </form>
|