ソースを参照

无锡149活动

shenhao 4 年 前
コミット
644ac0efa5

+ 5 - 1
src/main/java/com/ssj/weixin/activity/controller/ActivityController.java

@@ -60,7 +60,11 @@ public class ActivityController extends BaseController {
                 return responseEntity.failure("请于上次发送成功后60秒后再重新尝试!");
             }
             //验证码验证成功,检查是否已经超过检查次数
-            int times = libOrderDetailsService.getOrderTimesBySpeciesAndUserId("S009",req.getPhoneNum());
+            String species = "S009";
+            if("15".equals(req.getType())){
+                species = "S010";
+            }
+            int times = libOrderDetailsService.getOrderTimesBySpeciesAndUserId(species,req.getPhoneNum());
             if(times >0){
                 return  responseEntity.failure("一个电话号码只能参加一次活动!");
             }

+ 9 - 0
src/main/java/com/ssj/weixin/api/activity/vo/ActivityLogin.java

@@ -15,6 +15,8 @@ public class ActivityLogin extends BaseRequest {
 
     private String msgCode;
 
+    private String type;
+
 
     public String getPhoneNum() {
         return phoneNum;
@@ -32,4 +34,11 @@ public class ActivityLogin extends BaseRequest {
         this.msgCode = msgCode;
     }
 
+    public String getType() {
+        return type;
+    }
+
+    public void setType(String type) {
+        this.type = type;
+    }
 }

+ 8 - 8
src/main/java/com/ssj/weixin/payment/controller/PaymentController.java

@@ -1207,19 +1207,19 @@ public class PaymentController extends BaseController {
 		if(Objects.isNull(type)){
 			type = "8";
 		}
-//		String userId = UserUtil.getUserId(request);
-		//查询用户支付次数
-//		int times = libOrderDetailsService.getOrderTimesBySpeciesAndUserId("S009",userId);
-		//通用的收费标准,150/月
-		LibSalesPrice salesPrice=libSalesPriceService.findTopBySpecies("S009");
+		String species = "S009";
+		String returnUrl = "weixin/vip/extension/index";
+		if("15".equals(type)){
+			species = "S010";
+			returnUrl = "weixin/vip/extension/index2";
+		}
+		LibSalesPrice salesPrice=libSalesPriceService.findTopBySpecies(species);
 
 		model.addAttribute("libId", salesPrice.getLibId());
 		model.addAttribute("salesPrice", salesPrice);
 		//推广渠道
 		model.addAttribute("type",type);
-//		//1还可以购买,2不可购买了
-//		model.addAttribute("timeLimit",times<1?1:2);
-		return "weixin/vip/extension/index";
+		return returnUrl;
 	}
 	
 

+ 19 - 18
src/main/resources/static/extension/css/style.css

@@ -47,23 +47,22 @@ html.no-scroll {
 .wrap_header{position: fixed;top:0;left:50%;transform:translate(-50%,0);width: 100%;height: calc(100% - 2rem);overflow: auto;}
 .wrap_index{width: 100%;height: auto;font-size:0;vertical-align:top;display: flex;flex-direction: column;align-items: flex-start;}
 .index_pic{width: 7.5rem;}
-.index_pic1{height:11.32rem;background:url(https://img.sharingschool.com/activity/images/index_a1.png?v=2) no-repeat center/ 100% 100%;}
-.index_pic2{height:4.85rem;margin-top:0.02rem;background:url(https://img.sharingschool.com/activity/images/index_a2.png?v=2) no-repeat center/ 100% 100%;}
-.index_pic3{height:5.98rem;margin-top:0.11rem;background:url(https://img.sharingschool.com/activity/images/index_a3.png?v=2) no-repeat center/ 100% 100%;}
+.index_pic1{height:11.32rem;background:url(https://img.sharingschool.com/activity/images/index_a1.png?v=4) no-repeat center/ 100% 100%;}
+.index_pic2{height:4.85rem;margin-top:0.02rem;background:url(https://img.sharingschool.com/activity/images/index_a2.png?v=4) no-repeat center/ 100% 100%;}
+.index_pic3{height:5.98rem;margin-top:0.11rem;background:url(https://img.sharingschool.com/activity/images/index_a3.png?v=4) no-repeat center/ 100% 100%;}
 
-.index_pic4{height:36.52rem;margin-top:0.38rem;background:url(https://img.sharingschool.com/activity/images/index_long.png?v=2) no-repeat center/ 100% 100%,#e12d39;}
-/* .index_pic4{height:5.12rem;margin-top:0.38rem;background:url(https://img.sharingschool.com/activity/images/index_a4.png?v=2) no-repeat center/ 100% 100%,#e12d39;}
-.index_pic5{height:16.9rem;background:url(https://img.sharingschool.com/activity/images/index_a5.png?v=2) no-repeat center/ 100% 100%,#e12d39;}
-.index_pic6{height:14.55rem;background:url(https://img.sharingschool.com/activity/images/index_a6.png?v=2) no-repeat center/ 100% 100%;} */
+.index_pic4{height:36.52rem;margin-top:0.38rem;background:url(https://img.sharingschool.com/activity/images/index_long.png?v=4) no-repeat center/ 100% 100%,#e12d39;}
+/* .index_pic4{height:5.12rem;margin-top:0.38rem;background:url(https://img.sharingschool.com/activity/images/index_a4.png?v=4) no-repeat center/ 100% 100%,#e12d39;}
+.index_pic5{height:16.9rem;background:url(https://img.sharingschool.com/activity/images/index_a5.png?v=4) no-repeat center/ 100% 100%,#e12d39;}
+.index_pic6{height:14.55rem;background:url(https://img.sharingschool.com/activity/images/index_a6.png?v=4) no-repeat center/ 100% 100%;} */
 
-.index_pic5{margin-top: -0.02rem;height:6.05rem;background:url(https://img.sharingschool.com/activity/images/index_a7.png?v=2) no-repeat center/ 100% 100%,#fff;}
-.index_pic6{height:7.8rem;margin-top:0.31rem;background:url(https://img.sharingschool.com/activity/images/index_a8.png?v=2) no-repeat center/ 100% 100%,#fff;}
-.index_pic7{height:10.5rem;margin-top:0.27rem;background:url(https://img.sharingschool.com/activity/images/index_a9.png?v=2) no-repeat center/ 100% 100%;}
+.index_pic5{margin-top: -0.02rem;height:6.05rem;background:url(https://img.sharingschool.com/activity/images/index_a7.png?v=4) no-repeat center/ 100% 100%,#fff;}
+.index_pic6{height:7.8rem;margin-top:0.31rem;background:url(https://img.sharingschool.com/activity/images/index_a8.png?v=4) no-repeat center/ 100% 100%,#fff;}
+.index_pic7{height:15.38rem;margin-top:0.27rem;background:url(https://img.sharingschool.com/activity/images/index_a9.png?v=4) no-repeat center/ 100% 100%;}
 .index_pic0{height:1.94rem;background: #FFF;}
 
 /*跑马灯*/
-.index_pic1_marquee{width: 4.12rem;height: .46rem;top:.33rem;right:.2rem;background: rgba(62,3,19,.35);border-radius: .23rem;font-size: .24rem;line-height:.46rem;font-weight: 400;color: #FFFFFF;text-align: center;overflow: hidden;}
-.index_pic1_marquee ul{}
+.index_pic1_marquee{width: 4.12rem;height: .46rem;top:.33rem;right:.2rem;background: rgba(62,3,19,.35);border-radius: .23rem;font-size: .24rem;line-height:.46rem;font-weight: 400;color: #FFFFFF;text-align: center;overflow: hidden;display: none;}
 .index_pic1_marquee ul li{width: 100%;height: .46rem;line-height:.46rem;}
 
 
@@ -71,8 +70,10 @@ html.no-scroll {
 .wrap_footer{position: fixed;width: 7.5rem;height: 1.94rem;bottom:0;left:50%;transform:translate(-50%,0);background: #FFF;box-shadow: 0 0 .16rem 0 rgba(113, 53, 9, 0.4);}
 .wrap_footer_text{width: 100%;height: 0.3rem;top:.29rem;left:50%;transform:translate(-45%,0);font-size: 0.3rem;font-weight: bold;color: #E22331;line-height: 0.3rem;text-align: center;letter-spacing: 0.02rem;
 }
-.wrap_footer_icon{width: .62rem;height: .62rem;bottom: .71rem;left:.51rem;}
-.wrap_footer_icon img{width: 100%;line-height: .62rem;vertical-align: top;}
+.wrap_footer_icon{width: .62rem;height: .88rem;bottom: .6rem;left:.51rem;}
+.wrap_footer_icon img{width: .62rem;height: .62rem;line-height: .62rem;vertical-align: top;}
+.wrap_footer_icon span{display:block;width: 100%;height: .26rem;line-height:.26rem; font-size:.22rem;color: #E22331;text-align: center;}
+
 #wrap_footer_btn{width: 5.02rem;height: .88rem;bottom: .6rem;left:50%;transform:translate(-45%,0);background: linear-gradient(187deg, #E12331, #E22331);border-radius: .44rem;text-align: center;letter-spacing: 0.02rem;cursor: pointer;}
 #wrap_footer_btn.disabled{background: #BFBFBF;opacity: .9;}
 .wrap_footer_btn h3{font-size: .32rem;font-weight: 400;color: #FFF;}
@@ -95,7 +96,7 @@ html.no-scroll {
 .select_register_yzm input{width:2.5rem;}
 .select_register_yzm_tip1{width: 1.6rem;height: .3rem;font-size: .24rem;font-weight: 400;color: #3DBA40;line-height: .3rem;position: absolute;right: 0;top:36%;transform: translateY(-50%);display: none;}
 .select_register_yzm_tip2{width: 100%;height: .3rem;font-size: .24rem;font-weight: 400;color: #3DBA40;line-height: .3rem;position: absolute;left: 0;bottom: 0.05rem;}
-.select_register_yzm_tip1 i,.select_register_yzm_tip2 i{float:left;display: inline-block;width: .26rem;height: .26rem;margin:0.02rem 0;background:url(https://img.sharingschool.com/activity/images/tel_icon.png?v=2) no-repeat center/ 100% 100%;}
+.select_register_yzm_tip1 i,.select_register_yzm_tip2 i{float:left;display: inline-block;width: .26rem;height: .26rem;margin:0.02rem 0;background:url(https://img.sharingschool.com/activity/images/tel_icon.png?v=4) no-repeat center/ 100% 100%;}
 .select_register_yzm_btn{width: 2.3rem;height: .78rem;background: #FFF;position:absolute;right:0;top:.1rem;border: 0.02rem solid #EA3844;border-radius: .39rem;text-align: center;font-size: .28rem;font-weight: 400;color: #EA3844;line-height: .78rem;cursor: pointer;}
 
 .wrap_select_payment p{float:left;width:30%;height:1.38rem;line-height:1.38rem;font-size: .58rem;font-weight: bold;color: #EA3844;text-align: center;}
@@ -129,14 +130,14 @@ html.no-scroll {
   height: .28rem;
   bottom: 0.04rem;
   right: 0.04rem;
-  background: url(https://img.sharingschool.com/activity/images/select_tick.png?v=2) no-repeat center/ 100% 100%;
+  background: url(https://img.sharingschool.com/activity/images/select_tick.png?v=4) no-repeat center/ 100% 100%;
   z-index: 2;
 }
 
 /* 支付成功页面 */
 .wrap_success{width: 100%;height: 100%;background: #EA3844;left: 0;top: 0;display: none;}
-.success_toppic{width:5.98rem;height:3.75rem;margin:0 auto;background:url(https://img.sharingschool.com/activity/images/success_top.png?v=2) no-repeat center/ 100% 100%;position: relative;}
-.success_toppic_tick{width: .77rem;height: .67rem;background:url(https://img.sharingschool.com/activity/images/success_tick.png?v=2) no-repeat center/ 100% 100%;position: absolute;left: 50%;top: 50%;transform: translate(-50%, -50%);}
+.success_toppic{width:5.98rem;height:3.75rem;margin:0 auto;background:url(https://img.sharingschool.com/activity/images/success_top.png?v=4) no-repeat center/ 100% 100%;position: relative;}
+.success_toppic_tick{width: .77rem;height: .67rem;background:url(https://img.sharingschool.com/activity/images/success_tick.png?v=4) no-repeat center/ 100% 100%;position: absolute;left: 50%;top: 50%;transform: translate(-50%, -50%);}
 .success_toppic p{width: 100%;height: .4rem;line-height:.4rem;font-size: .33rem;font-weight: 500;color: #FFF;text-align: center;position: absolute;left: 50%;top: 66%;transform: translate(-50%, -50%);}
 .success_baibox{width: 6.63rem;height: 6.17rem;padding-top:.5rem;margin:0 auto;background: #FFF;border-radius: .2rem;}
 .success_next_text1{width: 100%;height: .5rem;font-size: .4rem;font-weight: 500;color: #313131;line-height: .5rem;text-align: center;}

+ 158 - 0
src/main/resources/static/extension/css/style2.css

@@ -0,0 +1,158 @@
+@charset "UTF-8";
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0;font-family:"微软雅黑";-webkit-tap-highlight-color:transparent}
+table {border-collapse:collapse;border-spacing:0}
+fieldset,img{border:0;vertical-align: middle;}
+address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:400}
+ol,ul{list-style:none}
+caption,th{text-align:left}
+h1,h2,h3,h4,h5,h6{font-weight:400}
+q:before,q:after{content: ''}
+abbr,acronym{border:0}
+a{text-decoration:none}
+html{font-family: sans-serif;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;}
+html,body{margin: 0 auto;width: 100%;height: 100%;background: #fff;}
+body{position: relative;
+    font: 28px/1.2 sans-serif;
+    -webkit-tap-highlight-color: transparent;
+    -webkit-overflow-scrolling: touch;
+    -webkit-text-size-adjust: 100%;
+    -webkit-user-select: none;}
+i{font-style:normal}
+.clear:after{visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0}
+.clear{display:inline-table}
+* html .clear{height:1%}
+a{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}
+.fl{float:left}
+.fr{float:right}
+.pr{position:relative}
+.pa{position:absolute}
+.dn{display:none}
+.vn{visibility:hidden}
+.center{text-align:center}
+.tr{text-align:right}
+.tl{text-align:right}
+a:hover,a:focus{color:#16191e}
+a:focus{outline:thin dotted;outline:5px auto -webkit-focus-ring-color;outline-offset: -2px}
+.swiper-container{width:100%;height:100%}
+section{overflow:hidden}
+.img-box {position:absolute;width:100%;height:100%}
+.img-box img{position:absolute}
+html.no-scroll {
+    overflow-y: scroll !important;
+    overflow: hidden !important;
+    height: 100% !important;
+}
+
+#container{position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;}
+.wrap_header{position: fixed;top:0;left:50%;transform:translate(-50%,0);width: 100%;height: calc(100% - 2rem);overflow: auto;}
+.wrap_index{width: 100%;height: auto;font-size:0;vertical-align:top;display: flex;flex-direction: column;align-items: flex-start;}
+.index_pic,.index_pic img{width: 100%}
+
+.index_pic1{height:11.32rem;}
+.index_pic2{}
+.index_pic3{margin-top:0.11rem;}
+
+.index_pic4{margin-top:0.38rem;}
+/* .index_pic4{height:5.12rem;margin-top:0.38rem;background:url(../images/index_a4.png?v=1) no-repeat center/ 100% 100%,#e12d39;}
+.index_pic5{height:16.9rem;background:url(../images/index_a5.png?v=1) no-repeat center/ 100% 100%,#e12d39;}
+.index_pic6{height:14.55rem;background:url(../images/index_a6.png?v=1) no-repeat center/ 100% 100%;} */
+
+.index_pic5{margin-top: 0.6rem;}
+.index_pic6{width:70%;height:4rem;display:block;margin:0 auto;margin-top:0.61rem;}
+.index_pic7{margin-top:0.27rem;}
+.index_pic0{height:1.94rem;background: #FFF;}
+
+/*跑马灯*/
+.index_pic1_marquee{width: 4.12rem;height: .46rem;top:.33rem;right:.2rem;background: rgba(62,3,19,.35);border-radius: .23rem;font-size: .24rem;line-height:.46rem;font-weight: 400;color: #FFFFFF;text-align: center;overflow: hidden;display: none;}
+.index_pic1_marquee ul li{width: 100%;height: .46rem;line-height:.46rem;}
+
+
+/*底部免费报名*/
+.wrap_footer{position: fixed;width: 7.5rem;height: 1.94rem;bottom:0;left:50%;transform:translate(-50%,0);background: #FFF;box-shadow: 0 0 .16rem 0 rgba(113, 53, 9, 0.4);}
+.wrap_footer_text{width: 100%;height: 0.3rem;top:.29rem;left:50%;transform:translate(-45%,0);font-size: 0.3rem;font-weight: bold;color: #E22331;line-height: 0.3rem;text-align: center;letter-spacing: 0.02rem;
+}
+.wrap_footer_icon{width: .62rem;height: .88rem;bottom: .6rem;left:.51rem;}
+.wrap_footer_icon img{width: .62rem;height: .62rem;line-height: .62rem;vertical-align: top;}
+.wrap_footer_icon span{display:block;width: 100%;height: .26rem;line-height:.26rem; font-size:.22rem;color: #E22331;text-align: center;}
+
+#wrap_footer_btn{width: 5.02rem;height: .88rem;bottom: .6rem;left:50%;transform:translate(-45%,0);background: linear-gradient(187deg, #E12331, #E22331);border-radius: .44rem;text-align: center;letter-spacing: 0.02rem;cursor: pointer;}
+#wrap_footer_btn.disabled{background: #BFBFBF;opacity: .9;}
+.wrap_footer_btn h3{font-size: .32rem;font-weight: 400;color: #FFF;}
+.wrap_footer_btn h3 span{font-size: .42rem;font-weight: bold;color: #FFF;}
+.wrap_footer_btn p{font-size: .2rem;font-weight: 400;color: #FFFFFF;}
+.wrap_footer_btn_tip{width: 2.4rem;height: .4rem;background: #FFB500;border-radius: .21rem .2rem .2rem 0;top:-.3rem;right:-.8rem;font-size: .24rem;font-weight: bold;color: #FFFFFF;line-height: .4rem;text-align: center;}
+
+/* 选择练习册 */
+.wrap_select{width: 100%;height: 100%;background: #F2F5F8;left: 0;top: 0;display: none;}
+.wrap_select_top{position: fixed;top:0;left:50%;transform:translate(-50%,0);width: 100%;height: calc(100% - 1.4rem);overflow: auto;}
+.wrap_select_register{width: 6.22rem;height: auto;padding:.3rem;background: #fff;margin:0 auto;margin-top: .3rem;box-shadow: 0 0 .18rem 0 rgba(199, 216, 232, 0.15);border-radius: .2rem;overflow: hidden;}
+.wrap_select_workbook{width: 6.22rem;height: auto;padding:.3rem;background: #FFF;margin:0 auto;margin-top: .2rem;box-shadow: 0 0 .18rem 0 rgba(199, 216, 232, 0.15);border-radius: .2rem;overflow: auto;}
+.wrap_select_payment{width: 100%;height: 1.38rem;background: #FFF;box-shadow: 0 -0.02rem 0.24rem 0 rgba(199, 216, 232, 0.54);position: fixed;bottom: 0;left:50%;transform:translate(-50%,0);z-index: 99;}
+.select_register_tel{width: 100%;height: 1.4rem;border-bottom: 0.01rem solid #E6E6E6;position: relative;}
+.select_register_yzm{width: 100%;height: 1rem;margin-top:.2rem;position: relative;}
+.select_register_tel span, .select_register_yzm span{float:left;display:inline-block;height:1rem;margin-right:.15rem;font-size: .36rem;font-weight: 500;color: #333;line-height: 1rem;}
+.select_register_tel input, .select_register_yzm input{float:left;height:.6rem;padding:.2rem 0;background: transparent;border: 0;outline: none;text-align: left;font-size: .3rem;font-weight: 400;color: #1A1A1A;line-height: .6rem;cursor: pointer;}
+.select_register_tel input:focus, .select_register_yzm input:focus{background: none;}
+.select_register_tel input{width:3.3rem;}
+.select_register_yzm input{width:2.5rem;}
+.select_register_yzm_tip1{width: 1.6rem;height: .3rem;font-size: .24rem;font-weight: 400;color: #3DBA40;line-height: .3rem;position: absolute;right: 0;top:36%;transform: translateY(-50%);display: none;}
+.select_register_yzm_tip2{width: 100%;height: .3rem;font-size: .24rem;font-weight: 400;color: #3DBA40;line-height: .3rem;position: absolute;left: 0;bottom: 0.05rem;}
+.select_register_yzm_tip1 i,.select_register_yzm_tip2 i{float:left;display: inline-block;width: .26rem;height: .26rem;margin:0.02rem 0;background:url(https://img.sharingschool.com/activity/images/tel_icon.png?v=4) no-repeat center/ 100% 100%;}
+.select_register_yzm_btn{width: 2.3rem;height: .78rem;background: #FFF;position:absolute;right:0;top:.1rem;border: 0.02rem solid #EA3844;border-radius: .39rem;text-align: center;font-size: .28rem;font-weight: 400;color: #EA3844;line-height: .78rem;cursor: pointer;}
+
+.wrap_select_payment p{float:left;width:30%;height:1.38rem;line-height:1.38rem;font-size: .58rem;font-weight: bold;color: #EA3844;text-align: center;}
+.wrap_select_payment p span{font-size: .36rem;}
+
+.select_payment_btn{float:right;width: 3rem;height: .88rem;line-height:.88rem;background: #EA3844;border-radius: .44rem;margin:.25rem .3rem .25rem 0;text-align: center;font-size: .38rem;font-weight: 500;color: #FFF;cursor: pointer;border:0;outline: none;}
+.select_payment_btn:disabled{background: #F5A4A9;}
+
+.select_wrokbook_title{width: 100%;height: .5rem;line-height: .5rem;}
+.select_wrokbook_title p{font-size: .36rem;font-weight: 500;color: #333;}
+.select_wrokbook_title p span{font-size: .28rem;font-weight: 400;color: #CCC;}
+.select_wrokbook_content{width: 100%;height: auto;margin:.3rem auto 0 auto;overflow: hidden;}
+.select_wrokbook_content_tit{width: calc(100% - 0.04rem);height: .78rem;background: #FFF;margin-bottom:.25rem;border: .02rem solid #EA3844;border-radius: .4rem;}
+.select_wrokbook_content_tit ul li{float: left;width: 30%;height: .78rem;line-height:.78rem;font-size: .32rem;font-weight: 400;color: #EA3844;text-align: center;border-radius: .39rem;}
+.select_wrokbook_content_tit ul li+li{margin-left: 5%;}
+.select_wrokbook_content_tit ul li.ton{background: #EA3844;color: #fff;position: relative;}
+.select_wrokbook_content_tit ul li.ton::before{content: '';width: 0;height: 0;border-left: .2rem solid transparent;border-right: .2rem solid transparent;border-top: .2rem solid #EA3844;position: absolute;bottom: -.14rem;left: 50%;transform: translateX(-50%);}
+
+.select_dlist_box{width: 100%;padding-top: 0.16rem;height: auto;overflow: hidden;}
+.select_dlist_box2,.select_dlist_box3{display: none;}
+.select_dlist_box ul li{float: left;width: auto;height: .68rem;padding: 0 .24rem;margin-right: .14rem;margin-bottom:.16rem;background: #FFFFFF;box-sizing:border-box;border: .02rem solid #EA3844;border-radius: .34rem;text-align: center;font-size: .28rem;font-weight: 400;color: #EA3844;line-height: .68rem;position: relative;}
+.select_dlist_box ul li input{position: absolute;left: 0;top: 0;width: 100%;height: 100%;opacity: 0;cursor: pointer;}
+
+/* 选中的元素添加一个 √ 的箭头 */
+/* #select_tlist_ul li.ok::after, */
+.select_dlist_box li input:checked + .select_dlist_name::after{
+  content: '';
+  position: absolute;
+  display:inline-block;
+  width:.28rem;
+  height: .28rem;
+  bottom: 0.04rem;
+  right: 0.04rem;
+  background: url(https://img.sharingschool.com/activity/images/select_tick.png?v=4) no-repeat center/ 100% 100%;
+  z-index: 2;
+}
+
+/* 支付成功页面 */
+.wrap_success{width: 100%;height: 100%;background: #EA3844;left: 0;top: 0;display: none;}
+.success_toppic{width:5.98rem;height:3.75rem;margin:0 auto;background:url(https://img.sharingschool.com/activity/images/success_top.png?v=4) no-repeat center/ 100% 100%;position: relative;}
+.success_toppic_tick{width: .77rem;height: .67rem;background:url(https://img.sharingschool.com/activity/images/success_tick.png?v=4) no-repeat center/ 100% 100%;position: absolute;left: 50%;top: 50%;transform: translate(-50%, -50%);}
+.success_toppic p{width: 100%;height: .4rem;line-height:.4rem;font-size: .33rem;font-weight: 500;color: #FFF;text-align: center;position: absolute;left: 50%;top: 66%;transform: translate(-50%, -50%);}
+.success_baibox{width: 6.63rem;height: 6.17rem;padding-top:.5rem;margin:0 auto;background: #FFF;border-radius: .2rem;}
+.success_next_text1{width: 100%;height: .5rem;font-size: .4rem;font-weight: 500;color: #313131;line-height: .5rem;text-align: center;}
+.success_next_text2{width: 100%;height: .5rem;margin-top:.17rem;font-size: .4rem;font-weight: bold;color: #313131;line-height: .5rem;text-align: center;}
+.success_next_ercode{width: 2.6rem;height: 2.6rem;margin:0 auto;margin-top:.51rem;text-align:center;line-height:2.68rem;overflow:hidden;}
+.success_next_ercode img{width: 100%;-webkit-touch-callout: none;}
+.success_next_text3{width: 100%;height: .5rem;margin-top:.5rem;font-size: .38rem;font-weight: bold;color: #EA3844;line-height: .5rem;text-align: center;}
+.success_next_text3 img{width:55%;}
+@media screen and (max-width:320px){
+    html{font-size:10px;}
+}
+@media screen and (min-width:321px)and(max-width:750px){
+    html{font-size:12px;}
+}
+@media screen and (min-width:751px){
+    html{font-size:14px;}
+}

+ 2 - 1
src/main/resources/static/extension/js/activity.js

@@ -127,7 +127,8 @@ $(function () {
         ansyc: false,
         data: {
           phoneNum: _tel,
-          msgCode: code
+          msgCode: code,
+          type:type
         },
         success:function(data) {
           if(data && data.code == 999){

+ 252 - 0
src/main/resources/static/extension/js/layer_mobile/activity2.js

@@ -0,0 +1,252 @@
+$(function () {
+  var _tel, _vfy
+  let timer, count = 59
+
+  const CHECKBXOX_SELECTOR = 'input[type="radio"]'
+  const exerciseBookList = $('.select_wrokbook_content_con .select_dlist_box') // 练习册tabs
+  let accessToken,userStatus,userState
+
+  // 弹出练习册选择页
+  $('#wrap_footer_btn').click(function (event) {
+    $('.wrap_select').show();
+    // 清空原选择
+    $('#telphone').val('');
+    $('#verify').val('');
+
+    _tel = $('#telphone').val()
+    if (_tel != '') {
+      $('.select_register_yzm_tip2').hide();
+      $('.select_register_yzm_tip1').show();
+    }else{
+      $('.select_register_yzm_tip1').hide();
+      $('.select_register_yzm_tip2').show();
+    }
+    $("#telphone").focus(function(){
+      $('.select_register_yzm_tip2').hide();
+      $('.select_register_yzm_tip1').show();
+    });
+    $("#telphone").blur(function(){
+      _tel = $('#telphone').val();
+      if (!phoneVerify(_tel)) {
+        layerNotify('手机号格式错误!', 1.52)
+        return false
+      }
+    })
+    //点击获取验证码
+    $('#sendyzm').click(function () {
+      const sendButton = $('#sendyzm');
+      _tel = $('#telphone').val();
+      if (_tel === '') {
+        layerNotify('请输入手机号码', 1.38)
+        return false
+      }
+      if (!phoneVerify(_tel)) {
+        layerNotify('手机号格式错误!', 1.52)
+        return false
+      }
+
+      if (_tel) {
+        $('.select_register_yzm_tip2').hide();
+        $('.select_register_yzm_tip1').show();
+       // 发起Ajax请求
+        $.ajax({
+          url: sysUrl+"/weixin/activity/sendCode",
+          type: "post",
+          dataType: "json",
+          ansyc: false,
+          data: {
+            phoneNum: _tel
+          },
+          success:function(data) {
+            if(data && data.code == 999){
+              layerNotify('验证码发送成功!',2)
+              sendButton.prop('disabled', true)
+              $('#sendyzm').html('重新发送(' + count + ')')
+              timer = setInterval(function () {
+                $('#sendyzm').html('重新发送(' + --count + ')')
+                if (!count) {
+                  count = 59
+                  sendButton.prop('disabled', false)
+                  $('#sendyzm').html('重新发送')
+                  clearInterval(timer)
+                }
+              }, 1000)
+            }else{
+              layerNotify(data.msg, 3)
+            }
+          },
+          error: function (error) {
+            console.log(error)
+          }
+        })
+      }
+
+    })
+  });
+
+  // 切换科目
+  $('#select_tlist_ul li').click(function(){
+    var index = $('#select_tlist_ul li').index(this);
+    $(this).addClass('ton').siblings().removeClass('ton');
+    $('.select_wrokbook_content_con div.select_dlist_box').eq(index).show().siblings().hide();
+  });
+
+  $('.select_wrokbook_content_con').on('click', ({ target }) => {
+    // console.log(target)
+    // 点击练习册的复选框
+    if (target.tagName === 'INPUT' && target.type === 'radio') {
+      const currentCheckedLength = $(CHECKBXOX_SELECTOR + ':checked').length
+      // console.log($(target).val());
+      console.log(currentCheckedLength);
+      if(currentCheckedLength == 3 && codeCheck){
+        $('.select_payment_btn').prop('disabled', false)
+      }else{
+        $('.select_payment_btn').prop('disabled', true)
+      }
+    }
+  });
+
+  $('#verify').bind('input propertychange', function() {
+    checkCode();
+  });
+
+  function checkCode(){
+    var code = $("#verify").val();
+
+    _tel = $('#telphone').val();
+    if(_tel == ''){
+      layerNotify('请输入电话号码!',2)
+      return;
+    }
+    if(code.length===6){
+      $("#verify").unbind();
+      $.ajax({
+        url: sysUrl+"/weixin/activity/checkCode",
+        type: "post",
+        dataType: "json",
+        ansyc: false,
+        data: {
+          phoneNum: _tel,
+          msgCode: code,
+          type:type
+        },
+        success:function(data) {
+          if(data && data.code == 999){
+            layerNotify('验证码正确!')
+            codeCheck = true;
+            const currentCheckedLength = $(CHECKBXOX_SELECTOR + ':checked').length
+            if(currentCheckedLength == 3){
+              $('.select_payment_btn').prop('disabled', false);
+            }
+          }else{
+            layerNotify(data.msg,3)
+          }
+          $("#verify").bind('input propertychange',function () {
+            checkCode();
+          });
+        },
+        error: function (error) {
+          console.log(error)
+          $("#verify").bind('input propertychange',function () {
+            checkCode();
+          });
+        }
+      })
+    }
+
+  }
+  //点击 免费报名
+  $('.select_payment_btn').click(function () {
+
+    const selectedValues = doGetCheckedIds()
+    const currentCheckedLength = $(CHECKBXOX_SELECTOR + ':checked').length
+    if(currentCheckedLength<1){
+      return layerNotify('请至少选择一个练习册', 1.8)
+    }
+    console.log(selectedValues);
+    pay(selectedValues);
+  })
+
+  //获取数据函数
+  function doGetCheckedIds() {
+    const _cacheData = {
+      type: type,
+      list: []
+    }
+
+    exerciseBookList.each((i, item) => {
+      _cacheData.list[i] = {
+        subject: item.dataset.subject,
+        bookList: [...$(item).find('input[type="checkbox"]:checked').map((_, it) => it.value)]
+      }
+    })
+    return _cacheData
+  }
+
+  function layerNotify(content, time = 2) {
+    parent.layer.open({
+      skin: 'msg',
+      content,
+      time,
+    })
+  }
+
+  function phoneVerify(da) {
+    var myreg = /^1[3456789]\d{9}$/
+    return myreg.test(da)
+  }
+
+  function pay(selectedValues) {
+    var know = '19.9体验活动';
+    var details="小塾学伴19.9体验活动";
+    $('.select_payment_btn').prop('disabled', true)
+    $.ajax({
+      url :  sysUrl+"/weixin/payment/payService",
+      type : 'post',
+      data : {
+        'salesPriceId':salesPriceId,//购买类型id
+        'number':1,//数量
+        'libId' :libId,
+        'know' : know,
+        'details' : details,
+        'phone':$('#telphone').val(),
+        'school':JSON.stringify(selectedValues),
+        'isBuy':1,
+        'vipStatus':1
+      },
+      dataType: 'json',
+      success: function(data){
+        if(data && data.code == 999){
+          var payInfo = eval(data.data); //数组
+          var orderNo=payInfo.orderNo;
+          WeixinJSBridge.invoke('getBrandWCPayRequest',{
+            "appId" : payInfo.appId,                  //公众号名称,由商户传入
+            "timeStamp": payInfo.timeStamp,          //时间戳,自 1970 年以来的秒数
+            "nonceStr" : payInfo.nonceStr,         //随机串
+            "package" : payInfo.packageValue,      //商品包信息
+            "signType" : payInfo.signType,        //微信签名方式'MD5'
+            "paySign" : payInfo.paySign           //微信签名
+          },function(res){
+            if(res.err_msg == "get_brand_wcpay_request:ok" ) {
+
+              $('.wrap_select').hide();
+              $('#wrap_success'+type).show();
+              // document.getElementById('success_img_id').setAttribute("src",imgurl+"/activity/images/qrcode"+type+".png");
+
+              // $("#success_img_id").attr("src",imgurl + "/activity/images/qrcode"+type+".png");
+            }else{
+              $('.select_payment_btn').prop('disabled', false)
+            }
+          });
+        }else{
+          layerNotify("数据加载失败,请稍后再试!","2");
+          $('.select_payment_btn').prop('disabled', false)
+        }
+      },
+      error: function(XMLHttpRequest,textStatus,errorThrown) {
+        layerNotify("网络或系统故障,请稍后再试!","2");
+        $('.select_payment_btn').prop('disabled', false)
+      }
+    });
+  }
+})

+ 133 - 5
src/main/resources/templates/weixin/vip/extension/index.html

@@ -1,13 +1,21 @@
 <!DOCTYPE html>
 <html lang="en" xmlns:th="http://www.thymeleaf.org">
-
+<script>
+	var _hmt = _hmt || [];
+	(function() {
+		var hm = document.createElement("script");
+		hm.src = "https://hm.baidu.com/hm.js?386bd73a165fad21c9b5d0f0ef5d4d22";
+		var s = document.getElementsByTagName("script")[0];
+		s.parentNode.insertBefore(hm, s);
+	})();
+</script>
 <head>
 	<meta charset="utf-8">
 	<meta name="viewport"
 		content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
 	<title>小塾学伴</title>
 	<link rel="icon" th:href="@{/static/extension/favicon.ico}" type="image/x-icon" />
-	<link href="activity/index.css" type="text/css" th:href="@{/static/extension/css/style.css?version=16}" rel="stylesheet"/>
+	<link href="activity/index.css" type="text/css" th:href="@{/static/extension/css/style.css?version=18}" rel="stylesheet"/>
 	<script src="./js/jquery.js" th:src="@{/static/extension/js/layer_mobile/layer.js?version=2}"></script>
 
 	<script src="js/jquery.form.min.js" th:src="@{/static/extension/js/jquery.min.js}"></script>
@@ -38,7 +46,7 @@
 					<div class="index_pic index_pic3"></div>
 					<div class="index_pic index_pic4"></div>
 					<div class="index_pic index_pic5"></div>
-					<div class="index_pic index_pic6"></div>
+<!--					<div class="index_pic index_pic6"></div>-->
 					<div class="index_pic index_pic7"></div>
 	<!--				<div class="index_pic index_pic8"></div>-->
 	<!--				<div class="index_pic index_pic9"></div>-->
@@ -48,6 +56,7 @@
 			<div class="wrap_footer">
 				<div class="pa wrap_footer_icon"><a href="https://im.7x24cc.com/phone_webChat.html?accountId=N000000015632&chatId=e42d388a-85ae-4d6c-b1e3-4fbd149d2011">
 						<img th:src="@{/static/extension/images/index_icon.png}" alt="客服" />
+						<span>客服</span>
 				</a></div>
 				<div class="pa wrap_footer_btn" id="wrap_footer_btn">
 					<h3>¥<span>19.9</span>元</h3>
@@ -312,10 +321,129 @@
 				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
 			</div>
 		</div>
+		<!-- 成功页面9 -->
+		<div class="pa wrap_success" id="wrap_success9">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode9.png"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面10 -->
+		<div class="pa wrap_success" id="wrap_success10">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode10.png"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面11 -->
+		<div class="pa wrap_success" id="wrap_success11">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode11.jpg"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面12 -->
+		<div class="pa wrap_success" id="wrap_success12">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode12.jpg"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面13 -->
+		<div class="pa wrap_success" id="wrap_success13">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode13.jpg"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面14 -->
+		<div class="pa wrap_success" id="wrap_success14">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode14.jpg"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面15 -->
+		<div class="pa wrap_success" id="wrap_success15">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode15.png"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面16 -->
+		<div class="pa wrap_success" id="wrap_success16">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode16.png"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+		<!-- 成功页面17 -->
+		<div class="pa wrap_success" id="wrap_success17">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">长按识别二维码,加老师微信</p>
+				<p class="success_next_text2">开启5天打卡学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode17.png"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">你离奖品只差最后一步啦!</p>
+			</div>
+		</div>
+
 	</div>
 </body>
 <script type="text/javascript">
-	(function (doc, win) {
+
+(function (doc, win) {
 		var html = doc.getElementsByTagName("html")[0],
 			reEvt = "orientationchange" in win ? "orientationchange" : "resize",
 			reFontSize = function () {
@@ -396,7 +524,7 @@
 					var title="小塾学伴19.9元体验限时抢";
 					// var imgUrl='http://aikmt.sharingschool.com/H5/H5_brand/images/title.png';
 					var imgUrl='https://aikmt.sharingschool.com/H5/H5_brand/images/title.png';
-					var desc ="小学生作业管理神器19.9元立抢!无锡家长专享";
+					var desc ="期末冲刺提升,就用小塾学伴!无锡家长专享";
 					var link = "https://book.sharingschool.com/weixin/payment/index.html?type="+type;
 					wx.ready(function () {
 						// 2. 分享接口

+ 373 - 0
src/main/resources/templates/weixin/vip/extension/index2.html

@@ -0,0 +1,373 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:th="http://www.thymeleaf.org">
+<script>
+	var _hmt = _hmt || [];
+	(function() {
+		var hm = document.createElement("script");
+		hm.src = "https://hm.baidu.com/hm.js?386bd73a165fad21c9b5d0f0ef5d4d22";
+		var s = document.getElementsByTagName("script")[0];
+		s.parentNode.insertBefore(hm, s);
+	})();
+</script>
+<head>
+	<meta charset="utf-8">
+	<meta name="viewport"
+		content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
+	<title>小塾学伴</title>
+	<link rel="icon" th:href="@{/static/extension/favicon.ico}" type="image/x-icon" />
+	<link href="activity/index.css" type="text/css" th:href="@{/static/extension/css/style2.css?version=6}" rel="stylesheet"/>
+	<script src="./js/jquery.js" th:src="@{/static/extension/js/layer_mobile/layer.js?version=2}"></script>
+
+	<script src="js/jquery.form.min.js" th:src="@{/static/extension/js/jquery.min.js}"></script>
+	<script src="js/flexible.js" th:src="@{/static/extension/js/layer_mobile/activity2.js?version=3}"></script>
+	<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
+
+	<script type="text/javascript">
+		var sysUrl = '[[${sysUrl}]]';
+		var imgUrl = '[[${imgUrl}]]';
+	</script>
+</head>
+
+<body>
+	<div id="container" class="wrap">
+		<div class="pr wrap_inner">
+			<div class="wrap_header">
+				<div class="wrap_index">
+					<div class="index_pic index_pic1">
+						<img src="https://img.sharingschool.com/activity/images/index_a11.png?v=1" alt="">
+						<div class="pa index_pic1_marquee" id="index_pic1_marquee">
+							<ul class="mUl">
+							</ul>
+						</div>
+					</div>
+					<div class="index_pic index_pic2">
+						<img src="https://img.sharingschool.com/activity/images/index_a21.png?v=1" alt="">
+					</div>
+					<div class="index_pic index_pic3">
+						<img src="https://img.sharingschool.com/activity/images/index_a31.png?v=1" alt="">
+					</div>
+					<div class="index_pic index_pic4">
+						<img src="https://img.sharingschool.com/activity/images/index_long1.png?v=1" alt="">
+					</div>
+					<div class="index_pic index_pic5">
+						<img src="https://img.sharingschool.com/activity/images/index_a71.png?v=1" alt="">
+					</div>
+					<div class="index_pic index_pic6">
+						<img src="https://img.sharingschool.com/activity/images/index_a81.png?v=1" alt="">
+					</div>
+					<div class="index_pic index_pic7">
+						<img src="https://img.sharingschool.com/activity/images/index_a91.png?v=1" alt="">
+					</div>
+				</div>
+			</div>
+			<div class="wrap_footer">
+				<div class="pa wrap_footer_icon"><a href="https://im.7x24cc.com/phone_webChat.html?accountId=N000000015632&chatId=e42d388a-85ae-4d6c-b1e3-4fbd149d2011">
+						<img th:src="@{/static/extension/images/index_icon.png}" alt="客服" />
+						<span>客服</span>
+				</a></div>
+				<div class="pa wrap_footer_btn" id="wrap_footer_btn">
+					<h3>¥<span>149.9</span>元</h3>
+					<p>立即报名</p>
+					<div class="pa wrap_footer_btn_tip">30天不满意就退款</div>
+				</div>
+			</div>
+		</div>
+		<!-- 练习册 -->
+		<div class="pa wrap_select" id="wrap_select">
+			<div class="wrap_select_top">
+			<div class="wrap_select_register">
+				<div class="select_register_tel">
+					<span>手机号</span><input type="text" name="telphone" id="telphone" maxlength="11" autocomplete="off" placeholder="请输入手机号" />
+					<div class="select_register_yzm_tip1"><i></i>手机号加密</div>
+					<div class="select_register_yzm_tip2"><i></i>手机号加密,仅用于老师督学</div>
+				</div>
+				<div class="select_register_yzm">
+					<span>验证码</span><input type="text" name="verify" id="verify" maxlength="6" autocomplete="off" placeholder="请输入验证码" />
+					<div class="select_register_yzm_btn" id="sendyzm">获取验证码</div>
+				</div>
+			</div>
+			<div class="wrap_select_workbook" id="wrap_select_workbook">
+				<div class="select_wrokbook_title">
+					<p>选择练习册<span>(每科只能选择1本)</span></p>
+				</div>
+				<div class="select_wrokbook_content">
+					<div class="select_wrokbook_content_tit">
+						<ul id="select_tlist_ul">
+							<li class="ton">语文</li>
+							<li>数学</li>
+							<li>英语</li>
+						</ul>
+					</div>
+					<div class="select_wrokbook_content_con">
+						<div class="select_dlist_box select_dlist_box1" data-subject="语文" id="select_dlist_box1">
+							<ul>
+								<li>
+									<input type="radio" name="ywlxc" value="补充习题">
+									<span class="select_dlist_name">补充习题</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="53天天练">
+									<span class="select_dlist_name">53天天练</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="全品学练考">
+									<span class="select_dlist_name">全品学练考</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="阳光同学优化作业本">
+									<span class="select_dlist_name">阳光同学优化作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="实验班提优训练">
+									<span class="select_dlist_name">实验班提优训练</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="练习与测试小学语文">
+									<span class="select_dlist_name">练习与测试小学语文</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="亮点给力大试卷">
+									<span class="select_dlist_name">亮点给力大试卷</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="课时作业本">
+									<span class="select_dlist_name">课时作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="黄冈小状元作业本" />
+									<span class="select_dlist_name">黄冈小状元作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="学霸">
+									<span class="select_dlist_name">学霸</span>
+								</li>
+								<li>
+									<input type="radio" name="ywlxc" value="全易通">
+									<span class="select_dlist_name">全易通</span>
+								</li>
+							</ul>
+						</div>
+						<div class="select_dlist_box select_dlist_box2" data-subject="数学" id="select_dlist_box2">
+							<ul>
+								<li>
+									<input type="radio" name="sxlxc" value="阳光同学优化作业">
+									<span class="select_dlist_name">阳光同学优化作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="小学数学计算能手">
+									<span class="select_dlist_name">小学数学计算能手</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="练习与测试小学数">
+									<span class="select_dlist_name">练习与测试小学数学</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="黄冈小状元作业本">
+									<span class="select_dlist_name">黄冈小状元作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="金3练">
+									<span class="select_dlist_name">金3练</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="全品学练考">
+									<span class="select_dlist_name">全品学练考</span>
+								</li>
+
+								<li>
+									<input type="radio" name="sxlxc" value="亮点给力大试卷">
+									<span class="select_dlist_name">亮点给力大试卷</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="全易通">
+									<span class="select_dlist_name">全易通</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="课时作业本">
+									<span class="select_dlist_name">课时作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="实验班提优训练">
+									<span class="select_dlist_name">实验班提优训练</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="学霸">
+									<span class="select_dlist_name">学霸</span>
+								</li>
+
+								<li>
+									<input type="radio" name="sxlxc" value="补充习题">
+									<span class="select_dlist_name">补充习题</span>
+								</li>
+								<li>
+									<input type="radio" name="sxlxc" value="53天天练">
+									<span class="select_dlist_name">53天天练</span>
+								</li>
+							</ul>
+						</div>
+						<div class="select_dlist_box select_dlist_box3" data-subject="英语" id="select_dlist_box3">
+							<ul>
+								<li>
+									<input type="radio" name="yylxc" value="学霸">
+									<span class="select_dlist_name">学霸</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="课时作业本">
+									<span class="select_dlist_name">课时作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="黄冈小状元作业本">
+									<span class="select_dlist_name">黄冈小状元作业本</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="课课练小学英语">
+									<span class="select_dlist_name">课课练小学英语</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="高分拔尖提优训练">
+									<span class="select_dlist_name">高分拔尖提优训练</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="53天天练">
+									<span class="select_dlist_name">53天天练</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="实验班提优训练">
+									<span class="select_dlist_name">实验班提优训练</span>
+								</li>
+								<li>
+									<input type="radio" name="yylxc" value="补充习题">
+									<span class="select_dlist_name">补充习题</span>
+								</li>
+							</ul>
+						</div>
+					</div>
+				</div>
+			</div>
+			</div>
+			<div class="wrap_select_payment">
+				<p><span>¥</span>149.9</p>
+				<button class="select_payment_btn" disabled="disabled">确认支付</button>
+			</div>
+		</div>
+
+		<!-- 成功页面15 -->
+		<div class="pa wrap_success" id="wrap_success15">
+			<div class="success_toppic">
+				<div class="success_toppic_tick"></div>
+				<p>报名成功</p>
+			</div>
+			<div class="success_baibox">
+				<p class="success_next_text1">扫码添加微信</p>
+				<p class="success_next_text2">开启高效学习之旅</p>
+				<div class="success_next_ercode"><img src="https://img.sharingschool.com/activity/images/qrcode15.png"  alt="小私塾二维码"/></div>
+				<p class="success_next_text3">
+					<img src="https://img.sharingschool.com/activity/images/trips.png" alt="">
+				</p>
+			</div>
+		</div>
+	</div>
+</body>
+<script type="text/javascript">
+
+(function (doc, win) {
+		var html = doc.getElementsByTagName("html")[0],
+			reEvt = "orientationchange" in win ? "orientationchange" : "resize",
+			reFontSize = function () {
+				var clientW = doc.documentElement.clientWidth || doc.body.clientWidth;
+				if (!clientW) {
+					return;
+				}
+				html.style.fontSize = 100 * (clientW / 750) + "px";
+			}
+		win.addEventListener(reEvt, reFontSize);
+		doc.addEventListener("DOMContentLoaded", reFontSize);
+	})(document, window);
+	$(function(){
+		jssdk();
+	});
+	var codeCheck = false;
+	var libId = '[[${libId}]]';
+	var type = '[[${type}]]';
+	var salesPriceId ='[[${salesPrice.id}]]';
+
+	function  jssdk(){
+		$.ajax({
+			url : "https://book.sharingschool.com/weixin/question/wxjssdk",
+			type : 'post',
+			dataType : 'json',
+			crossDomain: true,
+			data : {
+				'url' : location.href.split('#')[0]
+			},
+			success : function(data) {
+				if(data && data.code == 999){
+					wx.config({
+						debug : false,
+						appId : data.data.appId,
+						timestamp : data.data.timestamp,
+						nonceStr : data.data.noncestr,
+						signature : data.data.signature,
+						jsApiList : [
+							'onMenuShareAppMessage',
+							'onMenuShareTimeline'
+						]
+					});
+					var title="小塾学伴高效学习特训营";
+					var imgUrl='https://aikmt.sharingschool.com/H5/H5_brand/images/title.png';
+					var desc ="养成学习好习惯,就用小塾学伴!30天不满意就退款";
+					var link = "https://book.sharingschool.com/weixin/payment/index.html?type="+type;
+					wx.ready(function () {
+						// 2. 分享接口
+						// 2.1 监听“分享给朋友”,按钮点击、自定义分享内容及分享结果接口
+						wx.onMenuShareAppMessage({
+							title: title,
+							desc: desc,
+							link:link,
+							imgUrl: imgUrl,
+
+							trigger: function (res) {
+								// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
+							},
+							success: function (res) {
+
+							},
+							cancel: function (res) {
+
+							},
+							fail: function (res) {
+								alert(JSON.stringify(res));
+							}
+						});
+
+
+						// 2.2 监听“分享到朋友圈”按钮点击、自定义分享内容及分享结果接口
+						wx.onMenuShareTimeline({
+							title: title,
+							link:link,
+							imgUrl: imgUrl,
+							trigger: function (res) {
+								// 不要尝试在trigger中使用ajax异步请求修改本次分享的内容,因为客户端分享操作是一个同步操作,这时候使用ajax的回包会还没有返回
+							},
+							success: function (res) {
+
+							},
+							cancel: function (res) {
+
+							},
+							fail: function (res) {
+								$.toast(JSON.stringify(res),"cancel");
+							}
+						});
+
+					});
+
+					wx.error(function (res) {
+						$.toast(res.errMsg,"cancel");
+					});
+				}
+			}
+		});
+	}
+</script>
+</html>