set.blade.php 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. @extends('layouts.base')
  2. @section('title', '支付设置')
  3. @section('content')
  4. <div class="w1200 m0a">
  5. <div class="rightlist">
  6. @include('Yunshop\FacePayment::admin.tabs')
  7. <!-- 新增加右侧顶部三级菜单结束 -->
  8. <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" >
  9. <div class="panel panel-default">
  10. <div class='panel-heading'>
  11. 基础设置
  12. </div>
  13. <div class="form-group">
  14. <label class="col-xs-12 col-sm-3 col-md-2 control-label">人脸支付开关</label>
  15. <div class="col-sm-9 col-xs-12">
  16. <label class='radio-inline'>
  17. <input type='radio' name='set[switch]' value='1' @if ($set['switch'] == 1) checked @endif/> 开启
  18. </label>
  19. <label class='radio-inline'>
  20. <input type='radio' name='set[switch]' value='0' @if ($set['switch'] == 0 || !isset($set['switch'])) checked @endif /> 关闭
  21. </label>
  22. </div>
  23. </div>
  24. <div class='panel-heading'>
  25. 支付方式
  26. </div>
  27. <div class="form-group">
  28. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付方式</label>
  29. <div class="col-sm-9 col-xs-12">
  30. <label class='checkbox-inline'>
  31. <input type="checkbox" name="set[method][weixin]"
  32. @if($set['method']['weixin']) checked @endif
  33. value="1"/>微信
  34. </label>
  35. <label class='checkbox-inline'>
  36. <input type="checkbox" name="set[method][alipay]"
  37. @if($set['method']['alipay']) checked @endif
  38. value="1"/>支付宝
  39. </label>
  40. <label class='checkbox-inline'>
  41. <input type="checkbox" name="set[method][cash]"
  42. @if($set['method']['cash']) checked @endif
  43. value="1"/>现金
  44. </label>
  45. <label class='checkbox-inline'>
  46. <input type="checkbox" name="set[method][aggregate]"
  47. @if($set['method']['aggregate']) checked @endif
  48. value="1"/>聚合支付
  49. </label>
  50. </div>
  51. </div>
  52. <div class='panel-heading'>
  53. 支付通道
  54. </div>
  55. <div class="form-group">
  56. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信通道</label>
  57. <div class="col-sm-9 col-xs-12">
  58. <label class='radio-inline'>
  59. <input type="radio" name="set[passage][weixin]"
  60. @if(empty($set['passage']['weixin']) || $set['passage']['weixin'] == \app\common\services\PayFactory::WECHAT_SCAN_PAY) checked @endif
  61. value="{{ \app\common\services\PayFactory::WECHAT_SCAN_PAY }}"/>微信官方
  62. </label>
  63. {{--<label class='radio-inline'>--}}
  64. {{--<input type="radio" name="set[passage][weixin]"--}}
  65. {{--@if(empty($set['passage']['weixin']) || $set['passage']['weixin'] == \app\common\services\PayFactory::STORE_AGGREGATE_WECHAT) checked @endif--}}
  66. {{--value="{{ \app\common\services\PayFactory::STORE_AGGREGATE_WECHAT }}"/>微信聚合支付--}}
  67. {{--</label>--}}
  68. {{--<label class='radio-inline'>--}}
  69. {{--<input type="radio" name="set[passage][weixin]"--}}
  70. {{--@if($set['passage']['weixin'] == \app\common\services\PayFactory::PAY_WECHAT_SCAN_HJ) checked @endif--}}
  71. {{--value="{{ \app\common\services\PayFactory::PAY_WECHAT_SCAN_HJ }}"/>汇聚--}}
  72. {{--</label>--}}
  73. {{--<label class='radio-inline'>--}}
  74. {{--<input type="radio" name="set[passage][weixin]"--}}
  75. {{--@if($set['passage']['weixin'] == \app\common\services\PayFactory::YOP_WECHAT_SCAN) checked @endif--}}
  76. {{--value="{{ \app\common\services\PayFactory::YOP_WECHAT_SCAN }}"/>易宝--}}
  77. {{--</label>--}}
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信人脸通道</label>
  82. <div class="col-sm-9 col-xs-12">
  83. <label class='radio-inline'>
  84. <input type="radio" name="set[passage][weixin_face]"
  85. @if(empty($set['passage']['weixin_face']) || $set['passage']['weixin_face'] == \app\common\services\PayFactory::WECHAT_FACE_PAY) checked @endif
  86. value="{{ \app\common\services\PayFactory::WECHAT_FACE_PAY }}"/>微信官方
  87. </label>
  88. {{--<label class='radio-inline'>--}}
  89. {{--<input type="radio" name="set[passage][weixin_face]"--}}
  90. {{--@if($set['passage']['weixin_face'] == \app\common\services\PayFactory::PAY_WECHAT_FACE_HJ) checked @endif--}}
  91. {{--value="{{ \app\common\services\PayFactory::PAY_WECHAT_FACE_HJ }}"/>汇聚--}}
  92. {{--</label>--}}
  93. {{--<label class='radio-inline'>--}}
  94. {{--<input type="radio" name="set[passage][weixin_face]"--}}
  95. {{--@if($set['passage']['weixin_face'] == \app\common\services\PayFactory::YOP_WECHAT_SCAN) checked @endif--}}
  96. {{--value="{{ \app\common\services\PayFactory::YOP_WECHAT_SCAN }}"/>易宝--}}
  97. {{--</label>--}}
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝通道</label>
  102. <div class="col-sm-9 col-xs-12">
  103. <label class='radio-inline'>
  104. <input type="radio" name="set[passage][alipay]"
  105. @if(empty($set['passage']['alipay']) || $set['passage']['alipay'] == \app\common\services\PayFactory::ALIPAY_SCAN_PAY) checked @endif
  106. value="{{ \app\common\services\PayFactory::ALIPAY_SCAN_PAY }}"/>支付宝官方
  107. </label>
  108. {{--<label class='radio-inline'>--}}
  109. {{--<input type="radio" name="set[passage][alipay_aggregate]"--}}
  110. {{--@if(empty($set['passage']['alipay_aggregate']) || $set['passage']['alipay_aggregate'] == \app\common\services\PayFactory::STORE_AGGREGATE_ALIPAY) checked @endif--}}
  111. {{--value="{{ \app\common\services\PayFactory::STORE_AGGREGATE_ALIPAY }}"/>支付宝聚合支付--}}
  112. {{--</label>--}}
  113. {{--<label class='radio-inline'>--}}
  114. {{--<input type="radio" name="set[passage][alipay]"--}}
  115. {{--@if($set['passage']['alipay'] == \app\common\services\PayFactory::PAY_ALIPAY_SCAN_HJ) checked @endif--}}
  116. {{--value="{{ \app\common\services\PayFactory::PAY_ALIPAY_SCAN_HJ }}"/>汇聚--}}
  117. {{--</label>--}}
  118. {{--<label class='radio-inline'>--}}
  119. {{--<input type="radio" name="set[passage][alipay]"--}}
  120. {{--@if($set['passage']['alipay'] == \app\common\services\PayFactory::YOP_ALIPAY_SCAN) checked @endif--}}
  121. {{--value="{{ \app\common\services\PayFactory::YOP_ALIPAY_SCAN }}"/>易宝--}}
  122. {{--</label>--}}
  123. </div>
  124. </div>
  125. <div class='panel-heading'>
  126. 支付按钮(总开关)
  127. </div>
  128. <div class="form-group">
  129. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信(服务商)</label>
  130. <div class="col-sm-9 col-xs-12">
  131. <label class='radio-inline'>
  132. <input type="radio" name="set[button][wechat]"
  133. @if(empty($set['button']['wechat']) || $set['button']['wechat'] == 0) checked @endif
  134. value="0"/>开启
  135. </label>
  136. <label class='radio-inline'>
  137. <input type="radio" name="set[button][wechat]"
  138. @if($set['button']['wechat'] == 1) checked @endif
  139. value="1"/>关闭
  140. </label>
  141. </div>
  142. </div>
  143. <div class="form-group">
  144. <div class="form-group">
  145. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝(服务商)</label>
  146. <div class="col-sm-9 col-xs-12">
  147. <label class='radio-inline'>
  148. <input type="radio" name="set[button][alipay]"
  149. @if(empty($set['button']['alipay']) || $set['button']['alipay'] == 0) checked @endif
  150. value="0"/>开启
  151. </label>
  152. <label class='radio-inline'>
  153. <input type="radio" name="set[button][alipay]"
  154. @if($set['button']['alipay'] == 1) checked @endif
  155. value="1"/>关闭
  156. </label>
  157. </div>
  158. </div>
  159. </div>
  160. <div class='panel-heading'>
  161. 支付按钮(平台独立开关)
  162. </div>
  163. <div class="form-group">
  164. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信(服务商)</label>
  165. <div class="col-sm-9 col-xs-12">
  166. <label class='radio-inline'>
  167. <input type="radio" name="set[shop_button][wechat]"
  168. @if(empty($set['shop_button']['wechat']) || $set['shop_button']['wechat'] == 0) checked @endif
  169. value="0"/>开启
  170. </label>
  171. <label class='radio-inline'>
  172. <input type="radio" name="set[shop_button][wechat]"
  173. @if($set['shop_button']['wechat'] == 1) checked @endif
  174. value="1"/>关闭
  175. </label>
  176. </div>
  177. </div>
  178. <div class="form-group">
  179. <div class="form-group">
  180. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝(服务商)</label>
  181. <div class="col-sm-9 col-xs-12">
  182. <label class='radio-inline'>
  183. <input type="radio" name="set[shop_button][alipay]"
  184. @if(empty($set['shop_button']['alipay']) || $set['shop_button']['alipay'] == 0) checked @endif
  185. value="0"/>开启
  186. </label>
  187. <label class='radio-inline'>
  188. <input type="radio" name="set[shop_button][alipay]"
  189. @if($set['shop_button']['alipay'] == 1) checked @endif
  190. value="1"/>关闭
  191. </label>
  192. </div>
  193. </div>
  194. </div>
  195. <div class='panel-heading'>
  196. 微信支付设置(官方)
  197. </div>
  198. <div class="form-group">
  199. <label class="col-xs-12 col-sm-3 col-md-2 control-label">子商户设置</label>
  200. <div class="col-sm-9 col-xs-12">
  201. <label class='radio-inline'>
  202. <input type="radio" name="wechat[is_independent]"
  203. @if(empty($wechat['is_independent']) || $wechat['is_independent'] == 0) checked @endif
  204. value="0"/>统一设置
  205. </label>
  206. <label class='radio-inline'>
  207. <input type="radio" name="wechat[is_independent]"
  208. @if($wechat['is_independent'] == 1) checked @endif
  209. value="1"/>独立设置
  210. </label>
  211. <span class='help-block'>统一设置需要设置子商户信息,独立设置子商户信息在每个门店单独设置</span>
  212. </div>
  213. </div>
  214. <!-- weixin支付设置 _start -->
  215. <div class="form-group">
  216. <label class="col-xs-12 col-sm-3 col-md-2 control-label">服务商的APPID<br>(appId)</label>
  217. <div class="col-sm-9 col-xs-12">
  218. <input type="text" class="form-control" name="wechat[appid]" value="{{ $wechat['appid'] }}" autocomplete="off">
  219. </div>
  220. </div>
  221. <div class="form-group">
  222. <label class="col-xs-12 col-sm-3 col-md-2 control-label">服务商的小程序APPID<br>(appId)</label>
  223. <div class="col-sm-9 col-xs-12">
  224. <input type="text" class="form-control" name="wechat[mini_appid]" value="{{ $wechat['mini_appid'] }}" autocomplete="off">
  225. </div>
  226. </div>
  227. <div class="form-group">
  228. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信支付商户号<br>(mch_id)</label>
  229. <div class="col-sm-9 col-xs-12">
  230. <input type="text" class="form-control" name="wechat[mchid]" value="{{ $wechat['mchid'] }}" autocomplete="off">
  231. </div>
  232. </div>
  233. <div class="form-group">
  234. <label class="col-xs-12 col-sm-3 col-md-2 control-label">商户全称<br></label>
  235. <div class="col-sm-9 col-xs-12">
  236. <input type="text" class="form-control" name="wechat[mch_name]" value="{{ $wechat['mch_name'] }}" autocomplete="off">
  237. <span class='help-block'>如果开启分账则必填,请确定全称填写正确</span>
  238. </div>
  239. </div>
  240. <div class="form-group">
  241. <label class="col-xs-12 col-sm-3 col-md-2 control-label">子商户公众账号ID<br>(sub_appid)</label>
  242. <div class="col-sm-9 col-xs-12">
  243. <input type="text" class="form-control" name="wechat[sub_appid]" value="{{ $wechat['sub_appid'] }}" autocomplete="off">
  244. </div>
  245. </div>
  246. <div class="form-group">
  247. <label class="col-xs-12 col-sm-3 col-md-2 control-label">子商户小程序账号ID<br>(sub_appid)</label>
  248. <div class="col-sm-9 col-xs-12">
  249. <input type="text" class="form-control" name="wechat[sub_mini_appid]" value="{{ $wechat['sub_mini_appid'] }}" autocomplete="off">
  250. </div>
  251. </div>
  252. <div class="form-group">
  253. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信支付子商户号<br>(sub_mch_id)</label>
  254. <div class="col-sm-9 col-xs-12">
  255. <input type="text" class="form-control" name="wechat[sub_mchid]" value="{{ $wechat['sub_mchid'] }}" autocomplete="off">
  256. </div>
  257. </div>
  258. <div class="form-group">
  259. <label class="col-xs-12 col-sm-3 col-md-2 control-label">微信支付密钥<br>(apiSecret)</label>
  260. <div class="col-sm-9 col-xs-12">
  261. <input @if($wechat['apisecret']) type="hidden" @else type="text" @endif id="wechatDev" class="form-control" name="wechat[apisecret]" value="{{ $wechat['apisecret'] }}" autocomplete="off">
  262. @if($wechat['apisecret'])
  263. <button type="button" class="btn btn-info wechatSecret">已设置</button>
  264. @endif
  265. </div>
  266. </div>
  267. @if(!empty($wechat['apisecret']))
  268. <div class="form-group">
  269. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  270. <div class="col-sm-9 col-xs-12">
  271. <input type="button" name="rsa_wechat_key" class="btn btn-success wechatSecret" value="重新设置公私钥" />
  272. </div>
  273. </div>
  274. @endif
  275. <div class="form-group">
  276. <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启分账<br></label>
  277. <div class="col-sm-9 col-xs-12">
  278. <label class='radio-inline'>
  279. <input type='radio' name='wechat[profit_sharing]' value='1' @if ($wechat['profit_sharing'] == 1) checked @endif/> 开启
  280. </label>
  281. <label class='radio-inline'>
  282. <input type='radio' name='wechat[profit_sharing]' value='0' @if ($wechat['profit_sharing'] == 0 || !isset($wechat['profit_sharing'])) checked @endif /> 关闭
  283. </label>
  284. </div>
  285. </div>
  286. <div class="form-group">
  287. <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启H5支付<br></label>
  288. <div class="col-sm-9 col-xs-12">
  289. <label class='radio-inline'>
  290. <input type='radio' name='wechat[wechat_web_state]' value='1' @if ($wechat['wechat_web_state'] == 1) checked @endif/> 开启
  291. </label>
  292. <label class='radio-inline'>
  293. <input type='radio' name='wechat[wechat_web_state]' value='0' @if (empty($wechat['wechat_web_state'])) checked @endif /> 关闭
  294. </label>
  295. </div>
  296. </div>
  297. <div class="form-group">
  298. <label class="col-xs-12 col-sm-3 col-md-2 control-label">CERT证书文件</label>
  299. <div class="col-sm-9 col-xs-12">
  300. <input type="hidden" name="wechat[weixin_cert]" value="{{ $wechat['weixin_cert'] }}"/>
  301. <input type="file" name="weixin_cert_file" class="form-control" />
  302. <span class="help-block">
  303. @if (!empty($wechat['weixin_cert']))
  304. <span class='label label-success'>已上传</span>
  305. @else
  306. <span class='label label-danger'>未上传</span>
  307. @endif
  308. 下载证书 cert.zip 中的 appapiclient_cert.pem 文件</span>
  309. </div>
  310. </div>
  311. <div class="form-group">
  312. <label class="col-xs-12 col-sm-3 col-md-2 control-label">KEY密钥文件</label>
  313. <div class="col-sm-9 col-xs-12">
  314. <input type="hidden" name="wechat[weixin_key]" value="{{ $wechat['weixin_key'] }}"/>
  315. <input type="file" name="weixin_key_file" class="form-control" />
  316. <span class="help-block">
  317. @if (!empty($wechat['weixin_key']))
  318. <span class='label label-success'>已上传</span>
  319. @else
  320. <span class='label label-danger'>未上传</span>
  321. @endif
  322. 下载证书 cert.zip 中的 appapiclient_key.pem 文件
  323. </span>
  324. </div>
  325. </div>
  326. <!-- aliset支付设置 _start -->
  327. <div class='panel-heading'>
  328. 支付宝支付配置(官方)
  329. </div>
  330. <div class="form-group">
  331. <label class="col-xs-12 col-sm-3 col-md-2 control-label">应用类型</label>
  332. <div class="col-sm-9 col-xs-12">
  333. <label class='radio-inline'>
  334. <input type="radio" name="alipay[app_type]"
  335. @if(empty($alipay['app_type']) || $alipay['app_type'] == 0) checked @endif
  336. value="0"/>第三方应用
  337. </label>
  338. <label class='radio-inline'>
  339. <input type="radio" name="alipay[app_type]"
  340. @if($alipay['app_type'] == 1) checked @endif
  341. value="1"/>APP应用
  342. </label>
  343. <span class='help-block'>第三方应用需要独立授权</span>
  344. </div>
  345. </div>
  346. <div class="form-group">
  347. <label class="col-xs-12 col-sm-3 col-md-2 control-label">是否开启分账<br></label>
  348. <div class="col-sm-9 col-xs-12">
  349. <label class='radio-inline'>
  350. <input type='radio' name='alipay[royalty]' value='1' @if ($alipay['royalty'] == 1) checked @endif/> 开启
  351. </label>
  352. <label class='radio-inline'>
  353. <input type='radio' name='alipay[royalty]' value='0' @if ($alipay['royalty'] == 0 || !isset($alipay['royalty'])) checked @endif /> 关闭
  354. </label>
  355. </div>
  356. </div>
  357. <div class="form-group">
  358. <label class="col-xs-12 col-sm-3 col-md-2 control-label">服务商全称<br></label>
  359. <div class="col-sm-9 col-xs-12">
  360. <input type="text" class="form-control" name="alipay[name]" value="{{ $alipay['name'] }}" autocomplete="off">
  361. <span class='help-block'>如果开启分账则必填,请确定全称填写正确</span>
  362. </div>
  363. </div>
  364. <div class="form-group">
  365. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝角色PID</label>
  366. <div class="col-sm-9 col-xs-12">
  367. <input type="text" class="form-control" name="alipay[pid]" value="{{ $alipay['pid'] }}" autocomplete="off">
  368. </div>
  369. </div>
  370. <div class="form-group">
  371. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝应用Appid</label>
  372. <div class="col-sm-9 col-xs-12">
  373. <input type="text" class="form-control" name="alipay[app_id]" value="{{ $alipay['app_id'] }}" autocomplete="off">
  374. </div>
  375. </div>
  376. <div class="form-group">
  377. <label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝公钥</label>
  378. <div class="col-sm-9 col-xs-12">
  379. @if($alipay['alipay_public_key'])
  380. <button type="button" class="btn btn-info alipayPublic" disabled>已设置</button>
  381. @endif
  382. <textarea class="form-control" id="rsa_public_key" name="alipay[alipay_public_key]" @if($alipay['alipay_public_key']) style="visibility:hidden" @endif>{{ $alipay['alipay_public_key'] }}</textarea>
  383. </div>
  384. </div>
  385. <div class="form-group">
  386. <label class="col-xs-12 col-sm-3 col-md-2 control-label">商户私钥</label>
  387. <div class="col-sm-9 col-xs-12">
  388. @if($alipay['merchant_private_key'])
  389. <button type="button" class="btn btn-info alipayPublic" disabled>已设置</button>
  390. @endif
  391. <textarea class="form-control" id="rsa_private_key" name="alipay[merchant_private_key]" @if($alipay['merchant_private_key']) style="visibility:hidden" @endif>{{ $alipay['merchant_private_key'] }}</textarea>
  392. </div>
  393. </div>
  394. @if(!empty($alipay['merchant_private_key']) || !empty($alipay['alipay_public_key']))
  395. <div class="form-group">
  396. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  397. <div class="col-sm-9 col-xs-12">
  398. <input type="button" name="rsa_alipay_key" class="btn btn-success alipayPublic" value="重新设置公私钥" />
  399. </div>
  400. </div>
  401. @endif
  402. {{--<div class="form-group">--}}
  403. {{--<label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝授权链接</label>--}}
  404. {{--<div class="col-sm-9 col-xs-12">--}}
  405. {{--@if($alipay['app_id'])--}}
  406. {{--<a href="{{$alipay['open_auth']}}" target="_blank">{{$alipay['open_auth']}}</a>--}}
  407. {{--@else--}}
  408. {{--未填写支付宝APPID--}}
  409. {{--@endif--}}
  410. {{--</div>--}}
  411. {{--</div>--}}
  412. {{--<div class='panel-heading'>--}}
  413. {{--支付宝退款配置--}}
  414. {{--</div>--}}
  415. {{--<div class="form-group">--}}
  416. {{--<label class="col-xs-12 col-sm-3 col-md-2 control-label">加密方式</label>--}}
  417. {{--<div class="col-sm-9 col-xs-12">--}}
  418. {{--<label class='radio-inline'><input type='radio' name='set[refund_newaliset]' value='1' @if ($set['refund_newaliset'] == 1) checked @endif/> 2048</label>--}}
  419. {{--<label class='radio-inline'><input type='radio' name='set[refund_newaliset]' value='0' @if (empty($set['refund_newaliset'])) checked @endif /> 1024</label>--}}
  420. {{--</div>--}}
  421. {{--</div>--}}
  422. {{--<div class="form-group">--}}
  423. {{--<label class="col-xs-12 col-sm-3 col-md-2 control-label">支付宝公钥</label>--}}
  424. {{--<div class="col-sm-9 col-xs-12">--}}
  425. {{--<textarea class="form-control" name="set[refund_aliset_sign_public]">{{ @$set['refund_aliset_sign_public'] }}</textarea>--}}
  426. {{--</div>--}}
  427. {{--</div>--}}
  428. {{--<div class="form-group">--}}
  429. {{--<label class="col-xs-12 col-sm-3 col-md-2 control-label">商户私钥</label>--}}
  430. {{--<div class="col-sm-9 col-xs-12">--}}
  431. {{--<textarea class="form-control" name="set[refund_aliset_sign_private]">{{ @$set['refund_aliset_sign_private'] }}</textarea>--}}
  432. {{--</div>--}}
  433. {{--</div>--}}
  434. </div>
  435. <div class="form-group">
  436. <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
  437. <div class="col-sm-9">
  438. <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1"
  439. onclick='return formcheck()'/>
  440. </div>
  441. </div>
  442. <script language="javascript">
  443. $(":button[name='rsa_alipay_key']").click(function () {
  444. $('#rsa_private_key').val('');
  445. $('#rsa_private_key').css("visibility","visible");
  446. $('#rsa_public_key').val('');
  447. $('#rsa_public_key').css("visibility","visible");
  448. $(".alipayPublic").hide();
  449. })
  450. $(":button[name='rsa_wechat_key']").click(function () {
  451. $("#wechatSecret").css("display","none");//隐藏
  452. $("#wechatDev").attr("type","text").val('');//显示
  453. $(".wechatSecret").hide();
  454. })
  455. $(function () {
  456. $(":radio[name='set[weixin]']").click(function () {
  457. if ($(this).val() == 1) {
  458. $("#certs").show();
  459. }
  460. else {
  461. $("#certs").hide();
  462. }
  463. })
  464. $(":radio[name='set[aliset]']").click(function () {
  465. if ($(this).val() == 1) {
  466. $("#aliset").show();
  467. }
  468. else {
  469. $("#aliset").hide();
  470. }
  471. })
  472. $(":radio[name='set[weixin_oauth]']").click(function () {
  473. if ($(this).val() == 1) {
  474. $("#oauth").show();
  475. }
  476. else {
  477. $("#oauth").hide();
  478. }
  479. })
  480. $(":input[name='set[weixin_appid]']").bind('input propertychange', function() {
  481. $(":input[name='set[weixin_appid]']").val($(this).val());
  482. })
  483. $(":input[name='set[weixin_secret]']").bind('input propertychange', function() {
  484. $(":input[name='set[weixin_secret]']").val($(this).val());
  485. })
  486. })
  487. </script>
  488. </form>
  489. </div>
  490. </div>
  491. @endsection