From d307aa2fd473cafb82193af8e7237345ad7ad88a Mon Sep 17 00:00:00 2001 From: shaoshuai <975432984@qq.com> Date: Fri, 19 May 2023 17:52:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=A8=E9=A1=B5=E9=9D=A2=E4=BC=A0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- woman/pages/premaritalCheckup/premaritalCheckup.js | 9 ++++++++- woman/pages/premaritalCheckup/premaritalCheckup.wxml | 5 +++-- woman/utils/network_util.js | 10 ++++++++-- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/woman/pages/premaritalCheckup/premaritalCheckup.js b/woman/pages/premaritalCheckup/premaritalCheckup.js index 80d0a12..ac464e7 100644 --- a/woman/pages/premaritalCheckup/premaritalCheckup.js +++ b/woman/pages/premaritalCheckup/premaritalCheckup.js @@ -7,6 +7,7 @@ var hospital = '' Page({ data: { + text : "qqqaaa", baseCheck: [{ 'title': '首诊日期', 'word': 'checkTime', value: '' }, { 'title': '末次月经', 'word': 'lastMenses', value: '' }, { 'title': '预产期', 'word': 'dueDate', value: '' }, { 'title': '月经周期', 'word': 'mensDay', value: '' }], bodyCheck: [{ title: '身高', word: 'height', value: '' }, { title: '体重', word: 'weight', value: '' }, { title: '心', word: 'heart', value: '' }, { title: '肺', word: 'lungs', value: '' }], @@ -140,8 +141,14 @@ Page({ str = '孕次:' + data.pregnacyTimes + '次' } }, + triggers(e) { + console.log(e.target.dataset.idtype,e); // 1 +}, goDetail(e) { - console.log("检测详情",e) + console.log("检测详情",e,e.currentTarget.dataset) + let item = networkUtil.urlParams("index",e) + + console.log("检测",item) wx.navigateTo({ url: '../premaritalReport/premaritalReport', }) diff --git a/woman/pages/premaritalCheckup/premaritalCheckup.wxml b/woman/pages/premaritalCheckup/premaritalCheckup.wxml index 65e01c8..f09d9c0 100644 --- a/woman/pages/premaritalCheckup/premaritalCheckup.wxml +++ b/woman/pages/premaritalCheckup/premaritalCheckup.wxml @@ -14,12 +14,13 @@ + 检验报告查询 - + {{item.top_title}} 未见异常 - + 详细报告 diff --git a/woman/utils/network_util.js b/woman/utils/network_util.js index 33afc74..ef3336f 100644 --- a/woman/utils/network_util.js +++ b/woman/utils/network_util.js @@ -232,7 +232,12 @@ function showErrorToast(text) { } }) } - +// 跨页面传参 +function urlParams(item,e) { + let p = e.currentTarget.dataset; + // console.log(item, "item",e,p,p[item]) + return p[item] +} @@ -376,7 +381,8 @@ module.exports = { Builing_Release_AppStore: Builing_Release_AppStore, _getAddress: _getAddress, checkIsNeedDownload: checkIsNeedDownload, - isLoadImage: isLoadImage + isLoadImage: isLoadImage, + urlParams:urlParams } // networkUtil._get(api,param,function(res){},function(res){}) -- 1.8.3.1