store_joinin_detail.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. {include file="public/header" /}
  2. <div class="page">
  3. {if $joinin_detail.store_type != 1}
  4. <table border="0" cellpadding="0" cellspacing="0" class="ds-default-table">
  5. <thead>
  6. <tr>
  7. <th colspan="20">{$Think.lang.company_contact_information}</th>
  8. </tr>
  9. </thead>
  10. <tbody>
  11. <tr>
  12. <th class="w150">{$Think.lang.company_name}:</th>
  13. <td colspan="20">{$joinin_detail.company_name}</td>
  14. </tr>
  15. <tr>
  16. <th>{$Think.lang.company_location}:</th>
  17. <td>{$joinin_detail.company_address}</td>
  18. <th>{$Think.lang.company_address}:</th>
  19. <td>{$joinin_detail.company_address_detail}</td>
  20. <th>{$Think.lang.registered_capital}:</th>
  21. <td>{$joinin_detail.company_registered_capital}&nbsp;{$Think.lang.ten_thousand}{$Think.lang.ds_yuan} </td>
  22. </tr>
  23. <tr>
  24. <th>{$Think.lang.contact_name}:</th>
  25. <td>{$joinin_detail.contacts_name}</td>
  26. <th>{$Think.lang.contact_number}:</th>
  27. <td>{$joinin_detail.contacts_phone}</td>
  28. <th>{$Think.lang.e_mail}:</th>
  29. <td>{$joinin_detail.contacts_email}</td>
  30. </tr>
  31. </tbody>
  32. </table>
  33. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  34. <thead>
  35. <tr>
  36. <th colspan="20">{$Think.lang.business_license_information}</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. <tr>
  41. <th class="w150">{$Think.lang.business_license_number}:</th>
  42. <td>{$joinin_detail.business_licence_number}</td></tr><tr>
  43. <th>{$Think.lang.place_business_license}:</th>
  44. <td>{$joinin_detail.business_licence_address}</td></tr><tr>
  45. <th>{$Think.lang.validity_business_license}:</th>
  46. <td>{$joinin_detail.business_licence_start} - {$joinin_detail.business_licence_end}</td>
  47. </tr>
  48. <tr>
  49. <th>{$Think.lang.legal_scope_business}:</th>
  50. <td colspan="20">{$joinin_detail.business_sphere}</td>
  51. </tr>
  52. <tr>
  53. <th>{$Think.lang.business_license}<br />{$Think.lang.electronic_version}:</th>
  54. <td colspan="20">
  55. {notempty name="joinin_detail.business_licence_number_electronic"}
  56. <a data-lightbox="lightbox-image" href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}">
  57. <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" alt="" height="200"/>
  58. </a>
  59. {/notempty}
  60. </td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  65. <thead>
  66. <tr>
  67. <th colspan="20">{$Think.lang.bank_information}:</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <tr>
  72. <th class="w150">{$Think.lang.bank_name}:</th>
  73. <td>{$joinin_detail.bank_account_name}</td>
  74. </tr><tr>
  75. <th>{$Think.lang.company_bank_account}:</th>
  76. <td>{$joinin_detail.bank_account_number}</td></tr>
  77. <tr>
  78. <th>{$Think.lang.name_branch_bank}:</th>
  79. <td>{$joinin_detail.bank_name}</td>
  80. </tr>
  81. <tr>
  82. <th>{$Think.lang.location_bank_account}:</th>
  83. <td colspan="20">{$joinin_detail.bank_address}</td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  88. <thead>
  89. <tr>
  90. <th colspan="20">{$Think.lang.settlement_account_information}:</th>
  91. </tr>
  92. </thead>
  93. <tbody>
  94. <tr>
  95. <th class="w150">{$Think.lang.name_branch_bank}:</th>
  96. <td>{$joinin_detail.settlement_bank_account_name}</td>
  97. </tr>
  98. <tr>
  99. <th>{$Think.lang.company_bank_account}:</th>
  100. <td>{$joinin_detail.settlement_bank_account_number}</td>
  101. </tr>
  102. <tr>
  103. <th>{$Think.lang.name_branch_bank}:</th>
  104. <td>{$joinin_detail.settlement_bank_name}</td>
  105. </tr>
  106. <tr>
  107. <th>{$Think.lang.location_bank_account}:</th>
  108. <td>{$joinin_detail.settlement_bank_address}</td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. {else /}
  113. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  114. <thead>
  115. <tr>
  116. <th colspan="6">{$Think.lang.store_and_contact_info}</th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. <tr>
  121. <th>{$Think.lang.company_name}:</th>
  122. <td>{$joinin_detail.company_name}</td>
  123. <th>{$Think.lang.company_location}:</th>
  124. <td>{$joinin_detail.company_address}</td>
  125. <th>{$Think.lang.company_address}:</th>
  126. <td>{$joinin_detail.company_address_detail}</td>
  127. </tr>
  128. <tr>
  129. <th>{$Think.lang.contact_name}:</th>
  130. <td>{$joinin_detail.contacts_name}</td>
  131. <th>{$Think.lang.contact_number}:</th>
  132. <td>{$joinin_detail.contacts_phone}</td>
  133. <th>{$Think.lang.e_mail}:</th>
  134. <td>{$joinin_detail.contacts_email}</td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  139. <thead>
  140. <tr>
  141. <th colspan="20">{$Think.lang.identification_information}</th>
  142. </tr>
  143. </thead>
  144. <tbody>
  145. <tr>
  146. <th class="w150">{$Think.lang.identification_number}:</th>
  147. <td>{$joinin_detail.business_licence_number}</td></tr><tr>
  148. </tr>
  149. <tr>
  150. <th>{$Think.lang.identification_photo}:</th>
  151. <td colspan="20">
  152. {notempty name="joinin_detail.business_licence_number_electronic"}
  153. <a data-lightbox="lightbox-image" href="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}">
  154. <img src="{:get_store_joinin_imageurl($joinin_detail['business_licence_number_electronic'])}" alt="" height="200"/>
  155. </a>
  156. {/notempty}
  157. </td>
  158. </tr>
  159. </tbody>
  160. </table>
  161. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  162. <thead>
  163. <tr>
  164. <th colspan="2">{$Think.lang.store_alipay_info}:</th>
  165. </tr>
  166. </thead>
  167. <tbody>
  168. <tr>
  169. <th>{$Think.lang.store_alipay_account_name}:</th>
  170. <td>{$joinin_detail.settlement_bank_account_name}</td>
  171. </tr>
  172. <tr>
  173. <th>{$Think.lang.store_alipay_account_number}:</th>
  174. <td>{$joinin_detail.settlement_bank_account_number}</td>
  175. </tr>
  176. </tbody>
  177. </table>
  178. {/if}
  179. <form id="form_store_verify" action="{:url('Store/store_joinin_verify')}" method="post">
  180. <input id="verify_type" name="verify_type" type="hidden" />
  181. <input name="member_id" type="hidden" value="{$joinin_detail.member_id}" />
  182. <table border="0" cellpadding="0" cellspacing="0" class="store-joinin ds-default-table">
  183. <thead>
  184. <tr>
  185. <th colspan="20">{$Think.lang.store_operation_info}</th>
  186. </tr>
  187. </thead>
  188. <tbody>
  189. <tr>
  190. <th class="w150">{$Think.lang.ds_seller_name}:</th>
  191. <td>{$joinin_detail.seller_name}</td>
  192. </tr>
  193. <tr>
  194. <th class="w150">{$Think.lang.ds_store_name}:</th>
  195. <td>{$joinin_detail.store_name}</td>
  196. </tr>
  197. <tr>
  198. <th>{$Think.lang.ds_storegrade}:</th>
  199. <td>{$joinin_detail.storegrade_name}({$Think.lang.storegrade_price}:{$joinin_detail.storegrade_price|default="0"}{$Think.lang.ds_yuan}/{$Think.lang.ds_year})</td>
  200. </tr>
  201. <tr>
  202. <th class="w150">{$Think.lang.joinin_year}:</th>
  203. <td>{$joinin_detail.joinin_year} {$Think.lang.ds_year}</td>
  204. </tr>
  205. <tr>
  206. <th>{$Think.lang.ds_storeclass}:</th>
  207. <td>{$joinin_detail.storeclass_name}({$Think.lang.storeclass_bail}:{$joinin_detail.storeclass_bail} {$Think.lang.ds_yuan})</td>
  208. </tr>
  209. <tr>
  210. <th>{$Think.lang.paying_amount}:</th>
  211. <td>
  212. {if intval($joinin_detail.joinin_state) === 10}
  213. <input type="text" value="{$joinin_detail.paying_amount}" name="paying_amount" /> {$Think.lang.ds_yuan}
  214. {else /}
  215. {$joinin_detail.paying_amount} {$Think.lang.ds_yuan}
  216. {/if}
  217. </td>
  218. </tr>
  219. <tr>
  220. <th>{$Think.lang.store_bind_class}:</th>
  221. <td colspan="2"><table border="0" cellpadding="0" cellspacing="0" id="table_category" class="type">
  222. <thead>
  223. <tr>
  224. <th>{$Think.lang.ds_class}1</th>
  225. <th>{$Think.lang.ds_class}2</th>
  226. <th>{$Think.lang.ds_class}3</th>
  227. <th>{$Think.lang.store_class_commis_rates}</th>
  228. </tr>
  229. </thead>
  230. <tbody>
  231. {notempty name="joinin_detail.store_class_names"}
  232. <?php $store_class_names = unserialize($joinin_detail['store_class_names']);?>
  233. <?php if(!empty($store_class_names) && is_array($store_class_names)) {?>
  234. <?php $store_class_commis_rates = explode(',', $joinin_detail['store_class_commis_rates']);?>
  235. <?php for($i=0, $length = count($store_class_names); $i < $length; $i++) {?>
  236. <?php $s_c_n = explode(',', $store_class_names[$i]);?>
  237. <?php $class1=isset($s_c_n[0])?$s_c_n[0]:'';?>
  238. <?php $class2=isset($s_c_n[1])?$s_c_n[1]:'';?>
  239. <?php $class3=isset($s_c_n[2])?$s_c_n[2]:'';?>
  240. <tr>
  241. <td>{$class1}</td>
  242. <td>{$class2}</td>
  243. <td>{$class3}</td>
  244. <td>
  245. {if intval($joinin_detail.joinin_state) === 10}
  246. <input type="text" dstype="commis_rate" value="{if isset($store_class_commis_rates[$i])}{$store_class_commis_rates[$i]}{/if}" name="commis_rate[]" class="w100" /> %
  247. {else /}
  248. <?php echo $store_class_commis_rates[$i];?> %
  249. {/if}
  250. </td>
  251. </tr>
  252. <?php } ?>
  253. <?php } ?>
  254. {/notempty}
  255. </tbody>
  256. </table></td>
  257. </tr>
  258. <?php if(in_array(intval($joinin_detail['joinin_state']), array(STORE_JOIN_STATE_PAY, STORE_JOIN_STATE_FINAL))) {?>
  259. <tr>
  260. <th>{$Think.lang.storereopen_pay_cert}:</th>
  261. <td>
  262. {notempty name="joinin_detail.paying_money_certificate"}
  263. <a data-lightbox="lightbox-image" href="{:get_store_joinin_imageurl($joinin_detail['paying_money_certificate'])}"> <img src="{:get_store_joinin_imageurl($joinin_detail['paying_money_certificate'])}" height="100"/> </a>
  264. {/notempty}
  265. </td>
  266. </tr>
  267. <tr>
  268. <th>{$Think.lang.storereopen_pay_cert_explain}:</th>
  269. <td>{$joinin_detail.paying_money_certificate_explain}</td>
  270. </tr>
  271. <?php } ?>
  272. <?php if(in_array(intval($joinin_detail['joinin_state']), array(STORE_JOIN_STATE_NEW, STORE_JOIN_STATE_PAY))) { ?>
  273. <tr>
  274. <th>{$Think.lang.joinin_message}:</th>
  275. <td colspan="2"><textarea id="joinin_message" name="joinin_message"></textarea></td>
  276. </tr>
  277. <?php } ?>
  278. </tbody>
  279. </table>
  280. <?php if(in_array(intval($joinin_detail['joinin_state']), array(STORE_JOIN_STATE_NEW, STORE_JOIN_STATE_PAY))) { ?>
  281. <div id="validation_message" style="color:red;display:none;"></div>
  282. <div><a id="btn_fail" class="btn" href="JavaScript:void(0);"><span>{$Think.lang.ds_refuse}</span></a> <a id="btn_pass" class="btn" href="JavaScript:void(0);"><span>{$Think.lang.ds_pass}</span></a></div>
  283. <?php } ?>
  284. </form>
  285. </div>
  286. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  287. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  288. <script type="text/javascript">
  289. $(document).ready(function(){
  290. $('#btn_fail').on('click', function() {
  291. if($('#joinin_message').val() == '') {
  292. $('#validation_message').text('{$Think.lang.joinin_message_required}');
  293. $('#validation_message').show();
  294. return false;
  295. } else {
  296. $('#validation_message').hide();
  297. }
  298. layer.confirm("{$Think.lang.refuse_confirm}", {
  299. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  300. title: false,
  301. }, function () {
  302. $('#verify_type').val('fail');
  303. $('#form_store_verify').submit();
  304. });
  305. });
  306. $('#btn_pass').on('click', function() {
  307. var valid = true;
  308. $('[dstype="commis_rate"]').each(function(commis_rate) {
  309. rate = $(this).val();
  310. if(rate == '') {
  311. valid = false;
  312. return false;
  313. }
  314. var rate = Number($(this).val());
  315. if(isNaN(rate) || rate < 0 || rate >= 100) {
  316. valid = false;
  317. return false;
  318. }
  319. });
  320. if(valid) {
  321. $('#validation_message').hide();
  322. layer.confirm("{$Think.lang.store_join_view_confrim}", {
  323. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  324. title: false,
  325. }, function () {
  326. $('#verify_type').val('pass');
  327. $('#form_store_verify').submit();
  328. });
  329. } else {
  330. $('#validation_message').text('{$Think.lang.store_class_commis_rates_error}');
  331. $('#validation_message').show();
  332. }
  333. });
  334. });
  335. </script>