- (2020/04/12) [+] 首页榜单进去提示登陆,页面空白:,还有这种总数操作也会就跳转到授权页面,应该是又问题的这快 - (2020/04/12) [+] 全部商品,右边有错误截图如下 - (2020/04/12) [+] 秒杀列表数据不显示;公众号15点的就有数据,但是小程序没有 - (2020/04/12) [+] 7、砍价可以改下,看下最新H5代码,首次进来不自动砍价,自己点击才砍价一次,而且里面详情是乱的 - (2020/04/12) [+] 为啥我也没退出,就取截个图,再进来,点击商品详情,又让登陆,登陆失效怎么这么快,mpvue小程序就没这个问题,这个问题非常严重,一会让让跳转到授权页面登陆!! - (2020/04/12) [+] 1、商品购买选择规格,这个开始进去点可以,点到后面花色的规格点不动了 - (2020/04/12) [+] 2、拼团客服隐藏掉,下面按钮太那个了,把商品详情那个收藏功能放进来,他们收藏功能都是一样的 - (2020/04/12) [+] 商品详情海报一直海报生成中 - (2020/04/12) [+] 砍价弹窗修改 - (2020/04/11) [+] 1、购买选择规格属性点不了 - (2020/04/11) [+] 12、拼团详情客服功能隐藏去掉,其他地方有客服功能的都去掉 - (2020/04/11) [+] 11、分类点击 会分类Tab页分类一级比一级低 - (2020/04/11) [+] 10、我的推广,里面样式有问题,点击海报里面空白 - (2020/04/11) [+] 9、小程序订单核销没上 你那边先根据路径判断隐藏下 - (2020/04/11) [+] 8、订单点击评价没反应 - (2020/04/11) [+] 6、个人中心我的余额点进去点击账单记录一直正在加载中,点击下全部就出来了,应该你没带默认参数 - (2020/04/11) [+] 5、添加地址选择地区无效 - (2020/04/11) [+] 4、待收货 列表查看物流点击没反应,详情查看物流可以点 - (2020/04/11) [+] 3、下单点击积分抵扣没反应 - (2020/04/11) [+] 2、购物车列表点击管理 点击收藏功能去掉
85 lines
2.1 KiB
Vue
85 lines
2.1 KiB
Vue
<template>
|
|
<view class="quality-recommend">
|
|
<view class="title acea-row row-center-wrapper">
|
|
<view class="line"></view>
|
|
<view class="name">
|
|
<text class="iconfont" :class="icon"></text>{{ name }}
|
|
</view>
|
|
<view class="line"></view>
|
|
</view>
|
|
<GoodList :good-list="goodsList" :is-sort="false"></GoodList>
|
|
</view>
|
|
</template>
|
|
<script>
|
|
|
|
import GoodList from "@/components/GoodList";
|
|
import { getGroomList } from "@/api/store";
|
|
export default {
|
|
name: "HotNewGoods",
|
|
components: {
|
|
GoodList
|
|
},
|
|
props: {},
|
|
data: function() {
|
|
return {
|
|
imgUrls: [],
|
|
goodsList: [],
|
|
name: "",
|
|
icon: "",
|
|
RecommendSwiper: {
|
|
pagination: {
|
|
el: ".swiper-pagination",
|
|
clickable: true
|
|
},
|
|
autoplay: {
|
|
disableOnInteraction: false,
|
|
delay: 2000
|
|
},
|
|
loop: true,
|
|
speed: 1000,
|
|
observer: true,
|
|
observeParents: true
|
|
}
|
|
};
|
|
},
|
|
mounted: function() {
|
|
this.titleInfo();
|
|
this.getIndexGroomList();
|
|
},
|
|
methods: {
|
|
titleInfo: function() {
|
|
let type = this.$yroute.query.type;
|
|
if (type === "1") {
|
|
this.name = "精品推荐";
|
|
this.icon = "icon-jingpintuijian";
|
|
// document.title = "精品推荐";
|
|
} else if (type === "2") {
|
|
this.name = "热门榜单";
|
|
this.icon = "icon-remen";
|
|
// document.title = "热门榜单";
|
|
} else if (type === "3") {
|
|
this.name = "首发新品";
|
|
this.icon = "icon-xinpin";
|
|
// document.title = "首发新品";
|
|
}
|
|
},
|
|
getIndexGroomList: function() {
|
|
let that = this;
|
|
let type = this.$yroute.query.type;
|
|
getGroomList(type)
|
|
.then(res => {
|
|
that.imgUrls = res.data.banner;
|
|
that.goodsList = res.data.list;
|
|
})
|
|
.catch((err)=> {
|
|
uni.showToast({
|
|
title: err.msg || err.response.data.msg,
|
|
icon: 'none',
|
|
duration: 2000
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|