Compare commits
8 Commits
557798d558
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| cbada0b5c5 | |||
| 378389b66b | |||
| 5887dc402a | |||
| edf47a5cc3 | |||
| b24dbee5b0 | |||
| 31604027e3 | |||
| 1c67b47ff6 | |||
| 21b36969ff |
@ -0,0 +1 @@
|
||||
oslWGWc_CQW7j5ihsEgwDCIM9UCRJ6F4xYpl6BoI2mU.rGo-7MeQym6vvdWtE2EmeK-QrR4vQClzR5C-LJqfurM
|
||||
@ -44,7 +44,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label reqRed">一级佣金比例</label>
|
||||
<label class="layui-form-label reqRed">平台比例</label>
|
||||
<div class="layui-inline">
|
||||
<input type="number" min="0" name="first_ratio" value="{$detail.first_ratio}" required lay-verify="required" autocomplete="off" class="layui-input" />
|
||||
</div>
|
||||
@ -53,7 +53,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label reqRed">二级佣金比例</label>
|
||||
<label class="layui-form-label reqRed">分销会员比例</label>
|
||||
<div class="layui-inline">
|
||||
<input type="number" min="0" name="second_ratio" value="{$detail.second_ratio}" required lay-verify="required" autocomplete="off" class="layui-input" />
|
||||
</div>
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
</div>
|
||||
<div class="layui-card-body">
|
||||
<!--功能按钮-->
|
||||
<div class="btns">
|
||||
<buttion class="layui-btn layui-btn-sm layui-bg-blue" id="add">添加分销等级</buttion>
|
||||
</div>
|
||||
<!-- <div class="btns">-->
|
||||
<!-- <buttion class="layui-btn layui-btn-sm layui-bg-blue" id="add">添加分销等级</buttion>-->
|
||||
<!-- </div>-->
|
||||
<!--数据表格-->
|
||||
<table id="lists" lay-filter="lists"></table>
|
||||
<!--工具条模板-->
|
||||
@ -54,8 +54,8 @@
|
||||
,cols: [[ //表头
|
||||
{field: 'weights_desc', title: '等级级别', width:150}
|
||||
,{field: 'name', title: '等级名称', width:150}
|
||||
,{field: 'first_ratio', title: '一级佣金比例', width:150}
|
||||
,{field: 'second_ratio', title: '二级佣金比例', width: 150}
|
||||
,{field: 'first_ratio', title: '平台比例', width:150}
|
||||
,{field: 'second_ratio', title: '分销会员比例', width: 150}
|
||||
,{field: 'members_num', title: '分销会员数', width: 150}
|
||||
,{title: '操作', toolbar: '#operate'}
|
||||
]] , text: {none: '暂无数据!'}
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">分销等级</label>
|
||||
<label class="layui-form-label">分销比例</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="level_id" id="level_id" placeholder="请选择" >
|
||||
{foreach $levels as $val }
|
||||
|
||||
@ -94,19 +94,19 @@ class DistributionLogic extends Logic
|
||||
public static function apply($post)
|
||||
{
|
||||
|
||||
$time = time();
|
||||
$data = [
|
||||
'user_id' => $post['user_id'],
|
||||
'real_name' => $post['real_name'],
|
||||
'mobile' => $post['mobile'],
|
||||
'province' => $post['province'],
|
||||
'city' => $post['city'],
|
||||
'district' => $post['district'],
|
||||
'reason' => $post['reason'],
|
||||
'status' => 0, // 待审核
|
||||
'create_time' => $time,
|
||||
'update_time' => $time
|
||||
];
|
||||
$time = time();
|
||||
$data = [
|
||||
'user_id' => $post['user_id'],
|
||||
'real_name' => $post['real_name'],
|
||||
'mobile' => $post['mobile'],
|
||||
'province' => $post['province'],
|
||||
'city' => $post['city'],
|
||||
'district' => $post['district'],
|
||||
'reason' => $post['reason'],
|
||||
'status' => 0, // 待审核
|
||||
'create_time' => $time,
|
||||
'update_time' => $time
|
||||
];
|
||||
return DistributionMemberApply::create($data);
|
||||
}
|
||||
/**
|
||||
@ -666,7 +666,7 @@ class DistributionLogic extends Logic
|
||||
try {
|
||||
$width = 430;
|
||||
// 'env_version' => 'trial',
|
||||
// $envVersion = 'develop';
|
||||
// $envVersion = 'develop';
|
||||
$envVersion = 'release';
|
||||
$page = "pages/index/index";
|
||||
$save_dir = public_path() . 'uploads/wxqrcode/';
|
||||
|
||||
@ -365,7 +365,7 @@ class GoodsLogic extends Logic
|
||||
self::recordKeyword(trim($get['keyword']), $get['user_id']);
|
||||
}
|
||||
}
|
||||
if(isset($get['city_id']) && !empty($get['city_id'])) {
|
||||
if(isset($get['city_id'])) {
|
||||
$shop_msg = Shop::where("city_id",$get['city_id'])
|
||||
->where("is_run",1)
|
||||
->where("is_freeze",0)
|
||||
|
||||
0
runtime/index.html
Normal file → Executable file
0
runtime/index.html
Normal file → Executable file
Reference in New Issue
Block a user