config.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <?php $shoname_name = D('Home/Front')->get_config_by_name('shoname'); ?>
  6. <title><?php echo $shoname; ?></title>
  7. <link rel="shortcut icon" href="" />
  8. <meta name="renderer" content="webkit">
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  11. <link rel="stylesheet" href="/layuiadmin/style/admin.css" media="all">
  12. <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
  13. <!--[if lt IE 9]>
  14. <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
  15. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  16. <![endif]-->
  17. <link href="./resource/css/bootstrap.min.css?v=201903260001" rel="stylesheet">
  18. <link href="./resource/css/common.css?v=201903260001" rel="stylesheet">
  19. <script type="text/javascript">
  20. window.sysinfo = {
  21. <?php if (!empty($_W['uniacid']) ){ ?>'uniacid': '{$_W['uniacid']}',<?php } ?>
  22. <?php if( !empty($_W['acid']) ){ ?>'acid': '{$_W['acid']}',<?php } ?>
  23. <?php if (!empty($_W['openid']) ) { ?>'openid': '{$_W['openid']}',<?php } ?>
  24. <?php if( !empty($_W['uid']) ) { ?>'uid': '{$_W['uid']}',<?php } ?>
  25. 'isfounder': <?php if (!empty($_W['isfounder']) ) { ?>1<?php }else{ ?>0<?php } ?>,
  26. 'siteroot': '{$_W['siteroot']}',
  27. 'siteurl': '{$_W['siteurl']}',
  28. 'attachurl': '{$_W['attachurl']}',
  29. 'attachurl_local': '{$_W['attachurl_local']}',
  30. 'attachurl_remote': '{$_W['attachurl_remote']}',
  31. 'module' : {'url' : '<?php if( defined('MODULE_URL') ) { ?>{MODULE_URL}<?php } ?>', 'name' : '<?php if (defined('IN_MODULE') ) { ?>{IN_MODULE}<?php } ?>'},
  32. 'cookie' : {'pre': ''},
  33. 'account' : {:json_encode($_W['account'])},
  34. };
  35. </script>
  36. <script type="text/javascript" src="./resource/js/lib/jquery-1.11.1.min.js"></script>
  37. <script type="text/javascript" src="./resource/js/lib/bootstrap.min.js"></script>
  38. <script type="text/javascript" src="./resource/js/app/util.js?v=201903260001"></script>
  39. <script type="text/javascript" src="./resource/js/app/common.min.js?v=201903260001"></script>
  40. <script type="text/javascript" src="./resource/js/require.js?v=201903260001"></script>
  41. <script type="text/javascript" src="./resource/js/lib/jquery.nice-select.js?v=201903260001"></script>
  42. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  43. <link href="/static/css/snailfish.css" rel="stylesheet">
  44. </head>
  45. <body layadmin-themealias="default">
  46. <div class="layui-fluid">
  47. <div class="layui-card">
  48. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">团长设置</span></div>
  49. <div class="layui-card-body" style="padding:15px;">
  50. <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
  51. <div class="layui-form-item">
  52. <label class="layui-form-label">团长中心入口</label>
  53. <div class="layui-input-block">
  54. <label class='radio-inline'>
  55. <input type='radio' lay-filter="community_money_type" name='data[close_community_index]' value='0' <?php if(empty($data) || $data['close_community_index'] ==0){ ?>checked <?php } ?> title="开启" />
  56. </label>
  57. <label class='radio-inline'>
  58. <input type='radio' lay-filter="close_community_index" name='data[close_community_index]' value='1' <?php if(!empty($data) && $data['close_community_index'] ==1){ ?>checked <?php } ?> title="关闭" />
  59. </label>
  60. </div>
  61. </div>
  62. <div class="layui-form-item">
  63. <label class="layui-form-label">团长佣金类型</label>
  64. <div class="layui-input-block">
  65. <label class='radio-inline'>
  66. <input type='radio' lay-filter="community_money_type" name='data[community_money_type]' value='0' <?php if(empty($data) || $data['community_money_type'] ==0){ ?>checked <?php } ?> title="比例" />
  67. </label>
  68. <label class='radio-inline'>
  69. <input type='radio' lay-filter="community_money_type" name='data[community_money_type]' value='1' <?php if(!empty($data) && $data['community_money_type'] ==1){ ?>checked <?php } ?> title="金额" />
  70. </label>
  71. <div class="help-block">比例:团长可得佣金 = 商品最终的成交价格 * 比例%, 金额:团长可得佣金 = 设置金额</div>
  72. </div>
  73. </div>
  74. <!--
  75. <div class="layui-form-item">
  76. <label class="layui-form-label">团长等级对应比例提成</label>
  77. <div class="layui-input-block">
  78. <label class='radio-inline'>
  79. <input type='radio' lay-filter="community_level_rate_status" name='data[community_level_rate_status]' value='1' <?php if(!empty($data['community_level_rate_status']) || $data['community_level_rate_status'] == 1){ ?>checked <?php } ?> title="启用" />
  80. </label>
  81. <label class='radio-inline'>
  82. <input type='radio' lay-filter="community_level_rate_status" name='data[community_level_rate_status]' value='0' <?php if(empty($data['community_level_rate_status']) && $data['community_level_rate_status'] ==0){ ?>checked <?php } ?> title="不启用" />
  83. </label>
  84. <div class="help-block">启用后,请务必到团长等级设置相应的比例,不同团长属于不同团长等级,对应不同的提成比例。不启用,则使用下方的团长提成比例,商品编辑如有设置独立比例,独立优先。</div>
  85. </div>
  86. </div>-->
  87. <div class="layui-form-item">
  88. <label class="layui-form-label">团长提成启用团长等级对应提成比例</label>
  89. <div class="layui-input-block">
  90. <label class='radio-inline'>
  91. <input type='radio' name='data[is_head_takegoods]' lay-filter="is_head_takegoods" value='1' <?php if( !empty($data) && isset($data['is_head_takegoods']) && $data['is_head_takegoods'] ==1 ){ ?>checked <?php } ?> title="启用" />
  92. </label>
  93. <label class='radio-inline'>
  94. <input type='radio' name='data[is_head_takegoods]' lay-filter="is_head_takegoods" value='0' <?php if( empty($data) || !isset($data['is_head_takegoods']) || $data['is_head_takegoods'] ==0 ){ ?>checked <?php } ?> title="不启用" />
  95. </label>
  96. <br/>
  97. <div class="help-block" id='head_money_explain' <?php if( !empty($data) && $data['is_head_takegoods'] == 1 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?> >启用时,使用“团长等级”里设置的提成比例,<span style="color:red">请务必到“团长等级”设置具体提成比例。如需商品独立提成,请到商品编辑页面勾选独立团长提成相关设置。</span>
  98. </div>
  99. </div>
  100. </div>
  101. <div class="layui-form-item" id='head_money_type' <?php if( !empty($data) && $data['is_head_takegoods'] == 1 ){ ?> style="display:none;"<?php }else{ ?> style="display:block;"<?php } ?>>
  102. <label class="layui-form-label" >
  103. </label>
  104. <div class="layui-input-block fixmore-input-group">
  105. <div class="layui-form-label" id="ti_name">
  106. <?php if(empty($data) || $data['community_money_type'] ==0){ ?>团长提成比例 <?php } ?>
  107. <?php if(!empty($data) && $data['community_money_type'] ==1){ ?>团长提成金额 <?php } ?>
  108. </div>
  109. <div class="input-group">
  110. <input type="text" lay-verify="number" name="data[default_comunity_money]" class="form-control valid" value="<?php echo empty($data['default_comunity_money'])?0:$data['default_comunity_money'];?>" />
  111. <span class="input-group-addon" id="danwei"><?php if(empty($data) || $data['community_money_type'] ==0){ ?>% <?php } ?><?php if(!empty($data) && $data['community_money_type'] ==1){ ?>元 <?php } ?></span>
  112. </div>
  113. <div class="help-block" style="padding-left: 160px;" id="dan_notice"><?php if(empty($data) || $data['community_money_type'] ==0){ ?>预计团长可得佣金 = 商品最终的成交价格 * 比例% <?php } ?><?php if(!empty($data) && $data['community_money_type'] ==1){ ?>预计团长可得佣金 = 商品总数量 * 固定金额<?php } ?></div>
  114. </div>
  115. </div>
  116. <div class="layui-form-item">
  117. <label class="layui-form-label">社区距离限制</label>
  118. <div class="layui-input-block fixmore-input-group">
  119. <div class="input-group">
  120. <input type="text" name="data[default_comunity_limit_mile]" class="form-control valid" value="<?php echo empty($data['default_comunity_limit_mile'])?0:$data['default_comunity_limit_mile'];?>" lay-verify="number" />
  121. <span class="input-group-addon">公里 </span>
  122. </div>
  123. <div class="help-block">社区列表限制某个距离内显示, 0代表不限制</div>
  124. </div>
  125. </div>
  126. <div class="layui-form-item">
  127. <label class="layui-form-label">推荐现金奖励:</label>
  128. <div class="layui-input-block fixmore-input-group">
  129. <div class="input-group">
  130. <input type="text" name="data[zhi_tui_reward_money]" class="form-control valid" value="<?php echo empty($data['zhi_tui_reward_money'])?0:$data['zhi_tui_reward_money'];?>" />
  131. <span class="input-group-addon">元 </span>
  132. </div>
  133. <div class="help-block">被推荐团长审核后,发放奖励到推荐人的团长账户余额中</div>
  134. </div>
  135. </div>
  136. <div class="layui-form-item">
  137. <label class="layui-form-label">前端添加核销会员</label>
  138. <div class="layui-input-block">
  139. <label class='radio-inline'>
  140. <input type='radio' name='data[open_community_addhexiaomember]' value='0' <?php if( !empty($data) && $data['open_community_addhexiaomember'] ==0 ){ ?>checked <?php } ?> title="关闭" />
  141. </label>
  142. <label class='radio-inline'>
  143. <input type='radio' name='data[open_community_addhexiaomember]' value='1' <?php if( empty($data) || $data['open_community_addhexiaomember'] ==1 ){ ?>checked <?php } ?> title="开启" />
  144. </label>
  145. </div>
  146. </div>
  147. <div class="layui-form-item">
  148. <label class="layui-form-label">前端显示详细地址</label>
  149. <div class="layui-input-block">
  150. <label class='radio-inline'>
  151. <input type='radio' name='data[index_hide_headdetail_address]' value='0' <?php if( empty($data) || $data['index_hide_headdetail_address'] ==0 ){ ?>checked <?php } ?> title="显示" />
  152. </label>
  153. <label class='radio-inline'>
  154. <input type='radio' name='data[index_hide_headdetail_address]' value='1' <?php if( !empty($data) && $data['index_hide_headdetail_address'] ==1 ){ ?>checked <?php } ?> title="隐藏" />
  155. </label>
  156. </div>
  157. </div>
  158. <div class="layui-form-item">
  159. <label class="layui-form-label">模板消息--新订单通知</label>
  160. <div class="layui-input-block">
  161. <label class='radio-inline'>
  162. <input type='radio' name='data[template_order_success_notice]' value='0' <?php if( empty($data) || $data['template_order_success_notice'] ==0 ){ ?>checked <?php } ?> title="关闭" />
  163. </label>
  164. <label class='radio-inline'>
  165. <input type='radio' name='data[template_order_success_notice]' value='1' <?php if( !empty($data) && $data['template_order_success_notice'] ==1 ){ ?>checked <?php } ?> title="开启" />
  166. </label>
  167. </div>
  168. </div>
  169. <div class="layui-form-item">
  170. <label class="layui-form-label">显示团长等级</label>
  171. <div class="layui-input-block">
  172. <label class='radio-inline'>
  173. <input type='radio' name='data[is_show_head_level]' value='0' <?php if( empty($data) || $data['is_show_head_level'] ==0 ){ ?>checked <?php } ?> title="隐藏" />
  174. </label>
  175. <label class='radio-inline'>
  176. <input type='radio' name='data[is_show_head_level]' value='1' <?php if( !empty($data) && $data['is_show_head_level'] ==1 ){ ?>checked <?php } ?> title="显示" />
  177. </label>
  178. </div>
  179. </div>
  180. <div class="layui-form-item" class="head_level_chose">
  181. <label class="layui-form-label">团长分销级数</label>
  182. <div class="layui-input-block">
  183. <label class='radio-inline'>
  184. <input type='radio' title="关闭" class="radi" name='data[open_community_head_leve]' value='0' <?php if( empty($data) || $data['open_community_head_leve'] ==0 ){ ?>checked <?php } ?> />
  185. </label>
  186. <label class='radio-inline'>
  187. <input type='radio' class="radi" name='data[open_community_head_leve]' value='1' <?php if( !empty($data) && $data['open_community_head_leve'] ==1 ){ ?>checked <?php } ?> title="1级" />
  188. </label>
  189. <label class='radio-inline'>
  190. <input type='radio' class="radi" name='data[open_community_head_leve]' value='2' <?php if( !empty($data) && $data['open_community_head_leve'] ==2 ){ ?>checked <?php } ?> title="2级" />
  191. </label>
  192. <label class='radio-inline'>
  193. <input type='radio' class="radi" name='data[open_community_head_leve]' value='3' <?php if( !empty($data) && $data['open_community_head_leve'] ==3 ){ ?>checked <?php } ?> title="3级" />
  194. </label>
  195. </div>
  196. </div>
  197. <div class="layui-form-item community_head_commiss1" <?php if( !empty($data) && $data['open_community_head_leve'] >= 1 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?> >
  198. <label class="layui-form-label">1级:</label>
  199. <div class="layui-input-block fixmore-input-group">
  200. <div class="input-group">
  201. <input type="text" name="data[community_head_commiss1]" class="form-control valid" value="<?php echo empty($data['community_head_commiss1'])?0:$data['community_head_commiss1'];?>" />
  202. <span class="input-group-addon">% </span>
  203. </div>
  204. <div class="help-block">1级提成比例</div>
  205. </div>
  206. </div>
  207. <div class="layui-form-item community_head_commiss2" <?php if( !empty($data) && $data['open_community_head_leve'] >= 2 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?>>
  208. <label class="layui-form-label">2级:</label>
  209. <div class="layui-input-block fixmore-input-group">
  210. <div class="input-group">
  211. <input type="text" name="data[community_head_commiss2]" class="form-control valid" value="<?php echo empty($data['community_head_commiss2'])?0:$data['community_head_commiss2'];?>" />
  212. <span class="input-group-addon">% </span>
  213. </div>
  214. <div class="help-block">2级提成比例</div>
  215. </div>
  216. </div>
  217. <div class="layui-form-item community_head_commiss3" <?php if( !empty($data) && $data['open_community_head_leve'] >= 3 ){ ?> style="display:block;"<?php }else{ ?> style="display:none;"<?php } ?>>
  218. <label class="layui-form-label">3级:</label>
  219. <div class="layui-input-block fixmore-input-group">
  220. <div class="input-group">
  221. <input type="text" name="data[community_head_commiss3]" class="form-control valid" value="<?php echo empty($data['community_head_commiss3'])?0:$data['community_head_commiss3'];?>" />
  222. <span class="input-group-addon">% </span>
  223. </div>
  224. <div class="help-block">3级提成比例</div>
  225. </div>
  226. </div>
  227. <div class="layui-form-item">
  228. <label class="layui-form-label">团长申请页面内容</label>
  229. <div class="layui-input-block fixmore-input-group">
  230. <div class="">
  231. {:tpl_ueditor('data[communityhead_apply_page]',$data['communityhead_apply_page'],array('height'=>'300'))}
  232. </div>
  233. </div>
  234. </div>
  235. <div class="layui-form-item">
  236. <label class="layui-form-label">团长申请开关</label>
  237. <div class="layui-input-block">
  238. <label class='radio-inline'>
  239. <input type='radio' name='data[close_community_apply_enter]' value='0' <?php if(!empty($data) && $data['close_community_apply_enter'] ==0){ ?>checked <?php } ?> title="开启" />
  240. </label>
  241. <label class='radio-inline'>
  242. <input type='radio' name='data[close_community_apply_enter]' value='1' <?php if( empty($data) || $data['close_community_apply_enter'] ==1 ){ ?>checked <?php } ?> title="关闭" />
  243. </label>
  244. </div>
  245. </div>
  246. <div class="layui-form-item">
  247. <label class="layui-form-label">前端微信号字段自定义</label>
  248. <div class="layui-input-block">
  249. <input type="text" class="form-control valid" name="data[wechat_div]" style="width: 200px;" value="{$data[wechat_div]}">
  250. </div>
  251. </div>
  252. <div class="layui-form-item">
  253. <label class="layui-form-label">团长休息开关</label>
  254. <div class="layui-input-block">
  255. <label class='radio-inline'>
  256. <input type='radio' name='data[close_community_reset_btn]' value='0' <?php if( !empty($data) && $data['close_community_reset_btn'] ==0 ){ ?>checked <?php } ?> title="开启" />
  257. </label>
  258. <label class='radio-inline'>
  259. <input type='radio' name='data[close_community_reset_btn]' value='1' <?php if( empty($data) || $data['close_community_reset_btn'] ==1 ){ ?>checked <?php } ?> title="关闭" />
  260. </label>
  261. </div>
  262. </div>
  263. <div class="layui-form-item">
  264. <label class="layui-form-label">社区用户待核销</label>
  265. <div class="layui-input-block">
  266. <label class='radio-inline'>
  267. <input type='radio' name='data[close_community_delivery_orders]' value='0' <?php if( empty($data) || $data['close_community_delivery_orders'] ==0 ){ ?> checked <?php } ?> title="开启" />
  268. </label>
  269. <label class='radio-inline'>
  270. <input type='radio' name='data[close_community_delivery_orders]' value='1' <?php if( !empty($data) && $data['close_community_delivery_orders'] ==1 ){ ?> checked <?php } ?> title="关闭" />
  271. </label>
  272. </div>
  273. </div>
  274. <div class="layui-form-item">
  275. <label class="layui-form-label">单团长模式</label>
  276. <div class="layui-input-block">
  277. <label class='radio-inline'>
  278. <input type='radio' name='data[open_danhead_model]' value='0' <?php if( empty($data) || $data['open_danhead_model'] ==0 ){ ?>checked <?php } ?> title="关闭" />
  279. </label>
  280. <label class='radio-inline'>
  281. <input type='radio' name='data[open_danhead_model]' value='1' <?php if( !empty($data) && $data['open_danhead_model'] ==1 ){ ?>checked <?php } ?> title="开启" />
  282. </label>
  283. <div class="help-block" style="color: #a94442;">
  284. 开启单团长模式后,小程序端只有一个默认的团长(<strong>务必</strong>前往团长列表,选择默认团长),不能切换其他团长
  285. </div>
  286. </div>
  287. </div>
  288. <div class="layui-form-item">
  289. <label class="layui-form-label">前台团长排行</label>
  290. <div class="layui-input-block">
  291. <label class='radio-inline'>
  292. <input type='radio' name='data[is_show_community_ranking]' value='0' <?php if( empty($data) || $data['is_show_community_ranking'] ==0 ){ ?>checked <?php } ?> title="不显示" />
  293. </label>
  294. <label class='radio-inline'>
  295. <input type='radio' name='data[is_show_community_ranking]' value='1' <?php if( !empty($data) && $data['is_show_community_ranking'] ==1 ){ ?>checked <?php } ?> title="显示" />
  296. </label>
  297. </div>
  298. </div>
  299. <div class="layui-form-item">
  300. <label class="layui-form-label"> </label>
  301. <div class="layui-input-block">
  302. <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary" />
  303. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  304. <a class="btn btn-default" style='margin-left:10px;display:none;' href="{:U('config/configindex.notice',array('ok'=>'1'))}">返回列表</a>
  305. </div>
  306. </div>
  307. </form>
  308. </div>
  309. </div>
  310. </div>
  311. <script src="/layuiadmin/layui/layui.js"></script>
  312. <script>
  313. layui.config({
  314. base: '/layuiadmin/' //静态资源所在路径
  315. }).extend({
  316. index: 'lib/index' //主入口模块
  317. }).use('index');
  318. </script>
  319. <script>
  320. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  321. var layer = layui.layer;
  322. var $;
  323. var cur_open_div;
  324. layui.use(['jquery', 'layer','form'], function(){
  325. $ = layui.$;
  326. var form = layui.form;
  327. form.on('radio(community_money_type)', function(data){
  328. if (data.value == 0) {
  329. $('#danwei').html('%');
  330. $('#dan_notice').html('预计团长可得佣金 = 商品最终的成交价格 * 比例%');
  331. $('#ti_name').html('团长提成比例');
  332. } else {
  333. $('#danwei').html('元');
  334. $('#dan_notice').html('预计团长可得佣金 = 商品总数量 * 固定金额');
  335. $('#ti_name').html('团长提成金额');
  336. }
  337. });
  338. form.on('radio(is_head_takegoods)', function(data){
  339. if (data.value == 0) {
  340. $('#head_money_type').show();
  341. $('#head_money_explain').hide();
  342. } else {
  343. $('#head_money_type').hide();
  344. $('#head_money_explain').show();
  345. }
  346. });
  347. form.on('radio(community_level_rate_status111)', function(data){
  348. var type = $('input[name="data[community_money_type]"]:checked').val();
  349. var type_txt = "提成比例";
  350. if(type == 1){
  351. type_txt = "固定金额";
  352. }
  353. var content = "启用后,请务必到团长等级设置相应的"+type_txt+"!!!";
  354. if (data.value == 1) {
  355. layer.confirm(content, {
  356. area:['450px','160px'],
  357. btn: ['知道了'] //按钮
  358. }, function(){
  359. layer.closeAll();
  360. });
  361. }
  362. });
  363. form.on('radio(linktype)', function(data){
  364. if (data.value == 2) {
  365. $('#typeGroup').show();
  366. } else {
  367. $('#typeGroup').hide();
  368. }
  369. });
  370. $('#chose_link').click(function(){
  371. cur_open_div = $(this).attr('data-input');
  372. $.post("{:U('util.selecturl', array('ok' => 1))}", {}, function(shtml){
  373. layer.open({
  374. type: 1,
  375. area: '930px',
  376. content: shtml //注意,如果str是object,那么需要字符拼接。
  377. });
  378. });
  379. })
  380. //监听提交
  381. form.on('submit(formDemo)', function(data){
  382. $.ajax({
  383. url: data.form.action,
  384. type: data.form.method,
  385. data: data.field,
  386. dataType:'json',
  387. success: function (info) {
  388. if(info.status == 0)
  389. {
  390. layer.msg(info.result.message,{icon: 1,time: 2000});
  391. }else if(info.status == 1){
  392. var go_url = location.href;
  393. if( info.result.hasOwnProperty("url") )
  394. {
  395. go_url = info.result.url;
  396. }
  397. layer.msg('操作成功',{time: 1000,
  398. end:function(){
  399. location.href = info.result.url;
  400. }
  401. });
  402. }
  403. }
  404. });
  405. return false;
  406. });
  407. })
  408. </script>
  409. <script>
  410. $(function(){
  411. $('.radi').click(function(){
  412. var open_community_head_leve = $(this).val();
  413. if( open_community_head_leve == 0 )
  414. {
  415. $('.community_head_commiss1').hide();
  416. $('.community_head_commiss2').hide();
  417. $('.community_head_commiss3').hide();
  418. }else if( open_community_head_leve == 1 ){
  419. $('.community_head_commiss1').show();
  420. $('.community_head_commiss2').hide();
  421. $('.community_head_commiss3').hide();
  422. }else if(open_community_head_leve == 2){
  423. $('.community_head_commiss1').show();
  424. $('.community_head_commiss2').show();
  425. $('.community_head_commiss3').hide();
  426. }else if(open_community_head_leve == 3){
  427. $('.community_head_commiss1').show();
  428. $('.community_head_commiss2').show();
  429. $('.community_head_commiss3').show();
  430. }
  431. })
  432. $('#clear_member_qrcode').click(function(){
  433. $.ajax({
  434. url:"{:U('distribution/clear_user_member_qrcode')}",
  435. type:'get',
  436. dataType:'json',
  437. success:function(){
  438. tip.msgbox.suc('清空成功');
  439. }
  440. })
  441. })
  442. })
  443. </script>
  444. </body>