|
|
@ -72,7 +72,7 @@ |
|
|
|
<u-icon v-else style="margin-left: 10rpx;" name="arrow-up"></u-icon> |
|
|
|
<u-icon v-else style="margin-left: 10rpx;" name="arrow-up"></u-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="firstContent" @click="goNewUser"> |
|
|
|
<view class="firstContent" @click="goNewUser" v-if="wxAppSetting.new_first_gift"> |
|
|
|
<image :src="$picUrl+'/static/index/new.png?t='+timestamp" class="firstBg"></image> |
|
|
|
<image :src="$picUrl+'/static/index/new.png?t='+timestamp" class="firstBg"></image> |
|
|
|
<view class="firstInfo"> |
|
|
|
<view class="firstInfo"> |
|
|
|
<view class="fTitle"> |
|
|
|
<view class="fTitle"> |
|
|
@ -103,6 +103,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<template v-if="wxAppSetting.big_brand"> |
|
|
|
<view class="dapai" v-if="dapaiList && dapaiList.length>0"> |
|
|
|
<view class="dapai" v-if="dapaiList && dapaiList.length>0"> |
|
|
|
<!-- <image src="/static/index/dapaibg.png" mode="widthFix" class="dapaibg"></image> --> |
|
|
|
<!-- <image src="/static/index/dapaibg.png" mode="widthFix" class="dapaibg"></image> --> |
|
|
|
<view class="dapaiBox"> |
|
|
|
<view class="dapaiBox"> |
|
|
@ -136,6 +137,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
|
<view class="qianggou" v-if="seckillList && seckillList.length>0"> |
|
|
|
<view class="qianggou" v-if="seckillList && seckillList.length>0"> |
|
|
|
<view class="title" @click="seckill"> |
|
|
|
<view class="title" @click="seckill"> |
|
|
|
<image :src="$picUrl+'/static/index/limitBuy.png'" mode="widthFix"></image> |
|
|
|
<image :src="$picUrl+'/static/index/limitBuy.png'" mode="widthFix"></image> |
|
|
@ -181,12 +183,12 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="activity"> |
|
|
|
<view class="activity"> |
|
|
|
<view class="left" @click="goNews"> |
|
|
|
<view class="left" @click="goNews" v-if="wxAppSetting.service"> |
|
|
|
<image :src="$picUrl+'/static/index/activity.png?t='+timestamp" mode="widthFix"></image> |
|
|
|
<image :src="$picUrl+'/static/index/activity.png?t='+timestamp" mode="widthFix"></image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="right"> |
|
|
|
<view class="right"> |
|
|
|
<!-- <view class="rightContent"> --> |
|
|
|
<!-- <view class="rightContent"> --> |
|
|
|
<view class="rightItem1"> |
|
|
|
<view class="rightItem1" v-if="wxAppSetting.new_product"> |
|
|
|
<view style="margin-bottom: 10rpx;"> |
|
|
|
<view style="margin-bottom: 10rpx;"> |
|
|
|
<image :src="$picUrl+'/static/index/xinpin.png'" mode="widthFix" @click="goNewGoods" |
|
|
|
<image :src="$picUrl+'/static/index/xinpin.png'" mode="widthFix" @click="goNewGoods" |
|
|
|
class="title"></image> |
|
|
|
class="title"></image> |
|
|
@ -209,7 +211,7 @@ |
|
|
|
</scroll-view> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="rightItem2"> |
|
|
|
<view class="rightItem2" v-if="wxAppSetting.ranking_list"> |
|
|
|
<view style="margin-bottom: 10rpx;"> |
|
|
|
<view style="margin-bottom: 10rpx;"> |
|
|
|
<image :src="$picUrl+'/static/index/paihangbang.png'" mode="widthFix" @click="rankIng" |
|
|
|
<image :src="$picUrl+'/static/index/paihangbang.png'" mode="widthFix" @click="rankIng" |
|
|
|
class="title"></image> |
|
|
|
class="title"></image> |
|
|
@ -565,10 +567,30 @@ |
|
|
|
couList: [], |
|
|
|
couList: [], |
|
|
|
timeData: {}, |
|
|
|
timeData: {}, |
|
|
|
tabbar: [], |
|
|
|
tabbar: [], |
|
|
|
curTabIndex: 0 |
|
|
|
curTabIndex: 0, |
|
|
|
|
|
|
|
wxAppSetting: {} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取小程序配置 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
async queryWxAppSetting() { |
|
|
|
|
|
|
|
let { |
|
|
|
|
|
|
|
status, |
|
|
|
|
|
|
|
data |
|
|
|
|
|
|
|
} = await GoodsApi.wxAppSetting({}); |
|
|
|
|
|
|
|
if (status == 200) { |
|
|
|
|
|
|
|
this.wxAppSetting = data; |
|
|
|
|
|
|
|
this.list = data.same_city?[{ |
|
|
|
|
|
|
|
name: '首页' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
name: '同城送' |
|
|
|
|
|
|
|
}]: [{ |
|
|
|
|
|
|
|
name: '首页' |
|
|
|
|
|
|
|
}] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
onChangeSeckillCutDownTime(e) { |
|
|
|
onChangeSeckillCutDownTime(e) { |
|
|
|
this.timeData = e |
|
|
|
this.timeData = e |
|
|
|
}, |
|
|
|
}, |
|
|
@ -967,7 +989,8 @@ |
|
|
|
this.getCoupons(); |
|
|
|
this.getCoupons(); |
|
|
|
this.getServeList(); |
|
|
|
this.getServeList(); |
|
|
|
this.queryBannerList(); |
|
|
|
this.queryBannerList(); |
|
|
|
this.getStore() |
|
|
|
this.getStore(); |
|
|
|
|
|
|
|
this.queryWxAppSetting(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.isLogin = uni.getStorageSync("AccessToken") ? true : false |
|
|
|
this.isLogin = uni.getStorageSync("AccessToken") ? true : false |
|
|
|