|
|
|
@ -72,7 +72,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="firstContent" @click="goNewUser"> |
|
|
|
|
<image :src="$picUrl+'/static/index/new.png?t=1'" class="firstBg"></image> |
|
|
|
|
<image :src="$picUrl+'/static/index/new.png?t='+timestamp" class="firstBg"></image> |
|
|
|
|
<view class="firstInfo"> |
|
|
|
|
<view class="fTitle"> |
|
|
|
|
<image :src="$picUrl+'/static/index/xinren.png'" class="firstTitle"></image> |
|
|
|
@ -112,8 +112,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="dapaiContent" @click="goBigGoods" v-if="dapaiList.length>0"> |
|
|
|
|
<template v-for="(item,index) in dapaiList" :key="index"> |
|
|
|
|
<view class="dapaiItem" |
|
|
|
|
v-if="index <= 9" |
|
|
|
|
<view class="dapaiItem" v-if="index <= 9" |
|
|
|
|
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> |
|
|
|
|
<view class="picContent"> |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
@ -177,7 +176,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="activity"> |
|
|
|
|
<view class="left" @click="goNews"> |
|
|
|
|
<image :src="$picUrl+'/static/index/activity.png?t=2'" mode="widthFix"></image> |
|
|
|
|
<image :src="$picUrl+'/static/index/activity.png?t='+timestamp" mode="widthFix"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="right"> |
|
|
|
|
<!-- <view class="rightContent"> --> |
|
|
|
@ -212,12 +211,12 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="right1Good"> |
|
|
|
|
<template v-for="(item,index) in paihangList" :key="index"> |
|
|
|
|
<view class="right1Item" |
|
|
|
|
v-if="index <=2" |
|
|
|
|
<view class="right1Item" v-if="index <=2" |
|
|
|
|
@click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
|
<view class="priceBox"> |
|
|
|
|
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image> |
|
|
|
|
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"> |
|
|
|
|
</image> |
|
|
|
|
<view><text>¥</text>{{item.goods_price_min}}</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -467,6 +466,7 @@ |
|
|
|
|
isLogin: false, |
|
|
|
|
isTop: false, |
|
|
|
|
logoImage: '', |
|
|
|
|
timestamp: new Date().getTime(), |
|
|
|
|
// background: { |
|
|
|
|
// backgroundColor: 'transparent', |
|
|
|
|
// }, |
|
|
|
@ -484,31 +484,31 @@ |
|
|
|
|
tabCurrent: 0, |
|
|
|
|
swiperList: [`${this.$picUrl}/static/index/guanggao.png`], |
|
|
|
|
gridList: [{ |
|
|
|
|
image: `${this.$picUrl}/static/index/g1.png?n=1`, |
|
|
|
|
image: `${this.$picUrl}/static/index/g1.png?n=` + new Date().getTime(), |
|
|
|
|
text: "预售专区", |
|
|
|
|
path: '/pages/activity/presale', |
|
|
|
|
type: 2 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/g2.png?n=1`, |
|
|
|
|
image: `${this.$picUrl}/static/index/g2.png?n=` + new Date().getTime(), |
|
|
|
|
text: "邀请有礼", |
|
|
|
|
path: '/pages/invite/index', |
|
|
|
|
type: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/g3.png?n=1`, |
|
|
|
|
image: `${this.$picUrl}/static/index/g3.png?n=` + new Date().getTime(), |
|
|
|
|
text: "领券中心", |
|
|
|
|
path: '/pages/news/coupon/index', |
|
|
|
|
type: 2 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/g4.png?n=1`, |
|
|
|
|
image: `${this.$picUrl}/static/index/g4.png?n=` + new Date().getTime(), |
|
|
|
|
text: "安装报修", |
|
|
|
|
path: '/pages/serve/index', |
|
|
|
|
type: 3 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/g5.png?n=1`, |
|
|
|
|
image: `${this.$picUrl}/static/index/g5.png?n=` + new Date().getTime(), |
|
|
|
|
text: "上门回收", |
|
|
|
|
path: '/pages/news/recycling/index', |
|
|
|
|
type: 2 |
|
|
|
@ -524,100 +524,6 @@ |
|
|
|
|
//第二 |
|
|
|
|
count: 4, |
|
|
|
|
value: 2, |
|
|
|
|
tagsList: [ |
|
|
|
|
'手机选购', '电脑选购', '配件选购', '旧机回收' |
|
|
|
|
], |
|
|
|
|
dianneiList: [{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GBiphone13 绿色 128GBiphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods1.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 0 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 0 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods1.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 0 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods1.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods1.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 1 |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
image: `${this.$picUrl}/static/index/goods.png`, |
|
|
|
|
price: "7599", |
|
|
|
|
linePrice: '7089', |
|
|
|
|
name: 'iphone13 绿色 128GB', |
|
|
|
|
comment: '200+', |
|
|
|
|
rate: '99', |
|
|
|
|
isOwn: true, |
|
|
|
|
isExperss: 1 |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
weixiuList: [], |
|
|
|
|
commentList: [], |
|
|
|
|
bannerList: [], |
|
|
|
@ -727,16 +633,18 @@ |
|
|
|
|
}, |
|
|
|
|
getTypeList() { |
|
|
|
|
GoodsApi.typeList({ |
|
|
|
|
is_in_store: this.current==0?0:1 |
|
|
|
|
is_in_store: this.current == 0 ? 0 : 1 |
|
|
|
|
}).then(res => { |
|
|
|
|
if (res.status == 200) { |
|
|
|
|
this.tabList = res.data.list; |
|
|
|
|
this.catagoryList = res.data.list[0].children |
|
|
|
|
if(this.current==0){ |
|
|
|
|
this.getRankingList(this.tabList[0].category_id) |
|
|
|
|
this.getNewGoods(this.tabList[0].category_id) |
|
|
|
|
if (this.current == 0) { |
|
|
|
|
this.getRankingList(this.tabList[0].category_id) |
|
|
|
|
// this.getNewGoods(this.tabList[0].category_id) |
|
|
|
|
this.getNewGoods() |
|
|
|
|
} |
|
|
|
|
this.getBigList(this.tabList[0].category_id) |
|
|
|
|
this.getBigList() |
|
|
|
|
// this.getBigList(this.tabList[0].category_id) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
@ -766,13 +674,14 @@ |
|
|
|
|
this.tabCurrent = index; |
|
|
|
|
this.catagoryList = this.tabList[index].children; |
|
|
|
|
this.getRankingList(this.tabList[index].category_id) |
|
|
|
|
this.getNewGoods(this.tabList[index].category_id) |
|
|
|
|
this.getBigList(this.tabList[index].category_id) |
|
|
|
|
// this.getNewGoods(this.tabList[index].category_id) |
|
|
|
|
this.getNewGoods() |
|
|
|
|
// this.getBigList(this.tabList[index].category_id) |
|
|
|
|
this.getBigList() |
|
|
|
|
}, |
|
|
|
|
getRankingList(val) { |
|
|
|
|
// 获取首页排行榜 |
|
|
|
|
GoodsApi.chartsGoodsJing().then(result => { |
|
|
|
|
|
|
|
|
|
let arr = result.data; |
|
|
|
|
let finalArr = arr.filter(item => { |
|
|
|
|
return item.category_id == val |
|
|
|
@ -839,11 +748,11 @@ |
|
|
|
|
let param = { |
|
|
|
|
page: 1, |
|
|
|
|
per_page: 100, |
|
|
|
|
categoryId: val, |
|
|
|
|
categoryId: '', |
|
|
|
|
is_brand: '', |
|
|
|
|
is_new: 1, |
|
|
|
|
order: 1, |
|
|
|
|
is_in_store:0 |
|
|
|
|
is_in_store: 0 |
|
|
|
|
} |
|
|
|
|
GoodsApi.brandList(param).then(res => { |
|
|
|
|
let arr = res.data.data |
|
|
|
@ -869,11 +778,11 @@ |
|
|
|
|
let param = { |
|
|
|
|
page: 1, |
|
|
|
|
per_page: 100, |
|
|
|
|
categoryId: val, |
|
|
|
|
is_brand: this.current==0?1:'', |
|
|
|
|
categoryId: '', |
|
|
|
|
is_brand: this.current == 0 ? 1 : '', |
|
|
|
|
is_new: '', |
|
|
|
|
order: 1, |
|
|
|
|
is_in_store: this.current==0?0:1 |
|
|
|
|
is_in_store: this.current == 0 ? 0 : 1 |
|
|
|
|
} |
|
|
|
|
GoodsApi.brandList(param).then(res => { |
|
|
|
|
let arr = res.data.data; |
|
|
|
@ -937,7 +846,6 @@ |
|
|
|
|
changeHome(val) { |
|
|
|
|
this.current = val; |
|
|
|
|
this.getTypeList() |
|
|
|
|
// this.getBigList(this.tabList[this.tabCurrent].category_id) |
|
|
|
|
}, |
|
|
|
|
getCityInfo() { |
|
|
|
|
const that = this |
|
|
|
@ -1166,7 +1074,8 @@ |
|
|
|
|
height: 196rpx; |
|
|
|
|
width: 695rpx; |
|
|
|
|
} |
|
|
|
|
::v-deep .u-swiper-image{ |
|
|
|
|
|
|
|
|
|
::v-deep .u-swiper-image { |
|
|
|
|
width: 100% !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1281,7 +1190,7 @@ |
|
|
|
|
display: flex; |
|
|
|
|
// justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-top: 15rpx; |
|
|
|
|
margin-top: 25rpx; |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
width: 67%; |
|
|
|
@ -2280,4 +2189,4 @@ |
|
|
|
|
// height:10px; |
|
|
|
|
// width:10px; |
|
|
|
|
// } |
|
|
|
|
</style> |
|
|
|
|
</style> |
|
|
|
|