|
@@ -8,7 +8,7 @@
|
|
|
<text>{{city}}</text>
|
|
<text>{{city}}</text>
|
|
|
<image src="../../static/image/index/img/jiantou.png" mode="" style="width: 12px;height: 12px;"></image>
|
|
<image src="../../static/image/index/img/jiantou.png" mode="" style="width: 12px;height: 12px;"></image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="search" style="">
|
|
|
|
|
|
|
+ <view class="search" :style="{opacity:featureHideHandling?1:0}">
|
|
|
<u-search :show-action="true" action-text="搜索" bg-color="#fff" maxlength="10" placeholder="请输入关键词"
|
|
<u-search :show-action="true" action-text="搜索" bg-color="#fff" maxlength="10" placeholder="请输入关键词"
|
|
|
:clearabled="false" :action-style="{position: 'absolute',right:'10px'}" search-icon="0">
|
|
:clearabled="false" :action-style="{position: 'absolute',right:'10px'}" search-icon="0">
|
|
|
</u-search>
|
|
</u-search>
|
|
@@ -26,102 +26,110 @@
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="pagebody">
|
|
<view class="pagebody">
|
|
|
- <index-nav :resdata="categoryList" :row="2" @authModal="authModal"></index-nav>
|
|
|
|
|
- <u-tabs :list="itemCategorylist" :is-scroll="false" :current="current" @change="change"
|
|
|
|
|
- style="background: transparent;" active-color="#000"></u-tabs>
|
|
|
|
|
- <view class="mt-1 dis j-s a-c">
|
|
|
|
|
- <view class="activity dis f-c " @click="activity('/pages/index/checkIn')">
|
|
|
|
|
- <text>签到有礼</text>
|
|
|
|
|
- <text>福利多多</text>
|
|
|
|
|
- <image src="../../static/image/index/pick-img/1.png" mode="" style="width: 32px;height: 32px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="activity dis f-c " @click="activity('/pages/index/task')">
|
|
|
|
|
- <text>精彩任务</text>
|
|
|
|
|
- <text>奖励多多</text>
|
|
|
|
|
- <image src="../../static/image/index/pick-img/2.png" mode="" style="width: 36px;height: 32px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="activity dis f-c " @click="activity('/pages/index/flashSale')">
|
|
|
|
|
- <text>限时秒杀</text>
|
|
|
|
|
- <text>9.9元起</text>
|
|
|
|
|
- <image src="../../static/image/index/pick-img/3.png" mode="" style="width: 32px;height: 32px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="mt-3 dis j-s ">
|
|
|
|
|
- <view class="flashSale dis f-c">
|
|
|
|
|
- <image class="bg1" src="../../static/image/index/pick-img/bg1.png" mode=""></image>
|
|
|
|
|
- <view class="title dis j-s">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/4.png" mode="widthFix"
|
|
|
|
|
- style="width: 73px;height: 25px;"></image>
|
|
|
|
|
- <view class="dis a-c">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/loding.png" mode=""
|
|
|
|
|
- style="width: 12px;height: 12px;"></image>
|
|
|
|
|
- <text>换一批</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="dis j-s a-c mt-2">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/5.png" mode="" style="width: 56px;height: 56px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- <image src="../../static/image/index/pick-img/8.png" mode="" style="width: 80px;height: 56px;">
|
|
|
|
|
|
|
+ <index-nav :resdata="categoryList" :row="featureHideHandling?2:1" @authModal="authModal"></index-nav>
|
|
|
|
|
+ <template v-if="featureHideHandling">
|
|
|
|
|
+ <u-tabs :list="itemCategorylist" :is-scroll="false" :current="current" @change="change"
|
|
|
|
|
+ style="background: transparent;" active-color="#000"></u-tabs>
|
|
|
|
|
+ <view class="mt-1 dis j-s a-c">
|
|
|
|
|
+ <view class="activity dis f-c " @click="activity('/pages/index/checkIn')">
|
|
|
|
|
+ <text>签到有礼</text>
|
|
|
|
|
+ <text>福利多多</text>
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/1.png" mode="" style="width: 32px;height: 32px;">
|
|
|
</image>
|
|
</image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis j-s a-c mt-2">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/6.png" mode="" style="width: 56px;height: 56px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- <image src="../../static/image/index/pick-img/9.png" mode="" style="width: 80px;height: 56px;">
|
|
|
|
|
|
|
+ <view class="activity dis f-c " @click="activity('/pages/index/task')">
|
|
|
|
|
+ <text>精彩任务</text>
|
|
|
|
|
+ <text>奖励多多</text>
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/2.png" mode="" style="width: 36px;height: 32px;">
|
|
|
</image>
|
|
</image>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="dis j-s a-c mt-2">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/7.png" mode="" style="width: 56px;height: 56px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- <image src="../../static/image/index/pick-img/8.png" mode="" style="width: 80px;height: 56px;">
|
|
|
|
|
|
|
+ <view class="activity dis f-c " @click="activity('/pages/index/flashSale')">
|
|
|
|
|
+ <text>限时秒杀</text>
|
|
|
|
|
+ <text>9.9元起</text>
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/3.png" mode="" style="width: 32px;height: 32px;">
|
|
|
</image>
|
|
</image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="hotSaleList dis f-c">
|
|
|
|
|
- <image class="bg1" src="../../static/image/index/pick-img/bg2.png" mode=""></image>
|
|
|
|
|
- <view class="title dis j-s">
|
|
|
|
|
- <text style="font-size: 17px;color: #333;font-weight: bold;">热销榜</text>
|
|
|
|
|
- <view class="dis a-c">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/loding.png" mode=""
|
|
|
|
|
- style="width: 12px;height: 12px;"></image>
|
|
|
|
|
- <text>换一批</text>
|
|
|
|
|
|
|
+ <view class="mt-3 dis j-s ">
|
|
|
|
|
+ <view class="flashSale dis f-c">
|
|
|
|
|
+ <image class="bg1" src="../../static/image/index/pick-img/bg1.png" mode=""></image>
|
|
|
|
|
+ <view class="title dis j-s">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/4.png" mode="widthFix"
|
|
|
|
|
+ style="width: 73px;height: 25px;"></image>
|
|
|
|
|
+ <view class="dis a-c">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/loding.png" mode=""
|
|
|
|
|
+ style="width: 12px;height: 12px;"></image>
|
|
|
|
|
+ <text>换一批</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
- <view class="mt-2 dis a-c j-s content" style="position: relative;">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/10.png" mode=""
|
|
|
|
|
- style="width: 53px;height: 53px;margin-right: 8px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- <view class="dis f-c " style="width: 55%;">
|
|
|
|
|
- <text style="font-size: 12px;color: #333;line-height: 1.2;">车仆后视镜弹水剂 新升级...</text>
|
|
|
|
|
- <text style="color: #FF476C;font-size: 12px;">¥ <text
|
|
|
|
|
- style="font-size: 15px;font-weight: bold;line-height: 1.2;">79</text> </text>
|
|
|
|
|
|
|
+ <view class="dis j-s a-c mt-2">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/5.png" mode=""
|
|
|
|
|
+ style="width: 56px;height: 56px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/8.png" mode=""
|
|
|
|
|
+ style="width: 80px;height: 56px;">
|
|
|
|
|
+ </image>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
- <view class="mt-2 dis a-c j-s " style="position: relative;">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/11.png" mode=""
|
|
|
|
|
- style="width: 53px;height: 53px;margin-right: 8px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- <view class="dis f-c " style="width: 55%;">
|
|
|
|
|
- <text style="font-size: 12px;color: #333;line-height: 1.2;">朗龙汽车香水车载香薰摆...</text>
|
|
|
|
|
- <text style="color: #FF476C;font-size: 12px;">¥ <text
|
|
|
|
|
- style="font-size: 15px;font-weight: bold; line-height: 1.2;">65.9</text> </text>
|
|
|
|
|
|
|
+ <view class="dis j-s a-c mt-2">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/6.png" mode=""
|
|
|
|
|
+ style="width: 56px;height: 56px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/9.png" mode=""
|
|
|
|
|
+ style="width: 80px;height: 56px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="dis j-s a-c mt-2">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/7.png" mode=""
|
|
|
|
|
+ style="width: 56px;height: 56px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/8.png" mode=""
|
|
|
|
|
+ style="width: 80px;height: 56px;">
|
|
|
|
|
+ </image>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class=" dis a-c j-s mt-2" style="position: relative;">
|
|
|
|
|
- <image src="../../static/image/index/pick-img/12.png" mode=""
|
|
|
|
|
- style="width: 53px;height: 53px;margin-right: 8px;">
|
|
|
|
|
- </image>
|
|
|
|
|
- <view class="dis f-c a-start " style="width: 55%;">
|
|
|
|
|
- <text style="font-size: 12px;color: #333;line-height: 1.2;">新车除甲醛除异味车内除...</text>
|
|
|
|
|
- <text style="color: #FF476C;font-size: 12px;">¥ <text
|
|
|
|
|
- style="font-size: 15px;font-weight: bold;line-height: 1.2;">29.5</text> </text>
|
|
|
|
|
|
|
+ <view class="hotSaleList dis f-c">
|
|
|
|
|
+ <image class="bg1" src="../../static/image/index/pick-img/bg2.png" mode=""></image>
|
|
|
|
|
+ <view class="title dis j-s">
|
|
|
|
|
+ <text style="font-size: 17px;color: #333;font-weight: bold;">热销榜</text>
|
|
|
|
|
+ <view class="dis a-c">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/loding.png" mode=""
|
|
|
|
|
+ style="width: 12px;height: 12px;"></image>
|
|
|
|
|
+ <text>换一批</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt-2 dis a-c j-s content" style="position: relative;">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/10.png" mode=""
|
|
|
|
|
+ style="width: 53px;height: 53px;margin-right: 8px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <view class="dis f-c " style="width: 55%;">
|
|
|
|
|
+ <text style="font-size: 12px;color: #333;line-height: 1.2;">车仆后视镜弹水剂 新升级...</text>
|
|
|
|
|
+ <text style="color: #FF476C;font-size: 12px;">¥ <text
|
|
|
|
|
+ style="font-size: 15px;font-weight: bold;line-height: 1.2;">79</text> </text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="mt-2 dis a-c j-s " style="position: relative;">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/11.png" mode=""
|
|
|
|
|
+ style="width: 53px;height: 53px;margin-right: 8px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <view class="dis f-c " style="width: 55%;">
|
|
|
|
|
+ <text style="font-size: 12px;color: #333;line-height: 1.2;">朗龙汽车香水车载香薰摆...</text>
|
|
|
|
|
+ <text style="color: #FF476C;font-size: 12px;">¥ <text
|
|
|
|
|
+ style="font-size: 15px;font-weight: bold; line-height: 1.2;">65.9</text> </text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class=" dis a-c j-s mt-2" style="position: relative;">
|
|
|
|
|
+ <image src="../../static/image/index/pick-img/12.png" mode=""
|
|
|
|
|
+ style="width: 53px;height: 53px;margin-right: 8px;">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ <view class="dis f-c a-start " style="width: 55%;">
|
|
|
|
|
+ <text style="font-size: 12px;color: #333;line-height: 1.2;">新车除甲醛除异味车内除...</text>
|
|
|
|
|
+ <text style="color: #FF476C;font-size: 12px;">¥ <text
|
|
|
|
|
+ style="font-size: 15px;font-weight: bold;line-height: 1.2;">29.5</text> </text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
|
|
+ </template>
|
|
|
</view>
|
|
</view>
|
|
|
<auth-Modal :authShow="authShow" @btnClick="authShow=false" @maskClick="authShow=false"></auth-Modal>
|
|
<auth-Modal :authShow="authShow" @btnClick="authShow=false" @maskClick="authShow=false"></auth-Modal>
|
|
|
</view>
|
|
</view>
|
|
@@ -233,7 +241,7 @@
|
|
|
title: '掌柜商城',
|
|
title: '掌柜商城',
|
|
|
width: '92rpx',
|
|
width: '92rpx',
|
|
|
height: '69rpx',
|
|
height: '69rpx',
|
|
|
- src: '/pages/shoppingMall/index'
|
|
|
|
|
|
|
+ // src: '/pages/shoppingMall/index'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
cat_id: 5,
|
|
cat_id: 5,
|
|
@@ -241,7 +249,7 @@
|
|
|
title: '洗车',
|
|
title: '洗车',
|
|
|
width: '68rpx',
|
|
width: '68rpx',
|
|
|
height: '68rpx',
|
|
height: '68rpx',
|
|
|
- src: '/pages/carWash/carWash'
|
|
|
|
|
|
|
+ // src: '/pages/carWash/carWash'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
cat_id: 6,
|
|
cat_id: 6,
|
|
@@ -249,7 +257,7 @@
|
|
|
title: '车检代办',
|
|
title: '车检代办',
|
|
|
width: '68rpx',
|
|
width: '68rpx',
|
|
|
height: '68rpx',
|
|
height: '68rpx',
|
|
|
- src: '/pages/caragent/index'
|
|
|
|
|
|
|
+ // src: '/pages/caragent/index'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
cat_id: 7,
|
|
cat_id: 7,
|
|
@@ -273,7 +281,7 @@
|
|
|
title: '一键挪车',
|
|
title: '一键挪车',
|
|
|
width: '68rpx',
|
|
width: '68rpx',
|
|
|
height: '68rpx',
|
|
height: '68rpx',
|
|
|
- src: '/pages/ticket/ticket'
|
|
|
|
|
|
|
+ // src: '/pages/ticket/ticket'
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
|
|
|
|
@@ -382,7 +390,7 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
computed: {
|
|
computed: {
|
|
|
- ...mapState(['userInfo'])
|
|
|
|
|
|
|
+ ...mapState(['userInfo', 'featureHideHandling'])
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
onPageScroll(e) {
|
|
onPageScroll(e) {
|
|
@@ -404,6 +412,7 @@
|
|
|
if (arr) {
|
|
if (arr) {
|
|
|
uni.removeStorageSync('historyInfo');
|
|
uni.removeStorageSync('historyInfo');
|
|
|
}
|
|
}
|
|
|
|
|
+ this.initializeCategoryList();
|
|
|
// #ifdef APP-PLUS
|
|
// #ifdef APP-PLUS
|
|
|
this.getCurrentLocation();
|
|
this.getCurrentLocation();
|
|
|
this.soketInit();
|
|
this.soketInit();
|
|
@@ -416,6 +425,16 @@
|
|
|
uni.stopPullDownRefresh();
|
|
uni.stopPullDownRefresh();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ initializeCategoryList() {
|
|
|
|
|
+ this.categoryList.map(val => {
|
|
|
|
|
+ if (!val.src) {
|
|
|
|
|
+ val["featureHideHandling"] = this.featureHideHandling;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ val["featureHideHandling"] = true;
|
|
|
|
|
+ }
|
|
|
|
|
+ return val;
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
activity(url) {
|
|
activity(url) {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: url,
|
|
url: url,
|
|
@@ -675,6 +694,7 @@
|
|
|
position: relative;
|
|
position: relative;
|
|
|
width: 70%;
|
|
width: 70%;
|
|
|
|
|
|
|
|
|
|
+
|
|
|
.search-Scan {
|
|
.search-Scan {
|
|
|
width: 20px;
|
|
width: 20px;
|
|
|
height: 20px;
|
|
height: 20px;
|