测一测结果页加「返回首页」按钮,回广场测一测列表
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -159,6 +159,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
.mate p{margin-top:2px;font-size:13.5px;color:var(--txt);line-height:1.55}
|
||||
#tools{margin-top:36px !important}
|
||||
.again{margin-top:24px}
|
||||
.rend{display:flex;gap:10px;margin-top:24px}.rend .btn{flex:1;min-width:0}
|
||||
|
||||
.foot{margin:28px 20px 0;font-size:12px;color:var(--sub);text-align:center}
|
||||
.toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translate(-50%,8px);max-width:300px;padding:10px 16px;border-radius:12px;background:rgba(31,35,41,.88);color:#fff;font-size:13.5px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
|
||||
@@ -302,7 +303,11 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
|
||||
<div id="tools" class="fade"></div>
|
||||
|
||||
<button class="btn sec again" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<!-- 11-07 用户:「所有测一测的结果页要有一个『返回首页』按钮,返回到测试入口,也就是列表页」→ 孕妈广场「测一测」列表(guangchang/?c=ceshi) -->
|
||||
<div class="rend">
|
||||
<button class="btn sec" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<button class="btn pri" id="listBtn"><svg class="ic"><use href="#i-list" xlink:href="#i-list"/></svg>返回首页</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<p class="foot">趣味测试,仅供娱乐;身体相关问题以产检医生意见为准</p>
|
||||
@@ -525,6 +530,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
}
|
||||
$('#startBtn').addEventListener('click', startQuiz);
|
||||
$('#againBtn').addEventListener('click', startQuiz);
|
||||
/* 11-07 结果页「返回首页」= 回测试列表(孕妈广场「测一测」分类),查询参数和身份 hash 原样带上 */
|
||||
$('#listBtn').addEventListener('click', function () { var q = new URLSearchParams(location.search); ['id', 'c', 'n', 't'].forEach(function (k) { q.delete(k); }); q.set('c', 'ceshi'); location.href = '../../guangchang/?' + q.toString() + location.hash; });
|
||||
|
||||
/* ================= 计分 ================= */
|
||||
function score(answers) {
|
||||
|
||||
@@ -160,6 +160,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
.mate p{margin-top:2px;font-size:13.5px;color:var(--txt);line-height:1.55}
|
||||
#tools{margin-top:36px !important}
|
||||
.again{margin-top:24px}
|
||||
.rend{display:flex;gap:10px;margin-top:24px}.rend .btn{flex:1;min-width:0}
|
||||
|
||||
.foot{margin:28px 20px 0;font-size:12px;color:var(--sub);text-align:center}
|
||||
.toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translate(-50%,8px);max-width:300px;padding:10px 16px;border-radius:12px;background:rgba(31,35,41,.88);color:#fff;font-size:13.5px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
|
||||
@@ -306,7 +307,11 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
|
||||
<div id="tools" class="fade"></div>
|
||||
|
||||
<button class="btn sec again" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<!-- 11-07 用户:「所有测一测的结果页要有一个『返回首页』按钮,返回到测试入口,也就是列表页」→ 孕妈广场「测一测」列表(guangchang/?c=ceshi) -->
|
||||
<div class="rend">
|
||||
<button class="btn sec" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<button class="btn pri" id="listBtn"><svg class="ic"><use href="#i-list" xlink:href="#i-list"/></svg>返回首页</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<p class="foot">趣味测试,仅供娱乐;每位准爸爸都在学着当爸爸</p>
|
||||
@@ -531,6 +536,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
}
|
||||
$('#startBtn').addEventListener('click', startQuiz);
|
||||
$('#againBtn').addEventListener('click', startQuiz);
|
||||
/* 11-07 结果页「返回首页」= 回测试列表(孕妈广场「测一测」分类),查询参数和身份 hash 原样带上 */
|
||||
$('#listBtn').addEventListener('click', function () { var q = new URLSearchParams(location.search); ['id', 'c', 'n', 't'].forEach(function (k) { q.delete(k); }); q.set('c', 'ceshi'); location.href = '../../guangchang/?' + q.toString() + location.hash; });
|
||||
|
||||
/* ================= 计分 ================= */
|
||||
function score(answers) {
|
||||
|
||||
@@ -160,6 +160,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
.mate p{margin-top:2px;font-size:13.5px;color:var(--txt);line-height:1.55}
|
||||
#tools{margin-top:36px !important}
|
||||
.again{margin-top:24px}
|
||||
.rend{display:flex;gap:10px;margin-top:24px}.rend .btn{flex:1;min-width:0}
|
||||
|
||||
.foot{margin:28px 20px 0;font-size:12px;color:var(--sub);text-align:center}
|
||||
.toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translate(-50%,8px);max-width:300px;padding:10px 16px;border-radius:12px;background:rgba(31,35,41,.88);color:#fff;font-size:13.5px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
|
||||
@@ -337,7 +338,11 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
|
||||
<div id="tools" class="fade"></div>
|
||||
|
||||
<button class="btn sec again" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<!-- 11-07 用户:「所有测一测的结果页要有一个『返回首页』按钮,返回到测试入口,也就是列表页」→ 孕妈广场「测一测」列表(guangchang/?c=ceshi) -->
|
||||
<div class="rend">
|
||||
<button class="btn sec" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<button class="btn pri" id="listBtn"><svg class="ic"><use href="#i-list" xlink:href="#i-list"/></svg>返回首页</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<p class="foot">孕期自测,仅供参考,不能代替医生判断;照顾好自己,就是在照顾宝宝</p>
|
||||
@@ -563,6 +568,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
}
|
||||
$('#startBtn').addEventListener('click', startQuiz);
|
||||
$('#againBtn').addEventListener('click', startQuiz);
|
||||
/* 11-07 结果页「返回首页」= 回测试列表(孕妈广场「测一测」分类),查询参数和身份 hash 原样带上 */
|
||||
$('#listBtn').addEventListener('click', function () { var q = new URLSearchParams(location.search); ['id', 'c', 'n', 't'].forEach(function (k) { q.delete(k); }); q.set('c', 'ceshi'); location.href = '../../guangchang/?' + q.toString() + location.hash; });
|
||||
|
||||
/* ================= 计分 ================= */
|
||||
function score(answers) {
|
||||
|
||||
@@ -161,6 +161,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
.mate p{margin-top:2px;font-size:13.5px;color:var(--txt);line-height:1.55}
|
||||
#tools{margin-top:36px !important}
|
||||
.again{margin-top:24px}
|
||||
.rend{display:flex;gap:10px;margin-top:24px}.rend .btn{flex:1;min-width:0}
|
||||
|
||||
.foot{margin:28px 20px 0;font-size:12px;color:var(--sub);text-align:center}
|
||||
.toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translate(-50%,8px);max-width:300px;padding:10px 16px;border-radius:12px;background:rgba(31,35,41,.88);color:#fff;font-size:13.5px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
|
||||
@@ -322,7 +323,11 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
<div id="tools" class="fade"></div>
|
||||
|
||||
<p class="warn">仅供参考,不能代替医生判断,有不适请及时就医</p>
|
||||
<button class="btn sec again" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<!-- 11-07 用户:「所有测一测的结果页要有一个『返回首页』按钮,返回到测试入口,也就是列表页」→ 孕妈广场「测一测」列表(guangchang/?c=ceshi) -->
|
||||
<div class="rend">
|
||||
<button class="btn sec" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<button class="btn pri" id="listBtn"><svg class="ic"><use href="#i-list" xlink:href="#i-list"/></svg>返回首页</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<p class="foot">生活饮食自查,仅供参考;身体相关问题以产检医生意见为准</p>
|
||||
@@ -561,6 +566,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
}
|
||||
$('#startBtn').addEventListener('click', startQuiz);
|
||||
$('#againBtn').addEventListener('click', startQuiz);
|
||||
/* 11-07 结果页「返回首页」= 回测试列表(孕妈广场「测一测」分类),查询参数和身份 hash 原样带上 */
|
||||
$('#listBtn').addEventListener('click', function () { var q = new URLSearchParams(location.search); ['id', 'c', 'n', 't'].forEach(function (k) { q.delete(k); }); q.set('c', 'ceshi'); location.href = '../../guangchang/?' + q.toString() + location.hash; });
|
||||
|
||||
/* ================= 计分:每题 0~3,合计折算 100 分;各方面按得分率 ================= */
|
||||
function score(answers) {
|
||||
|
||||
@@ -178,6 +178,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
.disc{margin-top:14px;font-size:12.5px;line-height:1.6;color:var(--sub);text-align:center}
|
||||
#tools{margin-top:36px !important}
|
||||
.again{margin-top:24px}
|
||||
.rend{display:flex;gap:10px;margin-top:24px}.rend .btn{flex:1;min-width:0}
|
||||
|
||||
.foot{margin:28px 20px 0;font-size:12px;color:var(--sub);text-align:center}
|
||||
.toast{position:fixed;left:50%;bottom:calc(80px + env(safe-area-inset-bottom));transform:translate(-50%,8px);max-width:300px;padding:10px 16px;border-radius:12px;background:rgba(31,35,41,.88);color:#fff;font-size:13.5px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:60}
|
||||
@@ -322,7 +323,11 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
|
||||
<div id="tools" class="fade"></div>
|
||||
|
||||
<button class="btn sec again" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<!-- 11-07 用户:「所有测一测的结果页要有一个『返回首页』按钮,返回到测试入口,也就是列表页」→ 孕妈广场「测一测」列表(guangchang/?c=ceshi) -->
|
||||
<div class="rend">
|
||||
<button class="btn sec" id="againBtn"><svg class="ic"><use href="#i-refresh" xlink:href="#i-refresh"/></svg>重新测试</button>
|
||||
<button class="btn pri" id="listBtn"><svg class="ic"><use href="#i-list" xlink:href="#i-list"/></svg>返回首页</button>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<p class="foot">生活小自查,仅供参考;具体安排以产检医生意见为准</p>
|
||||
@@ -558,6 +563,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
|
||||
}
|
||||
$('#startBtn').addEventListener('click', startQuiz);
|
||||
$('#againBtn').addEventListener('click', startQuiz);
|
||||
/* 11-07 结果页「返回首页」= 回测试列表(孕妈广场「测一测」分类),查询参数和身份 hash 原样带上 */
|
||||
$('#listBtn').addEventListener('click', function () { var q = new URLSearchParams(location.search); ['id', 'c', 'n', 't'].forEach(function (k) { q.delete(k); }); q.set('c', 'ceshi'); location.href = '../../guangchang/?' + q.toString() + location.hash; });
|
||||
|
||||
/* ================= 计分 ================= */
|
||||
function pts(a) { return a.map(function (i, qi) { return QS[qi].o[i][0]; }); }
|
||||
|
||||
Reference in New Issue
Block a user