|
@@ -195,6 +195,20 @@
|
|
|
-webkit-transform: scaleY(.5);
|
|
|
transform: scaleY(.5);
|
|
|
}
|
|
|
+ .easyalert {
|
|
|
+ position: fixed;
|
|
|
+ background-color: rgba(0,0,0,0.7);
|
|
|
+ top: 50%;
|
|
|
+ color: #fff;
|
|
|
+ z-index: 999;
|
|
|
+ border-radius: 6px;
|
|
|
+ padding: 17px 20px;
|
|
|
+ font-size: 15px;
|
|
|
+ line-height: 22px;
|
|
|
+ max-width: 260px;
|
|
|
+ text-align: center;
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
</style>
|
|
|
<script>
|
|
|
var pay_way="wx_app";
|
|
@@ -331,40 +345,7 @@
|
|
|
onek='<div class="item-list"><label>关键词:</label><ul class="item-list-parents"><li class="keywords">-</li></ul></div><div class="item-list"><label>附加词:</label><ul class="item-list-parents"><li class="appended">-</li></ul></div><div class="item-list"><label>排除词:</label><ul class="item-list-parents"><li class="exclude">-</li></ul></div>'
|
|
|
}
|
|
|
$("#keywords").append(onek);
|
|
|
-// keywordsHtml ="";
|
|
|
-// appendedHtml ="";
|
|
|
-// excludeHtml ="";
|
|
|
-// if (keywords && keywords.length>0){
|
|
|
-// for (var i=0;i<keywords.length;i++){
|
|
|
-// var keywordObj = keywords[i];
|
|
|
-// //关键词
|
|
|
-// var word = keywordObj["keyword"];
|
|
|
-// //附加词
|
|
|
-// var appended = keywordObj["appended"];
|
|
|
-// var appendedStr =""+appended;
|
|
|
-// var reg = RegExp(/,/);
|
|
|
-// if(appendedStr.match(reg)){
|
|
|
-// appendedStr=appendedStr.replace(/,/g," ");
|
|
|
-// }
|
|
|
-// //排除词
|
|
|
-// var exclude = keywordObj["exclude"];
|
|
|
-// var excludeStr =exclude+"";
|
|
|
-// if(excludeStr.match(reg)){
|
|
|
-// excludeStr=excludeStr.replace(/,/g," ");
|
|
|
-// }
|
|
|
-// keywordsHtml +="<span>" + word + " </span>";
|
|
|
-// appendedHtml +="<span>" + appendedStr + " </span>";
|
|
|
-// excludeHtml +="<span>" + excludeStr + " </span>";
|
|
|
-// }
|
|
|
-// }else{
|
|
|
-// keywordsHtml +="<p></p>";
|
|
|
-// appendedHtml +="<p></p>";
|
|
|
-// excludeHtml +="<p></p>";
|
|
|
-// }
|
|
|
-// $(".keywords").append(keywordsHtml);
|
|
|
-// $(".appended").append(appendedHtml);
|
|
|
-// $(".exclude").append(excludeHtml);
|
|
|
-
|
|
|
+
|
|
|
var priceHtml = "";
|
|
|
if(price){
|
|
|
priceHtml += "<span>" + price + "</span>";
|
|
@@ -427,14 +408,14 @@
|
|
|
$(".person_").hide()
|
|
|
$(".invoiceP").hide();
|
|
|
$(".person").show();
|
|
|
- if(sessionStorage.taxNumer!=""){
|
|
|
+ if((sessionStorage.taxNumer!="")&&(sessionStorage.type=="danwei")){
|
|
|
$(".notpersontaitou").show();
|
|
|
$(".persontaitou").hide();
|
|
|
$(".company").text("单位名称:"+sessionStorage.companyName);
|
|
|
$(".company").show();
|
|
|
$(".tax").text("纳税人识别号:"+sessionStorage.taxNumer);
|
|
|
$(".tax").show();
|
|
|
- }else{
|
|
|
+ }else if(sessionStorage.type=="geren"){
|
|
|
$(".persontaitou").show();
|
|
|
}
|
|
|
sessionStorage.removeItem("applysuccess");
|
|
@@ -453,8 +434,10 @@
|
|
|
$('input:radio[name="way"]').click(function() {
|
|
|
var checkValue = $('input:radio[name="way"]:checked').val();
|
|
|
if(checkValue=="微信支付"){
|
|
|
+ localStorage.setItem($(".param_id").text(),"wx");
|
|
|
pay_way="wx_app";
|
|
|
}else{
|
|
|
+ localStorage.setItem($(".param_id").text(),"ali");
|
|
|
pay_way="ali_app";
|
|
|
}
|
|
|
});
|
|
@@ -519,10 +502,12 @@
|
|
|
$(".param_id").text(param_id);
|
|
|
if(localStorage.getItem(param_id)=="wx"){
|
|
|
$("#wx").attr("checked",true);
|
|
|
+ $("#zfb").attr("checked",false);
|
|
|
pay_way="wx_app";
|
|
|
}else if(localStorage.getItem(param_id)=="ali"){
|
|
|
- pay_way="ali_app";
|
|
|
$("#zfb").attr("checked",true);
|
|
|
+ $("#wx").attr("checked",false);
|
|
|
+ pay_way="ali_app";
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -545,6 +530,36 @@
|
|
|
return n+n2;
|
|
|
}
|
|
|
|
|
|
+ //提示框
|
|
|
+ var EasyAlert = {
|
|
|
+ timeout: null,
|
|
|
+ waitTime: 1000,
|
|
|
+ show: function(text, css, waitTime) {
|
|
|
+ if (this.timeout != null) {
|
|
|
+ clearTimeout(this.timeout);
|
|
|
+ this.hide();
|
|
|
+ this.timeout = null;
|
|
|
+ }
|
|
|
+ var thisClass = this;
|
|
|
+ this.timeout = setTimeout(function() {
|
|
|
+ thisClass.hide();
|
|
|
+ thisClass.timeout = null;
|
|
|
+ }, waitTime ? waitTime : this.waitTime);
|
|
|
+ $("body").append('<div class="easyalert" id="easyAlert">' + text + '</div>');
|
|
|
+ $("#easyAlert").css({
|
|
|
+ "left": "50%",
|
|
|
+ "margin-top": -($("#easyAlert").outerHeight() / 2),
|
|
|
+ "margin-left": -($("#easyAlert").outerWidth() / 2)
|
|
|
+ }).show();
|
|
|
+ },
|
|
|
+ hide: function() {
|
|
|
+ $("#easyAlert").remove();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //
|
|
|
+ function showToast (content) {
|
|
|
+ EasyAlert.show(content,"",3000);
|
|
|
+ }
|
|
|
</script>
|
|
|
<div class="app-layout-header">
|
|
|
<span class="app-back jyapp-icon jyapp-icon-zuojiantou"></span>
|