萤火科技 1 rok temu
rodzic
commit
654a7857c8

+ 1 - 1
components/page/diyComponents/coupon/index.vue

@@ -83,7 +83,7 @@
       // 立即领取事件
       handleReceive(index, item) {
         const app = this
-        if (app.disable || !item.state.value) {
+        if (app.disable || !item.state.value|| !item.coupon_id) {
           return
         }
         app.disable = true

+ 3 - 1
components/page/diyComponents/goods/index.vue

@@ -116,7 +116,9 @@
 
       // 跳转商品详情页
       handleGoodsItem(goodsId) {
-        this.$navTo(`pages/goods/detail`, { goodsId })
+        if (goodsId !== undefined) {
+          this.$navTo(`pages/goods/detail`, { goodsId })
+        }
       },
 
       // 点击加入购物车

+ 3 - 7
components/page/diyComponents/navBar/index.vue

@@ -5,7 +5,7 @@
     <view class="data-list" :class="[`avg-sm-${itemStyle.rowsNum}`]">
       <view class="item-nav" v-for="(dataItem, index) in dataList" :key="index" @click="onLink(dataItem.link)">
         <view class="item-image">
-          <image class="image" :style="{ width: `${itemStyle.imageSize * 2}rpx`, height: `${itemStyle.imageSize * 2}rpx` }" mode="widthFix"
+          <image class="image" :style="{ width: `${itemStyle.imageSize * 2}rpx`, height: `${itemStyle.imageSize * 2}rpx` }" mode="scaleToFill"
             :src="dataItem.imgUrl"></image>
         </view>
         <view class="item-text oneline-hide">{{ dataItem.text }}</view>
@@ -55,19 +55,15 @@
     flex-direction: column;
 
     .data-list {
-      // margin-bottom: -20rpx;
+      margin-bottom: -20rpx;
     }
 
     .item-nav {
       float: left;
       text-align: center;
-      // margin-bottom: 20rpx;
+      margin-bottom: 20rpx;
       font-size: 26rpx;
 
-      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
-      font-size: 13px;
-
-
       .item-image {
         text-align: center;
         margin-bottom: 8rpx;

+ 1 - 1
components/page/diyComponents/notice/index.vue

@@ -2,7 +2,7 @@
   <!-- 店铺公告 -->
   <view class="diy-notice" :style="{ padding: `${itemStyle.paddingTop * 2}rpx 0` }"
     @click="onLink(params.link)">
-    <u-notice-bar padding="10rpx 24rpx" :volume-icon="params.showIcon" :autoplay="params.scrollable"
+    <u-notice-bar padding="12rpx 24rpx" :volume-icon="params.showIcon" :autoplay="params.scrollable"
       :bg-color="itemStyle.background" :color="itemStyle.textColor" :list="[params.text]" :font-size="itemStyle.fontSize * 2"></u-notice-bar>
   </view>
 </template>