xiaohaizhao пре 9 месеци
родитељ
комит
16860fbdbe
3 измењених фајлова са 9 додато и 6 уклоњено
  1. 7 6
      store/storeQRCode/index.vue
  2. 1 0
      team/team/InviteUser.vue
  3. 1 0
      team/userCenter/wechatbind.vue

+ 7 - 6
store/storeQRCode/index.vue

@@ -19,7 +19,7 @@
 
                     <l-painter-text text="扫码进入店铺"
                         css="width:96px;line-height:17px;position: absolute;left:50%;bottom:269px;z-index:2;margin-left:-48px;font-size: 12px;color: #666666;font-family: PingFang SC, PingFang SC;" />
-                    <l-painter-qrcode :text="qrCode + 'getStore?id=' +  storeid"
+                    <l-painter-qrcode :text="qrCode + 'getStore?id=' + storeid"
                         css="width: 200px; height: 200px;position: absolute;left:50%;bottom:55px;z-index:2;margin-left:-100px;" />
                 </l-painter>
             </view>
@@ -27,11 +27,10 @@
 
         <view style="height: 70px;" />
         <view class="footer">
-            <view class="add" hover-class="navigator-hover"
-                @click="saveTheImage()">
+            <view class="add" hover-class="navigator-hover" @click="saveTheImage()">
                 <block>
                     保存图片
-                    
+
                 </block>
             </view>
         </view>
@@ -55,12 +54,12 @@ export default {
             },
             qrCode: this.qrCodePrefix,
             name: "",
-            storeid:uni.getStorageSync('shop').sa_storeid
+            storeid: uni.getStorageSync('shop').sa_storeid
         }
     },
     onLoad() {
         uni.setNavigationBarTitle({
-            title:'店铺码',
+            title: '店铺码',
         })
         this.getUserMsg()
     },
@@ -72,6 +71,7 @@ export default {
             }).then(res => {
                 console.log("获取个人信息", res)
                 if (this.cutoff(res.msg)) return;
+                res.data.headpic = res.data.attinfos.find(v => v.usetype == "headportrait") && res.data.attinfos.find(v => v.usetype == "headportrait").url || '';
                 this.userMsg = res.data;
                 this.name = res.data.name ? res.data.name + ',邀请您加入' : '邀请您加入'
             })
@@ -217,6 +217,7 @@ export default {
         }
     }
 }
+
 .footer {
     position: fixed;
     bottom: 0;

+ 1 - 0
team/team/InviteUser.vue

@@ -76,6 +76,7 @@ export default {
             }).then(res => {
                 console.log("获取个人信息", res)
                 if (this.cutoff(res.msg)) return;
+                res.data.headpic = res.data.attinfos.find(v => v.usetype == "headportrait") && res.data.attinfos.find(v => v.usetype == "headportrait").url || '';
                 this.userMsg = res.data;
                 this.name = res.data.enterprise_hr.name ? res.data.enterprise_hr.name + ',邀请您加入' : '邀请您加入'
             })

+ 1 - 0
team/userCenter/wechatbind.vue

@@ -68,6 +68,7 @@ export default {
             }).then(res => {
                 console.log("获取个人信息", res)
                 if (this.cutoff(res.msg)) return;
+                res.data.headpic = res.data.attinfos.find(v => v.usetype == "headportrait") && res.data.attinfos.find(v => v.usetype == "headportrait").url || '';
                 this.userMsg = res.data;
                 this.name = res.data.enterprise_hr.name ? res.data.enterprise_hr.name + ',邀请您加入' : '邀请您加入'
             })