yanym 6 anni fa
parent
commit
115d7ec99e

+ 3 - 1
dorm-manager-wx/pages/teacher/visitorcheckdetail/visitorcheckdetail.js

@@ -9,6 +9,7 @@ Page({
    * 页面的初始数据
    */
   data: {
+    apiTotal: '',
     id: '',
     type: false,
     userInfo: '',
@@ -80,7 +81,8 @@ Page({
     console.log(options.type)
     that.setData({
       id: options.id,
-      type: options.type
+      type: options.type,
+      apiTotal: api.total.substring(0, api.total.length - 4)
     })
     that.getUserInfoArray();
   },

+ 1 - 1
dorm-manager-wx/pages/teacher/visitorcheckdetail/visitorcheckdetail.wxml

@@ -1,7 +1,7 @@
 <!-- visitorcheckdetail.wxml -->
 <view class="mycontainer">
   <view class="list">
-    <image src="{{userInfo.visitorPhoto!=null?userInfo.visitorPhoto:'/images/default-urser.png'}}" class="head-img"></image>
+    <image src="{{userInfo.localPhoto?apiTotal+userInfo.localPhoto:'/images/default-urser.png'}}" class="head-img"></image>
     <block wx:for='{{list}}'>
       <view class="item">
         <view class="key">{{item.key}}</view>