Commit 8d52c971e04384b34b9fa5d4a298363929a9923f

Authored by teemitop
1 parent 775f7460

商家活动调整

@@ -514,7 +514,11 @@ class Seller extends Common @@ -514,7 +514,11 @@ class Seller extends Common
514 $data['title'] = '满'.$data['max_num'].'立减'.$data['min_num'];break; 514 $data['title'] = '满'.$data['max_num'].'立减'.$data['min_num'];break;
515 } 515 }
516 case '2': 516 case '2':
517 - $data['title'] = '满赠'; 517 + if($data['max_num']==0){
  518 + $data['title'] = '赠'.$data['min_num'];break;
  519 + }else{
  520 + $data['title'] = '满'.$data['max_num'].'赠'.$data['min_num'];break;
  521 + }
518 break; 522 break;
519 case '3': 523 case '3':
520 if($data['max_num']==0){ 524 if($data['max_num']==0){
@@ -532,6 +536,8 @@ class Seller extends Common @@ -532,6 +536,8 @@ class Seller extends Common
532 # code... 536 # code...
533 break; 537 break;
534 } 538 }
  539 +
  540 + print_r($data);die;
535 //字段空值过滤 541 //字段空值过滤
536 //添加活动 542 //添加活动
537 $res= file_get_contents(ON_LINE.'App.Seller.SetActivity&str='.serialize($data)); 543 $res= file_get_contents(ON_LINE.'App.Seller.SetActivity&str='.serialize($data));
@@ -94,8 +94,8 @@ return [ @@ -94,8 +94,8 @@ return [
94 'companyAddress' =>'公司地址', 94 'companyAddress' =>'公司地址',
95 95
96 'admin'=>'管理员', 96 'admin'=>'管理员',
97 - 'operate'=>'运营人员',  
98 - 'agent'=>'代理商人员', 97 + 'operate'=>'订座运营人员',
  98 + 'agent'=>'订座代理商人员',
99 'module'=>'模型', 99 'module'=>'模型',
100 100
101 'user'=>'会员', 101 'user'=>'会员',
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <legend>运营、代理商列表信息</legend> 4 <legend>运营、代理商列表信息</legend>
5 </fieldset> 5 </fieldset>
6 <blockquote class="layui-elem-quote"> 6 <blockquote class="layui-elem-quote">
7 - <a href="{:url('operateAdd')}" class="layui-btn layui-btn-sm">{:lang('add')}小饕{:lang('operate')}</a> 7 + <a href="{:url('operateAdd')}" class="layui-btn layui-btn-sm">{:lang('add')}{:lang('operate')}</a>
8 <a href="{:url('agentAdd')}" class="layui-btn layui-btn-sm">{:lang('add')}{:lang('agent')}</a> 8 <a href="{:url('agentAdd')}" class="layui-btn layui-btn-sm">{:lang('add')}{:lang('agent')}</a>
9 </blockquote> 9 </blockquote>
10 <table class="layui-table" id="list" lay-filter="list"></table> 10 <table class="layui-table" id="list" lay-filter="list"></table>
@@ -136,8 +136,11 @@ @@ -136,8 +136,11 @@
136 $('#desc').html(''); 136 $('#desc').html('');
137 switch(data.value){ 137 switch(data.value){
138 case "2": 138 case "2":
139 - $('#title_tag').hide();  
140 - $('#title').val('满增活动'); 139 + $('#title_tag').show();
  140 + $('#first_html').html('&nbsp;&nbsp;满');
  141 + $('#mid_html').html(',赠');
  142 + $('#last_html').html('');
  143 + //$('#title').val('满增活动');
141 break; 144 break;
142 case "1": 145 case "1":
143 $('#title_tag').show(); 146 $('#title_tag').show();