|
@@ -255,6 +255,7 @@ function getcheck() {
|
|
|
if ($radio.data('waschecked') == true) {
|
|
|
$radio.prop('checked', false);
|
|
|
$("input:radio[name='" + domName + "']").data('waschecked', false);
|
|
|
+ $radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.radio_type').attr("disabled", false);
|
|
|
$radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('label').css("color", "#666666");
|
|
|
$radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.item-titles').css("color", "#333333");
|
|
|
if (isclick) {
|
|
@@ -353,6 +354,7 @@ function getResult(pushInfo) {
|
|
|
let proposal = ''
|
|
|
let proposals = []
|
|
|
let scrollTop = []
|
|
|
+ let v
|
|
|
isclick = true
|
|
|
$(".contentList").each(function (i) {
|
|
|
if ($(this).find('input[type="radio"]:checked').val() == undefined && $(this).find('.radio_type').attr('disabled') == undefined) {
|
|
@@ -367,10 +369,16 @@ function getResult(pushInfo) {
|
|
|
}
|
|
|
scrollTop.push($(this).eq(0).find(".chColor").offset())
|
|
|
});
|
|
|
- // var v = scrollTop.indexOf(undefined)
|
|
|
- // if (v) {
|
|
|
- // $(`.scale .infos`).scrollTop(v.top + 346)
|
|
|
- // }
|
|
|
+
|
|
|
+ for (var i = 0; i < scrollTop.length; i++) {
|
|
|
+ if (scrollTop[i] != undefined){
|
|
|
+ v = scrollTop[i]
|
|
|
+ break
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (v) {
|
|
|
+ $(`.scale .infos`).scrollTop(v.top + 346)
|
|
|
+ }
|
|
|
if (!$(".contentList").find(".item-title").hasClass('chColor') && !$(".contentList").find(".item-titles").hasClass('chColor')) {
|
|
|
$('input[type="radio"]:checked').each(function () {
|
|
|
if ($(this).attr("resultType") == 1) {
|