Commit 8006ed390a228f9c95c40f617bf7add1add8f0d1

Authored by wangjialin
1 parent 686008ddb3
Exists in dev_wjl and in 1 other branch dev-wrh

修改图片显示问题

Showing 7 changed files with 55 additions and 9 deletions

littleApp_child/packageA/pages/messageContent/messageContent.js View file @ 8006ed3
... ... @@ -8,7 +8,8 @@
8 8 * 页面的初始数据
9 9 */
10 10 data: {
11   - setObject:{}
  11 + setObject:{},
  12 + isModalVisible: false,
12 13 },
13 14  
14 15 /**
... ... @@ -20,6 +21,16 @@
20 21 this.getmessageContent(id)
21 22 }
22 23 },
  24 + showModal: function() {
  25 + this.setData({
  26 + isModalVisible: true,
  27 + });
  28 + },
  29 + delModal: function() {
  30 + this.setData({
  31 + isModalVisible: false,
  32 + });
  33 + },
23 34 getmessageContent:function(id){
24 35 const _that = this
25 36 networkUtil._get(api.getBabyMsgById,{
littleApp_child/packageA/pages/messageContent/messageContent.wxml View file @ 8006ed3
... ... @@ -17,8 +17,14 @@
17 17  
18 18 <!-- penner图 -->
19 19 <!-- -->
20   -<image wx:if="{{setObject.img}}" mode="aspectFit" src="{{setObject.img}}" mode="" style="margin: 45rpx 31rpx;"/>
21   -
  20 +<view wx:if="{{setObject.img}}" class="addd">
  21 + <image wx:if="{{setObject.img}}" mode="aspectFit" src="{{setObject.img}}" style="width:100%;" bindtap="showModal"/>
  22 + <view class="modal" wx:if="{{isModalVisible}}" bindtap="delModal">
  23 + <cover-view class="modal-content">
  24 + <cover-image src="{{setObject.img}}" mode="widthFix" style="width: 100%; height: auto;" />
  25 + </cover-view>
  26 + </view>
  27 +</view>
22 28 <!-- 内容 -->
23 29 <view class="content">
24 30 <view class="content1">
littleApp_child/packageA/pages/messageContent/messageContent.wxss View file @ 8006ed3
... ... @@ -51,4 +51,19 @@
51 51 .content .content1{
52 52 margin-bottom: 50rpx;
53 53 }
  54 +.addd{
  55 + width: 100%;
  56 + min-height:30px;
  57 +}
  58 +.modal {
  59 + position: fixed;
  60 + top: 0;
  61 + left: 0;
  62 + right: 0;
  63 + bottom: 0;
  64 + background-color: rgba(0, 0, 0, 0.5);
  65 + display: flex;
  66 + justify-content: center;
  67 + align-items: center;
  68 + }
littleApp_child/pages/diet/measuret.js View file @ 8006ed3
... ... @@ -686,7 +686,7 @@
686 686 })
687 687 wx.showModal({
688 688 title: '成功提交',
689   - content: '检查信息已提交!',
  689 + content: '膳食记录已提交!',
690 690 showCancel: false
691 691 });
692 692 }else{
... ... @@ -767,6 +767,12 @@
767 767 foodList3:list3
768 768 })
769 769 if(app.globalData.userInfo.hospitalId==666668){
  770 + if(app.globalData.userInfo.monthage.includes("岁")){
  771 + this.setData({
  772 + yl:13
  773 + })
  774 + return
  775 + }
770 776 if(app.globalData.userInfo.monthage.includes("月")){
771 777 let yl=this.getLeadingNumbers(app.globalData.userInfo.monthage)
772 778 this.setData({
littleApp_child/pages/home/css/AboutPage.wxss View file @ 8006ed3
... ... @@ -2,7 +2,7 @@
2 2  
3 3 .we_topImg {
4 4 width: 100%;
5   - height: 30%;
  5 + height: 25%;
6 6 }
7 7  
8 8 .we_icon {
littleApp_child/pages/weightReportList/weightReportList.js View file @ 8006ed3
... ... @@ -8,18 +8,19 @@
8 8 * 页面的初始数据
9 9 */
10 10 data: {
11   - listData:[]
  11 + listData:[],
  12 + babyId:''
12 13 },
13 14 // 获取膳食检查列表
14 15 getBabyNutritionList:function(){
15 16 let self = this;
16   - networkUtil._get(api.getBabyNutritionList, {}, res => {
  17 + networkUtil._get(api.getBabyNutritionList, {babyId:self.data.babyId}, res => {
17 18 if (res.statusCode == 200 && res.data.errorcode == 0) {
18 19 var data = res.data.data;
19 20 if (data.length<=0){
20 21 wx.showModal({
21 22 title: '提醒',
22   - content: '查询到历史报告信息',
  23 + content: '查询到历史报告信息',
23 24 showCancel: false
24 25 });
25 26 return
... ... @@ -35,6 +36,9 @@
35 36 * 生命周期函数--监听页面加载
36 37 */
37 38 onLoad: function (options) {
  39 + this.setData({
  40 + babyId:wx.getStorageSync('erid')
  41 + })
38 42 this.getBabyNutritionList()
39 43 },
40 44  
littleApp_child/pages/weightReportList/weightReportList.wxml View file @ 8006ed3
... ... @@ -4,4 +4,8 @@
4 4 <text>记录时间</text><text>{{item.recordTime}}</text> <text>月龄</text><text>{{item.monthAge}}</text>
5 5 </navigator>
6 6 </view>
  7 +<view style="font-size: 24rpx;padding:10rpx;">
  8 + <view>贴心提醒:</view>
  9 + <view>待医院医生确认即可查看膳食报告</view>
  10 +</view>