|
|
@ -21,7 +21,16 @@ |
|
|
|
</block> |
|
|
|
</block> |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="news acea-row row-between-wrapper"> |
|
|
|
|
|
|
|
|
|
|
|
<view class="nav acea-row"> |
|
|
|
|
|
|
|
<view @click="goWxappUrl(item)" class="item" v-for="(item, menusIndex) in menus" :key="menusIndex"> |
|
|
|
|
|
|
|
<view class="pictrue"> |
|
|
|
|
|
|
|
<image :src="item.pic" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view>{{ item.name }}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="news acea-row "> |
|
|
|
<view class="pictrue" v-if="$VUE_APP_RESOURCES_URL"> |
|
|
|
<view class="pictrue" v-if="$VUE_APP_RESOURCES_URL"> |
|
|
|
<image src="@/static/images/news.png" /> |
|
|
|
<image src="@/static/images/news.png" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -41,20 +50,13 @@ |
|
|
|
</swiper> |
|
|
|
</swiper> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="nav acea-row"> |
|
|
|
<view class="wrapper hot" v-if="likeInfo.length > 0"> |
|
|
|
<view @click="goWxappUrl(item)" class="item" v-for="(item, menusIndex) in menus" :key="menusIndex"> |
|
|
|
|
|
|
|
<view class="pictrue"> |
|
|
|
|
|
|
|
<image :src="item.pic" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view>{{ item.name }}</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="wrapper hot" v-if="bastList.length > 0"> |
|
|
|
|
|
|
|
<image class="bg" src="../../static/images/index-bg.png" mode="widthFix"></image> |
|
|
|
<image class="bg" src="../../static/images/index-bg.png" mode="widthFix"></image> |
|
|
|
<view class="title no-border acea-row row-between-wrapper"> |
|
|
|
<view class="title no-border acea-row row-between-wrapper"> |
|
|
|
<view class="text"> |
|
|
|
<div class="text line1"> |
|
|
|
<view class="name line1">热门榜单</view> |
|
|
|
<span class="iconfont icon-remen"></span> |
|
|
|
</view> |
|
|
|
<span class="label">热门榜单</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
<view @click="goHotNewGoods(2)" class="more"> |
|
|
|
<view @click="goHotNewGoods(2)" class="more"> |
|
|
|
更多 |
|
|
|
更多 |
|
|
|
<text class="iconfont icon-jiantou"></text> |
|
|
|
<text class="iconfont icon-jiantou"></text> |
|
|
@ -77,7 +79,10 @@ |
|
|
|
<view class="wrapper" v-if="bastList.length > 0"> |
|
|
|
<view class="wrapper" v-if="bastList.length > 0"> |
|
|
|
<view class="title no-border acea-row row-between-wrapper"> |
|
|
|
<view class="title no-border acea-row row-between-wrapper"> |
|
|
|
<view class="text"> |
|
|
|
<view class="text"> |
|
|
|
<view class="name line1">精品推荐</view> |
|
|
|
<div class="name line1"> |
|
|
|
|
|
|
|
<span class="iconfont icon-jingpintuijian"></span> |
|
|
|
|
|
|
|
<span class="label">精品推荐</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view @click="goHotNewGoods(1)" class="more"> |
|
|
|
<view @click="goHotNewGoods(1)" class="more"> |
|
|
|
更多 |
|
|
|
更多 |
|
|
@ -91,8 +96,8 @@ |
|
|
|
<view class="title acea-row row-between-wrapper"> |
|
|
|
<view class="title acea-row row-between-wrapper"> |
|
|
|
<view class="text"> |
|
|
|
<view class="text"> |
|
|
|
<view class="name line1"> |
|
|
|
<view class="name line1"> |
|
|
|
首发新品 |
|
|
|
<span class="iconfont icon-xinpin"></span> |
|
|
|
<text class="new font-color-red">NEW~</text> |
|
|
|
<span class="label">首发新品</span> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view @click="goHotNewGoods(3)" class="more"> |
|
|
|
<view @click="goHotNewGoods(3)" class="more"> |
|
|
@ -117,7 +122,10 @@ |
|
|
|
<view class="wrapper" v-if="benefit.length > 0"> |
|
|
|
<view class="wrapper" v-if="benefit.length > 0"> |
|
|
|
<view class="title acea-row row-between-wrapper"> |
|
|
|
<view class="title acea-row row-between-wrapper"> |
|
|
|
<view class="text"> |
|
|
|
<view class="text"> |
|
|
|
<view class="name line1">促销单品</view> |
|
|
|
<div class="name line1 new-name"> |
|
|
|
|
|
|
|
<span class="iconfont icon-shoucang"></span> |
|
|
|
|
|
|
|
<span class="txt">猜你喜欢</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view @click="goGoodsPromotion(4)" class="more"> |
|
|
|
<view @click="goGoodsPromotion(4)" class="more"> |
|
|
|
更多 |
|
|
|
更多 |
|
|
@ -131,7 +139,11 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
// import { swiper, swiperSlide } from "vue-awesome-swiper"; |
|
|
|
// import { swiper, swiperSlide } from "vue-awesome-swiper"; |
|
|
|
import { mapState, mapMutations, mapActions } from 'vuex'; |
|
|
|
import { |
|
|
|
|
|
|
|
mapState, |
|
|
|
|
|
|
|
mapMutations, |
|
|
|
|
|
|
|
mapActions |
|
|
|
|
|
|
|
} from 'vuex'; |
|
|
|
|
|
|
|
|
|
|
|
import GoodList from '@/components/GoodList'; |
|
|
|
import GoodList from '@/components/GoodList'; |
|
|
|
import PromotionGood from '@/components/PromotionGood'; |
|
|
|
import PromotionGood from '@/components/PromotionGood'; |
|
|
@ -302,27 +314,39 @@ |
|
|
|
switch (option.pageType) { |
|
|
|
switch (option.pageType) { |
|
|
|
case 'good': |
|
|
|
case 'good': |
|
|
|
// 跳转商品详情 |
|
|
|
// 跳转商品详情 |
|
|
|
this.$yrouter.push({path:'/pages/shop/GoodsCon/index',query:{ |
|
|
|
this.$yrouter.push({ |
|
|
|
|
|
|
|
path: '/pages/shop/GoodsCon/index', |
|
|
|
|
|
|
|
query: { |
|
|
|
q: res.result |
|
|
|
q: res.result |
|
|
|
}}); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'group': |
|
|
|
case 'group': |
|
|
|
// 跳转团购 |
|
|
|
// 跳转团购 |
|
|
|
this.$yrouter.push({path:'/pages/activity/GroupRule/index',query:{ |
|
|
|
this.$yrouter.push({ |
|
|
|
|
|
|
|
path: '/pages/activity/GroupRule/index', |
|
|
|
|
|
|
|
query: { |
|
|
|
q: res.result |
|
|
|
q: res.result |
|
|
|
}}); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'dargain': |
|
|
|
case 'dargain': |
|
|
|
// 跳转砍价 |
|
|
|
// 跳转砍价 |
|
|
|
this.$yrouter.push({path:'/pages/activity/DargainDetails/index',query:{ |
|
|
|
this.$yrouter.push({ |
|
|
|
|
|
|
|
path: '/pages/activity/DargainDetails/index', |
|
|
|
|
|
|
|
query: { |
|
|
|
q: res.result |
|
|
|
q: res.result |
|
|
|
}}); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
// 跳转分销 |
|
|
|
// 跳转分销 |
|
|
|
this.$yrouter.push({path:'/pages/Loading/index',query:{ |
|
|
|
this.$yrouter.push({ |
|
|
|
|
|
|
|
path: '/pages/Loading/index', |
|
|
|
|
|
|
|
query: { |
|
|
|
|
|
|
|
|
|
|
|
}}); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|