|
@@ -15,8 +15,7 @@ const {
|
|
|
config,
|
|
|
getUrlArgObject,
|
|
|
openNewWin,
|
|
|
- Toast,
|
|
|
- Toasts
|
|
|
+ Toast
|
|
|
} = require('./promise.js');
|
|
|
const $ = require("jquery");
|
|
|
require("./jquery-migrate");
|
|
@@ -248,7 +247,6 @@ function getcheck() {
|
|
|
$radio.parents('.contentList').siblings(".contentList[data-id='" + id + "']").find('.radio_type').attr("disabled", true);
|
|
|
if (isclick) {
|
|
|
getchecks()
|
|
|
- console.log(11)
|
|
|
$(".score").html('');
|
|
|
$(".result_title").html('');
|
|
|
$(".result").css('display', 'none')
|
|
@@ -288,7 +286,7 @@ function copy(name) {
|
|
|
$(".copy").click(function () {
|
|
|
var texts = document.getElementById("result_title").innerText;
|
|
|
if (texts == '') {
|
|
|
- Toast('结果为空,无法复制', 500)
|
|
|
+ Toast('结果为空,无法复制', 500, 'warn')
|
|
|
return
|
|
|
}
|
|
|
var inputs = document.getElementById("inputs");
|
|
@@ -296,10 +294,10 @@ function copy(name) {
|
|
|
console.log(inputs.value)
|
|
|
inputs.select(); // 选中文本
|
|
|
document.execCommand("copy"); // 执行浏览器复制命令
|
|
|
- Toast('复制成功', 500)
|
|
|
- setTimeout(() => {
|
|
|
- window.close()
|
|
|
- }, 500)
|
|
|
+ Toast('复制成功', 500000000, 'success')
|
|
|
+ // setTimeout(() => {
|
|
|
+ // window.close()
|
|
|
+ // }, 500)
|
|
|
|
|
|
})
|
|
|
|
|
@@ -328,6 +326,7 @@ function getResult(pushInfo, textType) {
|
|
|
let result
|
|
|
let key = false
|
|
|
let proposal = ''
|
|
|
+ isclick = true
|
|
|
$(".contentList").each(function (i) {
|
|
|
if ($(this).find('input[type="radio"]:checked').val() == undefined && $(this).find('.radio_type').attr('disabled') == undefined) {
|
|
|
$(this).find(".item-title").addClass('chColor');
|
|
@@ -341,7 +340,6 @@ function getResult(pushInfo, textType) {
|
|
|
}
|
|
|
});
|
|
|
if (!$(".contentList").find(".item-title").hasClass('chColor') && !$(".contentList").find(".item-titles").hasClass('chColor')) {
|
|
|
- isclick = true
|
|
|
$('input[type="radio"]:checked').each(function () {
|
|
|
if (!isNaN($(this).val())) {
|
|
|
num += parseFloat($(this).val())
|
|
@@ -359,7 +357,6 @@ function getResult(pushInfo, textType) {
|
|
|
});
|
|
|
|
|
|
if (multarr.join("、")){
|
|
|
- console.log(1)
|
|
|
arr.push(multname + multarr.join("、"))
|
|
|
}
|
|
|
console.log(arr)
|
|
@@ -367,16 +364,17 @@ function getResult(pushInfo, textType) {
|
|
|
if (pushInfo.length > 0) {
|
|
|
for (var i = 0; i < pushInfo.length; i++) {
|
|
|
if (pushInfo[i].content.max >= num && num >= pushInfo[i].content.min) {
|
|
|
+ console.log(pushInfo[i])
|
|
|
if (tmp) {
|
|
|
result = pushInfo[i].result + '(' + num + '分' + ')' + ';' + tmp
|
|
|
proposal = pushInfo[i].pushInfo
|
|
|
-
|
|
|
} else {
|
|
|
result = pushInfo[i].result + '(' + num + '分' + ')'
|
|
|
proposal = pushInfo[i].pushInfo
|
|
|
}
|
|
|
} else {
|
|
|
if (tmp) {
|
|
|
+ console.log(123)
|
|
|
result = tmp
|
|
|
}
|
|
|
}
|
|
@@ -406,7 +404,7 @@ function getResult(pushInfo, textType) {
|
|
|
$(".foot").css('display', 'block')
|
|
|
}
|
|
|
} else {
|
|
|
- Toasts('温馨提示:必填选项不能为空~')
|
|
|
+ Toast('温馨提示:必填选项不能为空~', 50000000, 'warn')
|
|
|
}
|
|
|
})
|
|
|
$(".printing").hover(
|