Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

conf.htm 9.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="member/left" /}
  6. <div class="page min-hg-c-10" style="min-width:auto;margin-left:100px;">
  7. {include file="users_score/bar" /}
  8. <div class="flexigrid">
  9. <form class="form-horizontal" id="post_form" action="{:url('UsersScore/conf')}" method="post">
  10. <div class="hDiv htitx">
  11. <div class="hDivBox">
  12. <table cellspacing="0" cellpadding="0" style="width: 100%">
  13. <thead>
  14. <tr>
  15. <th class="sign w10" axis="col0">
  16. <div class="tc"></div>
  17. </th>
  18. <th abbr="article_title" axis="col3" class="w10">
  19. <div class="tc">积分设置</div>
  20. </th>
  21. <th abbr="ac_id" axis="col4">
  22. <div class=""></div>
  23. </th>
  24. </tr>
  25. </thead>
  26. </table>
  27. </div>
  28. </div>
  29. <div class="ncap-form-default">
  30. <dl class="row">
  31. <dt class="tit">
  32. <label><em>*</em>积分名称</label>
  33. </dt>
  34. <dd class="opt">
  35. <input type="text" name="score_name" value="{$score.score_name|default='积分'}" class="w100" placeholder="前台积分文案">
  36. <span class="err"></span>
  37. <p class="notic">注:修改积分名称后,在买家端的所有页面里,看到的都是自定义的名称
  38. 例:商家使用自定义的积分名称来做品牌运营。如京东把积分称为“京豆”,淘宝把积分称为“淘金币”</p>
  39. </dd>
  40. </dl>
  41. <dl class="row none">
  42. <dt class="tit">
  43. <label for="score_intro">积分说明</label>
  44. </dt>
  45. <dd class="opt ui-web_description ui-text">
  46. <textarea rows="5" cols="100" id="score_intro" name="score_intro" style="height:100px;" class="ui-input" data-num="200">{$score.score_intro|default='a) 积分不可兑现、不可转让,仅可在本平台使用;
  47. b) 您在本平台参加特定活动也可使用积分,详细使用规则以具体活动时的规则为准;
  48. c) 积分的数值精确到个位(小数点后全部舍弃,不进行四舍五入)
  49. d) 买家在完成该笔交易(订单状态为“已签收”)后才能得到此笔交易的相应积分,如购买商品参加店铺其他优惠,则优惠的金额部分不享受积分获取;'}</textarea>
  50. <p class="notic"></p>
  51. <p class="ui-big-text none"></p>
  52. </dd>
  53. </dl>
  54. </div>
  55. <div class="hDiv htitx">
  56. <div class="hDivBox">
  57. <table cellspacing="0" cellpadding="0" style="width: 100%">
  58. <thead>
  59. <tr>
  60. <th class="sign w10" axis="col0">
  61. <div class="tc"></div>
  62. </th>
  63. <th abbr="article_title" axis="col3" class="w10">
  64. <div class="tc">积分赠送</div>
  65. </th>
  66. <th abbr="ac_id" axis="col4">
  67. <div class=""></div>
  68. </th>
  69. </tr>
  70. </thead>
  71. </table>
  72. </div>
  73. </div>
  74. <div class="ncap-form-default">
  75. <dl class="row">
  76. <dt class="tit">
  77. <label>签到送积分</label>
  78. </dt>
  79. <dd class="opt">
  80. <label class="curpoin">
  81. <input name="score_signin_status" value="1" type="radio" {if condition="!empty($score.score_signin_status)"} checked="checked" {/if} onclick="changeStatus('control_signin_status', 1);">开启
  82. </label>
  83. &nbsp;
  84. <label class="curpoin">
  85. <input name="score_signin_status" value="0" type="radio" {if condition="empty($score.score_signin_status)"} checked="checked" {/if} onclick="changeStatus('control_signin_status', 0);">关闭
  86. </label>
  87. </dd>
  88. </dl>
  89. <dl class="row {if condition='empty($score.score_signin_status)'}none{/if}" id="control_signin_status">
  90. <dt class="tit">
  91. <label>签到加积分</label>
  92. </dt>
  93. <dd class="opt">
  94. <input type="text" name="score_signin_score" value="{$score.score_signin_score|default=3}" class="w80">&nbsp;积分/次
  95. </dd>
  96. </dl>
  97. <dl class="row">
  98. <dt class="tit">
  99. <label>消费获得积分</label>
  100. </dt>
  101. <dd class="opt">
  102. <label class="curpoin">
  103. <input name="score_consume_status" value="1" type="radio" {if condition="!empty($score.score_consume_status)"} checked="checked" {/if} onclick="changeStatus('control_consume_status', 1);">开启
  104. </label>
  105. &nbsp;
  106. <label class="curpoin">
  107. <input name="score_consume_status" value="0" type="radio" {if condition="empty($score.score_consume_status)"} checked="checked" {/if} onclick="changeStatus('control_consume_status', 0);">关闭
  108. </label>
  109. <p class="notic">订单完成后,并且达到收货后可维权时间,才能获得消费积分</p>
  110. </dd>
  111. </dl>
  112. <dl class="row {empty name='$score.score_consume_status'}none{/empty}" id="control_consume_status">
  113. <dt class="tit">
  114. <label>消费¥1.00获得</label>
  115. </dt>
  116. <dd class="opt">
  117. <input type="text" name="score_consume_money" value="{$score.score_consume_money|default=1}" class="w80">&nbsp;积分
  118. </dd>
  119. </dl>
  120. <dl class="row">
  121. <dt class="tit">
  122. <label>登录送积分</label>
  123. </dt>
  124. <dd class="opt">
  125. <label class="curpoin">
  126. <input name="score_login_points_open" value="1" type="radio" {if condition="!empty($score.score_login_points_open)"} checked="checked" {/if} onclick="changeStatus('score_login_points_value', 1);">开启
  127. </label>
  128. &nbsp;
  129. <label class="curpoin">
  130. <input name="score_login_points_open" value="0" type="radio" {if condition="empty($score.score_login_points_open)"} checked="checked" {/if} onclick="changeStatus('score_login_points_value', 0);">关闭
  131. </label>
  132. </dd>
  133. </dl>
  134. <dl class="row {empty name='$score.score_login_points_open'}none{/empty}" id="score_login_points_value">
  135. <dt class="tit">
  136. <label>登录送</label>
  137. </dt>
  138. <dd class="opt">
  139. <input type="text" name="score_login_points_value" value="{$score.score_login_points_value|default=1}" class="w80">&nbsp;积分
  140. <p class="notic">每天登录赠送一次积分,同一天不累计。</p>
  141. </dd>
  142. </dl>
  143. </div>
  144. <div class="ncap-form-default">
  145. <dl class="row">
  146. <div class="bot">
  147. <a href="JavaScript:void(0);" onclick="check_submit();" class="ncap-btn-big ncap-btn-green"
  148. id="submitBtn">确认提交</a>
  149. </div>
  150. </dl>
  151. </div>
  152. </form>
  153. </div>
  154. </div>
  155. <script type="text/javascript">
  156. function check_submit() {
  157. if($('input[name=score_name]').val() == ''){
  158. showErrorMsg('积分名称不能为空!');
  159. $('input[name=score_name]').focus();
  160. return false;
  161. }
  162. layer_loading('正在处理');
  163. $('#post_form').submit();
  164. }
  165. function changeStatus(id, val) {
  166. if (1 == val) {
  167. $("#"+id).show();
  168. }else{
  169. $("#"+id).hide();
  170. }
  171. }
  172. </script>
  173. {include file="public/footer" /}