index.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617
  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. <script type="text/javascript" src="./resource/components/colpick/colpick.js"></script>
  43. <link rel="stylesheet" href="/layuiadmin/layui/css/layui.css" media="all">
  44. <link href="/static/css/snailfish.css" rel="stylesheet">
  45. <link href="./resource/components/colpick/colpick.css" rel="stylesheet">
  46. </head>
  47. <body layadmin-themealias="default">
  48. <div class="layui-fluid">
  49. <div class="layui-card">
  50. <div class="layui-card-header layui-elem-quote">当前位置:<span class="line-text">商城设置</span></div>
  51. <div class="layui-card-body" style="padding:15px;">
  52. <form action="" method="post" class="layui-form" lay-filter="component-layui-form-item" enctype="multipart/form-data" >
  53. <div class="layui-form-item">
  54. <label class="layui-form-label">商城名称</label>
  55. <div class="layui-input-block">
  56. <input type="text" name="parameter[shoname]" class="layui-input" value="{$data['shoname']}" />
  57. </div>
  58. </div>
  59. <div class="layui-form-item">
  60. <label class="layui-form-label">商城LOGO</label>
  61. <div class="layui-input-block">
  62. {:tpl_form_field_image2('parameter[shoplogo]', $data['shoplogo'])}
  63. <span class='layui-form-mid'>正方型图片</span>
  64. </div>
  65. </div>
  66. <div class="layui-form-item">
  67. <label class="layui-form-label">网址</label>
  68. <div class="layui-input-block">
  69. <input type="text" name="parameter[shop_domain]" class="layui-input" value="{$data['shop_domain']}" />
  70. <span class='help-block'>示例:https://域名/ ,网址最后的“/”必填,未配置https的,需要配置https</span>
  71. </div>
  72. </div>
  73. <div class="layui-form-item">
  74. <label class="layui-form-label">小程序首页展示设置</label>
  75. <div class="layui-input-block">
  76. <input type="radio" name="parameter[open_diy_index_page]" value="0" title="旧版首页" <?php if( empty($data) || $data['open_diy_index_page'] == 0 ){ ?>checked <?php } ?> />
  77. <input type="radio" name="parameter[open_diy_index_page]" value="1" title="新版“首页DIY”" <?php if( !empty($data) && $data['open_diy_index_page'] ==1 ){ ?>checked <?php } ?> />
  78. <hr >
  79. <span class='layui-form-mid'>小程序设置新版 “首页DIY” 以后,“小程序首页”内容根据“首页DIY”设置的内容进行展示,商城其他“首页”设置会无效。如还使用商城“首页”设置请切换至“旧版首页”</span>
  80. </div>
  81. </div>
  82. <div class="layui-form-item">
  83. <label class="layui-form-label">首页分享标题</label>
  84. <div class="layui-input-block">
  85. <input type="text" name="parameter[shop_index_share_title]" class="layui-input" value="{$data['shop_index_share_title']}" />
  86. <span class='layui-form-mid'>未填写将默认使用商城名称作为分享标题</span>
  87. </div>
  88. </div>
  89. <div class="layui-form-item" >
  90. <label class="layui-form-label">首页分享图片</label>
  91. <div class="layui-input-block">
  92. {:tpl_form_field_image2('parameter[shop_index_share_image]', $data['shop_index_share_image'])}
  93. <span class='layui-form-mid'>支持PNG及JPG,显示图片长宽比是 5:4。</span>
  94. </div>
  95. </div>
  96. <div class="layui-form-item">
  97. <label class="layui-form-label">首页商品排列</label>
  98. <div class="layui-input-block">
  99. <input type="radio" name="parameter[index_list_theme_type]" value="0" title="小图" <?php if( !empty($data) && $data['index_list_theme_type'] ==0 ){ ?>checked <?php } ?> />
  100. <input type="radio" name="parameter[index_list_theme_type]" value="1" title="大图" <?php if( empty($data) || $data['index_list_theme_type'] ==1 ){ ?>checked <?php } ?> />
  101. <input type="radio" name="parameter[index_list_theme_type]" value="3" title="一行两个商品" <?php if( empty($data) || $data['index_list_theme_type'] ==3 ){ ?>checked <?php } ?> />
  102. <input type="radio" name="parameter[index_list_theme_type]" value="2" title="一行三个商品" <?php if( empty($data) || $data['index_list_theme_type'] ==2 ){ ?>checked <?php } ?> />
  103. </div>
  104. </div>
  105. <div class="layui-form-item">
  106. <label class="layui-form-label">页面导航条背景颜色</label>
  107. <div class="layui-input-block">
  108. <div class="" style="margin:0px;">
  109. <div class="layui-input-inline" style="width: 120px;">
  110. <input type="text" name="parameter[nav_bg_color]" value="{$data['nav_bg_color']}" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input">
  111. </div>
  112. <div class="layui-inline" style="left: -11px;">
  113. <div id="minicolors" class="layui-inline">
  114. <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: {$data['nav_bg_color']}"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
  115. </div>
  116. </div>
  117. </div>
  118. <span class='layui-form-mid'>背景颜色值,有效值为十六进制颜色。默认色值:<font color="#F75451">#F75451</font></span>
  119. </div>
  120. </div>
  121. <div class="layui-form-item">
  122. <label class="layui-form-label">页面标题文字颜色</label>
  123. <div class="layui-input-block">
  124. <input type="radio" name="parameter[nav_font_color]" value="#ffffff" title="白色" <?php if( !empty($data) && $data['nav_font_color'] =='#ffffff' ){ ?>checked <?php } ?> />
  125. <input type="radio" name="parameter[nav_font_color]" value="#000000" title="黑色" <?php if( empty($data) || $data['nav_font_color'] =='#000000' ){ ?>checked <?php } ?> />
  126. <hr >
  127. <span class='layui-form-mid'>前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000 <br/>为避免重复请求,采用缓存机制,有效时长为十分钟,如需马上生效可删除小程序重新进入</span>
  128. </div>
  129. </div>
  130. <div class="layui-form-item">
  131. <label class="layui-form-label">主题颜色</label>
  132. <div class="layui-input-block">
  133. <div class="" style="margin:0px;">
  134. <div class="layui-input-inline" style="width: 120px;">
  135. <input type="text" name="parameter[skin]" value="{$data['skin']}" placeholder="请选择颜色" class="layui-input" id="skin-colorpicker-form-input">
  136. </div>
  137. <div class="layui-inline" style="left: -11px;">
  138. <div id="skincolors">
  139. <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: {$data['skin']}"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
  140. </div>
  141. </div>
  142. </div>
  143. <span class='layui-form-mid'>全局主题颜色(页面导航条背景颜色,<a lay-href="/seller.php?s=/weprogram/tabbar" title="去设置" class="text-primary">底部菜单</a>需单独设置),有效值为十六进制颜色。默认色值:<font color="#F75451">#F75451</font></span>
  144. </div>
  145. </div>
  146. <div class="layui-form-item">
  147. <label class="layui-form-label">腾讯地图AppKey</label>
  148. <div class="layui-input-block">
  149. <input type="text" name="parameter[tx_map_key]" class="layui-input" value="{$data['tx_map_key']}" />
  150. <span class='layui-form-mid'><a href="https://lbs.qq.com/console/key.html" class="text-primary" target="_blank">点击申请</a>&nbsp;用于地图定位、显示社区团长位置
  151. <a href="/static/images/tx_key_demo.png" class="text-primary" title="点击查看" target="_balnk">地图申请示例</a>
  152. <a href="/static/images/tx_map_request_demo.png" class="text-primary" title="点击查看" target="_balnk">小程序域名设置示例</a>
  153. </span>
  154. </div>
  155. </div>
  156. <div class="layui-form-item">
  157. <label class="layui-form-label">群体名称</label>
  158. <div class="layui-input-block">
  159. <input type="text" name="parameter[group_name]" class="layui-input" value="{$data['group_name']}" />
  160. <span class='layui-form-mid'>默认:社区</span>
  161. </div>
  162. </div>
  163. <div class="layui-form-item">
  164. <label class="layui-form-label">群主名称</label>
  165. <div class="layui-input-block">
  166. <input type="text" name="parameter[owner_name]" class="layui-input" value="{$data['owner_name']}" />
  167. <span class='layui-form-mid'>默认:团长</span>
  168. </div>
  169. </div>
  170. <div class="layui-form-item">
  171. <label class="layui-form-label">小区团长:</label>
  172. <div class="layui-input-block">
  173. <input type="text" name="parameter[haibao_group_name]" class="layui-input" value="{$data['haibao_group_name']}" />
  174. <span class='layui-form-mid'>默认:小区团长,首页海报上文字</span>
  175. </div>
  176. </div>
  177. <div class="layui-form-item">
  178. <label class="layui-form-label">首页顶部背景</label>
  179. <div class="layui-input-block">
  180. <input type="radio" name="parameter[index_top_img_bg_open]" value="1" title="隐藏" <?php if( !empty($data) && $data['index_top_img_bg_open'] ==1 ){ ?>checked <?php } ?> />
  181. <input type="radio" name="parameter[index_top_img_bg_open]" value="0" title="显示" <?php if( empty($data) || $data['index_top_img_bg_open'] ==0 ){ ?>checked <?php } ?> />
  182. </div>
  183. </div>
  184. <div class="layui-form-item">
  185. <label class="layui-form-label">首页分享按钮</label>
  186. <div class="layui-input-block">
  187. <input type="radio" name="parameter[index_share_switch]" value="0" title="隐藏" <?php if( !empty($data) && $data['index_share_switch'] ==0 ){ ?>checked <?php } ?> />
  188. <input type="radio" name="parameter[index_share_switch]" value="1" title="显示" <?php if( empty($data) || $data['index_share_switch'] ==1 ){ ?>checked <?php } ?> />
  189. </div>
  190. </div>
  191. <div class="layui-form-item">
  192. <label class="layui-form-label">首页抢购切换</label>
  193. <div class="layui-input-block">
  194. <input type="radio" name="parameter[index_change_cate_btn]" value="1" title="关闭" <?php if( empty($data) || $data['index_change_cate_btn'] ==1 ){ ?>checked <?php } ?> />
  195. <input type="radio" name="parameter[index_change_cate_btn]" value="0" title="开启" <?php if( !empty($data) && $data['index_change_cate_btn'] ==0 ){ ?>checked <?php } ?> />
  196. </div>
  197. </div>
  198. <div class="layui-form-item">
  199. <label class="layui-form-label">首页客服按钮</label>
  200. <div class="layui-input-block">
  201. <input type="radio" name="parameter[index_service_switch]" value="0" title="关闭" <?php if( empty($data) || $data['index_service_switch'] ==0 ){ ?>checked <?php } ?> />
  202. <input type="radio" name="parameter[index_service_switch]" value="1" title="开启" <?php if( !empty($data) && $data['index_service_switch'] ==1 ){ ?>checked <?php } ?> />
  203. </div>
  204. </div>
  205. <div class="layui-form-item">
  206. <label class="layui-form-label">其他页面客服按钮</label>
  207. <div class="layui-input-block">
  208. <input type="radio" name="parameter[user_service_switch]" value="0" title="关闭" <?php if( isset($data['user_service_switch']) && $data['user_service_switch']==0 ){ ?>checked<?php } ?> />
  209. <input type="radio" name="parameter[user_service_switch]" value="1" title="开启" <?php if( !isset($data['user_service_switch']) || $data['user_service_switch']==1){ ?>checked<?php } ?> />
  210. <br/>
  211. <span class='layui-form-mid'>商品详情、个人中心、订单中心等页面联系客服按钮</span>
  212. </div>
  213. </div>
  214. <div class="layui-form-item">
  215. <label class="layui-form-label">首页搜索框</label>
  216. <div class="layui-input-block">
  217. <input type="radio" name="parameter[index_switch_search]" value="0" title="关闭" <?php if( empty($data) || $data['index_switch_search'] ==0 ){ ?>checked <?php } ?> />
  218. <input type="radio" name="parameter[index_switch_search]" value="1" title="开启" <?php if( !empty($data) && $data['index_switch_search'] ==1 ){ ?>checked <?php } ?> />
  219. </div>
  220. </div>
  221. <div class="layui-form-item">
  222. <label class="layui-form-label">首页页头文字颜色</label>
  223. <div class="layui-input-block">
  224. <div class="" style="margin:0px;">
  225. <div class="layui-input-inline" style="width: 120px;">
  226. <input type="text" name="parameter[index_top_font_color]" value="{$data['index_top_font_color']}" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input2">
  227. </div>
  228. <div class="layui-inline" style="left: -11px;">
  229. <div id="minicolors2">
  230. <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: {$data['index_top_font_color']}"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
  231. </div>
  232. </div>
  233. </div>
  234. <span class='layui-form-mid'>默认:#ffffff</span>
  235. </div>
  236. </div>
  237. <div class="layui-form-item">
  238. <label class="layui-form-label">个人中心页头文字颜色</label>
  239. <div class="layui-input-block">
  240. <div class="" style="margin:0px;">
  241. <div class="layui-input-inline" style="width: 120px;">
  242. <input type="text" name="parameter[user_top_font_color]" value="{$data['user_top_font_color']}" placeholder="请选择颜色" class="layui-input" id="test-colorpicker-form-input3">
  243. </div>
  244. <div class="layui-inline" style="left: -11px;">
  245. <div id="minicolors3">
  246. <div class="layui-unselect layui-colorpicker"><span><span class="layui-colorpicker-trigger-span" lay-type="" style="background: {$data['user_top_font_color']}"><i class="layui-icon layui-colorpicker-trigger-i layui-icon-down"></i></span></span></div>
  247. </div>
  248. </div>
  249. </div>
  250. <span class='layui-form-mid'>默认:#ffffff</span>
  251. </div>
  252. </div>
  253. <div class="layui-form-item">
  254. <label class="layui-form-label">首页显示“切换”二字</label>
  255. <div class="layui-input-block">
  256. <input type="radio" name="parameter[hide_community_change_word]" value="0" title="是" <?php if( empty($data) || $data['hide_community_change_word'] ==0 ){ ?>checked <?php } ?> />
  257. <input type="radio" name="parameter[hide_community_change_word]" value="1" title="否" <?php if( !empty($data) && $data['hide_community_change_word'] ==1 ){ ?>checked <?php } ?> />
  258. </div>
  259. </div>
  260. <div class="layui-form-item">
  261. <label class="layui-form-label">切换小区</label>
  262. <div class="layui-input-block">
  263. <input type="radio" name="parameter[hide_community_change_btn]" value="1" title="禁止" <?php if( !empty($data) && $data['hide_community_change_btn'] ==1 ){ ?>checked <?php } ?> />
  264. <input type="radio" name="parameter[hide_community_change_btn]" value="0" title="允许" <?php if( empty($data) || $data['hide_community_change_btn'] ==0 ){ ?>checked <?php } ?> />
  265. <br>
  266. <span class='layui-form-mid'>备注:选择“禁止”,用户无论点击哪个团长分享出来的链接,都是直接进入原绑定小区,无提示 。</span>
  267. </div>
  268. </div>
  269. <div class="layui-form-item">
  270. <label class="layui-form-label">首页团长信息开关</label>
  271. <div class="layui-input-block">
  272. <input type="radio" name="parameter[hide_index_top_communityinfo]" value="1" title="隐藏" <?php if( !empty($data) && $data['hide_index_top_communityinfo'] ==1 ){ ?>checked <?php } ?> />
  273. <input type="radio" name="parameter[hide_index_top_communityinfo]" value="0" title="显示" <?php if( empty($data) || $data['hide_index_top_communityinfo'] ==0 ){ ?>checked <?php } ?> />
  274. </div>
  275. </div>
  276. <div class="layui-form-item">
  277. <label class="layui-form-label">简洁模式团长与搜索</label>
  278. <div class="layui-input-block">
  279. <input type="radio" name="parameter[index_communityinfo_showtype]" value="0" title="关闭" <?php if( empty($data) || $data['index_communityinfo_showtype'] ==0 ){ ?>checked <?php } ?> />
  280. <input type="radio" name="parameter[index_communityinfo_showtype]" value="1" title="开启" <?php if( !empty($data) && $data['index_communityinfo_showtype'] ==1 ){ ?>checked <?php } ?> />
  281. </div>
  282. </div>
  283. <div class="layui-form-item">
  284. <label class="layui-form-label">首页文字“全部”</label>
  285. <div class="layui-input-block">
  286. <input type="text" name="parameter[index_type_first_name]" class="layui-input" value="{$data['index_type_first_name']}" />
  287. <span class='layui-form-mid'>默认:全部</span>
  288. </div>
  289. </div>
  290. <div class="layui-form-item">
  291. <label class="layui-form-label">一键复制开关</label>
  292. <div class="layui-input-block">
  293. <input type="radio" name="parameter[ishow_index_copy_text]" value="0" title="隐藏" <?php if(empty($data) || $data['ishow_index_copy_text'] ==0){ ?>checked <?php } ?> />
  294. <input type="radio" name="parameter[ishow_index_copy_text]" value="1" title="显示" <?php if(!empty($data) && $data['ishow_index_copy_text'] ==1){ ?>checked <?php } ?> />
  295. </div>
  296. </div>
  297. <div class="layui-form-item">
  298. <label class="layui-form-label">返回顶部开关</label>
  299. <div class="layui-input-block">
  300. <input type="radio" name="parameter[ishow_index_gotop]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_index_gotop'] ==0 ){ ?>checked <?php } ?> />
  301. <input type="radio" name="parameter[ishow_index_gotop]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_index_gotop'] ==1 ){ ?>checked <?php } ?> />
  302. <br>
  303. <span class='layui-form-mid'>首页返回顶部浮动按钮,默认:隐藏。</span>
  304. </div>
  305. </div>
  306. <div class="layui-form-item">
  307. <label class="layui-form-label">专题分享按钮</label>
  308. <div class="layui-input-block">
  309. <input type="radio" name="parameter[ishow_special_share_btn]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_special_share_btn'] ==0 ){ ?>checked <?php } ?> />
  310. <input type="radio" name="parameter[ishow_special_share_btn]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_special_share_btn'] ==1 ){ ?>checked <?php } ?> />
  311. </div>
  312. </div>
  313. <div class="layui-form-item">
  314. <label class="layui-form-label">退出登录按钮</label>
  315. <div class="layui-input-block">
  316. <input type="radio" name="parameter[ishow_user_loginout_btn]" value="0" title="隐藏" <?php if( empty($data) || $data['ishow_user_loginout_btn'] ==0 ){ ?>checked <?php } ?> />
  317. <input type="radio" name="parameter[ishow_user_loginout_btn]" value="1" title="显示" <?php if( !empty($data) && $data['ishow_user_loginout_btn'] ==1 ){ ?>checked <?php } ?> />
  318. </div>
  319. </div>
  320. <div class="layui-form-item">
  321. <label class="layui-form-label">提货码显示方式</label>
  322. <div class="layui-input-block">
  323. <input type="radio" name="parameter[fetch_coder_type]" value="0" title="页面底部" <?php if( empty($data) || $data['fetch_coder_type'] ==0 ){ ?>checked <?php } ?> />
  324. <input type="radio" name="parameter[fetch_coder_type]" value="1" title="右上角图标" <?php if( !empty($data) && $data['fetch_coder_type'] ==1 ){ ?>checked <?php } ?> />
  325. <input type="radio" name="parameter[fetch_coder_type]" value="2" title="不显示" <?php if( !empty($data) && $data['fetch_coder_type'] ==2 ){ ?>checked <?php } ?> />
  326. </div>
  327. </div>
  328. <div class="layui-form-item">
  329. <label class="layui-form-label">个人中心拼团</label>
  330. <div class="layui-input-block">
  331. <input type="radio" name="parameter[show_user_pin]" value="0" title="隐藏" <?php if( empty($data) || $data['show_user_pin'] ==0 ){ ?>checked <?php } ?> />
  332. <input type="radio" name="parameter[show_user_pin]" value="1" title="显示" <?php if( !empty($data) && $data['show_user_pin'] ==1 ){ ?>checked <?php } ?> />
  333. </div>
  334. </div>
  335. <div class="layui-form-item">
  336. <label class="layui-form-label">个人中心自提点</label>
  337. <div class="layui-input-block">
  338. <input type="radio" name="parameter[show_user_change_comunity]" value="0" title="隐藏" <?php if( empty($data) || $data['show_user_change_comunity'] ==0 ){ ?>checked <?php } ?> />
  339. <input type="radio" name="parameter[show_user_change_comunity]" value="1" title="显示" <?php if( !empty($data) && $data['show_user_change_comunity'] ==1 ){ ?>checked <?php } ?> />
  340. </div>
  341. </div>
  342. <div class="layui-form-item">
  343. <label class="layui-form-label">个人中心自提点路线按钮</label>
  344. <div class="layui-input-block">
  345. <input type="radio" name="parameter[show_user_change_comunity_map]" value="0" title="隐藏" <?php if( empty($data) || $data['show_user_change_comunity_map'] ==0 ){ ?>checked <?php } ?> />
  346. <input type="radio" name="parameter[show_user_change_comunity_map]" value="1" title="显示" <?php if( !empty($data) && $data['show_user_change_comunity_map'] ==1 ){ ?>checked <?php } ?> />
  347. <br />
  348. <span class='layui-form-mid'>点击跳转显示自提点地图位置信息,默认:关闭。</span>
  349. </div>
  350. </div>
  351. <div class="layui-form-item">
  352. <label class="layui-form-label">个人中心团长电话保护</label>
  353. <div class="layui-input-block">
  354. <input type="radio" name="parameter[show_user_tuan_mobile]" value="0" title="开启" <?php if( empty($data) || $data['show_user_tuan_mobile'] ==0 ){ ?>checked <?php } ?> />
  355. <input type="radio" name="parameter[show_user_tuan_mobile]" value="1" title="关闭" <?php if( !empty($data) && $data['show_user_tuan_mobile'] ==1 ){ ?>checked <?php } ?> />
  356. <br />
  357. <span class='layui-form-mid'>开启保护则隐藏团长手机后四位,默认:开启。</span>
  358. </div>
  359. </div>
  360. <div class="layui-form-item">
  361. <label class="layui-form-label">首页公众号关注组件</label>
  362. <div class="layui-input-block">
  363. <input type="radio" name="parameter[show_index_wechat_oa]" value="0" title="隐藏" <?php if( empty($data) || $data['show_index_wechat_oa'] ==0 ){ ?>checked <?php } ?> />
  364. <input type="radio" name="parameter[show_index_wechat_oa]" value="1" title="显示" <?php if( !empty($data) && $data['show_index_wechat_oa'] ==1 ){ ?>checked <?php } ?> />
  365. <br>
  366. <div class='layui-form-mid'>
  367. <p>1.使用组件前,需前往小程序后台,在“设置”->“关注公众号”中设置要展示的公众号。<strong>注:设置的公众号需与小程序主体一致。</strong></p>
  368. <p>2.只有从“扫小程序码”、“聊天顶部场景”、“其他小程序返回小程序”进入时才会显示。</p>
  369. </div>
  370. </div>
  371. </div>
  372. <div class="layui-form-item">
  373. <label class="layui-form-label">首页分类列表</label>
  374. <div class="layui-input-block">
  375. <input type="radio" name="parameter[ishide_index_goodslist]" value="1" title="隐藏" <?php if( !empty($data) || $data['ishide_index_goodslist'] ==1 ){ ?>checked <?php } ?> />
  376. <input type="radio" name="parameter[ishide_index_goodslist]" value="0" title="显示" <?php if( !empty($data) && $data['ishide_index_goodslist'] ==0 ){ ?>checked <?php } ?> />
  377. <br>
  378. <span class='layui-form-mid'>首页分类商品列表,开启隐藏则分类商品列表、切换按钮和分类导航一并隐藏,默认:显示。</span>
  379. </div>
  380. </div>
  381. <div class="layui-form-item">
  382. <label class="layui-form-label">公告点击弹窗</label>
  383. <div class="layui-input-block">
  384. <input type="radio" name="parameter[can_index_notice_alert]" value="1" title="开启" <?php if( !empty($data) && $data['can_index_notice_alert']==1 ){ ?>checked <?php } ?> />
  385. <input type="radio" name="parameter[can_index_notice_alert]" value="0" title="关闭" <?php if( empty($data) || $data['can_index_notice_alert']==0 ){ ?>checked <?php } ?> />
  386. <br>
  387. <span class='layui-form-mid'>首页公告点击弹窗显示详情,默认:关闭。</span>
  388. </div>
  389. </div>
  390. <div class="layui-form-item">
  391. <label class="layui-form-label">充值名称自定义</label>
  392. <div class="layui-input-block">
  393. <input type="text" name="parameter[excharge_nav_name]" class="layui-input" value="{$data['excharge_nav_name']}" />
  394. <span class='layui-form-mid'>充值页面顶部导航名称和个人中心余额“查看”文字</span>
  395. </div>
  396. </div>
  397. <div class="layui-form-item">
  398. <label class="layui-form-label">技术支持</label>
  399. <div class="layui-input-block">
  400. <input type="text" name="parameter[technical_support]" class="layui-input" value="{$data['technical_support']}" />
  401. <span class='layui-form-mid'>可填写 "***版权所有"。与备案号一起显示在网站登录界面正下方</span>
  402. </div>
  403. </div>
  404. <div class="layui-form-item">
  405. <label class="layui-form-label">备案号</label>
  406. <div class="layui-input-block">
  407. <input type="text" name="parameter[record_number]" class="layui-input" value="{$data['record_number']}" />
  408. <span class='layui-form-mid'>点击备案号会链接到工信部官网首页(beian.miit.gov.cn)</span>
  409. </div>
  410. </div>
  411. <div class="layui-form-item">
  412. <label class="layui-form-label"> </label>
  413. <div class="layui-input-block">
  414. <input type="submit" value="提交" lay-submit lay-filter="formDemo" class="btn btn-primary" />
  415. </div>
  416. </div>
  417. </form>
  418. </div>
  419. </div>
  420. </div>
  421. <script src="/layuiadmin/layui/layui.js"></script>
  422. <script>
  423. var nav_bg_color = '{$data["nav_bg_color"]}';
  424. $('#minicolors').colpick({
  425. submit:true,
  426. color: nav_bg_color,
  427. onSubmit: function(color,color2){
  428. $('#test-colorpicker-form-input').val('#'+color2);
  429. $('#minicolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
  430. $('.colpick_full').hide();
  431. }
  432. });
  433. var skin_color = '{$data["skin"]}';
  434. $('#skincolors').colpick({
  435. submit:true,
  436. color: skin_color,
  437. onSubmit: function(color,color2){
  438. $('#skin-colorpicker-form-input').val('#'+color2);
  439. $('#skincolors').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
  440. $('.colpick_full').hide();
  441. }
  442. });
  443. var minicolors2 = '{$data["index_top_font_color"]}';
  444. $('#minicolors2').colpick({
  445. submit:true,
  446. color: minicolors2,
  447. onSubmit: function(color,color2){
  448. $('#test-colorpicker-form-input2').val('#'+color2);
  449. $('#minicolors2').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
  450. $('.colpick_full').hide();
  451. }
  452. });
  453. var minicolors3 = '{$data["user_top_font_color"]}';
  454. $('#minicolors3').colpick({
  455. submit:true,
  456. color: minicolors3,
  457. onSubmit: function(color,color2){
  458. $('#test-colorpicker-form-input3').val('#'+color2);
  459. $('#minicolors3').find('.layui-colorpicker-trigger-span').css('background','#'+color2);
  460. $('.colpick_full').hide();
  461. }
  462. });
  463. layui.config({
  464. base: '/layuiadmin/' //静态资源所在路径
  465. }).extend({
  466. index: 'lib/index' //主入口模块
  467. }).use('index');
  468. </script>
  469. <script>
  470. //由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
  471. var layer = layui.layer;
  472. var $;
  473. layui.use(['jquery', 'layer','form','colorpicker'], function(){
  474. $ = layui.$;
  475. var form = layui.form;
  476. var colorpicker = layui.colorpicker;
  477. var nav_bg_color = '{$data["nav_bg_color"]}';
  478. //表单赋值
  479. /*colorpicker.render({
  480. elem: '#minicolors'
  481. ,color: nav_bg_color ? nav_bg_color : '#F75451'
  482. ,done: function(color){
  483. $('#test-colorpicker-form-input').val(color);
  484. }
  485. });*/
  486. /*var user_top_font_color = '{$data["user_top_font_color"]}';
  487. colorpicker.render({
  488. elem: '#minicolors3'
  489. ,color: user_top_font_color ? user_top_font_color : '#FFFFFF'
  490. ,done: function(color){
  491. $('#test-colorpicker-form-input3').val(color);
  492. }
  493. });
  494. var index_top_font_color = '{$data["index_top_font_color"]}';
  495. colorpicker.render({
  496. elem: '#minicolors2'
  497. ,color: index_top_font_color ? index_top_font_color : '#FFFFFF'
  498. ,done: function(color){
  499. $('#test-colorpicker-form-input2').val(color);
  500. }
  501. });*/
  502. /*var skin_color = '{$data["skin"]}';
  503. colorpicker.render({
  504. elem: '#skincolors'
  505. ,color: skin_color ? skin_color : '#F75451'
  506. ,done: function(color){
  507. $('#skin-colorpicker-form-input').val(color);
  508. }
  509. });*/
  510. //监听提交
  511. form.on('submit(formDemo)', function(data){
  512. $.ajax({
  513. url: data.form.action,
  514. type: data.form.method,
  515. data: data.field,
  516. dataType:'json',
  517. success: function (info) {
  518. if(info.status == 0)
  519. {
  520. layer.msg(info.result.message,{icon: 1,time: 2000});
  521. }else if(info.status == 1){
  522. var go_url = location.href;
  523. if( info.result.hasOwnProperty("url") )
  524. {
  525. go_url = info.result.url;
  526. }
  527. layer.msg('操作成功',{time: 1000,
  528. end:function(){
  529. location.href = info.result.url;
  530. }
  531. });
  532. }
  533. }
  534. });
  535. return false;
  536. });
  537. })
  538. </script>
  539. </body>