Parcourir la source

Revert "Update index.tsx"

This reverts commit 67cca54c565b501ce4cd4d5bcfb6ea538b31ce10.
lex il y a 2 ans
Parent
commit
aa5db9947b
1 fichiers modifiés avec 4 ajouts et 9 suppressions
  1. 4 9
      src/views/music/component/song/index.tsx

+ 4 - 9
src/views/music/component/song/index.tsx

@@ -77,9 +77,9 @@ export default defineComponent({
           location.origin +
           `/accompany/colexiu-share.html?id=${moreData.value.id}&recomUserId=${state.user.data?.userId}&userType=${state.platformType}`
         // 判断是否有活动
-        // if (res.data.discount === 1) {
-        url += `&activityId=${res.data.activityId}`
-        // }
+        if (res.data.discount === 1) {
+          url += `&activityId=${res.data.activityId}`
+        }
         shareDiscount.value = res.data.discount || 0
         shareUrl.value = url
         isMore.value = false
@@ -165,12 +165,7 @@ export default defineComponent({
             </div>
           ))}
 
-          <Popup
-            v-model:show={isMore.value}
-            position="bottom"
-            round
-            teleport="body"
-          >
+          <Popup v-model:show={isMore.value} position="bottom" round teleport='body'>
             <CellGroup border={false}>
               <Cell
                 center