versionOptions.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>Document</title>
  8. <script src="http://zsyas2.zhixinhuixue.com/js/jquery-2.2.2.min.js"></script>
  9. <script src="http://zsyas2.zhixinhuixue.com/js/layer/layer.js"></script>
  10. <link href="/css/productset/versionOptions.css?1f3c9eb7ca528042749e" rel="stylesheet" />
  11. </head>
  12. <body>
  13. <style>
  14. .fl{
  15. float: left;
  16. }
  17. .fr{
  18. float: right;
  19. }
  20. .clearfix:after{
  21. content: '';
  22. display: block;
  23. clear: both;
  24. }
  25. .changeSubjectNav{
  26. position: fixed;
  27. width: 100%;
  28. box-sizing: border-box;
  29. top: 0;
  30. left: 0;
  31. z-index: 1000;
  32. display: flex;
  33. justify-content: space-between;
  34. align-items: center;
  35. padding: 10px 10px;
  36. background: #ddd;
  37. }
  38. .changeSubjectNav .productSettingBtn a{
  39. display: block;
  40. width: 120px;
  41. height: 30px;
  42. background: #01B677;
  43. text-align: center;
  44. line-height: 30px;
  45. color: #fff;
  46. font-size: 16px;
  47. text-decoration: none;
  48. cursor: text;
  49. }
  50. /*切换选择*/
  51. .tab-con{
  52. position: relative;
  53. height: 30px;
  54. width: 200px;
  55. background: #F2F2F2;
  56. border: 1px solid #01B677;
  57. border-radius: 15px;
  58. box-sizing: border-box;
  59. }
  60. .has-sel{
  61. background: #01B677;
  62. color: #fff;
  63. width: 50%;
  64. height: 30px;
  65. border-top-left-radius: 15px;
  66. border-bottom-left-radius: 15px;
  67. text-align: center;
  68. line-height: 30px;
  69. }
  70. .sel-opt{
  71. width: 50%;
  72. position: relative;
  73. color: #01B677;
  74. line-height: 30px;
  75. text-indent: 6px;
  76. cursor: pointer;
  77. }
  78. .sel-opt:after{
  79. content: '';
  80. border-left: 6px solid transparent;
  81. border-right: 6px solid transparent;
  82. border-top: 8px solid #01B677;
  83. position: absolute;
  84. right: 12px;
  85. top: 12px;
  86. }
  87. // .sel-opt select{
  88. // width: 100%;
  89. // height: 30px;
  90. // background: #F2F2F2;
  91. // color: #01B677;
  92. // text-indent: 6px;
  93. // font-size: inherit;
  94. // border-top-right-radius: 15px;
  95. // border-bottom-right-radius: 15px;
  96. // cursor: pointer;
  97. // }
  98. // .sel-opt select option{
  99. // position: relative;
  100. // }
  101. .points{
  102. position: absolute;
  103. top: -2px;
  104. right: 0;
  105. width: 10px;
  106. height: 10px;
  107. background: #F01516;
  108. border-radius: 50%;
  109. }
  110. .sel-cons{
  111. border: 1px solid #01B677;
  112. width: 50%;
  113. position: absolute;
  114. right: 0;
  115. top: 30px;
  116. text-indent: 10px;
  117. display: none;
  118. }
  119. .sc-lis2{
  120. line-height: 30px;
  121. cursor: pointer;
  122. }
  123. .sc-lis2 span{
  124. position: relative;
  125. }
  126. .sc-lis2 .points{
  127. top: 2px;
  128. right: -16px;
  129. }
  130. .subject-change{
  131. margin:8px 11px 0 0;display: block
  132. }
  133. .subject-change-no{
  134. margin:8px 11px 0 0;display: none
  135. }
  136. </style>
  137. <?php include(Yii::app()->basePath.'/views/layouts/view_productset_navigation.php');?>
  138. <script type="text/javascript">
  139. $(document).ready(function() {
  140. $(".sel-opt,.sel-cons").mouseover(function () {
  141. $(".sel-cons").show();
  142. }).mouseout(function () {
  143. $(".sel-cons").hide();
  144. });
  145. $(".sc-lis2").click(function () {
  146. var sub_id = $(this).attr('val');
  147. var data = {
  148. subjectId: sub_id
  149. };
  150. $.post("<?php echo Yii::app()->createUrl('print/setSubjectId')?>", data, function (flags) {
  151. if (flags) {
  152. location.href = "<?php echo $this->createUrl('productset/index');?>";
  153. } else {
  154. alert('网络异常');
  155. }
  156. });
  157. $('.has-sel').text($(this).text());
  158. $(".sel-cons").hide();
  159. });
  160. });
  161. </script>
  162. <div class="hgc_customBox">
  163. <h2 class="bigTitle">版本选择</h2>
  164. <div class="versionList">
  165. <div class="versionItem" data-edition="2" data-url="<?php echo $this->createUrl('productset/oldSet')?>">
  166. <div class="contentBox">
  167. <h3>2.0版</h3>
  168. <div class="pic">
  169. <img src="./pic_20.png" alt="">
  170. </div>
  171. <div class="introduce">
  172. <h4>以班级为单位设置推送规则</h4>
  173. <p>学生层次:根据学生成绩自动划分</p>
  174. <p>错题过多:自动过滤</p>
  175. <p>错题过少:自动增加拓展题</p>
  176. <p>推题难度:根据学生层次自动推荐</p>
  177. <p>推题数量:1~2题</p>
  178. </div>
  179. <span class="tag">已选择</span>
  180. </div>
  181. </div>
  182. <div class="versionItem" data-edition="3" data-url="<?php echo $this->createUrl('productset/nav')?>">
  183. <div class="contentBox">
  184. <h3>3.0版</h3>
  185. <div class="pic">
  186. <img src="./pic_20.png" alt="">
  187. </div>
  188. <div class="introduce">
  189. <h4>可针对学生个体定制推送规则</h4>
  190. <p>学生层次:自定义划分标准</p>
  191. <p>错题过多:自定义错题过滤规则</p>
  192. <p>错题过少:自定义补充题目规则</p>
  193. <p>推题难度:自定义推荐难度</p>
  194. <p>推题数量:1~3题</p>
  195. </div>
  196. </div>
  197. <span class="tag">已选择</span>
  198. </div>
  199. </div>
  200. <div class="goSetting">
  201. <a href="#" class="theme">进入设置></a>
  202. </div>
  203. </div>
  204. <script>
  205. window.product_switch =<?php echo $switch?>;
  206. </script>
  207. <script src="/js/productset/versionOptions.js?1f3c9eb7ca528042749e"></script>
  208. </body>
  209. </html>