Jelajahi Sumber

uniapp端 shortcut组件bug rightPx

萤火科技 1 tahun lalu
induk
melakukan
5348fe0756
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      components/shortcut/index.vue
  2. 1 1
      pages/goods/detail.vue

+ 1 - 1
components/shortcut/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <view class="shortcut" :style="{ '--right': `${rightPx}rpx`, '--bottom': `${bottomPx}rpx` }">
+  <view class="shortcut" :style="{ '--right': `${right}rpx`, '--bottom': `${bottom}rpx` }">
     <!-- 首页 -->
     <view class="nav-item" :class="[isShow ? 'show_80' : (transparent ? '' : 'hide_80')]" @click="handleItem(0)">
       <text class="iconfont icon-home"></text>

+ 1 - 1
pages/goods/detail.vue

@@ -129,7 +129,7 @@
     </view>
 
     <!-- 快捷导航 -->
-    <!-- <shortcut bottom="120rpx" /> -->
+    <!-- <shortcut bottom="120" /> -->
 
     <!-- 分享菜单 -->
     <share-sheet v-model="showShareSheet" :shareTitle="goods.goods_name" :shareImageUrl="goods.goods_image" />