general.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. {$breadcrumb2}
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. 基本信息
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" id="form" method="post" action="{:U('Settings/save')}">
  15. <ul class="nav nav-tabs">
  16. <li class="active"><a href="#tab-general" data-toggle="tab">基本信息</a></li>
  17. <li><a href="#tab-fenxiao" data-toggle="tab">分销参数配置</a></li>
  18. <li><a href="#tab-weixinkefu" data-toggle="tab">微信客服消息配置</a></li>
  19. <li><a href="#tab-goods" data-toggle="tab">商品参数配置</a></li>
  20. <li><a href="#tab-images" data-toggle="tab">图片参数配置</a></li>
  21. <li><a href="#tab-sms" data-toggle="tab">短信参数配置</a></li>
  22. <li><a href="#tab-kefu" data-toggle="tab">客服配置</a></li>
  23. </ul>
  24. <div class="tab-content">
  25. <!-- 常规 START -->
  26. <div class="tab-pane active" id="tab-general">
  27. <div class="form-group">
  28. <label class="col-sm-2 control-label no-padding-left">网站LOGO </label>
  29. <div class="col-sm-10">
  30. <div class="col-sm-10" id="thumb">
  31. <a href="#" data-toggle="image" class="img-thumbnail">
  32. <img osctype="image" <if condition="$site['SITE_ICON']['value']">
  33. src="__ROOT__/<?php echo resize($site['SITE_ICON']['value'],100,100); ?>"
  34. <else />
  35. src="__ROOT__/Common/image/no_image_40x40.jpg"
  36. </if> />
  37. </a>
  38. <input osctype="image_input" type="hidden" name="SITE_ICON" value="{$site.SITE_ICON.value|default=''}" id="input-image" />
  39. </div>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-sm-2 control-label no-padding-left"> * 网站标题 </label>
  44. <div class="col-sm-10">
  45. <div class="clearfix">
  46. <input name="SITE_TITLE" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_TITLE.value|default=''}" type="text">
  47. </div>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="col-sm-2 control-label no-padding-left"> * 网站名称 </label>
  52. <div class="col-sm-10">
  53. <div class="clearfix">
  54. <input name="SITE_NAME" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_NAME.value|default=''}" type="text">
  55. </div>
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="col-sm-2 control-label no-padding-left"> * 网站描述 </label>
  60. <div class="col-sm-10">
  61. <div class="clearfix">
  62. <textarea name="SITE_DESCRIPTION" id="input-meta-description2" class="form-control" rows="5" >{$site.SITE_DESCRIPTION.value|default=''}</textarea>
  63. </div>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="col-sm-2 control-label no-padding-left"> * 微信APPID </label>
  68. <div class="col-sm-10">
  69. <div class="clearfix">
  70. <input name="APPID" class="col-xs-10 col-sm-10 form-control" value="{$site.APPID.value|default=''}" type="text">
  71. </div>
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="col-sm-2 control-label no-padding-left"> * 微信APPSECRET </label>
  76. <div class="col-sm-10">
  77. <div class="clearfix">
  78. <input name="APPSECRET" class="col-xs-10 col-sm-10 form-control" value="{$site.APPSECRET.value|default=''}" type="text">
  79. </div>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="col-sm-2 control-label no-padding-left"> * 微信商户号 </label>
  84. <div class="col-sm-10">
  85. <div class="clearfix">
  86. <input name="MCHID" class="col-xs-10 col-sm-10 form-control" value="{$site.MCHID.value|default=''}" type="text">
  87. </div>
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="col-sm-2 control-label no-padding-left"> 网址 </label>
  92. <div class="col-sm-10">
  93. <div class="clearfix">
  94. <input name="SITE_URL" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_URL.value|default=''}" type="text">
  95. </div>
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="col-sm-2 control-label no-padding-left"> 公众号关注地址 </label>
  100. <div class="col-sm-10">
  101. <div class="clearfix">
  102. <input name="SHORT_URL" class="col-xs-10 col-sm-10 form-control" value="{$site.SHORT_URL.value|default=''}" type="text">
  103. </div>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="col-sm-2 control-label no-padding-left"> 系统版本 </label>
  108. <div class="col-sm-10">
  109. <div class="clearfix">
  110. <input name="VERSION" class="col-xs-10 col-sm-10 form-control" value="{$site.VERSION.value|default=''}" type="text">
  111. </div>
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="col-sm-2 control-label no-padding-left"> 联系电话 </label>
  116. <div class="col-sm-10">
  117. <div class="clearfix">
  118. <input name="site_tel" class="col-xs-10 col-sm-10 form-control" value="{$site.site_tel.value|default=''}" type="text">
  119. </div>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="col-sm-2 control-label no-padding-left"> 工作时间 </label>
  124. <div class="col-sm-10">
  125. <div class="clearfix">
  126. <input name="site_woketime" class="col-xs-10 col-sm-10 form-control" value="{$site.site_woketime.value|default=''}" type="text">
  127. </div>
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="col-sm-2 control-label no-padding-left"> QQ群 </label>
  132. <div class="col-sm-10">
  133. <div class="clearfix">
  134. <input name="site_qqun" class="col-xs-10 col-sm-10 form-control" value="{$site.site_qqun.value|default=''}" type="text">
  135. </div>
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <label class="col-sm-2 control-label no-padding-left"> copyright </label>
  140. <div class="col-sm-10">
  141. <div class="clearfix">
  142. <input name="copyright" class="col-xs-10 col-sm-10 form-control" value="{$site.copyright.value|default=''}" type="text">
  143. </div>
  144. </div>
  145. </div>
  146. <div class="form-group">
  147. <label class="col-sm-2 control-label no-padding-left"> ICP备案号 </label>
  148. <div class="col-sm-10">
  149. <div class="clearfix">
  150. <input name="SITE_ICP" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_ICP.value|default=''}" type="text">
  151. </div>
  152. </div>
  153. </div>
  154. <div class="form-group">
  155. <label class="col-sm-2 control-label no-padding-left"> 开启海淘</label>
  156. <div class="col-sm-10">
  157. <div class="clearfix">
  158. <label class="radio-inline"><input <?php if($site['openhaitao']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="openhaitao">开启</label>
  159. <label class="radio-inline"><input <?php if($site['openhaitao']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="openhaitao">关闭</label>
  160. </div>
  161. </div>
  162. </div>
  163. <div class="form-group">
  164. <label class="col-sm-2 control-label no-padding-left"> 站点状态</label>
  165. <div class="col-sm-10">
  166. <div class="clearfix">
  167. <label class="radio-inline"><input <?php if($site['WEB_SITE_CLOSE']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="WEB_SITE_CLOSE">开启</label>
  168. <label class="radio-inline"><input <?php if($site['WEB_SITE_CLOSE']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="WEB_SITE_CLOSE">关闭</label>
  169. </div>
  170. </div>
  171. </div>
  172. </div>
  173. <div class="tab-pane" id="tab-weixinkefu">
  174. <div class="form-group">
  175. <label class="col-sm-2 control-label no-padding-left"> 免费送券标题 </label>
  176. <div class="col-sm-10">
  177. <div class="clearfix">
  178. <input name="lottery_msg_title" class="col-xs-10 col-sm-10 form-control" value="{$site.lottery_msg_title.value|default=''}" type="text">
  179. <span class="help-inline ">
  180. <span class="middle red">插入标签:"{uname}"可以获得会员名称,例如:{uname}恭喜您获得免单券一张 </span>
  181. </span>
  182. </div>
  183. </div>
  184. </div>
  185. <div class="form-group">
  186. <label class="col-sm-2 control-label no-padding-left"> 免费送券描述 </label>
  187. <div class="col-sm-10">
  188. <div class="clearfix">
  189. <input name="lottery_msg_desc" class="col-xs-10 col-sm-10 form-control" value="{$site.lottery_msg_desc.value|default=''}" type="text">
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <div class="tab-pane" id="tab-fenxiao">
  195. <div class="form-group">
  196. <label class="col-sm-2 control-label no-padding-left"> 开启分销</label>
  197. <div class="col-sm-10">
  198. <div class="clearfix">
  199. <label class="radio-inline"><input <?php if($site['opencommiss']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="opencommiss">开启</label>
  200. <label class="radio-inline"><input <?php if($site['opencommiss']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="opencommiss">关闭</label>
  201. </div>
  202. </div>
  203. </div>
  204. <div class="form-group">
  205. <label class="col-sm-2 control-label no-padding-left"> 二维码X坐标 </label>
  206. <div class="col-sm-10">
  207. <div class="clearfix">
  208. <input name="user_qrcode_x" class="col-xs-10 col-sm-10 form-control" value="{$site.user_qrcode_x.value|default=''}" type="text">
  209. <span class="help-inline ">
  210. <span class="middle red">背景图中放置的二维码位置,距离左上角的X坐标</span>
  211. </span>
  212. </div>
  213. </div>
  214. </div>
  215. <div class="form-group">
  216. <label class="col-sm-2 control-label no-padding-left"> 二维码Y坐标 </label>
  217. <div class="col-sm-10">
  218. <div class="clearfix">
  219. <input name="user_qrcode_y" class="col-xs-10 col-sm-10 form-control" value="{$site.user_qrcode_y.value|default=''}" type="text">
  220. <span class="help-inline ">
  221. <span class="middle red">背景图中放置的二维码位置,距离左上角的Y坐标</span>
  222. </span>
  223. </div>
  224. </div>
  225. </div>
  226. <div class="form-group" id="goods-image-row7">
  227. <label class="col-sm-2 control-label no-padding-left">团长二维码背景 </label>
  228. <div class="col-sm-10" id="image-row7">
  229. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image7" num="7">
  230. <img osctype="goods_image7" <if condition="$site['user_qrcode_image']['value']">
  231. src="__ROOT__/<?php echo resize($site['user_qrcode_image']['value'],100,100); ?>"
  232. <else />
  233. src="__ROOT__/Common/image/no_image_40x40.jpg"
  234. </if> />
  235. </a>
  236. <input osctype="goods_image_input7" type="hidden" name="user_qrcode_image" value="{$site.user_qrcode_image.value|default=''}" id="input-image7" />
  237. <span class="help-inline ">
  238. <span class="middle red"><b class="blue"><a href="javascript:;" id="clear_user_qrcode">清空会员二维码</a></b>超级团长二维码,用于分享邀请会员</span>
  239. </span>
  240. </div>
  241. </div>
  242. <div class="form-group">
  243. <label class="col-sm-2 control-label no-padding-left"> 佣金满多少可提现 </label>
  244. <div class="col-sm-10">
  245. <div class="clearfix">
  246. <input name="commiss_money_limit" class="col-xs-10 col-sm-10 form-control" value="{$site.commiss_money_limit.value|default=''}" type="text">
  247. <span class="help-inline ">
  248. <span class="middle red">团长佣金满多少可提现,0表示不限制</span>
  249. </span>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="tab-pane" id="tab-goods">
  255. <div class="form-group">
  256. <label class="col-sm-2 control-label no-padding-left"> 减库存方式</label>
  257. <div class="col-sm-10">
  258. <div class="clearfix">
  259. <label class="radio-inline"><input <?php if($site['kucun_method']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="kucun_method">拍下立减</label>
  260. <label class="radio-inline"><input <?php if($site['kucun_method']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="kucun_method">支付完减</label>
  261. </div>
  262. </div>
  263. </div>
  264. <div class="form-group">
  265. <label class="col-sm-2 control-label no-padding-left"> 首页搜索关键词 </label>
  266. <div class="col-sm-10">
  267. <div class="clearfix">
  268. <input name="index_searchkeywords" class="col-xs-10 col-sm-10 form-control" value="{$site.index_searchkeywords.value|default=''}" type="text">
  269. </div>
  270. <p style="color:red;line-height:30px;">多个关键词用逗号隔开,如:连衣裙,小白鞋</p>
  271. </div>
  272. </div>
  273. <div class="form-group">
  274. <label class="col-sm-2 control-label no-padding-left"> 活动商品商家报名限制 </label>
  275. <div class="col-sm-10">
  276. <div class="clearfix">
  277. <input name="subject_baom" class="col-xs-10 col-sm-10 form-control" value="{$site.subject_baom.value|default='0'}" type="text">
  278. </div>
  279. <p style="color:red;line-height:30px;">每个活动商品,商家能报名的最大数量,"0"表示不限制</p>
  280. </div>
  281. </div>
  282. <div class="form-group">
  283. <label class="col-sm-2 control-label no-padding-left"> 抽奖商品回收时间 </label>
  284. <div class="col-sm-10">
  285. <div class="clearfix">
  286. <input name="expr_day" class="col-xs-10 col-sm-10 form-control" value="{$site.expr_day.value|default='0'}" type="text">
  287. </div>
  288. <p style="color:red;line-height:30px;">单位:天</p>
  289. </div>
  290. </div>
  291. <div class="form-group">
  292. <label class="col-sm-2 control-label no-padding-left"> 是否需要审核</label>
  293. <div class="col-sm-10">
  294. <div class="clearfix">
  295. <label class="radio-inline"><input <?php if($site['shenhegoods']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="shenhegoods">开启</label>
  296. <label class="radio-inline"><input <?php if($site['shenhegoods']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="shenhegoods">关闭</label>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="form-group">
  301. <label class="col-sm-2 control-label no-padding-left"> 显示评论</label>
  302. <div class="col-sm-10">
  303. <div class="clearfix">
  304. <label class="radio-inline"><input <?php if($site['OPEN_COMMENT']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="OPEN_COMMENT">显示</label>
  305. <label class="radio-inline"><input <?php if($site['OPEN_COMMENT']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="OPEN_COMMENT">不显示</label>
  306. </div>
  307. </div>
  308. </div>
  309. <div class="form-group">
  310. <label class="col-sm-2 control-label no-padding-left"> 自提是否自动收货</label>
  311. <div class="col-sm-10">
  312. <div class="clearfix">
  313. <label class="radio-inline"><input <?php if($site['ziti_shouhuo']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="ziti_shouhuo">是</label>
  314. <label class="radio-inline"><input <?php if($site['ziti_shouhuo']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="ziti_shouhuo">否</label>
  315. </div>
  316. </div>
  317. </div>
  318. <div class="form-group">
  319. <label class="col-sm-2 control-label no-padding-left"> 退款订单自动退款时间 </label>
  320. <div class="col-sm-10">
  321. <div class="clearfix">
  322. <input name="autoshenrefundday" class="col-xs-10 col-sm-10 form-control" value="{$site.autoshenrefundday.value|default='5'}" type="text">
  323. </div>
  324. <p style="color:red;line-height:30px;">用户申请退款,卖家多少天没处理,自动转入退款流程</p>
  325. </div>
  326. </div>
  327. <div class="form-group">
  328. <label class="col-sm-2 control-label no-padding-left"> 自动收货时间 </label>
  329. <div class="col-sm-10">
  330. <div class="clearfix">
  331. <input name="autogetday" class="col-xs-10 col-sm-10 form-control" value="{$site.autogetday.value|default='0'}" type="text">
  332. </div>
  333. <p style="color:red;line-height:30px;">自动收货时长(商家发货后)</p>
  334. </div>
  335. </div>
  336. </div>
  337. <div class="tab-pane" id="tab-images">
  338. <div class="form-group" id="goods-image-row2">
  339. <label class="col-sm-2 control-label no-padding-left">平台登录图片 </label>
  340. <div class="col-sm-10" id="image-row2">
  341. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image2" num="2">
  342. <img osctype="goods_image2" <if condition="$site['admin_backimage']['value']">
  343. src="__ROOT__/<?php echo resize($site['admin_backimage']['value'],100,100); ?>"
  344. <else />
  345. src="__ROOT__/Common/image/no_image_40x40.jpg"
  346. </if> />
  347. </a>
  348. <input osctype="goods_image_input2" type="hidden" name="admin_backimage" value="{$site.admin_backimage.value|default=''}" id="input-image2" />
  349. <span class="help-inline ">
  350. <span class="middle red">平台登录页面,封面图(400*300),(XXX|管理后台)这个也是图片。手动FTP替换地址:Common/image/pdd_small.png</span>
  351. </span>
  352. </div>
  353. </div>
  354. <div class="form-group" id="goods-image-row3">
  355. <label class="col-sm-2 control-label no-padding-left">商家登录图片 </label>
  356. <div class="col-sm-10" id="image-row3">
  357. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image3" num="3">
  358. <img osctype="goods_image3" <if condition="$site['seller_backimage']['value']">
  359. src="__ROOT__/<?php echo resize($site['seller_backimage']['value'],100,100); ?>"
  360. <else />
  361. src="__ROOT__/Common/image/no_image_40x40.jpg"
  362. </if> />
  363. </a>
  364. <input osctype="goods_image_input3" type="hidden" name="seller_backimage" value="{$site.seller_backimage.value|default=''}" id="input-image3" />
  365. <span class="help-inline ">
  366. <span class="middle red">商家后台登录页面,封面图(400*300),(XXX|管理后台)这个也是图片。手动FTP替换地址:Common/image/pdd_small2.png</span>
  367. </span>
  368. </div>
  369. </div>
  370. <div class="form-group" id="goods-image-row6">
  371. <label class="col-sm-2 control-label no-padding-left">XXX|管理后台图片 </label>
  372. <div class="col-sm-10" id="image-row6">
  373. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image6" num="6">
  374. <img osctype="goods_image6" <if condition="$site['admin_xxximage']['value']">
  375. src="__ROOT__/<?php echo resize($site['admin_xxximage']['value'],100,100); ?>"
  376. <else />
  377. src="__ROOT__/Common/image/no_image_40x40.jpg"
  378. </if> />
  379. </a>
  380. <input osctype="goods_image_input6" type="hidden" name="admin_xxximage" value="{$site.admin_xxximage.value|default=''}" id="input-image6" />
  381. <span class="help-inline ">
  382. <span class="middle red">尺寸207*32。</span>
  383. </span>
  384. </div>
  385. </div>
  386. <div class="form-group" id="goods-image-row4">
  387. <label class="col-sm-2 control-label no-padding-left">首页延迟加载图片 </label>
  388. <div class="col-sm-10" id="image-row4">
  389. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image4" num="4">
  390. <img osctype="goods_image4" <if condition="$site['index_ly_image']['value']">
  391. src="__ROOT__/<?php echo resize($site['index_ly_image']['value'],100,100); ?>"
  392. <else />
  393. src="__ROOT__/Common/image/no_image_40x40.jpg"
  394. </if> />
  395. </a>
  396. <input osctype="goods_image_input4" type="hidden" name="index_ly_image" value="{$site.index_ly_image.value|default=''}" id="input-image4" />
  397. <span class="help-inline ">
  398. <span class="middle red">根据您上传的首页横图大小制作,图案居中</span>
  399. </span>
  400. </div>
  401. </div>
  402. <div class="form-group" id="goods-image-row5">
  403. <label class="col-sm-2 control-label no-padding-left">列表页延迟加载图片 </label>
  404. <div class="col-sm-10" id="image-row5">
  405. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image5" num="5">
  406. <img osctype="goods_image5" <if condition="$site['fan_ly_image']['value']">
  407. src="__ROOT__/<?php echo resize($site['fan_ly_image']['value'],100,100); ?>"
  408. <else />
  409. src="__ROOT__/Common/image/no_image_40x40.jpg"
  410. </if> />
  411. </a>
  412. <input osctype="goods_image_input5" type="hidden" name="fan_ly_image" value="{$site.fan_ly_image.value|default=''}" id="input-image5" />
  413. <span class="help-inline ">
  414. <span class="middle red">根据您上传的商品方形图大小制作,图案居中(分类页,主题页等正方形延迟加载图片)</span>
  415. </span>
  416. </div>
  417. </div>
  418. <div class="form-group" id="goods-image-row8">
  419. <label class="col-sm-2 control-label no-padding-left">商品水印图片 </label>
  420. <div class="col-sm-10" id="image-row8">
  421. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image8" num="8">
  422. <img osctype="goods_image8" <if condition="$site['WATER_BG']['value']">
  423. src="__ROOT__/<?php echo resize($site['WATER_BG']['value'],100,100); ?>"
  424. <else />
  425. src="__ROOT__/Common/image/no_image_40x40.jpg"
  426. </if> />
  427. </a>
  428. <input osctype="goods_image_input8" type="hidden" name="WATER_BG" value="{$site.WATER_BG.value|default=''}" id="input-image8" />
  429. <span class="help-inline ">
  430. <span class="middle red">水印图片放置在商品分享图的右下角</span>
  431. </span>
  432. </div>
  433. </div>
  434. <div class="form-group" id="goods-image-row9">
  435. <label class="col-sm-2 control-label no-padding-left">微信公众号二维码 </label>
  436. <div class="col-sm-10" id="image-row9">
  437. <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image9" num="9">
  438. <img osctype="goods_image9" <if condition="$site['weixin_group']['value']">
  439. src="__ROOT__/<?php echo resize($site['weixin_group']['value'],100,100); ?>"
  440. <else />
  441. src="__ROOT__/Common/image/no_image_40x40.jpg"
  442. </if> />
  443. </a>
  444. <input osctype="goods_image_input9" type="hidden" name="weixin_group" value="{$site.weixin_group.value|default=''}" id="input-image9" />
  445. <span class="help-inline ">
  446. <span class="middle red"></span>
  447. </span>
  448. </div>
  449. </div>
  450. </div>
  451. <div class="tab-pane" id="tab-sms">
  452. <div class="form-group">
  453. <label class="col-sm-2 control-label no-padding-left">商家审核成功短信通知 </label>
  454. <div class="col-sm-10">
  455. <div class="clearfix">
  456. <label class="radio-inline"><input <?php if($site['open_sms']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="open_sms">开启</label>
  457. <label class="radio-inline"><input <?php if($site['open_sms']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="open_sms">关闭</label>
  458. </div>
  459. <p style="color:red;line-height:30px;">短信接口申请地址&nbsp;&nbsp;<a href="http://www.kingtto.cn/" target="_blank">http://www.kingtto.cn/</a></p>
  460. </div>
  461. </div>
  462. <div class="form-group">
  463. <label class="col-sm-2 control-label no-padding-left"> 短信账户名 </label>
  464. <div class="col-sm-10">
  465. <div class="clearfix">
  466. <input name="sms_username" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_username.value|default=''}" type="text">
  467. </div>
  468. <p style="color:red;line-height:30px;"></p>
  469. </div>
  470. </div>
  471. <div class="form-group">
  472. <label class="col-sm-2 control-label no-padding-left"> 短信密码 </label>
  473. <div class="col-sm-10">
  474. <div class="clearfix">
  475. <input name="sms_password" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_password.value|default=''}" type="text">
  476. </div>
  477. <p style="color:red;line-height:30px;"></p>
  478. </div>
  479. </div>
  480. <div class="form-group">
  481. <label class="col-sm-2 control-label no-padding-left"> 短信平台会员ID </label>
  482. <div class="col-sm-10">
  483. <div class="clearfix">
  484. <input name="sms_userid" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_userid.value|default=''}" type="text">
  485. </div>
  486. <p style="color:red;line-height:30px;"></p>
  487. </div>
  488. </div>
  489. <div class="form-group">
  490. <label class="col-sm-2 control-label no-padding-left"> 短信模板 </label>
  491. <div class="col-sm-10">
  492. <div class="clearfix">
  493. <input name="sms_template" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_template.value|default=''}" type="text">
  494. </div>
  495. <p style="color:red;line-height:30px;"></p>
  496. </div>
  497. </div>
  498. </div>
  499. <div class="tab-pane" id="tab-kefu">
  500. <div class="form-group">
  501. <label class="col-sm-2 control-label no-padding-left"> 客服选择</label>
  502. <div class="col-sm-10">
  503. <div class="clearfix">
  504. <label class="radio-inline"><input <?php if($site['open_duokefu']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="open_duokefu">网页在线客服</label>
  505. <label class="radio-inline"><input <?php if($site['open_duokefu']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="open_duokefu">QQ客服</label>
  506. </div>
  507. </div>
  508. </div>
  509. <div class="form-group">
  510. <label class="col-sm-2 control-label no-padding-left"> 网页客服接待人数 </label>
  511. <div class="col-sm-10">
  512. <div class="clearfix">
  513. <input name="kefu_person_need" class="col-xs-10 col-sm-10 form-control" value="{$site.kefu_person_need.value|default='0'}" type="text">
  514. </div>
  515. <p style="color:red;line-height:30px;">单个卖家客服可接待几个用户</p>
  516. </div>
  517. </div>
  518. </div>
  519. </div>
  520. </form>
  521. <div class="form-group">
  522. <label class="col-sm-1 control-label no-padding-left"> </label>
  523. <div class="col-sm-11">
  524. <button form="form" type="submit" class="btn btn-sm btn-primary">提交</button>
  525. </div>
  526. </div>
  527. </div>
  528. </div>
  529. </block>
  530. <block name="javascript">
  531. <script src="__PUBLIC__/fileupload/jquery.ui.widget.js"></script>
  532. <script src="__PUBLIC__/fileupload/jquery.fileupload.js"></script>
  533. <script>
  534. $(function(){
  535. // tooltips on hover button-upload
  536. $('[data-toggle=\'tooltip\']').tooltip({container: 'body', html: true});
  537. // Makes tooltips work on ajax generated content
  538. $(document).ajaxStop(function() {
  539. $('[data-toggle=\'tooltip\']').tooltip({container: 'body'});
  540. });
  541. $('#clear_user_qrcode').click(function(){
  542. $.ajax({
  543. url:'{:U("settings/clearuserqrcode")}',
  544. type:'post',
  545. dataType:'json',
  546. success:function(ret){
  547. if(ret.code ==1)
  548. {
  549. alert('清空成功');
  550. return false;
  551. }
  552. }
  553. })
  554. })
  555. $(document).delegate('a[data-toggle=\'image\']', 'click', function(e) {
  556. e.preventDefault();
  557. var index=$(this).attr('num');
  558. var type=$(this).attr('type');
  559. //alert(index);
  560. var element = this;
  561. if(index==undefined){
  562. $(element).popover({
  563. html: true,
  564. placement: 'right',
  565. trigger: 'manual',
  566. content: function() {
  567. return '<button type="button" id="thumb-image" class="btn btn-primary"><i class="icon-edit"></i></button> <button type="button" id="button-clear" class="btn btn-danger"><i class="icon-trash"></i></button>';
  568. }
  569. });
  570. }else{
  571. $(element).popover({
  572. html: true,
  573. placement: 'right',
  574. trigger: 'manual',
  575. content: function() {
  576. return '<button type="button" n="'+index+'" t="'+type+'" class="btn btn-primary button-image"><i class="icon-edit"></i></button> ';
  577. }
  578. });
  579. }
  580. $(element).popover('toggle');
  581. //商品图片
  582. $('#thumb-image').on('click', function() {
  583. //alert('333');
  584. $('#modal-image').remove();
  585. $('#form-upload').remove();
  586. $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input osctype="btn_upload_image" type="file" name="file" /></form>');
  587. $('#form-upload input[name=\'file\']').trigger('click');
  588. $(element).popover('hide');
  589. $('[osctype="btn_upload_image"]').fileupload({
  590. dataType: 'json',
  591. url: "{:U('Image/upload_image',array('dir'=>'shop'))}",
  592. add: function(e, data) {
  593. $parent = $('#thumb');
  594. $input = $parent.find('[osctype="image_input"]');
  595. $img = $parent.find('[osctype="image"]');
  596. data.formData = {old_goods_image:$input.val()};
  597. $img.attr('src', "__IMG__/loading.gif");
  598. data.submit();
  599. },
  600. done: function (e,data) {
  601. var image=data.result;
  602. $parent = $('#thumb');
  603. $input = $parent.find('[osctype="image_input"]');
  604. $img = $parent.find('[osctype="image"]');
  605. if(image) {
  606. // $img.prev('i').hide();
  607. $img.attr('src', '__ROOT__'+image.image_thumb);
  608. $img.show();
  609. $input.val(image.image);
  610. } else {
  611. alert('上传失败');
  612. }
  613. }
  614. });
  615. });
  616. $('.button-image').on('click', function() {
  617. $('#modal-image').remove();
  618. $('#form-upload').remove();
  619. var i=$(this).attr('n');
  620. var type=$(this).attr('t');
  621. $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input osctype="btn_upload_image" type="file" name="file" /></form>');
  622. $('#form-upload input[name=\'file\']').trigger('click');
  623. $(element).popover('hide');
  624. $('[osctype="btn_upload_image"]').fileupload({
  625. dataType: 'json',
  626. url: "{:U('Image/upload_image/dir')}"+'/'+type,
  627. add: function(e, data) {
  628. $parent = $('#image-row'+i);
  629. $input = $parent.find('[osctype="'+type+'_image_input'+i+'"]');
  630. $img = $parent.find('[osctype="'+type+'_image'+i+'"]');
  631. var old_name='old_'+type+'_image';
  632. data.formData = {old_name:$input.val()};
  633. $img.attr('src', "__IMG__/loading.gif");
  634. data.submit();
  635. },
  636. done: function (e,data) {
  637. var image=data.result;
  638. $parent = $('#'+type+'-image-row'+i);
  639. $input = $parent.find('[osctype="'+type+'_image_input'+i+'"]');
  640. $img = $parent.find('[osctype="'+type+'_image'+i+'"]');
  641. if(image) {
  642. // $img.prev('i').hide();
  643. $img.attr('src', '__ROOT__/'+image.image_thumb);
  644. $img.show();
  645. $input.val(image.image);
  646. } else {
  647. alert('上传失败');
  648. }
  649. }
  650. });
  651. });
  652. $('#button-clear').on('click', function() {
  653. $(element).find('img').attr('src', $(element).find('img').attr('data-placeholder'));
  654. $(element).parent().find('input').attr('value', '');
  655. $(element).popover('hide');
  656. });
  657. });
  658. });
  659. </script>
  660. </block>