Commit 53f7b1c19540776dcd2c9617c6b4f9666ce91ee9

Authored by shaoshuai
1 parent d307aa2fd4
Exists in master

体检项目列表

Showing 3 changed files with 7 additions and 3 deletions

woman/pages/premaritalCheckup/premaritalCheckup.js View file @ 53f7b1c
... ... @@ -150,7 +150,7 @@
150 150  
151 151 console.log("检测",item)
152 152 wx.navigateTo({
153   - url: '../premaritalReport/premaritalReport',
  153 + url: '../premaritalReport/premaritalReport?index='+item,
154 154 })
155 155 },
156 156  
woman/pages/premaritalReport/premaritalReport.js View file @ 53f7b1c
... ... @@ -7,6 +7,7 @@
7 7 Page({
8 8  
9 9 data: {
  10 + index : 0,
10 11 baseCheck: [{ 'title': '首诊日期', 'word': 'checkTime', value: '' }, { 'title': '末次月经', 'word': 'lastMenses', value: '' }, { 'title': '预产期', 'word': 'dueDate', value: '' }, { 'title': '月经周期', 'word': 'mensDay', value: '' }],
11 12 bodyCheck: [{ title: '身高', word: 'height', value: '' }, { title: '体重', word: 'weight', value: '' }, { title: '心', word: 'heart', value: '' }, { title: '肺', word: 'lungs', value: '' }],
12 13  
... ... @@ -31,6 +32,9 @@
31 32 onLoad: function (options) {
32 33 //hospital = options.hospital
33 34 //this.requestData(options.id)
  35 + this.setData({
  36 + index :options.index
  37 + })
34 38 },
35 39 /*---------自定义函数--------*/
36 40 requestData(Id) {
woman/pages/premaritalReport/premaritalReport.wxml View file @ 53f7b1c
1 1 <!--pages/premaritalCheckup/premaritalCheckup.wxml-->
2 2 <view>
3 3 <view>
4   - <view class="itemList_bg margin-lr40 margin-tb20 i-row i-between i-align-center">
5   - <view class="margin-l16 itemList_title">婚前医学检查证明</view>
  4 + <view class="itemList_bg margin-lr40 margin-tb20 i-row i-between i-align-center" wx:for="{{assistantCheck[index].content}}">
  5 + <view class="margin-l16 itemList_title">{{item.title}}</view>
6 6 <view class="i-row i-between i-align-center margin-l34 " style="width: 330rpx;">
7 7 <view class="font-828282-26">参考数值</view>
8 8 <view class="font-4F4F4F-26 margin-r35">检测值</view>