Просмотр исходного кода

福利页面添加寄卖横幅(数智云店

2662043119@qq.com 1 год назад
Родитель
Сommit
b55ff0c417
1 измененных файлов с 12 добавлено и 9 удалено
  1. 12 9
      src/pages/sign/index.vue

+ 12 - 9
src/pages/sign/index.vue

@@ -37,16 +37,16 @@
             </view>
             <!-- 签到信息-end -->
         </view>
-        <!-- 天天捡漏-start -->
-        <view class="pick">
+        <!-- 天天捡漏等活动区-start -->
+        <view class="pick" v-for="(item,index) in activityList" :key="index">
             <image
               class="pick_img"
               mode="widthFix"
-              :src="pick.image"
-              @click="goto('/pages/product/productRetail', { type: pick.type })"
+              :src="item.image"
+              @click="goto('/pages/product/productRetail', { type: item.type })"
             ></image>
         </view>
-        <!-- 天天捡漏-end -->
+        <!-- 天天捡漏等活动区-end -->
         <!-- 精品推荐 -->
         <view class="bou_head flex_r flex_ac flex_jc">
             <image class="bou_img" src="/static/sgin/left.png" mode=""></image>
@@ -106,14 +106,14 @@ export default {
             nextSign: 0, //剩余签到时间 秒
             canClick: true,
             localInfo: {},
-            pick: {}, // 天天捡漏
+            activityList:[], // 活动横幅区
         };
     },
     async onShow() {
         this.userinfo = uni.getStorageSync("userinfo");
         this.loadData();
         this.goodsDay();
-        this.getPick();
+        this.getActivityList();
         this.localInfo = await uni.Luserfun()
     },
     onLoad(da) {},
@@ -145,10 +145,10 @@ export default {
             });
         },
         // 天天捡漏
-        getPick() {
+        getActivityList() {
             post("v1/goods/simple").then((res) => {
                 if (res.code === 0) {
-                    this.pick = res.data.data
+                    this.activityList = res.data.data
                 } else {
                     this.$toast(res.msg);
                 }
@@ -400,10 +400,13 @@ page {
 // 天天捡漏-start
 .pick{
     padding: 0 30rpx;
+    margin-bottom: 8rpx;
+    
     
     &_img{
         width: 100%;
         border-radius: 16rpx;
+        box-shadow: 2px 0px 0px 0px rgba(16, 178, 127, 0.16);
     }
 }
 // 天天捡漏-end