Ver Fonte

✨ feat:

zbb há 1 semana atrás
pai
commit
48cdf08bd2
3 ficheiros alterados com 3 adições e 7 exclusões
  1. 1 3
      pages/mine/card.vue
  2. 1 3
      pages/mine/userCard.vue
  3. 1 1
      utils/poster.js

+ 1 - 3
pages/mine/card.vue

@@ -84,9 +84,7 @@
 			<!-- 企业简介 -->
 			<view class="company-section" v-if="currentTab === 'company'">
 				<view class="company-content">
-					<text class="company-text">
-						<view v-html="companyInfo.introduce" v-if="companyInfo.introduce"></view>
-					</text>
+					<rich-text  class="company-text" :nodes="companyInfo.introduce"></rich-text>
 				</view>
 			</view>
 		</view>

+ 1 - 3
pages/mine/userCard.vue

@@ -84,9 +84,7 @@
 			<!-- 企业简介 -->
 			<view class="company-section" v-if="currentTab === 'company'">
 				<view class="company-content">
-					<view class="company-text">
-						<view v-html="companyInfo.introduce" v-if="companyInfo.introduce"></view>
-					</view>
+					<rich-text class="company-text" :nodes="companyInfo.introduce"></rich-text>
 				</view>
 			</view>
 		</view>

+ 1 - 1
utils/poster.js

@@ -220,7 +220,7 @@ const drawIconText = async (ctx, type, text, x, y, maxWidth = 350) => {
 
 		ctx.font = `${iconSize}px sans-serif`
 		ctx.textAlign = 'center'
-		ctx.fillText(icons[type] || '●', x - maxWidth / 2 + 30, iconY + iconSize / 2 + 5)
+		ctx.fillText(icons[type] || '●', x - maxWidth / 2 + 30, iconY + iconSize / 2 + 10)
 
 		// 绘制文字
 		ctx.fillStyle = '#666666'