config.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644
  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. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  42. <link href="/static/css/snailfish.css" rel="stylesheet">
  43. <style>
  44. .modal-dialog{background-color: #fff;}
  45. .content{
  46. display:none;
  47. width:200px;
  48. height:200px;
  49. border-radius:10px;
  50. padding:20px;
  51. position:relative;
  52. top:15px;
  53. left:80px;
  54. background-color:FFFFFF;
  55. border:1px solid;
  56. }
  57. </style>
  58. </head>
  59. <body layadmin-themealias="default">
  60. <div class="layui-fluid">
  61. <div class="layui-card">
  62. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">订单设置</span></div>
  63. <div class="layui-card-body" style="padding:15px;">
  64. <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
  65. <div class="layui-form-item" >
  66. <label class="layui-form-label">限制购买距离</label>
  67. <div class="col-sm-10 col-xs-12" id="radPickupDateTip">
  68. <label class="radio-inline"><input type="radio" name="data[shop_limit_buy_distance]" <?php if( !isset($data['shop_limit_buy_distance']) || $data['shop_limit_buy_distance'] ==0 ){ ?> checked <?php } ?> value="0" title="不限制" /><span class="fake-radio" ></span></label>
  69. <label class="radio-inline"><input type="radio" name="data[shop_limit_buy_distance]" <?php if( isset($data['shop_limit_buy_distance']) && $data['shop_limit_buy_distance'] ==1 ){ ?> checked <?php } ?> value="1" title="限制" /><span class="fake-radio" ></span></label>
  70. <span style="clear:both;" class='help-block'>只对团长配送方式有效</span>
  71. </div>
  72. </div>
  73. <div class="layui-form-item" id="txtPickupDateTip" style="<?php if( isset($data['shop_buy_distance']) && $data['shop_limit_buy_distance'] ==1){ ?>display:block;<?php }else{ ?>display: none;<?php } ?>">
  74. <label class="layui-form-label"></label>
  75. <div class="layui-input-block">
  76. <div class="input-group fixsingle-input-group">
  77. <input class="form-control" name="data[shop_buy_distance]" type="text" placeholder="填写限制距离" value="{$data['shop_buy_distance']}">
  78. <div class="input-group-addon">KM</div>
  79. </div>
  80. </div>
  81. </div>
  82. <div class="layui-form-item">
  83. <label class="layui-form-label">后台付款:</label>
  84. <div class="layui-input-block">
  85. <div class="input-group fixsingle-input-group">
  86. <label class='radio-inline'><input type='radio' name='data[open_admin_payment]' value='1' <?php if( !isset($data['open_admin_payment']) || $data['open_admin_payment']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  87. <label class='radio-inline'><input type='radio' name='data[open_admin_payment]' value='0' <?php if( $data['open_admin_payment']== '0'){ ?>checked<?php } ?> title="关闭" /> </label>
  88. <span style="clear:both;" class='help-block'>允许后台对“待付款订单”进行付款操作</span>
  89. </div>
  90. </div>
  91. </div>
  92. <div class="layui-form-item">
  93. <label class="layui-form-label">自动取消未支付订单:</label>
  94. <div class="layui-input-block">
  95. <div class="input-group fixsingle-input-group">
  96. <label class='radio-inline'><input type='radio' name='data[open_auto_delete]' value='1' <?php if( $data['open_auto_delete']=='1'){ ?>checked<?php } ?> onclick="$('#cancle_order').show()" title="开启" /> </label>
  97. <label class='radio-inline'><input type='radio' name='data[open_auto_delete]' value='0' <?php if( empty($data['open_auto_delete'])){ ?>checked<?php } ?> onclick="$('#cancle_order').hide()" title="关闭" /> </label>
  98. <span style="clear:both;" class='help-block'>订单生成后 ,用户在x小时内未支付,系统自动取消</span>
  99. </div>
  100. </div>
  101. </div>
  102. <div class="layui-form-item" id="cancle_order" style="<?php if( empty($data['open_auto_delete']) ){ ?>display:none;<?php } ?>">
  103. <label class="layui-form-label"></label>
  104. <div class="layui-input-block">
  105. <div class="input-group fixsingle-input-group">
  106. <input type="text" name="data[auto_cancle_order_time]" class="form-control" value="{$data['auto_cancle_order_time']}" />
  107. <div class="input-group-addon">小时</div>
  108. </div>
  109. </div>
  110. </div>
  111. <div class="layui-form-item">
  112. <label class="layui-form-label">减库存方式:</label>
  113. <div class="layui-input-block">
  114. <div class="input-group fixsingle-input-group">
  115. <label class='radio-inline'><input type='radio' name='data[kucun_method]' value='0' <?php if( empty($data['kucun_method']) || $data['kucun_method'] ==0){ ?>checked<?php } ?> title="下单减库存" /> </label>
  116. <label class='radio-inline' style="display:none;"><input type='radio' name='data[kucun_method]' value='1' <?php if( $data['kucun_method']=='1'){ ?>checked<?php } ?> title="付款后减库存" /> </label>
  117. <span class='help-block'>用户下单减库存,取消订单将返还库存数量</span>
  118. </div>
  119. </div>
  120. </div>
  121. <div class="layui-form-item">
  122. <label class="layui-form-label">满多少可以下单:</label>
  123. <div class="layui-input-block">
  124. <div class="input-group fixsingle-input-group">
  125. <label class='radio-inline'><input type='radio' name='data[open_man_orderbuy]' value='1' <?php if( $data['open_man_orderbuy']=='1'){ ?>checked<?php } ?> onclick="$('#manbuy_order').show()" title="开启" /> </label>
  126. <label class='radio-inline'><input type='radio' name='data[open_man_orderbuy]' value='0' <?php if( empty($data['open_man_orderbuy'])){ ?>checked<?php } ?> onclick="$('#manbuy_order').hide()" title="关闭" /> </label>
  127. <span class='help-block'>购物车满多少才可以下单购买</span>
  128. </div>
  129. </div>
  130. </div>
  131. <div class="layui-form-item" id="manbuy_order" style="<?php if( empty($data['open_man_orderbuy']) ){ ?>display:none;<?php } ?>">
  132. <label class="layui-form-label"></label>
  133. <div class="layui-input-block">
  134. <div class="input-group fixsingle-input-group">
  135. <input type="text" name="data[man_orderbuy_money]" class="form-control" value="{$data['man_orderbuy_money']}" />
  136. <div class="input-group-addon">元</div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="layui-form-item" style="display:none;">
  141. <label class="layui-form-label">满多少免运费:</label>
  142. <div class="layui-input-block">
  143. <div class="input-group fixsingle-input-group">
  144. <label class='radio-inline'><input type='radio' name='data[open_man_free_shipping]' value='1' <?php if( $data['open_man_free_shipping']=='1'){ ?>checked<?php } ?> onclick="$('#freeshipping_order').show()" title="开启" /> </label>
  145. <label class='radio-inline'><input type='radio' name='data[open_man_free_shipping]' value='0' <?php if( empty($data['open_man_free_shipping'])){ ?>checked<?php } ?> onclick="$('#freeshipping_order').hide()" title="关闭" /> </label>
  146. <span class='help-block'>团长配送或快递模式下,满多少免运费</span>
  147. </div>
  148. </div>
  149. </div>
  150. <div class="layui-form-item" id="freeshipping_order" style="<?php if( empty($data['open_man_free_shipping']) ){ ?>display:none;<?php } ?>">
  151. <label class="layui-form-label"></label>
  152. <div class="layui-input-block">
  153. <div class="input-group fixsingle-input-group">
  154. <input type="text" name="data[man_free_shipping_money]" class="form-control" value="{$data['man_free_shipping_money']}" />
  155. <div class="input-group-addon">元</div>
  156. </div>
  157. </div>
  158. </div>
  159. <div class="layui-form-item">
  160. <label class="layui-form-label">开启redis服务:</label>
  161. <div class="layui-input-block">
  162. <div class="input-group fixsingle-input-group" id="redis_server">
  163. <label class='radio-inline'><input type='radio' name='data[open_redis_server]' value='0' <?php if(empty($data['open_redis_server']) || $data['open_redis_server'] ==0){ ?>checked<?php } ?> title="关闭" /> </label>
  164. <label class='radio-inline'><input type='radio' name='data[open_redis_server]' value='1' <?php if($data['open_redis_server']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  165. <span class='help-block'>更精确控制高并发下,商品超库存问题,请确保安装php_redis控制,否则无法启用</span>
  166. <font style="color:red">开启redis,建议使用下单减库存方式</font>
  167. </div>
  168. </div>
  169. </div>
  170. <div class="redis_div" id="redis_div" style="<?php if( !empty($data['open_redis_server']) && $data['open_redis_server']=='1' ){ ?> display:block;<?php }else{ ?> display:none; <?php } ?> ">
  171. <div class="layui-form-item" >
  172. <label class="layui-form-label">redis-host:</label>
  173. <div class="layui-input-block">
  174. <div class="input-group fixsingle-input-group">
  175. <input type="text" name="data[redis_host]" class="form-control" value="{$data['redis_host']}" />
  176. </div>
  177. </div>
  178. </div>
  179. <div class="layui-form-item" >
  180. <label class="layui-form-label">redis-port:</label>
  181. <div class="layui-input-block">
  182. <div class="input-group fixsingle-input-group">
  183. <input type="text" name="data[redis_port]" class="form-control" value="{$data['redis_port']}" />
  184. </div>
  185. </div>
  186. </div>
  187. <div class="layui-form-item" >
  188. <label class="layui-form-label">redis-auth:</label>
  189. <div class="layui-input-block">
  190. <div class="input-group fixsingle-input-group">
  191. <input type="text" name="data[redis_auth]" class="form-control" value="{$data['redis_auth']}" />
  192. <span class='help-block'>redis不需要验证可以不填写auth</span>
  193. </div>
  194. </div>
  195. </div>
  196. </div>
  197. <div class="layui-form-item">
  198. <label class="layui-form-label">订单提醒开关:</label>
  199. <div class="layui-input-block">
  200. <div class="input-group fixsingle-input-group">
  201. <label class='radio-inline'><input type='radio' name='data[order_notify_switch]' value='0' <?php if( empty($data['order_notify_switch']) || $data['order_notify_switch'] ==0){ ?>checked<?php } ?> title="关闭" /> </label>
  202. <label class='radio-inline'><input type='radio' name='data[order_notify_switch]' value='1' <?php if( $data['order_notify_switch']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  203. <span class='help-block'>首页、商品详情页订单提醒开关</span>
  204. </div>
  205. </div>
  206. </div>
  207. <div class="layui-form-item">
  208. <label class="layui-form-label">付款后分享:</label>
  209. <div class="layui-input-block">
  210. <div class="input-group fixsingle-input-group">
  211. <label class='radio-inline'><input type='radio' name='data[order_pay_after_share]' value='0' <?php if( empty($data['order_pay_after_share']) || $data['order_pay_after_share'] ==0){ ?>checked<?php } ?> title="关闭" /> </label>
  212. <label class='radio-inline'><input type='radio' name='data[order_pay_after_share]' value='1' <?php if( $data['order_pay_after_share']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  213. </div>
  214. </div>
  215. </div>
  216. <div class="layui-form-item">
  217. <label class="layui-form-label">付款后分享标题:</label>
  218. <div class="layui-input-block">
  219. <input type="text" name="data[order_pay_after_share_title]" class="layui-input" value="{$data['order_pay_after_share_title']}" />
  220. </div>
  221. </div>
  222. <div class="layui-form-item" >
  223. <label class="layui-form-label">付款后分享图片</label>
  224. <div class="layui-input-block">
  225. {:tpl_form_field_image2('data[order_pay_after_share_img]', $data['order_pay_after_share_img'])}
  226. <span class='help-block'>不传则使用默认商品分享图,比列:5:4</span>
  227. </div>
  228. </div>
  229. <div class="layui-form-item">
  230. <label class="layui-form-label">待发货“取消订单”:</label>
  231. <div class="layui-input-block">
  232. <div class="input-group fixsingle-input-group">
  233. <label class='radio-inline'><input type='radio' name='data[order_can_del_cancle]' value='0' <?php if(empty($data['order_can_del_cancle']) || $data['order_can_del_cancle'] =='0'){ ?>checked<?php } ?> title="开启" /> </label>
  234. <label class='radio-inline'><input type='radio' name='data[order_can_del_cancle]' value='1' <?php if($data['order_can_del_cancle']=='1'){ ?>checked<?php } ?> title="关闭" /> </label>
  235. <span class='help-block'>(备注:用户取消订单后,取消订单并全额退款)</span>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="layui-form-item">
  240. <label class="layui-form-label">小票打印:</label>
  241. <div class="layui-input-block">
  242. <div class="input-group fixsingle-input-group">
  243. <label class='radio-inline'><input type='radio' name='data[open_feier_print]' value='1' <?php if( $data['open_feier_print']=='1'){ ?>checked<?php } ?> onclick="$('#feier_print').show();$('#yilianyun_print').hide();" title="开启飞鹅打印机" /> </label>
  244. <label class='radio-inline'><input type='radio' name='data[open_feier_print]' value='2' <?php if( $data['open_feier_print']=='2'){ ?>checked<?php } ?> onclick="$('#yilianyun_print').show();$('#feier_print').hide();" title="开启易联云打印机" /> </label>
  245. <label class='radio-inline'><input type='radio' name='data[open_feier_print]' value='0' <?php if( empty($data['open_feier_print'])){ ?>checked<?php } ?> onclick="$('#feier_print').hide();$('#yilianyun_print').hide();" title="关闭" /> </label>
  246. <span type="display:inline;" class='help-block'>开启后,系统将自动打印新订单&nbsp;&nbsp;&nbsp;&nbsp; <a href="#" style="color: blue;display:inline;" class="contact">飞鹅官方购买</a></span>
  247. <div class="content" style="color: black;">
  248. <div align="center"><img src="/static/images/feie.png" alt="飞鹅打印机" height="135"></div>
  249. <span style="text-align: center;display:block;">扫码购买</span>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="layui-form-item" id="feier_print" style="<?php if( empty($data['open_feier_print']) || $data['open_feier_print'] ==2 ){ ?>display:none;<?php } ?>">
  255. <label class="layui-form-label"></label>
  256. <div class="layui-input-block">
  257. <div class="input-group fixsingle-input-group">
  258. <div class="input-group-addon"><b>sn:</b></div>
  259. <input type="text" name="data[feier_print_sn]" class="form-control" value="{$data['feier_print_sn']}" />
  260. <div class="input-group-addon"><b>key:</b></div>
  261. <input type="text" name="data[feier_print_key]" class="form-control" value="{$data['feier_print_key']}" />
  262. <div class="input-group-addon"><b>打印联数:</b></div>
  263. <input type="text" name="data[feier_print_lian]" class="form-control" value="<?php echo !isset($data['feier_print_lian']) ? 1 : $data['feier_print_lian']; ?>" />
  264. </div>
  265. <span class='help-block'>支持飞鹅打印机 (sn,key在机子底部),打印联数最小为1</span>
  266. </div>
  267. </div>
  268. <div class="layui-form-item" id="yilianyun_print" style="<?php if( empty($data['open_feier_print']) || $data['open_feier_print'] == 1 ){ ?>display:none;<?php } ?>">
  269. <label class="layui-form-label"></label>
  270. <div class="layui-input-block">
  271. <div class="input-group fixsingle-input-group">
  272. <div class="input-group-addon"><b>应用id:</b></div>
  273. <input type="text" name="data[yilian_client_id]" class="form-control" value="{$data['yilian_client_id']}" />
  274. <div class="input-group-addon"><b>应用密钥:</b></div>
  275. <input type="text" name="data[yilian_client_key]" class="form-control" value="{$data['yilian_client_key']}" />
  276. </div>
  277. <div class="input-group fixsingle-input-group">
  278. <div class="input-group-addon"><b>打印机终端号:</b></div>
  279. <input type="text" name="data[yilian_machine_code]" class="form-control" value="{$data['yilian_machine_code']}" />
  280. <div class="input-group-addon"><b>终端密钥:</b></div>
  281. <input type="text" name="data[yilian_msign]" class="form-control" value="{$data['yilian_msign']}" />
  282. <div class="input-group-addon"><b>打印联数:</b></div>
  283. <input type="text" name="data[yilian_print_lian]" class="form-control" value="<?php echo !isset($data['yilian_print_lian']) ? 1 : $data['yilian_print_lian']; ?>" />
  284. </div>
  285. <span class='help-block'>支持易联云K4、K5、K6打印机 (打印机终端号,终端密钥在机子底部,开发者中心应用类型选择: 自有型应用),没有开发者账号<a href="https://dev.yilianyun.net/" target="_blank">请点击申请</a></span>
  286. </div>
  287. </div>
  288. <div class="layui-form-item">
  289. <label class="layui-form-label">打印隐藏会员手机:</label>
  290. <div class="layui-input-block">
  291. <div class="input-group fixsingle-input-group">
  292. <label class='radio-inline'><input type='radio' name='data[is_printhide_membermobile]' value='0' <?php if( empty($data['is_printhide_membermobile']) || $data['is_printhide_membermobile'] ==0){ ?>checked<?php } ?> title="否" /> </label>
  293. <label class='radio-inline'><input type='radio' name='data[is_printhide_membermobile]' value='1' <?php if( $data['is_printhide_membermobile']=='1'){ ?>checked<?php } ?> title="是" /> </label>
  294. <span class='help-block'>小票打印时,隐藏会员手机号,默认不隐藏</span>
  295. </div>
  296. </div>
  297. </div>
  298. <div class="layui-form-item">
  299. <label class="layui-form-label">打印内容</label>
  300. <div class="layui-input-block ">
  301. <input type="checkbox" lay-skin="primary" name="data[is_print_auto]" class="form-control valid" <?php if( empty($data['is_print_auto']) && $data['is_print_auto'] ==0 ){ ?>checked<?php } ?> value="1" title="下单自动打印" />
  302. <input type="checkbox" lay-skin="primary" name="data[is_print_cancleorder]" class="form-control valid" <?php if( !empty($data) && $data['is_print_cancleorder'] ==1 ){ ?>checked<?php } ?> value="1" title="取消订单打印" />
  303. <input type="checkbox" lay-skin="primary" name="data[is_print_admin_cancleorder]" class="form-control valid" <?php if( !empty($data) && $data['is_print_admin_cancleorder'] ==1 ){ ?>checked<?php } ?> value="1" title="后台整单立即退款打印" />
  304. <input type="checkbox" lay-skin="primary" name="data[is_print_dansupply_order]" class="form-control valid" <?php if( !empty($data) && $data['is_print_dansupply_order'] ==1 ){ ?>checked<?php } ?> value="1" title="独立供应商订单打印" />
  305. <input type="checkbox" lay-skin="primary" name="data[is_print_member_note]" class="form-control valid" <?php if( !empty($data) && $data['is_print_member_note'] ==1 ){ ?>checked<?php } ?> value="1" title="小票打印内容包含“会员详情-备注信息”" />
  306. <input type="checkbox" lay-skin="primary" name="data[is_print_order_note]" class="form-control valid" <?php if( !empty($data) && $data['is_print_order_note'] ==1 ){ ?>checked<?php } ?> value="1" title="小票打印内容包含“订单提交页自定义备注信息”" />
  307. <br/>
  308. <div class="layui-form-mid layui-word-aux">
  309. 默认付款后自动打印
  310. </div>
  311. </div>
  312. </div>
  313. <div class="layui-form-item">
  314. <label class="layui-form-label">订单留言:</label>
  315. <div class="layui-input-block">
  316. <div class="input-group fixsingle-input-group">
  317. <label class='radio-inline'><input type='radio' name='data[is_open_order_message]' value='0' <?php if(empty($data['is_open_order_message']) || $data['is_open_order_message']==0){ ?>checked<?php } ?> title="关闭" /> </label>
  318. <label class='radio-inline'><input type='radio' name='data[is_open_order_message]' value='1' <?php if($data['is_open_order_message']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  319. </div>
  320. </div>
  321. </div>
  322. <div class="layui-form-item">
  323. <label class="layui-form-label">后台订单语音提醒:</label>
  324. <div class="layui-input-block">
  325. <div class="input-group fixsingle-input-group">
  326. <label class='radio-inline'><input type='radio' name='data[is_open_order_voice_notice]' value='0' <?php if(empty($data['is_open_order_voice_notice']) || $data['is_open_order_voice_notice']==0){ ?>checked<?php } ?> title="关闭" /> </label>
  327. <label class='radio-inline'><input type='radio' name='data[is_open_order_voice_notice]' value='1' <?php if($data['is_open_order_voice_notice']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  328. </div>
  329. </div>
  330. </div>
  331. <div class="layui-form-item">
  332. <label class="layui-form-label">开启余额支付:</label>
  333. <div class="layui-input-block">
  334. <div class="input-group fixsingle-input-group">
  335. <label class='radio-inline'><input type='radio' name='data[is_open_yue_pay]' value='0' <?php if(empty($data['is_open_yue_pay']) || $data['is_open_yue_pay']==0){ ?>checked<?php } ?> title="关闭" /> </label>
  336. <label class='radio-inline'><input type='radio' name='data[is_open_yue_pay]' value='1' <?php if($data['is_open_yue_pay']=='1'){ ?>checked<?php } ?> title="开启" /> </label>
  337. </div>
  338. <span class='help-block'>开启后会员中心默认开启余额充值</span>
  339. </div>
  340. </div>
  341. <div class="layui-form-item">
  342. <label class="layui-form-label">售后申请可退包含:</label>
  343. <div class="layui-input-block ">
  344. <input type="checkbox" lay-skin="primary" name="data[is_has_refund_deliveryfree]" class="form-control valid" <?php if( !empty($data) && ( !isset($data['is_has_refund_deliveryfree']) || $data['is_has_refund_deliveryfree'] ==1 ) ){ ?>checked<?php } ?> value="1" title="配送费(团长配送费/快递配送费)" />
  345. <br/>
  346. <div class="layui-form-mid layui-word-aux">
  347. </div>
  348. </div>
  349. </div>
  350. <div class="layui-form-item" >
  351. <label class="layui-form-label">开启售后期</label>
  352. <div class="col-sm-10 col-xs-12" id="open_aftersale">
  353. <label class="radio-inline"><input type="radio" name="data[open_aftersale]" <?php if(!isset($data['open_aftersale']) || $data['open_aftersale'] ==0){ ?> checked <?php } ?> value="0" title="关闭" /><span class="fake-radio" ></span></label>
  354. <label class="radio-inline"><input type="radio" name="data[open_aftersale]" <?php if( isset($data['open_aftersale']) && $data['open_aftersale'] ==1 ){ ?> checked <?php } ?> value="1" title="开启" /><span class="fake-radio" ></span></label>
  355. <span class='help-block'>售后期开启以后”确认收货“商品订单不马上结算订单金额给团长或供应商,需要等售后期结束,商品订单佣金也需要等售后期结束才进行结算。(售后期包含商品售后期,以及商品订单的佣金结算期)</span>
  356. </div>
  357. </div>
  358. <div class="layui-form-item" id="open_aftersale_time" style="<?php if( isset($data['open_aftersale']) && $data['open_aftersale'] ==1 ){ ?>display:block;<?php }else{ ?>display: none;<?php } ?>">
  359. <label class="layui-form-label"></label>
  360. <div class="layui-input-block">
  361. <div class="input-group fixsingle-input-group">
  362. <input class="form-control" name="data[open_aftersale_time]" type="text" placeholder="填写售后天数" value="{$data['open_aftersale_time']}">
  363. <div class="input-group-addon">天</div>
  364. </div>
  365. </div>
  366. </div>
  367. <div class="layui-form-item" >
  368. <label class="layui-form-label">开启系统自动签收</label>
  369. <div class="col-sm-10 col-xs-12" id="open_autosale">
  370. <label class="radio-inline"><input type="radio" name="data[open_auto_recive_order]" <?php if( !isset($data['open_auto_recive_order']) || $data['open_auto_recive_order'] ==0 ){ ?> checked <?php } ?> value="0" title="关闭" /><span class="fake-radio" ></span></label>
  371. <label class="radio-inline"><input type="radio" name="data[open_auto_recive_order]" <?php if( isset($data['open_auto_recive_order']) && $data['open_auto_recive_order'] ==1 ){ ?> checked <?php } ?> value="1" title="开启" /><span class="fake-radio" ></span></label>
  372. <span class='help-block'>订单自动签收默认关闭状态,如果需要勾选进行设置,建议默认为7天。(当订单待收货或待核销时间超过所设置时间)</span>
  373. </div>
  374. </div>
  375. <div class="layui-form-item" id="auto_recive_order_time" style="<?php if( isset($data['open_auto_recive_order']) && $data['open_auto_recive_order'] ==1 ){ ?>display:block;<?php }else{ ?>display: none;<?php } ?>">
  376. <label class="layui-form-label"></label>
  377. <div class="layui-input-block">
  378. <div class="input-group fixsingle-input-group">
  379. <input class="form-control" name="data[auto_recive_order_time]" type="text" placeholder="填写自动签收天数" value="{$data['auto_recive_order_time']}">
  380. <div class="input-group-addon">天</div>
  381. </div>
  382. </div>
  383. </div>
  384. <div class="layui-form-item">
  385. <label class="layui-form-label">订单自动发货:</label>
  386. <div class="layui-input-block">
  387. <label class="layui-form-label" style="width: 100px;padding: 9px 0;">同城配送订单:</label>
  388. <div class="layui-input-block" style="margin-left: 110px;">
  389. <input type="checkbox" lay-skin="primary" name="data[is_localtown_auto_delivery]" class="form-control valid" <?php if( !empty($data) && $data['is_localtown_auto_delivery'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认配送" />
  390. <span class='help-block'>勾选自动确认配送以后,前后台订单状态在用户下单以后自动变更为“已发货,待收货”状态,不需要后台进行配送操作,配送员可以直接进行抢单配送。</span>
  391. </div>
  392. </div>
  393. <div class="layui-input-block">
  394. <label class="layui-form-label" style="width: 100px;padding: 9px 0;">团长配送订单:</label>
  395. <div class="layui-input-block" style="margin-left: 110px;">
  396. <input type="checkbox" lay-skin="primary" name="data[is_communityhead_auto_delivery]" class="form-control valid" <?php if( !empty($data) && $data['is_communityhead_auto_delivery'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认配送" />
  397. <input type="checkbox" lay-skin="primary" name="data[is_communityhead_auto_service]" class="form-control valid" <?php if( !empty($data) && $data['is_communityhead_auto_service'] == 1){ ?>checked<?php } ?> value="1" title="自动确认送达团长" />
  398. <span class='help-block'>勾选自动确认配送/自动确认送达团长以后,前后台订单状态在用户下单以后自动变更为“配送中”状态,不需要后台进行配送操作,勾选其中一项的时候,订单还需要进行发货操作。</span>
  399. </div>
  400. </div>
  401. <div class="layui-input-block">
  402. <label class="layui-form-label" style="width: 100px;padding: 9px 0;">社区自提订单:</label>
  403. <div class="layui-input-block" style="margin-left: 110px;">
  404. <input type="checkbox" lay-skin="primary" name="data[is_ziti_auto_delivery]" class="form-control valid" <?php if( !empty($data) && $data['is_ziti_auto_delivery'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认配送" />
  405. <input type="checkbox" lay-skin="primary" name="data[is_ziti_auto_service]" class="form-control valid" <?php if( !empty($data) && $data['is_ziti_auto_service'] == 1 ){ ?>checked<?php } ?> value="1" title="自动确认送达团长" />
  406. <span class='help-block'>勾选自动确认配送/自动确认送达团长以后,前后台订单状态在用户下单以后自动变更为“配送中”,不需要后台进行配送操作,勾选其中一项的时候,订单还需要进行发货操作。</span>
  407. </div>
  408. </div>
  409. </div>
  410. <div class="layui-form-item">
  411. <label class="layui-form-label">显示团长电话:</label>
  412. <div class="layui-input-block">
  413. <div class="input-group fixsingle-input-group">
  414. <label class='radio-inline'>
  415. <input type='radio' name='data[is_hidden_orderlist_phone]' value='0' <?php if(empty($data['is_hidden_orderlist_phone']) || $data['is_hidden_orderlist_phone']==0){ ?>checked<?php } ?> title="显示" />
  416. </label>
  417. <label class='radio-inline'>
  418. <input type='radio' name='data[is_hidden_orderlist_phone]' value='1' <?php if( $data['is_hidden_orderlist_phone']=='1' ){ ?>checked <?php } ?> title="关闭" />
  419. </label>
  420. </div>
  421. <span class='help-block'>订单详情是否显示团长电话</span>
  422. </div>
  423. </div>
  424. <div class="layui-form-item">
  425. <label class="layui-form-label">猜你喜欢:</label>
  426. <div class="layui-input-block">
  427. <div class="input-group fixsingle-input-group">
  428. <label class='radio-inline'><input type='radio' name='data[is_show_order_guess_like]' value='0' <?php if( empty($data['is_show_order_guess_like']) || $data['is_show_order_guess_like']==0 ){ ?>checked<?php } ?> title="关闭" /> </label>
  429. <label class='radio-inline'><input type='radio' name='data[is_show_order_guess_like]' value='1' <?php if( $data['is_show_order_guess_like']=='1' ){ ?>checked<?php } ?> title="开启" /> </label>
  430. </div>
  431. <span class='help-block'>订单详情是否显示猜你喜欢商品列表</span>
  432. </div>
  433. </div>
  434. <div class="layui-form-item">
  435. <label class="layui-form-label"> </label>
  436. <div class="layui-input-block">
  437. <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary" />
  438. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  439. </div>
  440. </div>
  441. </form>
  442. </div>
  443. </div>
  444. </div>
  445. <script src="/layuiadmin/layui/layui.js"></script>
  446. <script>
  447. layui.config({
  448. base: '/layuiadmin/' //静态资源所在路径
  449. }).extend({
  450. index: 'lib/index' //主入口模块
  451. }).use('index');
  452. </script>
  453. <script>
  454. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  455. var layer = layui.layer;
  456. var $;
  457. var cur_open_div;
  458. layui.use(['jquery', 'layer','form'], function(){
  459. $ = layui.$;
  460. var form = layui.form;
  461. form.on('radio(linktype)', function(data){
  462. if (data.value == 2) {
  463. $('#typeGroup').show();
  464. } else {
  465. $('#typeGroup').hide();
  466. }
  467. });
  468. $('#chose_link').click(function(){
  469. cur_open_div = $(this).attr('data-input');
  470. $.post("{:U('util.selecturl', array('ok' => 1))}", {}, function(shtml){
  471. layer.open({
  472. type: 1,
  473. area: '930px',
  474. content: shtml //注意,如果str是object,那么需要字符拼接。
  475. });
  476. });
  477. })
  478. //监听提交
  479. form.on('submit(formDemo)', function(data){
  480. $.ajax({
  481. url: data.form.action,
  482. type: data.form.method,
  483. data: data.field,
  484. dataType:'json',
  485. success: function (info) {
  486. if(info.status == 0)
  487. {
  488. layer.msg(info.result.msg,{icon: 1,time: 2000});
  489. }else if(info.status == 1){
  490. var go_url = location.href;
  491. if( info.result.hasOwnProperty("url") )
  492. {
  493. go_url = info.result.url;
  494. }
  495. layer.msg('操作成功',{time: 1000,
  496. end:function(){
  497. location.href = info.result.url;
  498. }
  499. });
  500. }
  501. }
  502. });
  503. return false;
  504. });
  505. })
  506. </script>
  507. <script type="text/javascript">
  508. $(document).ready(function(){
  509. $(".contact").mouseover(function(){
  510. $(".content").show("slow");
  511. $(".contact").mouseout(function(){
  512. $(".content").hide("slow");
  513. });
  514. });
  515. })
  516. </script>
  517. <script>
  518. $(function(){
  519. $('#radPickupDateTip input[type=radio]').click(function(){
  520. var s_val = $(this).val();
  521. if(s_val == 1)
  522. {
  523. $('#txtPickupDateTip').show();
  524. }else{
  525. $('#txtPickupDateTip').hide();
  526. }
  527. })
  528. $('#open_aftersale input[type=radio]').click(function(){
  529. var s_val = $(this).val();
  530. if(s_val == 1)
  531. {
  532. $('#open_aftersale_time').show();
  533. }else{
  534. $('#open_aftersale_time').hide();
  535. }
  536. })
  537. $('#open_autosale input[type=radio]').click(function(){
  538. var s_val = $(this).val();
  539. if(s_val == 1)
  540. {
  541. $('#auto_recive_order_time').show();
  542. }else{
  543. $('#auto_recive_order_time').hide();
  544. }
  545. })
  546. $('#redis_server input[type=radio]').click(function(){
  547. var s_val = $(this).val();
  548. if(s_val == 1)
  549. {
  550. $('#redis_div').css('display','block');
  551. }else{
  552. $('#redis_div').css('display', 'none');
  553. }
  554. })
  555. })
  556. </script>
  557. </body>