| | |
| | | <view> |
| | | <!-- 楼层装修店铺信息 --> |
| | | <div> |
| | | <u-navbar :border-bottom="false"> |
| | | <!-- <u-navbar :border-bottom="false"> |
| | | <u-search |
| | | v-model="keyword" |
| | | @search="search" |
| | | @click="search" |
| | | placeholder="请输入搜索" |
| | | ></u-search> |
| | | </u-navbar> |
| | | </u-navbar> --> |
| | | <div class="wrapper"> |
| | | <!-- 店铺信息模块 --> |
| | | <div class="store flex"> |
| | |
| | | </scroll-view> |
| | | |
| | | <!-- 基础店铺模式 --> |
| | | <div v-if="basePageData"> |
| | | <!-- <div v-if="basePageData"> |
| | | <u-tabs :list="tabs" :active-color="mainColor" :is-scroll="false" :current="current" @change="changeTab"></u-tabs> |
| | | <div class="content" v-if="current == 0"> |
| | | <u-empty style='margin-top:100rpx' v-if="goodsList.length == 0" class="empty" text='暂无商品信息'></u-empty> |
| | | <goodsTemplate style="width:100%;" v-else :res="goodsList" :storeName="false" /> |
| | | </div> |
| | | </div> --> |
| | | <!-- 全部分类 --> |
| | | <div class="category" v-if="current == 1"> |
| | | <!-- <div class="category" v-if="current == 1"> |
| | | <div class="category-item" v-for="(item,index) in categoryList" :key="index"> |
| | | <div class="flex" @click="getCategoryGoodsList(item)"> |
| | | <div>{{item.labelName}}</div> |
| | | <div> |
| | | <u-icon color="#999" name="arrow-right"></u-icon> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <!-- 分类子级 --> |
| | | <div class="child-list" v-if="item.children && item.children.length!=0"> |
| | | <!-- <div class="child-list" v-if="item.children && item.children.length!=0"> |
| | | <div class="child" @click="getCategoryGoodsList(child)" :key='i' v-for="(child,i) in item.children">{{child.labelName}} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | |
| | | <!-- 楼层装修模式 --> |
| | | <div v-if="enablePageData"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/uview-components/uview-ui' |
| | | import '@/components/uview-components/uview-ui' |
| | | // 引用组件 |
| | | import tpl_banner from "@/pages/tabbar/home/template/tpl_banner"; //导航栏模块 |
| | | import tpl_title from "@/pages/tabbar/home/template/tpl_title"; //标题栏模块 |
| | | import tpl_left_one_right_two from "@/pages/tabbar/home/template/tpl_left_one_right_two"; //左一右二模块 |
| | | import tpl_left_two_right_one from "@/pages/tabbar/home/template/tpl_left_two_right_one"; //左二右一模块 |
| | | import tpl_top_one_bottom_two from "@/pages/tabbar/home/template/tpl_top_one_bottom_two"; //上一下二模块 |
| | | import tpl_top_two_bottom_one from "@/pages/tabbar/home/template/tpl_top_two_bottom_one"; //上二下一模块 |
| | | import tpl_flex_one from "@/pages/tabbar/home/template/tpl_flex_one"; //单行图片模块 |
| | | import tpl_flex_two from "@/pages/tabbar/home/template/tpl_flex_two"; //两张横图模块 |
| | | import tpl_flex_three from "@/pages/tabbar/home/template/tpl_flex_three"; //三列单行图片模块 |
| | | import tpl_flex_five from "@/pages/tabbar/home/template/tpl_flex_five"; //五列单行图片模块 |
| | | import tpl_flex_four from "@/pages/tabbar/home/template/tpl_flex_four"; //四列单行图片模块 |
| | | import tpl_text_picture from "@/pages/tabbar/home/template/tpl_text_picture"; //文字图片模板 |
| | | import tpl_menu from "@/pages/tabbar/home/template/tpl_menu"; //五列菜单模块 |
| | | import tpl_search from "@/pages/tabbar/home/template/tpl_search"; //搜索栏 |
| | | import tpl_group from "@/pages/tabbar/home/template/tpl_group"; // |
| | | import tpl_goods from "@/pages/tabbar/home/template/tpl_goods"; //商品分类以及分类中的商品 |
| | | import goodsTemplate from '@/components/m-goods-list/list' |
| | | import tpl_banner from "./home/template/tpl_banner.vue"; //导航栏模块 |
| | | import tpl_title from "./home/template/tpl_title.vue"; //标题栏模块 |
| | | import tpl_left_one_right_two from "./home/template/tpl_left_one_right_two.vue"; //左一右二模块 |
| | | import tpl_left_two_right_one from "./home/template/tpl_left_two_right_one.vue"; //左二右一模块 |
| | | import tpl_top_one_bottom_two from "./home/template/tpl_top_one_bottom_two.vue"; //上一下二模块 |
| | | import tpl_top_two_bottom_one from "./home/template/tpl_top_two_bottom_one.vue"; //上二下一模块 |
| | | import tpl_flex_one from "./home/template/tpl_flex_one.vue"; //单行图片模块 |
| | | import tpl_flex_two from "./home/template/tpl_flex_two.vue"; //两张横图模块 |
| | | import tpl_flex_three from "./home/template/tpl_flex_three.vue"; //三列单行图片模块 |
| | | import tpl_flex_five from "./home/template/tpl_flex_five.vue"; //五列单行图片模块 |
| | | import tpl_flex_four from "./home/template/tpl_flex_four.vue"; //四列单行图片模块 |
| | | import tpl_text_picture from "./home/template/tpl_text_picture.vue"; //文字图片模板 |
| | | import tpl_menu from "./home/template/tpl_menu.vue"; //五列菜单模块 |
| | | import tpl_search from "./home/template/tpl_search.vue"; //搜索栏 |
| | | import tpl_group from "./home/template/tpl_group.vue"; // |
| | | import tpl_goods from "./home/template/tpl_goods.vue"; //商品分类以及分类中的商品 |
| | | import goodsTemplate from '@/pages/product/m-goods-list/list.vue' |
| | | import { getStoreBaseInfo, getStoreCategory } from "@/api/store.js"; |
| | | import { |
| | | receiveCoupons, |