Sfoglia il codice sorgente

修复:app端不显示iconfont图标

Martin 5 anni fa
parent
commit
b8e13ed8d5
2 ha cambiato i file con 5 aggiunte e 5 eliminazioni
  1. 1 1
      pages/user/index.vue
  2. 4 4
      utils/iconfont.scss

+ 1 - 1
pages/user/index.vue

@@ -28,7 +28,7 @@
       <!-- 未登录 -->
       <view v-else class="user-info" @click="handleLogin">
         <view class="user-avatar">
-          <image class="image" src="/static/default-avatar.png"></image>
+          <avatar-image :width="100" />
         </view>
         <view class="user-content">
           <view class="nick-name">未登录</view>

+ 4 - 4
utils/iconfont.scss

@@ -1,9 +1,9 @@
 @font-face {
   font-family: "iconfont"; /* Project id 2282770 */
-  src: url('//at.alicdn.com/t/font_2282770_2gwytlgwykc.woff2?t=1625804354129') format('woff2'),
-       url('//at.alicdn.com/t/font_2282770_2gwytlgwykc.woff?t=1625804354129') format('woff'),
-       url('//at.alicdn.com/t/font_2282770_2gwytlgwykc.ttf?t=1625804354129') format('truetype'),
-       url('//at.alicdn.com/t/font_2282770_2gwytlgwykc.svg?t=1625804354129#iconfont') format('svg');
+  src: url('https://at.alicdn.com/t/font_2282770_2gwytlgwykc.woff2?t=1625804354129') format('woff2'),
+       url('https://at.alicdn.com/t/font_2282770_2gwytlgwykc.woff?t=1625804354129') format('woff'),
+       url('https://at.alicdn.com/t/font_2282770_2gwytlgwykc.ttf?t=1625804354129') format('truetype'),
+       url('https://at.alicdn.com/t/font_2282770_2gwytlgwykc.svg?t=1625804354129#iconfont') format('svg');
 }
 
 .iconfont {