Browse Source

首页减少模块

yuxingxing 2 years ago
parent
commit
5e98cd7249
2 changed files with 17 additions and 33 deletions
  1. 14 14
      pages/index/index.vue
  2. 3 19
      pages/index/user/userinfo-card.vue

+ 14 - 14
pages/index/index.vue

@@ -16,36 +16,36 @@
 			<view class="template-box">
 				<block v-for="(item, index) in homeTemplate" :key="item.id">
 					<!-- 轮播 -->
-					<sh-banner v-if="item.type === 'banner' && index !== 0" :Px="item.content.x" :Py="item.content.y"
+					<!-- <sh-banner v-if="item.type === 'banner' && index !== 0" :Px="item.content.x" :Py="item.content.y"
 						:borderRadius="item.content.radius" :height="item.content.height" :list="item.content.list">
-					</sh-banner>
+					</sh-banner> -->
 
 					<!-- 搜索 -->
-					<sh-search v-if="item.type === 'search'"></sh-search>
+					<!-- <sh-search v-if="item.type === 'search'"></sh-search> -->
 
 					<!-- 滑动宫格 -->
 					<sh-grid-swiper v-if="item.type === 'menu'" :list="item.content.list"
 						:oneRowNum="item.content.style"></sh-grid-swiper>
 
 					<!-- 推荐商品 -->
-					<sh-hot-goods v-if="item.type === 'goods-list' || item.type === 'goods-group'"
-						:detail="item.content"></sh-hot-goods>
+					<!-- <sh-hot-goods v-if="item.type === 'goods-list' || item.type === 'goods-group'"
+						:detail="item.content"></sh-hot-goods> -->
 					<!-- 广告魔方 -->
-					<sh-adv v-if="item.type === 'adv'" :detail="item.content"></sh-adv>
+					<!-- <sh-adv v-if="item.type === 'adv'" :detail="item.content"></sh-adv> -->
 					<!-- 优惠券 -->
-					<sh-coupon v-if="item.type === 'coupons'" :detail="item.content"></sh-coupon>
+					<!-- <sh-coupon v-if="item.type === 'coupons'" :detail="item.content"></sh-coupon> -->
 					<!-- 秒杀-->
-					<sh-seckill v-if="item.type === 'seckill'" :detail="item.content"></sh-seckill>
+					<!-- <sh-seckill v-if="item.type === 'seckill'" :detail="item.content"></sh-seckill> -->
 					<!-- 拼团 -->
-					<sh-groupon v-if="item.type === 'groupon'" :detail="item.content"></sh-groupon>
+					<!-- <sh-groupon v-if="item.type === 'groupon'" :detail="item.content"></sh-groupon> -->
 					<!-- 富文本 -->
-					<sh-richtext v-if="item.type === 'rich-text'" :richId="item.content.id"></sh-richtext>
+					<!-- <sh-richtext v-if="item.type === 'rich-text'" :richId="item.content.id"></sh-richtext> -->
 					<!-- 功能标题 -->
-					<sh-title-card v-if="item.type === 'title-block'" :title="item.content.name"
-						:bgImage="item.content.image" :titleColor="item.content.color"></sh-title-card>
+					<!-- <sh-title-card v-if="item.type === 'title-block'" :title="item.content.name"
+						:bgImage="item.content.image" :titleColor="item.content.color"></sh-title-card> -->
 					<!-- 直播 -->
 					<!-- #ifdef MP-WEIXIN -->
-					<sh-live v-if="item.type === 'live' && HAS_LIVE" :detail="item.content"></sh-live>
+					<!-- <sh-live v-if="item.type === 'live' && HAS_LIVE" :detail="item.content"></sh-live> -->
 					<!-- #endif -->
 				</block>
 			</view>
@@ -58,7 +58,7 @@
 			<!-- 登录提示 -->
 			<shopro-auth-modal></shopro-auth-modal>
 			<!-- 悬浮按钮 -->
-			<shopro-float-btn></shopro-float-btn>
+			<!-- <shopro-float-btn></shopro-float-btn> -->
 			<!-- 连续弹窗提醒 -->
 			<shopro-notice-modal v-if="!showPrivacy && isLogin"></shopro-notice-modal>
 			<!-- 隐私协议 -->

+ 3 - 19
pages/index/user/userinfo-card.vue

@@ -13,9 +13,9 @@
 					}"
 					:background="navBackground"
 				>
-					<view slot="right" class="u-flex u-row-center u-col-center u-m-r-20" v-if="userOtherData.is_store" @tap="goStore">
-						<button class="u-reset-button merchant-btn">切换商家版</button>
-					</view>
+					<!-- <view slot="right" class="u-flex u-row-center u-col-center u-m-r-20" v-if="userOtherData.is_store" @tap="goStore">
+						<button class="u-reset-button merchant-btn">个人中心</button>
+					</view> -->
 				</shopro-navbar>
 
 				<view class="user-head u-flex u-row-between">
@@ -137,22 +137,6 @@ export default {
 			let token = await wechat.refresh();
 			token && this.getUserInfo(token);
 		},
-		// 跳转门店
-		goStore() {
-			if (this.userOtherData.store_id) {
-				uni.setStorageSync('storeId', this.userOtherData.store_id);
-				this.jump('/pages/app/merchant/index', { storeId: this.userOtherData.store_id });
-			} else {
-				if (uni.getStorageSync('storeId')) {
-					this.jump('/pages/app/merchant/index');
-				} else {
-					this.jump('/pages/app/merchant/list');
-				}
-			}
-			//  #ifdef MP-WEIXIN
-			this.$store.commit('subscribeMessage', 'store');
-			//  #endif
-		},
 		// 绑定手机号
 		bindMobile() {
 			this.showAuthModal('bindMobile');