|
@@ -207,7 +207,7 @@ function renderContentscale(list, contentWrapClassName, name) {
|
|
|
adjustWidth()
|
|
|
getcheck()
|
|
|
getResult(pushInfo)
|
|
|
- copy()
|
|
|
+ copy(name)
|
|
|
getprinting()
|
|
|
}
|
|
|
|
|
@@ -251,14 +251,15 @@ function getcheck() {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function copy() {
|
|
|
+function copy(name) {
|
|
|
$(".copy").click(function () {
|
|
|
var texts = document.getElementById("result_title").innerText;
|
|
|
if (texts == '') {
|
|
|
return
|
|
|
}
|
|
|
var inputs = document.getElementById("inputs");
|
|
|
- inputs.value = texts; // 修改文本框的内容(赋值内容)
|
|
|
+ inputs.value = name+'量表结果为:'+texts; // 修改文本框的内容(赋值内容)
|
|
|
+ console.log(inputs.value)
|
|
|
inputs.select(); // 选中文本
|
|
|
document.execCommand("copy"); // 执行浏览器复制命令
|
|
|
Toast('复制成功', 500)
|