purui 3 bulan lalu
induk
melakukan
d4400d8c05

+ 2 - 1
packages/app/src/pages-sub/home/components/class-item.vue

@@ -37,6 +37,7 @@ const router = useRouter()
       />
       <div
         class="absolute left-2.5 bottom-2.5 px-2 py-1 bg-black/30 rounded-[20px] backdrop-blur-[10px]"
+		v-if="options.classGrade"
       >
         <div class="text-white text-[10px] font-normal font-['PingFang_SC'] leading-relaxed">
           <!-- 米兰2班 -->
@@ -69,7 +70,7 @@ const router = useRouter()
       <view
         class="flex justify-between text-black/40 text-sm font-normal font-['PingFang_SC'] leading-[34px]"
       >
-        <div class="">班长:{{ options.studyMonitor }}</div>
+        <div class="" v-if="options.studyMonitor">班长:{{ options.studyMonitor }}</div>
         <div class="">领队:{{ options.studyLeader }}</div>
       </view>
     </div>

+ 12 - 6
packages/app/src/pages-sub/mine/honors/detail/index.vue

@@ -70,13 +70,15 @@ const createPoster = () => {
           canvas.FillText(userInfo.value?.nickname, '#ffffff', 16, 63, 46)
           const textNameWidth = ctx.measureText(data.value.name).width
           const textDesWidth = ctx.measureText(subTitle.value).width
-		  console.log(textDesWidth)
           canvas.FillText(data.value?.name, '#ffffff', 18, (345 - textNameWidth) / 2, 291)
           canvas.FillText(subTitle.value, '#ffffff', 14, (365 - textDesWidth) / 2, 326)
           // canvas.Image(icon1, 17, 415, 28, 28)
           // canvas.FillText('筑巢荟', '#ffffff', 18, 63, 436)
-          canvas.Image(icon2, 250, 393, 80, 80)
-				
+		  canvas.RoundRect("#ffffff", 0, 380, 345, 120, 0)
+          canvas.Image(icon2, 60, 393, 80, 80)
+		  canvas.FillText('长按识别二维码', '#333333', 14, 150, 420)
+		  canvas.FillText('查看我的个人主页', '#333333', 14, 150, 450)			  
+					  
           ctx.draw(true, () => {
             uni.canvasToTempFilePath({
               canvasId: 'firstCanvas',
@@ -299,21 +301,25 @@ onLoad(async (query: { type: 'badge' | 'certificate'; data: string; id: number }
         </div>
       </div>
       <div class="bg-[#ffffff] rounded-[20px] mx-[14px] mt-[20px] py-4 px-6">
-        <div class="flex items-center gap-4">
+        <!-- <div class="flex items-center gap-4">
           <div
             class="text-white text-[26px] font-normal font-['PingFang_SC'] uppercase text-center"
             v-for="(item, index) in panels"
             :key="index"
             @click="select(item)"
           >
-            <!-- 分享到 -->
             <wd-img :src="item.iconUrl" width="40px" mode="widthFix"></wd-img>
             <div class="text-center text-black text-sm font-normal font-['PingFang_SC'] uppercase">
               {{ item.title }}
             </div>
           </div>
+        </div> -->
+		<div
+          @click="cancelSaveImage"
+          class="bg-[rgb(12,190,125)] line-height-[40px] h-[40px] text-center rounded-[50px] mx-[4px] mt-[20px] text-white font-normal font-['PingFang_SC']"
+        >
+          保存到本地
         </div>
-
         <div
           @click="cancelSaveImage"
           class="bg-[rgb(240,240,240)] line-height-[40px] h-[40px] text-center rounded-[50px] mx-[4px] mt-[20px] text-black font-normal font-['PingFang_SC']"

+ 2 - 2
packages/app/src/pages-sub/mine/honors/index.vue

@@ -95,6 +95,7 @@ const handleGetBadge = (badge: any) => {
 const currentCertificate = ref<Certificate | undefined>()
 const isOwner = computed(() => String(userInfo.value?.userId) === id.value)
 onLoad(async (query?: Record<string | 'active' | 'id' | 'isShared', string>) => {
+	// console.log('query:::::', query)
   if (Object.keys(query).length !== 0) {
     if (query?.active) {
       active.value = query.active
@@ -109,8 +110,7 @@ onLoad(async (query?: Record<string | 'active' | 'id' | 'isShared', string>) =>
   await setStatistics()
   await setBadges()
   await setCertificates()
-  await setCollectionBadges()
-  console.log('query:::::', isOwner.value,isShared.value)
+  await setCollectionBadges()  
 })
 </script>
 <template>

+ 2 - 0
packages/app/src/pages/messages/components/message-card.vue

@@ -67,6 +67,8 @@ const handleJump = () => {
       query.createTime = String(props.options.createTime)
       query.viewsCount = props.options.viewCount
       break
+	case 17:
+	  query.id = String(props.options.designerId)
     case 14:
       query.type = props.options.couponType
     default: