1002884655 hace 3 años
padre
commit
8d0a3d4613

+ 2
- 2
config/dev.js Ver fichero

@@ -3,8 +3,8 @@ module.exports = {
3 3
     NODE_ENV: '"development"'
4 4
   },
5 5
   defineConstants: {
6
-    // SERVER_API: '"https://api.medical.p.njyunzhi.com"'
7
-    SERVER_API: '"http://127.0.0.1:8081"'
6
+    SERVER_API: '"https://api.medical.p.njyunzhi.com"'
7
+    // SERVER_API: '"http://127.0.0.1:8081"'
8 8
   },
9 9
   mini: {},
10 10
   h5: {}

+ 17
- 3
src/components/BodyCheckItem/index.vue Ver fichero

@@ -1,12 +1,13 @@
1 1
 <template>
2 2
   <view class="BodyCheckItem">
3
+    <text>导入日期:{{ToolClass.DateFormat(new Date(Data.createDate).getTime())}}</text>
3 4
     <view class="Title flex-h">
4
-      <text>{{ToolClass.DateFormat(new Date(Data.createDate).getTime())}}</text>
5 5
       <view class="flex-item">
6 6
         <text>{{Data.name}}</text>
7 7
       </view>
8
+      <text class="btn" @tap="checkDetail">查看报告</text>
8 9
     </view>
9
-    <view class="Desc">{{Data.attchment}}</view>
10
+    <!-- <view class="Desc">{{Data.attchment}}</view> -->
10 11
     <!-- <navigator url="" hover-class="none">查看报告</navigator> -->
11 12
   </view>
12 13
 </template>
@@ -35,7 +36,20 @@ export default {
35 36
   },
36 37
   methods: {
37 38
     Init () {
38
-    }
39
+    },
40
+    checkDetail () {
41
+      wx.downloadFile({
42
+        url: this.Data.attchment,
43
+        success: function (res) {
44
+          const filePath = res.tempFilePath
45
+          wx.openDocument({
46
+            filePath: filePath,
47
+            success: function (res) {
48
+            }
49
+          })
50
+        }
51
+      })
52
+    },
39 53
   }
40 54
 }
41 55
 </script>

+ 17
- 16
src/components/BodyCheckItem/page.scss Ver fichero

@@ -1,15 +1,16 @@
1 1
 .BodyCheckItem {
2
-  padding: 30px;
2
+  padding: 40px;
3 3
   align-items: center;
4
+  > text {
5
+    font-size: 32px;
6
+    line-height: 40px;
7
+    display: block;
8
+    color: #333;
9
+    font-weight: bold;
10
+  }
4 11
   > .Title {
5 12
     align-items: center;
6
-    > text {
7
-      font-size: 32px;
8
-      line-height: 40px;
9
-      display: block;
10
-      color: #333;
11
-      font-weight: bold;
12
-    }
13
+    // margin-top: 20px;
13 14
     >.flex-item {
14 15
       >text {
15 16
         font-size: 26px;
@@ -18,6 +19,14 @@
18 19
         color: #999;
19 20
       }
20 21
     }
22
+    > .btn {
23
+      line-height: 60px;
24
+      background: #f4c819;
25
+      color: #333;
26
+      font-size: 28px;
27
+      border-radius: 60px;
28
+      padding: 0 20px;
29
+    }
21 30
   }
22 31
   >.Desc {
23 32
     font-size: 26px;
@@ -25,12 +34,4 @@
25 34
     line-height: 40px;
26 35
     margin-top: 10px;
27 36
   }
28
-  > navigator {
29
-    width: 160px;
30
-    text-align: center;
31
-    line-height: 60px;
32
-    background: #f4c819;
33
-    color: #fff;
34
-    font-size: 28px;
35
-  }
36 37
 }

+ 1
- 0
src/components/MainPage/index.vue Ver fichero

@@ -183,6 +183,7 @@ export default {
183 183
           //   this.ShowPhoneAuthPopup = false
184 184
           //   this.$emit('UserInfoChange')
185 185
           // })
186
+          this.EditUserInfo({ name: 'phone', value: res.data.data.phone })
186 187
           this.ShowPhoneAuthPopup = false
187 188
           this.$emit('UserInfoChange')
188 189
         } else {

+ 7
- 7
src/pages/Mine/MyBodyCheck/index.vue Ver fichero

@@ -2,27 +2,27 @@
2 2
   <view class="page">
3 3
     <MainPage ref="MainPage" @UserInfoChange="Init">
4 4
       <view class="page flex-v">
5
-        <view class="UserInfo" v-if="UserInfo.studentId">
5
+        <view class="UserInfo" v-if="UserInfo.student && UserInfo.student.studentId">
6 6
           <view class="flex-h">
7 7
             <view class="flex-h flex-item">
8 8
               <text>姓名:</text>
9
-              <text class="flex-item">{{UserInfo.name || '-'}}</text>
9
+              <text class="flex-item">{{UserInfo.student.name || '-'}}</text>
10 10
             </view>
11 11
             <view class="flex-h flex-item">
12 12
               <text>学号:</text>
13
-              <text class="flex-item">{{UserInfo.studentId || '-'}}</text>
13
+              <text class="flex-item">{{UserInfo.student.studentNo || '-'}}</text>
14 14
             </view>
15 15
             <view class="flex-h flex-item">
16 16
               <text>性别:</text>
17
-              <text class="flex-item">{{UserInfo.sex - 0 === 1 ? '男' : '女'}}</text>
17
+              <text class="flex-item">{{UserInfo.student.sex - 0 === 1 ? '男' : UserInfo.student.sex - 0 === 2 ? '女' : '-'}}</text>
18 18
             </view>
19 19
             <view class="flex-h flex-item">
20 20
               <text>学校:</text>
21
-              <text class="flex-item">{{UserInfo.schoolName || '-'}}</text>
21
+              <text class="flex-item">{{UserInfo.student.schoolName || '-'}}</text>
22 22
             </view>
23 23
             <view class="flex-h flex-item">
24 24
               <text>专业:</text>
25
-              <text class="flex-item">{{UserInfo.specialtyName || '-'}}</text>
25
+              <text class="flex-item">{{UserInfo.student.specialtyName || '-'}}</text>
26 26
             </view>
27 27
             <view class="flex-h flex-item">
28 28
               <text>创建时间:</text>
@@ -35,7 +35,7 @@
35 35
             <scroll-view scroll-y="true" style="height: 100%;" :refresher-enabled="true" @refresherrefresh="OnRefresh" :refresher-triggered="IsPull" refresher-background="none" refresher-default-style="black">
36 36
               <view class="Content">
37 37
                 <view class="ListItem" v-for="(item, index) in PageList" :key="index">
38
-                  <BodyCheckItem></BodyCheckItem>
38
+                  <BodyCheckItem :Data="item"></BodyCheckItem>
39 39
                 </view>
40 40
               </view>
41 41
               <PageBottom></PageBottom>

+ 2
- 2
src/pages/Mine/MyBodyCheck/page.scss Ver fichero

@@ -41,10 +41,10 @@
41 41
         > .ListItem {
42 42
           position: relative;
43 43
           overflow: hidden;
44
-          margin-bottom: 30px;
44
+          margin-bottom: 40px;
45 45
           background: #fff;
46 46
           &:first-child {
47
-            margin-top: 30px;
47
+            margin-top: 40px;
48 48
           }
49 49
         }
50 50
       }