|
@@ -255,12 +255,14 @@ function getcheck() {
|
|
const domName = $(this).attr('name');
|
|
const domName = $(this).attr('name');
|
|
const $radio = $(this);
|
|
const $radio = $(this);
|
|
const id = $(this).parents('.contentList').data("id");
|
|
const id = $(this).parents('.contentList').data("id");
|
|
|
|
+ console.log($radio.data('waschecked'))
|
|
if ($radio.data('waschecked') == true) {
|
|
if ($radio.data('waschecked') == true) {
|
|
- $radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.radio_type').attr("disabled", false);
|
|
|
|
|
|
+ // $radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.radio_type').attr("disabled", false);
|
|
if (isclick) {
|
|
if (isclick) {
|
|
getchecks()
|
|
getchecks()
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
|
|
+ $radio.data('waschecked', true);
|
|
$radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.radio_type').attr("disabled", true);
|
|
$radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.radio_type').attr("disabled", true);
|
|
if (isclick) {
|
|
if (isclick) {
|
|
getchecks()
|
|
getchecks()
|
|
@@ -338,9 +340,11 @@ function getResult(pushInfo, textType) {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
tmp = arr.join(";");
|
|
tmp = arr.join(";");
|
|
|
|
+
|
|
if (pushInfo.length > 0) {
|
|
if (pushInfo.length > 0) {
|
|
for (var i = 0; i < pushInfo.length; i++) {
|
|
for (var i = 0; i < pushInfo.length; i++) {
|
|
if (pushInfo[i].content.max >= num && num >= pushInfo[i].content.min) {
|
|
if (pushInfo[i].content.max >= num && num >= pushInfo[i].content.min) {
|
|
|
|
+
|
|
if (tmp) {
|
|
if (tmp) {
|
|
if (num == 0) {
|
|
if (num == 0) {
|
|
result = pushInfo[i].result + ';' + tmp
|
|
result = pushInfo[i].result + ';' + tmp
|
|
@@ -368,6 +372,15 @@ function getResult(pushInfo, textType) {
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ if (tmp) {
|
|
|
|
+ result = tmp
|
|
|
|
+ $(".result").css('display', 'block')
|
|
|
|
+ $(".copy").css('display', 'block')
|
|
|
|
+ } else {
|
|
|
|
+ $(".result").css('display', 'none')
|
|
|
|
+ $(".copy").css('display', 'none')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
$(".result_title").attr({
|
|
$(".result_title").attr({
|
|
"title": result
|
|
"title": result
|