Commit c5c548d7beafbcb72a322266cacf76d0e43833b7

Authored by teemitop
1 parent e7d723bb

PC操作版本选择

@@ -215,6 +215,10 @@ class Seller extends Common @@ -215,6 +215,10 @@ class Seller extends Common
215 $add=Db::query("INSERT INTO `xt-member-two-LINE`.xt_dc_dz_seller_label_c_rel VALUES(".$data['sellerid'].",".$label_3_.")"); 215 $add=Db::query("INSERT INTO `xt-member-two-LINE`.xt_dc_dz_seller_label_c_rel VALUES(".$data['sellerid'].",".$label_3_.")");
216 } 216 }
217 217
  218 + if(isset($data['edition'])){
  219 + $up=Db::query("UPDATE `xt-member-two-LINE`.xt_seller set is_online_reserve = ".$data['edition']." where id = ".$data['sellerid']);
  220 + }
  221 +
218 222
219 $result['code'] = 1; 223 $result['code'] = 1;
220 $result['msg'] = "配置成功!"; 224 $result['msg'] = "配置成功!";
@@ -315,6 +319,10 @@ class Seller extends Common @@ -315,6 +319,10 @@ class Seller extends Common
315 } 319 }
316 $this->assign('brand',$brand); 320 $this->assign('brand',$brand);
317 321
  322 + //获取商家在线预定版本情况
  323 + $is_online_reserve=Db::table("xt-member-two-LINE.xt_seller")->where(array('id'=>$data['id']))->select();
  324 + $this->assign('is_online_reserve',$is_online_reserve[0]['is_online_reserve']);
  325 +
318 //商户信息 326 //商户信息
319 $this->assign ('data',$data); 327 $this->assign ('data',$data);
320 $this->assign ( 'title','商户信息配置' ); 328 $this->assign ( 'title','商户信息配置' );
@@ -107,6 +107,17 @@ @@ -107,6 +107,17 @@
107 </div> 107 </div>
108 108
109 <div class="layui-form-item"> 109 <div class="layui-form-item">
  110 + <label class="layui-form-label">版本选择</label>
  111 + <div class="layui-input-block">
  112 + <div class="layui-input-4">
  113 + <input type="radio" name="edition" value="1" title="研发版" {if $is_online_reserve===1} checked{/if}>
  114 + <input type="radio" name="edition" value="2" title="市场版" {if $is_online_reserve===2} checked{/if}>
  115 + <input type="radio" name="edition" value="0" title="关闭" {if $is_online_reserve===0} checked{/if}>
  116 + </div>
  117 + </div>
  118 + </div>
  119 +
  120 + <div class="layui-form-item">
110 <label class="layui-form-label">模板选择</label> 121 <label class="layui-form-label">模板选择</label>
111 <div class="layui-input-block"> 122 <div class="layui-input-block">
112 <div class="layui-input-4"> 123 <div class="layui-input-4">