邹能昇 2 сар өмнө
parent
commit
0246cacc8d

+ 2 - 0
nova-werun/components/home/index.js

@@ -256,6 +256,8 @@ Component({
                     // 获取到的加密数据
                     const encryptedData = res.encryptedData;
                     const iv = res.iv;
+                    console.log('encryptedData',encryptedData);
+                    console.log('iv',iv);
                     // 这里需要调用你的后端接口进行解密
                     // 假设你有一个解密函数 decryptData
                     // this.decryptData(encryptedData, iv).then(steps => {

+ 1 - 1
nova-werun/components/my/index.wxml

@@ -14,7 +14,7 @@
                 <image src="https://file-cloud.fmode.cn/qpFbRRSZrO/20241120/1ssc1a102512989.png?imageView2/1/w/200/h/200"></image>
             </view> -->
             <view class="numberbox">
-                <view wx:if="{{profile1List2[0].department}}" class="num">{{profile1List2[0].user.mobile}} | {{profile1List2[0].center.name}}</view>
+                <view wx:if="{{profile1List2[0].center}}" class="num">{{profile1List2[0].user.mobile}} | {{profile1List2[0].center.name}}</view>
                 <view wx:if="{{!profile1List2[0].center}}" class="num">暂未认证</view>
             </view>
         </view>

+ 4 - 4
nova-werun/pages/my/my-profile/index.js

@@ -219,8 +219,8 @@ Page({
                     name: dep[0].name,
                     phone: dep[0].mobile,
                     // departname: dep[0].department.name,//工会
-                    // selectname: dep[0].center.name,//部门
-                    // selectobjectid: dep[0].center.objectId,//部门
+                    selectname: dep[0].center.name,//部门
+                    selectobjectid: dep[0].center.objectId,//部门
                     // upiobjectid: dep[0].department.objectId//工会
                 })
             } else {
@@ -228,8 +228,8 @@ Page({
                     name: dep[0].name,
                     phone: dep[0].mobile,
                     // departname: dep[0].department.name,
-                    // selectname: dep[0].center.name,
-                    // selectobjectid: dep[0].center.objectId,
+                    selectname: dep[0].center.name,
+                    selectobjectid: dep[0].center.objectId,
                     // upiobjectid: dep[0].department.objectId
                 })
                 wx.showToast({