|
@@ -170,14 +170,6 @@
|
|
|
<section>
|
|
<section>
|
|
|
<div class="container">
|
|
<div class="container">
|
|
|
<h2>检测流程</h2>
|
|
<h2>检测流程</h2>
|
|
|
- <ol class="step-list">
|
|
|
|
|
- <li><strong>在线下单</strong> — 完成购买后,检测套件将在24小时内寄出</li>
|
|
|
|
|
- <li><strong>居家采样</strong> — 按照采样指南采集微量粪便样本(约米粒大小),无创无痛</li>
|
|
|
|
|
- <li><strong>样本寄回</strong> — 使用配套的预付费快递包装,将样本寄回实验室</li>
|
|
|
|
|
- <li><strong>实验室检测</strong> — 到样后5个工作日内完成DNA提取、测序和数据分析</li>
|
|
|
|
|
- <li><strong>获取报告</strong> — 电子版报告在线查看,包含详细的检测结果和个性化建议</li>
|
|
|
|
|
- </ol>
|
|
|
|
|
-
|
|
|
|
|
<div style="text-align:center;margin:1.5rem 0;">
|
|
<div style="text-align:center;margin:1.5rem 0;">
|
|
|
<svg viewBox="0 0 400 416" style="max-width:480px;width:100%;height:auto;" role="img" aria-label="肠道菌群检测流程示意图" xmlns="http://www.w3.org/2000/svg">
|
|
<svg viewBox="0 0 400 416" style="max-width:480px;width:100%;height:auto;" role="img" aria-label="肠道菌群检测流程示意图" xmlns="http://www.w3.org/2000/svg">
|
|
|
<defs>
|
|
<defs>
|
|
@@ -370,6 +362,9 @@ function submitOrder() {
|
|
|
// 生成订单号
|
|
// 生成订单号
|
|
|
var orderNo = 'GUT' + Date.now() + Math.random().toString(36).substr(2,4).toUpperCase();
|
|
var orderNo = 'GUT' + Date.now() + Math.random().toString(36).substr(2,4).toUpperCase();
|
|
|
|
|
|
|
|
|
|
+ // 保存联系人信息到全局变量,供后续函数使用
|
|
|
|
|
+ window._orderContact = { name: name, phone: phone, address: address };
|
|
|
|
|
+
|
|
|
// 获取openid后进行JSAPI支付
|
|
// 获取openid后进行JSAPI支付
|
|
|
var openid = getUrlParam('openid');
|
|
var openid = getUrlParam('openid');
|
|
|
if (openid) {
|
|
if (openid) {
|
|
@@ -457,6 +452,7 @@ function getUrlParam(name) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function fallbackNativePay(orderNo) {
|
|
function fallbackNativePay(orderNo) {
|
|
|
|
|
+ var c = window._orderContact || {};
|
|
|
fetch('/api/payment/wechat/native', {
|
|
fetch('/api/payment/wechat/native', {
|
|
|
method: 'POST',
|
|
method: 'POST',
|
|
|
headers: { 'Content-Type': 'application/json' },
|
|
headers: { 'Content-Type': 'application/json' },
|
|
@@ -464,6 +460,9 @@ function fallbackNativePay(orderNo) {
|
|
|
orderNo: orderNo,
|
|
orderNo: orderNo,
|
|
|
description: '肠道菌群基因检测',
|
|
description: '肠道菌群基因检测',
|
|
|
amount: 1,
|
|
amount: 1,
|
|
|
|
|
+ contactName: c.name || '',
|
|
|
|
|
+ contactPhone: c.phone || '',
|
|
|
|
|
+ contactAddress: c.address || ''
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
.then(function(r) { return r.json(); })
|
|
.then(function(r) { return r.json(); })
|