2292 lines
63 KiB
Vue
2292 lines
63 KiB
Vue
<template>
|
||
<view class="store-home">
|
||
<view class="header">
|
||
<view style="height: var(--status-bar-height);"></view>
|
||
|
||
<view class="head-menu">
|
||
<view class="iconfont icon-xiangzuo" @click="goback" style="color: #fff;"></view>
|
||
<navigator :url="'/pages/store/list/index?mer_id='+id" hover-class="none"
|
||
class="search iconfont icon-xiangyou">
|
||
<text class="iconfont icon-sousuo"></text>
|
||
<text class="search-txt">搜索商品名称</text>
|
||
<text class="search-btn">搜索</text>
|
||
</navigator>
|
||
</view>
|
||
|
||
<view class="shop">
|
||
<!-- <view class="shop-img">
|
||
<u-image width="100rpx" height="154rpx" :lazyLoad="true" :fade="true" :src="store.mer_avatar"
|
||
radius="10">
|
||
<template v-slot:loading>
|
||
<u-loading-icon color="#999"></u-loading-icon>
|
||
</template>
|
||
</u-image>
|
||
</view> -->
|
||
|
||
<view class="shop-info">
|
||
<view class="shop-info-title" @click="navTo('/pages/store/detail/index?id='+id)">
|
||
<text>{{store.mer_name}}</text>
|
||
<u-icon name="arrow-right" color="#fff"></u-icon>
|
||
</view>
|
||
<view class="shop-info-eva">
|
||
<view class="star">
|
||
<u-rate readonly count="5" :value="score.star" size="12" activeColor="#FFBC21"
|
||
inactiveColor="transparent"></u-rate>
|
||
<text
|
||
style="color:#FFBC21;font-size: 12px;margin: 0 10rpx 0 4rpx;">{{ score.number.toFixed(1) }}</text>
|
||
</view>
|
||
<view class="shop-info-sale">月销{{store.sales}}+</view>
|
||
<view v-if="store.services_type == 0" class="iconfont icon-kefu3" @click="goService"></view>
|
||
<view v-else-if="store.services_type == 1" class="iconfont icon-kefu3" @click="call(1)"></view>
|
||
<view v-else class="iconfont icon-kefu3" @click="call(0)"> </view>
|
||
</view>
|
||
<view class="shop-info-runtime" v-if="store.mer_info&&store.mer_info.mer_take_time">营业时间 :
|
||
{{ store.mer_info.mer_take_time[0] + ' - ' + store.mer_info.mer_take_time[1] }}
|
||
</view>
|
||
<view class="shop-info-runtime" v-else>营业时间 : {{ '00:00 - 00:00' }}</view>
|
||
<view class="shop-info-addr iconfont iconfont-xiangyou" @click="showMaoLocation">
|
||
<text>{{store.mer_address}}</text>
|
||
<u-icon name="arrow-right" :size="12" color="#fff"></u-icon>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="shop-logo">
|
||
<u-image width="192rpx" height="192rpx" :lazyLoad="true" :fade="true"
|
||
src="https://lihai001.oss-cn-chengdu.aliyuncs.com/def/6e86c202403131641068012.webp">
|
||
<template v-slot:loading>
|
||
<u-loading-icon color="#999"></u-loading-icon>
|
||
</template>
|
||
</u-image>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<scroll-view class="main" scroll-y="true" @scroll="scrollHome" catchtouchmove :style="viewColor">
|
||
<view v-show="!navShow && (tabActive === 3 || tabActive === 7)" class="nav">
|
||
<view class="nav-cont" :class="{noPointer : preview}" id="nav-cont">
|
||
<view :class="{ active: navActive === 0 }" class="item" @click="set_where(0,0)">
|
||
<view class="cont">默认商品</view>
|
||
</view>
|
||
|
||
<view :class="{ active: navActive === 1 }" class="item" @click="set_where(1,0)">
|
||
<view class="cont">销量</view>
|
||
</view>
|
||
|
||
<view :class="{ active: navActive === 2 }" class="item" @click="set_where(2,0)">
|
||
<view class="cont"> 价格
|
||
<image
|
||
:src="sortPrice ? domain+'/static/diy/up'+keyColor+'.png' : domain+'/static/diy/down'+keyColor+'.png'">
|
||
</image>
|
||
</view>
|
||
</view>
|
||
<view :class="{ active: navActive === 3 }" class="item" @click="set_where(3,0)">
|
||
<view class="cont">评分</view>
|
||
</view>
|
||
</view>
|
||
|
||
<block v-if="tabActive != 7">
|
||
<view class="guanzhu" :class="{'guanzhu-active':store.care}" v-if="!isLogin" @click="authOpen">
|
||
{{ store.care ? '已关注' : '关注' }}
|
||
</view>
|
||
<view v-else class="guanzhu" :class="{'guanzhu-active':store.care}" @click="followToggle">
|
||
{{ store.care ? '已关注' : '关注' }}
|
||
</view>
|
||
</block>
|
||
</view>
|
||
|
||
<view class="tab-cont" :style="viewColor,{'height':'calc(100vh - '+listHeight+' - 84rpx)'}"
|
||
:class="{noPointer : preview}">
|
||
<view v-show="diyActive == 0 && tabActive == 1">
|
||
<!-- #ifdef H5 -->
|
||
<view v-for="(item, index) in styleConfig" :key="index">
|
||
<block v-if="item.name != 'headerSerch' && item.name != 'tabNav'">
|
||
<component :is="item.name" :index="index" :dataConfig="item" :merId="id"
|
||
@detail="goGoodsDetail">
|
||
</component>
|
||
</block>
|
||
</block>
|
||
</view>
|
||
<!-- #endif -->
|
||
<!-- #ifdef MP || APP-PLUS-->
|
||
<block v-for="(item, index) in styleConfig" :key="index">
|
||
<view>
|
||
<activeParty v-if="item.name == 'activeParty'" :merId="id" :dataConfig="item"></activeParty>
|
||
<articleList v-if="item.name == 'articleList'" :merId="id" :dataConfig="item"></articleList>
|
||
<bargain v-if="item.name == 'bargain'" :merId="id" :dataConfig="item"></bargain>
|
||
<blankPage v-if="item.name == 'blankPage'" :merId="id" :dataConfig="item"></blankPage>
|
||
<combination v-if="item.name == 'combination'" :merId="id" :dataConfig="item"></combination>
|
||
<topic v-if="item.name == 'topic'" :merId="id" :dataConfig="item"></topic>
|
||
<coupon v-if="item.name == 'coupon'" :merId="id" :dataConfig="item"></coupon>
|
||
<goodList v-if="item.name == 'goodList'" :merId="id" :dataConfig="item"
|
||
@detail="goGoodsDetail">
|
||
</goodList>
|
||
<guide v-if="item.name == 'guide'" :merId="id" :dataConfig="item"></guide>
|
||
<liveBroadcast v-if="item.name == 'liveBroadcast'" :merId="id" :dataConfig="item">
|
||
</liveBroadcast>
|
||
<menus v-if="item.name == 'menus'" :merId="id" :dataConfig="item"></menus>
|
||
<presellList v-if="item.name == 'presellList'" :merId="id" :dataConfig="item"></presellList>
|
||
<richText v-if="item.name == 'richText'" :merId="id" :dataConfig="item"></richText>
|
||
<seckill v-if="item.name == 'seckill'" :merId="id" :dataConfig="item"></seckill>
|
||
<swiperBg v-if="item.name == 'swiperBg'" :merId="id" :dataConfig="item"></swiperBg>
|
||
<pictureCube v-if="item.name == 'pictureCube'" :merId="id" :dataConfig="item"></pictureCube>
|
||
<swipers v-if="item.name == 'swipers'" :merId="id" :dataConfig="item"></swipers>
|
||
<titles v-if="item.name == 'titles'" :merId="id" :dataConfig="item"></titles>
|
||
</view>
|
||
</block>
|
||
<!-- #endif -->
|
||
</view>
|
||
|
||
<!-- 首页 -->
|
||
<view
|
||
v-show="(tabActive == 3 || tabActive == 7 || diyActive == 1 || diyActive == 2) && tabActive != 5 && tabActive != 2">
|
||
<!-- 商品 -->
|
||
<view v-if="goods.length" class="goods-wrap" id="goods" @touchmove="onTouchmove">
|
||
<view v-if="isColumn" class="goods column">
|
||
<view v-for="item in goods" :key="item.product_id" class="item"
|
||
@click="goGoodsDetail(item)">
|
||
<view class="image" style="width: 180rpx;height: 180rpx;">
|
||
<image style="width: 100%;height: 100%;" :src="item.image" lazy-load></image>
|
||
<view v-if="item.stock == 0" class="sell_out">已售罄</view>
|
||
<view v-if="item.border_pic" :style="{ backgroundImage: `url(${item.border_pic})` }"
|
||
class="border-picture"></view>
|
||
</view>
|
||
<view class="text on acea-row row-between-wrapper">
|
||
<view class="name line1">
|
||
<text class="name_text line1">{{ item.store_name }}</text>
|
||
<text class="sale_num">已销 {{item.sales}}{{item.sales>0?'+':''}}</text>
|
||
</view>
|
||
|
||
<!-- 标签 -->
|
||
<view class="tag" v-if="item.mer_label_name && item.mer_label_name.length > 0">
|
||
<view class="tag-item" v-for="(ii,indx) in item.mer_label_name">{{ii}}</view>
|
||
</view>
|
||
|
||
<!-- 规格产地 -->
|
||
<view class="shop-detail" v-if="item.store_info">
|
||
{{item.store_info}}
|
||
</view>
|
||
|
||
<view class="price">
|
||
<view class="price-num">
|
||
<text class="unit-price">¥{{ item.price }}</text><text
|
||
class="unit-name">/份</text>
|
||
</view>
|
||
<view class="price-icon iconfont icon-gouwuche"></view>
|
||
</view>
|
||
|
||
<!-- <view class="item_bot">
|
||
<view class="money-wrap acea-row">
|
||
<view class="money">
|
||
¥<text>{{ item.price }}</text>
|
||
</view>
|
||
<view
|
||
v-if="item.show_svip_info && item.show_svip_info.show_svip_price && item.svip_price"
|
||
class="acea-row row-middle">
|
||
<text class='vip-money'>¥{{item.svip_price}}</text>
|
||
<view class="vipImg">
|
||
<image class="image" :src="`${domain}/static/images/svip.png`">
|
||
</image>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view
|
||
v-if="item.product_type != 0 || item.issetCoupon || item.delivery_free == 1"
|
||
class="item_tags">
|
||
<text v-if="item.product_type != 0"
|
||
:class="'font_bg-red type'+item.product_type">{{item.product_type == 1 ? "秒杀" : item.product_type == 2 ? "预售" : item.product_type == 3 ? "助力" : item.product_type == 4 ? "拼团" : ""}}</text>
|
||
<text class="tags_item ticket" v-if="item.issetCoupon">领券</text>
|
||
<text class="tags_item delivery" v-if="item.delivery_free == 1">包邮</text>
|
||
</view>
|
||
<view class="score">{{ item.rate }}评分 {{ item.reply_count }}条评论</view>
|
||
</view> -->
|
||
</view>
|
||
<!-- <view v-if="item.max_extension>0 && (item.product_type == 0 || item.product_type == 2)"
|
||
class="foot">
|
||
<text v-show="!isColumn" class="iconfont"></text>
|
||
最高赚 ¥{{ item.max_extension }}
|
||
</view> -->
|
||
</view>
|
||
</view>
|
||
<view v-else class="goods">
|
||
<WaterfallsFlow :wfList='goods' @itemTap="goGoodsDetail" :type="1" :isStore="1" />
|
||
</view>
|
||
</view>
|
||
<view v-if="goodsLoading" class="acea-row row-center-wrapper loadingicon">
|
||
<text :hidden="!goodsLoading" class="iconfont icon-jiazai loading"></text>
|
||
{{loadTitle}}
|
||
</view>
|
||
<emptyPage v-if="goods.length == 0 && !goodsLoading" title="暂无商品~"></emptyPage>
|
||
</view>
|
||
|
||
<!-- 分类 -->
|
||
<view v-show="tabActive == 2">
|
||
<view class="category">
|
||
<view class="section">
|
||
<view class="head" @click="goCategoryGoods('')">
|
||
<view class="title">全部</view>
|
||
<view class="iconfont icon-xiangyou"></view>
|
||
</view>
|
||
</view>
|
||
<view v-for="item in category" :key="item.store_category_id" class="section">
|
||
<view class="head" @click="goCategoryGoods(item.store_category_id)">
|
||
<view class="title">{{ item.cate_name }}</view>
|
||
<view class="iconfont icon-xiangyou"></view>
|
||
</view>
|
||
<view v-if="item.children" class="body">
|
||
<view v-for="value in item.children" :key="value.store_category_id" class="item"
|
||
@click="goCategoryGoods(value.store_category_id)">{{ value.cate_name }}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="acea-row row-center-wrapper loadingicon">
|
||
<text :hidden="!categoryLoading" class="iconfont icon-jiazai loading"></text>
|
||
{{loadTitle}}
|
||
</view>
|
||
</view>
|
||
|
||
|
||
<!--生活服务 优惠券-->
|
||
<!-- <view v-show="tabActive === 5" id="product" @touchmove="onTouchmoves">
|
||
<view v-if="productList.length" class="goods column">
|
||
<view v-for="item in productList" :key="item.product_id" class="item"
|
||
@click="goGoodsDetail(item)">
|
||
<view class="image">
|
||
<easy-loadimage mode="widthFix" :image-src="item.image"></easy-loadimage>
|
||
</view>
|
||
<view class="text acea-row row-between-wrapper">
|
||
<view class="name line2">
|
||
<text class="name_text line1">{{ item.store_name }}</text>
|
||
</view>
|
||
<view class="item_bot">
|
||
<view class="money-wrap acea-row">
|
||
<view class="money">
|
||
¥
|
||
<text>{{ item.price }}</text>
|
||
</view>
|
||
<view
|
||
v-if="item.show_svip_info && item.show_svip_info.show_svip_price && item.svip_price"
|
||
class="acea-row row-middle">
|
||
<text class='vip-money'>¥{{item.svip_price}}</text>
|
||
<view class="vipImg">
|
||
<image class="image" :src="`${domain}/static/images/svip.png`"></image>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view v-if="item.product_type != 0 || item.issetCoupon || item.delivery_free == 1"
|
||
class="item_tags">
|
||
<text v-if="item.product_type != 0"
|
||
:class="'font_bg-red type'+item.product_type">{{item.product_type == 1 ? "秒杀" : item.product_type == 2 ? "预售" : item.product_type == 3 ? "助力" : item.product_type == 4 ? "拼团" : ""}}</text>
|
||
<text class="tags_item ticket" v-if="item.issetCoupon">领券</text>
|
||
<text class="tags_item delivery" v-if="item.delivery_free == 1">包邮</text>
|
||
</view>
|
||
<view class="score">{{ item.rate }}评分 {{ item.reply_count }}条评论</view>
|
||
</view>
|
||
</view>
|
||
<view v-if="item.max_extension && (item.product_type == 0 || item.product_type == 2)"
|
||
class="foot">
|
||
<text v-show="!isColumn" class="iconfont"></text>
|
||
最高赚 ¥{{ item.max_extension }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view v-if="goodsLoading" class="acea-row row-center-wrapper loadingicon">
|
||
<text :hidden="!goodsLoading" class="iconfont icon-jiazai loading"></text>
|
||
{{loadTitle}}
|
||
</view>
|
||
<emptyPage v-if="productList.length == 0 && !goodsLoading" title="暂无商品~"></emptyPage>
|
||
</view>
|
||
|
||
<view v-show="diyActive == 3 && tabActive == 1">
|
||
<view v-if="coupon.length" class="coupon">
|
||
<view v-for="item in coupon" :key="item.coupon_id" class="item">
|
||
<view class="left gary" v-if="item.issue">
|
||
<view class="money">
|
||
¥
|
||
<text>{{ item.coupon_price }}</text>
|
||
</view>
|
||
<view>满{{ item.use_min_price }}元可用</view>
|
||
</view>
|
||
<view class="left" v-else
|
||
:style="{ 'background-image': `url(${domain}/static/diy/couponBg${keyColor}.png)` }">
|
||
<view class="money">
|
||
¥
|
||
<text>{{ item.coupon_price }}</text>
|
||
</view>
|
||
<view>满{{ item.use_min_price }}元可用</view>
|
||
</view>
|
||
<view class="right">
|
||
<view class="name line1">
|
||
<text :class="{gary:item.issue}">{{item.type===0?'店铺券':'商品券'}}</text>
|
||
{{ item.title }}
|
||
</view>
|
||
<view class="time-wrap" style="justify-content: space-between;">
|
||
<block v-if="item.coupon_type == 1">
|
||
<view class="time">
|
||
{{ item.use_start_time | dateFormat }}-{{ item.use_end_time | dateFormat }}
|
||
</view>
|
||
</block>
|
||
<block v-if="item.coupon_type == 0">
|
||
<view>领取后{{ item.coupon_time}}天内可用</view>
|
||
</block>
|
||
<block v-if="item.issue">
|
||
<view class="gary iconfont icon-yilingqu2"></view>
|
||
</block>
|
||
<block v-else>
|
||
<view class="button" @click="receiveCoupon(item)">立即领取</view>
|
||
</block>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<emptyPage v-if="coupon.length == 0" title="暂无优惠券~"></emptyPage>
|
||
</view> -->
|
||
|
||
<!--活动专场-->
|
||
<!-- <view v-show="tabActive === 4">
|
||
<block v-if="topicList.length>0">
|
||
<view class="main_count">
|
||
<navigator v-for="(item,index) in topicList" :key='item.group_data_id'
|
||
:url="`/pages/activity/topic_detail/index?id=${item.group_data_id}`" hover-class="none">
|
||
<view class='list'>
|
||
<image :src="item.pic" class="picture"></image>
|
||
</view>
|
||
</navigator>
|
||
</view>
|
||
</block>
|
||
<block v-else>
|
||
<view class='empty-box' v-cloak>
|
||
<image src='../static/images/no-topic.png'></image>
|
||
<view class="txt">暂无活动专场哦~</view>
|
||
</view>
|
||
</block>
|
||
</view> -->
|
||
</view>
|
||
</scroll-view>
|
||
|
||
<view class="footer" :style="viewColor" :class="{noPointer : preview}">
|
||
<view v-for="(item, index) in tabs3" :key="index" :class="{ active: tabActive === item.value }" class="item"
|
||
@click="tab(item.value)">
|
||
<view :class="['iconfont', item.icon]"></view>
|
||
<view>{{ item.name }}</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
// +----------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +----------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
|
||
// +----------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +----------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +----------------------------------------------------------------------
|
||
import request from "@/utils/request.js";
|
||
import WaterfallsFlow from '@/components/WaterfallsFlow/WaterfallsFlow.vue'
|
||
import easyLoadimage from '@/components/easy-loadimage/easy-loadimage.vue'
|
||
import {
|
||
getStoreDetail,
|
||
getStoreGoods,
|
||
getStoreCloudGoods,
|
||
getStoreCategory,
|
||
followStore,
|
||
unfollowStore,
|
||
storeServiceList,
|
||
hasServiceApi
|
||
} from '@/api/store.js';
|
||
import {
|
||
initiateAssistApi,
|
||
getTopicList
|
||
} from '@/api/activity.js';
|
||
import {
|
||
getShopCoupons,
|
||
setCouponReceive,
|
||
getDiy
|
||
} from '@/api/api.js';
|
||
import {
|
||
getUserInfo
|
||
} from '@/api/user.js';
|
||
import {
|
||
configMap
|
||
} from "@/utils";
|
||
import {
|
||
mapGetters
|
||
} from "vuex";
|
||
import {
|
||
goShopDetail
|
||
} from '@/libs/order.js';
|
||
import history from "@/mixins/history";
|
||
import emptyPage from '@/components/emptyPage.vue'
|
||
import shareScence from "@/libs/spread";
|
||
import {
|
||
HTTP_REQUEST_URL
|
||
} from '@/config/app';
|
||
import {
|
||
toLogin
|
||
} from '@/libs/login.js';
|
||
import mConfig from '../component/index.js';
|
||
// #ifdef MP || APP-PLUS
|
||
import activeParty from '../../index/component/activeParty';
|
||
import coupon from '../../index/component/coupon';
|
||
import bargain from '../../index/component/bargain';
|
||
import blankPage from '../../index/component/blankPage';
|
||
import combination from '../../index/component/combination';
|
||
import goodList from '../../index/component/goodList';
|
||
import guide from '../../index/component/guide';
|
||
import liveBroadcast from '../../index/component/liveBroadcast';
|
||
import menus from '../../index/component/menus';
|
||
import topic from '../../index/component/topic';
|
||
import presellList from '../../index/component/presellList';
|
||
import richText from '../../index/component/richText';
|
||
import seckill from '../../index/component/seckill';
|
||
import swiperBg from '../../index/component/swiperBg';
|
||
import pictureCube from '../../index/component/pictureCube'
|
||
import titles from '../../index/component/titles';
|
||
// #endif
|
||
const app = getApp();
|
||
export default {
|
||
components: {
|
||
...mConfig,
|
||
emptyPage,
|
||
WaterfallsFlow,
|
||
easyLoadimage,
|
||
// #ifdef MP || APP-PLUS
|
||
activeParty,
|
||
bargain,
|
||
coupon,
|
||
blankPage,
|
||
combination,
|
||
goodList,
|
||
guide,
|
||
liveBroadcast,
|
||
menus,
|
||
topic,
|
||
presellList,
|
||
richText,
|
||
seckill,
|
||
swiperBg,
|
||
pictureCube,
|
||
titles
|
||
// #endif
|
||
},
|
||
mixins: [history],
|
||
filters: {
|
||
dateFormat: function(value) {
|
||
if (!value) {
|
||
return '';
|
||
}
|
||
return value.split(' ')[0].replace('-', '.');
|
||
}
|
||
},
|
||
data() {
|
||
return {
|
||
domain: HTTP_REQUEST_URL,
|
||
// #ifdef MP
|
||
menuButtonInfo: uni.getMenuButtonBoundingClientRect(),
|
||
// #endif
|
||
id: 0, // 商铺id
|
||
store: {}, // 商铺详情
|
||
goods: [], // 商铺商品
|
||
category: [], // 商铺分类
|
||
coupon: [], // 优惠券
|
||
productList: [], //本地服务商品
|
||
styleConfig: [],
|
||
isColumn: true, // 商品列表排列方式
|
||
navShow: false,
|
||
navActive: 0,
|
||
diyActive: 0,
|
||
tabActive: '', // 底部切换
|
||
isCoupon: 0,
|
||
keyword: '',
|
||
order: '',
|
||
sortPrice: true, // 价格排序
|
||
goodsLoading: false,
|
||
categoryLoading: false,
|
||
loadTitle: '加载更多',
|
||
loadend: false,
|
||
where: {
|
||
order: '',
|
||
keyword: '',
|
||
page: 1,
|
||
limit: 30,
|
||
sale_type: 1
|
||
},
|
||
// 下拉菜单
|
||
select: {
|
||
show: false,
|
||
selected: 0,
|
||
options: [{
|
||
id: 0,
|
||
name: '默认'
|
||
}, {
|
||
id: 1,
|
||
name: '评分'
|
||
}]
|
||
},
|
||
// 底部菜单
|
||
tabs1: [{
|
||
icon: 'icon-yizhan_o',
|
||
name: '首页',
|
||
value: 1,
|
||
}, {
|
||
icon: 'icon-gouwu_o',
|
||
name: '商品',
|
||
value: 3,
|
||
}, {
|
||
icon: 'icon-baoguo_huanbaohe_o',
|
||
name: '生活服务',
|
||
value: 5,
|
||
}, {
|
||
icon: 'icon-yingyongAPP_o',
|
||
name: '分类',
|
||
value: 2,
|
||
}, {
|
||
icon: 'icon-liwu_o',
|
||
name: '专场',
|
||
value: 4,
|
||
}],
|
||
// 底部菜单
|
||
tabs2: [{
|
||
icon: 'icon-yizhan_o',
|
||
name: '首页',
|
||
value: 1,
|
||
}, {
|
||
icon: 'icon-gouwu_o',
|
||
name: '商品',
|
||
value: 3,
|
||
}, {
|
||
icon: 'icon-yingyongAPP_o',
|
||
name: '分类',
|
||
value: 2,
|
||
}, {
|
||
icon: 'icon-zhuanti',
|
||
name: '专场',
|
||
value: 4,
|
||
}],
|
||
// 底部菜单
|
||
tabs3: [{
|
||
icon: 'icon-yizhan_o',
|
||
name: '云商品',
|
||
value: 7,
|
||
}, {
|
||
icon: 'icon-gouwu_o',
|
||
name: '商品',
|
||
value: 3,
|
||
}, {
|
||
icon: 'icon-yingyongAPP_o',
|
||
name: '分类',
|
||
value: 2,
|
||
}],
|
||
tabs: [],
|
||
storeScroll: true,
|
||
storeTop: 0,
|
||
navHeight: 0,
|
||
currSpid: "",
|
||
topicList: [],
|
||
service_open: false,
|
||
type: 0,
|
||
serviceInfo: {},
|
||
preview: false,
|
||
listHeight: 0
|
||
}
|
||
},
|
||
computed: {
|
||
score: function() {
|
||
let store = this.store,
|
||
score = {
|
||
star: 0,
|
||
number: 0
|
||
};
|
||
if ('postage_score' in store) {
|
||
score.number = (parseFloat(store.postage_score) + parseFloat(store.product_score) + parseFloat(
|
||
store.service_score)) /
|
||
3;
|
||
score.star = score.number / 5 * 100;
|
||
}
|
||
return score;
|
||
},
|
||
...configMap({
|
||
margin_ico_switch: 0,
|
||
margin_ico: '',
|
||
}, mapGetters(['isLogin', 'uid', 'viewColor', 'keyColor'])),
|
||
},
|
||
watch: {
|
||
tabActive: function(value, old) {
|
||
switch (value) {
|
||
case 1:
|
||
if (this.goods.length == 0 && this.isCoupon == 0) {
|
||
this.resetParmas();
|
||
this.where.order = this.order == 1 ? 'is_new' : '';
|
||
this.where.action = this.order == 2 ? 1 : '';
|
||
this.getGoods();
|
||
} else if (this.isCoupon == 1) {
|
||
this.getCoupon();
|
||
}
|
||
break;
|
||
case 2:
|
||
this.getCategory();
|
||
break;
|
||
case 3:
|
||
this.resetParmas();
|
||
this.goods = [];
|
||
this.getGoods();
|
||
break;
|
||
case 4:
|
||
this.getTopic();
|
||
break;
|
||
case 5:
|
||
if (this.productList.length == 0) {
|
||
this.resetParmas();
|
||
this.get_service_list();
|
||
}
|
||
break;
|
||
case 6:
|
||
this.getCoupon();
|
||
break;
|
||
case 7:
|
||
this.resetParmas();
|
||
this.goods = [];
|
||
this.getGoods();
|
||
break;
|
||
}
|
||
},
|
||
},
|
||
onLoad: function(options) {
|
||
this.type = parseInt(options.type) || 1
|
||
this.id = options.mer_id || options.id || 0;
|
||
this.isCoupon = options.coupon || 0;
|
||
this.diyActive = options.order || 0;
|
||
this.order = options.order;
|
||
this.preview = options.time ? true : false;
|
||
if (options.sale_type) this.where.sale_type = options.sale_type;
|
||
if (options.spid) {
|
||
this.currSpid = options.spid
|
||
app.globalData.spid = options.spid;
|
||
}
|
||
|
||
// #ifdef MP
|
||
if (options.scene) {
|
||
let value = this.$util.getUrlParams(decodeURIComponent(options.scene));
|
||
if (value.id) this.id = value.id || 0;
|
||
//记录推广人uid
|
||
if (value.spid) {
|
||
this.currSpid = value.spid
|
||
app.globalData.spid = value.spid;
|
||
}
|
||
}
|
||
// #endif
|
||
|
||
this.getStore();
|
||
this.diyData();
|
||
shareScence(this.currSpid, this.isLogin);
|
||
|
||
this.initHeight();
|
||
},
|
||
|
||
/**
|
||
* 用户点击右上角分享
|
||
*/
|
||
// #ifdef MP
|
||
onShareAppMessage: function() {
|
||
wx.showShareMenu({
|
||
withShareTicket: true,
|
||
menus: ['shareAppMessage', 'shareTimeline']
|
||
})
|
||
let that = this;
|
||
return {
|
||
title: that.store.mer_name || '',
|
||
imageUrl: that.store.mer_avatar || '',
|
||
path: '/pages/store/home/index?id=' + that.id + '&spid=' + that.uid,
|
||
}
|
||
},
|
||
onShareTimeline: function() {
|
||
let that = this;
|
||
return {
|
||
title: that.store.mer_name || '',
|
||
query: {
|
||
id: that.id,
|
||
spid: that.uid
|
||
},
|
||
imageUrl: that.store.mer_avatar || ''
|
||
}
|
||
},
|
||
// #endif
|
||
methods: {
|
||
navTo(url) {
|
||
uni.navigateTo({
|
||
url: url
|
||
})
|
||
},
|
||
// 查看地图
|
||
showMaoLocation: function() {
|
||
if (!this.store.lat || !this.store.long) return this
|
||
.$util.Tips({
|
||
title: '请设置允许商城访问您的位置!'
|
||
});
|
||
let that = this,
|
||
lat = parseFloat(this.store.lat),
|
||
long = parseFloat(this.store.long)
|
||
//#ifdef H5
|
||
if (that.$wechat.isWeixin() === true) {
|
||
that.$wechat.seeLocation({
|
||
latitude: Number(lat),
|
||
longitude: Number(long),
|
||
address: this.store.mer_address ? this.store.mer_address : ''
|
||
}).then(res => {
|
||
console.log('success');
|
||
})
|
||
} else {
|
||
//#endif
|
||
uni.openLocation({
|
||
latitude: lat,
|
||
longitude: long,
|
||
address: this.store.mer_address ? this.store.mer_address : '',
|
||
scale: 8,
|
||
success: function() {},
|
||
});
|
||
// #ifdef H5
|
||
}
|
||
//#endif
|
||
},
|
||
|
||
// 列表高度
|
||
initHeight() {
|
||
this.$nextTick(async () => {
|
||
const headHeight = await this.getDomInfo('.header');
|
||
const footerHeight = await this.getDomInfo('.footer');
|
||
const navHeight = await this.getDomInfo('#nav-cont');
|
||
|
||
this.listHeight = headHeight.height + footerHeight.height + 'px';
|
||
})
|
||
},
|
||
|
||
call: function() {
|
||
let that = this;
|
||
if (that.store.service_phone) {
|
||
uni.showModal({
|
||
title: '提示',
|
||
content: '暂无在线客服,确定拨打客服电话:' + that.store.service_phone + '吗?',
|
||
success: function(res) {
|
||
if (res.confirm) {
|
||
uni.makePhoneCall({
|
||
phoneNumber: that.store.service_phone,
|
||
});
|
||
}
|
||
}
|
||
})
|
||
} else {
|
||
return that.$util.Tips({
|
||
title: '暂无可用客服'
|
||
})
|
||
}
|
||
},
|
||
onTouchmove(e) {
|
||
if (this.loadend) return;
|
||
if (this.loading) return;
|
||
if (this.goodsLoading) return;
|
||
const query = uni.createSelectorQuery().in(this);
|
||
query.select('#goods').boundingClientRect(data => {
|
||
if (data.bottom < 1500 && data.top < 0) {
|
||
this.getGoods();
|
||
}
|
||
}).exec();
|
||
// 模拟触底刷新
|
||
},
|
||
onTouchmoves(e) {
|
||
if (this.loadend) return;
|
||
if (this.loading) return;
|
||
if (this.goodsLoading) return;
|
||
const query = uni.createSelectorQuery().in(this);
|
||
query.select('#product').boundingClientRect(data => {
|
||
if (data.bottom < 1500 && data.top < 0) {
|
||
this.get_service_list();
|
||
}
|
||
}).exec();
|
||
},
|
||
// 打开授权
|
||
authOpen: function() {
|
||
toLogin()
|
||
},
|
||
setDiy() {
|
||
this.diyActive = 0;
|
||
},
|
||
|
||
// 获取diy模板数据
|
||
diyData() {
|
||
let that = this;
|
||
getDiy({
|
||
id: that.id,
|
||
version: '221'
|
||
}).then(res => {
|
||
let data = res.data;
|
||
that.styleConfig = that.objToArr(data.value);
|
||
that.styleConfig.forEach((item, index, arr) => {
|
||
item.did = data.id
|
||
});
|
||
uni.setNavigationBarTitle({
|
||
title: data.title
|
||
});
|
||
}).catch(err => {
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
});
|
||
});
|
||
},
|
||
// 对象转数组
|
||
objToArr(data) {
|
||
let obj = Object.keys(data).sort();
|
||
let m = obj.map(key => data[key]);
|
||
return m;
|
||
},
|
||
goService() {
|
||
let that = this;
|
||
if (that.isLogin === false) {
|
||
toLogin()
|
||
} else {
|
||
uni.navigateTo({
|
||
url: `/pages/chat/customer_list/chat?mer_id=${this.store.mer_id}&uid=${this.uid}`,
|
||
});
|
||
}
|
||
},
|
||
// 本地生活服务商品
|
||
get_service_list: function(isPage) {
|
||
let that = this;
|
||
if (that.loadend) return;
|
||
if (that.loading) return;
|
||
if (that.goodsLoading) return;
|
||
that.goodsLoading = true;
|
||
that.loadTitle = '';
|
||
storeServiceList(that.id, that.where).then(res => {
|
||
that.goodsLoading = false;
|
||
let list = res.data.list;
|
||
let productList = that.$util.SplitArray(list, that.productList);
|
||
let loadend = list.length < that.where.limit;
|
||
that.loadend = loadend;
|
||
that.loading = false;
|
||
that.loadTitle = loadend ? '加载更多' : '已全部加载';
|
||
that.$set(that, 'productList', productList);
|
||
that.$set(that.where, 'page', that.where.page + 1);
|
||
}).catch(err => {
|
||
that.loading = false;
|
||
that.goodsLoading = false;
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
setTimeout(function() {
|
||
uni.navigateBack()
|
||
}, 1000);
|
||
});
|
||
},
|
||
// 领取优惠券
|
||
receiveCoupon(item) {
|
||
let that = this;
|
||
if (that.isLogin === false) {
|
||
toLogin()
|
||
} else {
|
||
setCouponReceive(item.coupon_id).then(res => {
|
||
item.issue = 1
|
||
uni.showToast({
|
||
title: res.message,
|
||
icon: 'none'
|
||
})
|
||
}).catch(err => {
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
})
|
||
}
|
||
},
|
||
// 获取店铺详情
|
||
getStore: function() {
|
||
getStoreDetail(this.id).then(res => {
|
||
this.store = res.data;
|
||
if ((res.data.delivery_way.length == 1 && res.data.delivery_way[0] == '1') || res.data
|
||
.delivery_way.length == 2) {
|
||
this.tabs = this.tabs1
|
||
this.service_open = true
|
||
} else {
|
||
this.tabs = this.tabs2
|
||
this.service_open = false
|
||
}
|
||
this.tab(3);
|
||
// #ifdef H5
|
||
this.ShareInfo();
|
||
// #endif
|
||
}).catch(err => {
|
||
this.loading = false;
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
// setTimeout(function() {
|
||
// uni.navigateBack()
|
||
// }, 1000);
|
||
})
|
||
},
|
||
// 获取商铺商品
|
||
getGoods: function() {
|
||
let that = this;
|
||
if (that.loadend) return;
|
||
if (that.loading) return;
|
||
if (that.goodsLoading) return;
|
||
that.goodsLoading = true;
|
||
that.loadTitle = '';
|
||
if (this.tabActive == 7) getStoreCloudGoods(that.id, that.where).then(res => {
|
||
that.goodsLoading = false;
|
||
let list = res.data.list;
|
||
let goodsList = that.$util.SplitArray(list, that.goods);
|
||
let loadend = list.length < that.where.limit;
|
||
that.loadend = loadend;
|
||
that.loading = false;
|
||
that.loadTitle = loadend ? '已全部加载' : '加载更多';
|
||
that.$set(that, 'goods', goodsList);
|
||
that.$set(that.where, 'page', that.where.page + 1);
|
||
}).catch(err => {
|
||
that.loading = false;
|
||
that.goodsLoading = false;
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
setTimeout(function() {
|
||
uni.navigateBack()
|
||
}, 1000);
|
||
});
|
||
else getStoreGoods(that.id, that.where).then(res => {
|
||
that.goodsLoading = false;
|
||
let list = res.data.list;
|
||
let goodsList = that.$util.SplitArray(list, that.goods);
|
||
let loadend = list.length < that.where.limit;
|
||
that.loadend = loadend;
|
||
that.loading = false;
|
||
that.loadTitle = loadend ? '已全部加载' : '加载更多';
|
||
that.$set(that, 'goods', goodsList);
|
||
that.$set(that.where, 'page', that.where.page + 1);
|
||
}).catch(err => {
|
||
that.loading = false;
|
||
that.goodsLoading = false;
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
setTimeout(function() {
|
||
uni.navigateBack()
|
||
}, 1000);
|
||
});
|
||
},
|
||
// 获取商铺云商品
|
||
getCloudGoods: function() {
|
||
let that = this;
|
||
if (that.loadend) return;
|
||
if (that.loading) return;
|
||
if (that.goodsLoading) return;
|
||
that.goodsLoading = true;
|
||
that.loadTitle = '';
|
||
getStoreCloudGoods(that.id, that.where).then(res => {
|
||
that.goodsLoading = false;
|
||
let list = res.data.list;
|
||
let goodsList = that.$util.SplitArray(list, that.goods);
|
||
let loadend = list.length < that.where.limit;
|
||
that.loadend = loadend;
|
||
that.loading = false;
|
||
that.loadTitle = loadend ? '已全部加载' : '加载更多';
|
||
that.$set(that, 'goods', goodsList);
|
||
that.$set(that.where, 'page', that.where.page + 1);
|
||
}).catch(err => {
|
||
that.loading = false;
|
||
that.goodsLoading = false;
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
setTimeout(function() {
|
||
uni.navigateBack()
|
||
}, 1000);
|
||
});
|
||
},
|
||
// 获取商铺分类
|
||
getCategory: function() {
|
||
if (this.category.length) {
|
||
return;
|
||
}
|
||
this.categoryLoading = true;
|
||
getStoreCategory(this.id).then(res => {
|
||
this.categoryLoading = false;
|
||
this.category = res.data;
|
||
this.loadTitle = '已全部加载';
|
||
});
|
||
},
|
||
// 获取商铺优惠券
|
||
getCoupon: function() {
|
||
this.diyActive = 3
|
||
if (this.coupon.length) {
|
||
return;
|
||
}
|
||
getShopCoupons(this.id).then(res => {
|
||
this.coupon = res.data;
|
||
});
|
||
},
|
||
// 获取商铺活动专题
|
||
getTopic() {
|
||
if (this.topicList.length) {
|
||
return;
|
||
}
|
||
getTopicList(this.id, {
|
||
page: 1,
|
||
limit: 999
|
||
}).then(res => {
|
||
this.topicList = res.data;
|
||
});
|
||
},
|
||
// 关注商铺
|
||
follow: function() {
|
||
followStore(this.id).then(res => {
|
||
if (res.status === 200) {
|
||
this.store.care = true;
|
||
}
|
||
this.$util.Tips({
|
||
title: res.message
|
||
});
|
||
});
|
||
},
|
||
// 取消关注
|
||
unfollow: function() {
|
||
unfollowStore(this.id).then(res => {
|
||
if (res.status === 200) {
|
||
this.store.care = false;
|
||
}
|
||
this.$util.Tips({
|
||
title: res.message
|
||
});
|
||
});
|
||
},
|
||
// 设置是否关注
|
||
followToggle: function() {
|
||
this.store.care ? this.unfollow() : this.follow();
|
||
},
|
||
|
||
// 选择条件展示商品
|
||
set_where: function(param, isDiy) {
|
||
this.select.show = false;
|
||
this.loading = false;
|
||
this.loadend = false;
|
||
this.where.page = 1;
|
||
this.goods = [];
|
||
this.where.action = ""
|
||
switch (param) {
|
||
case 0:
|
||
this.navActive = 0;
|
||
this.where.order = '';
|
||
this.getGoods();
|
||
break;
|
||
case 1:
|
||
this.navActive = 1;
|
||
this.where.order = 'sales';
|
||
this.getGoods();
|
||
break;
|
||
case 2:
|
||
this.navActive = 2; //按照价格排序
|
||
this.where.order = this.sortPrice ? 'price_asc' : 'price_desc';
|
||
this.sortPrice = !this.sortPrice;
|
||
this.getGoods();
|
||
break;
|
||
case 3:
|
||
this.navActive = 3; //评分
|
||
this.where.order = 'rate';
|
||
this.getGoods();
|
||
break;
|
||
case 4:
|
||
if (isDiy == 1 || isDiy == 2) this.diyActive = isDiy
|
||
this.navActive = 3;
|
||
this.where.order = 'is_new';
|
||
this.getGoods();
|
||
break;
|
||
case 5:
|
||
if (isDiy == 1 || isDiy == 2) this.diyActive = isDiy
|
||
this.navActive = 5;
|
||
this.where.action = 1;
|
||
this.where.order = ""
|
||
this.getGoods();
|
||
break;
|
||
}
|
||
},
|
||
|
||
// 去分类商品页
|
||
goCategoryGoods: function(id) {
|
||
uni.navigateTo({
|
||
url: `/pages/store/list/index?id=${id}&mer_id=${this.id}`
|
||
})
|
||
},
|
||
// 去商品详情页
|
||
goGoodsDetail(item) {
|
||
goShopDetail(item, this.uid, this.where.sale_type).then(res => {
|
||
if (this.isLogin) {
|
||
initiateAssistApi(item.activity_id).then(res => {
|
||
let id = res.data.product_assist_set_id;
|
||
uni.hideLoading();
|
||
uni.navigateTo({
|
||
url: '/pages/activity/assist_detail/index?id=' + id
|
||
});
|
||
}).catch((err) => {
|
||
uni.showToast({
|
||
title: err,
|
||
icon: 'none'
|
||
})
|
||
});
|
||
} else {
|
||
toLogin()
|
||
}
|
||
})
|
||
},
|
||
// 商铺首页滚动 navbar 吸顶
|
||
scrollHome: function(e) {
|
||
uni.$emit('scroll');
|
||
this.navShow = e.detail.scrollTop >= 50;
|
||
},
|
||
|
||
goback: function() {
|
||
uni.navigateBack();
|
||
},
|
||
// 首页
|
||
goHome() {
|
||
uni.switchTab({
|
||
url: '/pages/index/index'
|
||
});
|
||
},
|
||
// 商铺底部切换
|
||
tab: function(param) {
|
||
this.tabActive = param;
|
||
this.goodsLoading = this.loadend = this.loading = false
|
||
},
|
||
resetParmas() {
|
||
this.navActive = 0;
|
||
this.where = {
|
||
order: '',
|
||
keyword: '',
|
||
page: 1,
|
||
limit: 30,
|
||
sale_type: this.where.sale_type
|
||
}
|
||
},
|
||
|
||
// 获取dom布局信息
|
||
getDomInfo(selector) {
|
||
return new Promise((resolve, reject) => {
|
||
uni.createSelectorQuery().in(this).select(selector).boundingClientRect((data) => {
|
||
resolve(data);
|
||
}).exec();
|
||
})
|
||
},
|
||
|
||
//#ifdef H5
|
||
ShareInfo() {
|
||
let data = this.store;
|
||
let href = location.href;
|
||
if (this.$wechat.isWeixin()) {
|
||
getUserInfo().then(res => {
|
||
href =
|
||
href.indexOf("?") === -1 ?
|
||
href + "?spid=" + res.data.uid :
|
||
href + "&spid=" + res.data.uid;
|
||
let configAppMessage = {
|
||
desc: data.mer_info,
|
||
title: data.mer_name,
|
||
link: href,
|
||
imgUrl: data.mer_avatar
|
||
};
|
||
this.$wechat.wechatEvevt([
|
||
"updateAppMessageShareData",
|
||
"updateTimelineShareData",
|
||
"onMenuShareAppMessage",
|
||
"onMenuShareTimeline"
|
||
], configAppMessage).then(res => {}).catch(err => {
|
||
console.log(err);
|
||
})
|
||
});
|
||
}
|
||
},
|
||
//#endif
|
||
},
|
||
onReachBottom() {
|
||
// 模拟触底刷新
|
||
if (this.tabActive == 0) {
|
||
setTimeout(() => {
|
||
this.goods.push(...this.goods);
|
||
}, 500)
|
||
}
|
||
},
|
||
onPageScroll() {
|
||
uni.$emit('scroll');
|
||
},
|
||
onPullDownRefresh() {
|
||
// 模拟上拉刷新
|
||
setTimeout(() => {
|
||
const newList = this.goods.reverse();
|
||
this.goods = newList;
|
||
uni.stopPullDownRefresh();
|
||
}, 500)
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.tab-cont {
|
||
background: #f5f5f5;
|
||
min-height: 500rpx;
|
||
overflow: auto;
|
||
}
|
||
|
||
.noPointer {
|
||
pointer-events: none;
|
||
}
|
||
|
||
/deep/.care {
|
||
background-image: none !important;
|
||
border: 1px solid #fff;
|
||
background-color: transparent;
|
||
}
|
||
|
||
.store-home {
|
||
position: fixed;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding-bottom: 100rpx;
|
||
padding-bottom: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
|
||
padding-bottom: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
|
||
background: left top/750rpx 390rpx no-repeat fixed;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.header {
|
||
position: relative;
|
||
padding: 0 34rpx 20rpx;
|
||
min-height: calc(300rpx + var(--status-bar-height));
|
||
background-color: #40AE36;
|
||
|
||
.head-menu {
|
||
display: flex;
|
||
align-items: center;
|
||
height: 88rpx;
|
||
margin-bottom: 30rpx;
|
||
|
||
.icon-xiangzuo,
|
||
.icon-gouwuche {
|
||
font-size: 36rpx;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.iconfont {
|
||
color: #fff;
|
||
}
|
||
|
||
.search {
|
||
position: relative;
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
height: 58rpx;
|
||
border-radius: 29rpx;
|
||
margin-left: 32rpx;
|
||
background-color: #FFFFFF;
|
||
|
||
.iconfont {
|
||
margin-right: 13rpx;
|
||
margin-left: 30rpx;
|
||
font-size: 32rpx;
|
||
color: #A1A1A1;
|
||
}
|
||
|
||
.search-txt {
|
||
font-size: 26rpx;
|
||
color: #A1A1A1;
|
||
}
|
||
|
||
.search-btn {
|
||
position: absolute;
|
||
right: 4rpx;
|
||
width: 92rpx;
|
||
height: 50rpx;
|
||
line-height: 50rpx;
|
||
background: linear-gradient(139deg, #72BE53 0%, #46B03A 100%);
|
||
border-radius: 28rpx 28rpx 28rpx 28rpx;
|
||
font-weight: 400;
|
||
font-size: 26rpx;
|
||
color: #F8F9FA;
|
||
text-align: center;
|
||
}
|
||
}
|
||
}
|
||
|
||
.shop {
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
.shop-logo {
|
||
position: absolute;
|
||
right: 0;
|
||
bottom: 12rpx;
|
||
}
|
||
|
||
.shop-img {
|
||
margin-right: 20rpx;
|
||
border-radius: 10rpx;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.shop-info {
|
||
.shop-info-title {
|
||
width: 530rpx;
|
||
margin-bottom: 10rpx;
|
||
font-weight: 600;
|
||
font-size: 28rpx;
|
||
color: #FFFFFF;
|
||
display: flex;
|
||
align-items: flex-end;
|
||
|
||
text {
|
||
max-width: 480rpx;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
}
|
||
|
||
.shop-info-eva {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-bottom: 10rpx;
|
||
|
||
.star {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.shop-info-sale {
|
||
margin-right: 6rpx;
|
||
color: #FFFFFF;
|
||
font-size: 22rpx;
|
||
}
|
||
|
||
.icon-kefu3 {
|
||
color: #fff;
|
||
}
|
||
}
|
||
|
||
.shop-info-runtime {
|
||
margin-bottom: 10rpx;
|
||
font-size: 22rpx;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.shop-info-addr {
|
||
width: 530rpx;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
font-size: 22rpx;
|
||
color: #FFFFFF;
|
||
display: flex;
|
||
align-items: center;
|
||
|
||
text {
|
||
max-width: 480rpx;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.main_count {
|
||
background-color: #ffffff;
|
||
padding: 30rpx 20rpx;
|
||
|
||
.list {
|
||
width: 710rpx;
|
||
height: 280rpx;
|
||
margin-bottom: 30rpx;
|
||
position: relative;
|
||
|
||
.picture {
|
||
width: 710rpx;
|
||
height: 280rpx;
|
||
border-radius: 16rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.main {
|
||
flex: 1;
|
||
min-height: 0rpx;
|
||
box-sizing: border-box;
|
||
padding: 0;
|
||
}
|
||
|
||
.store {
|
||
position: relative;
|
||
z-index: 6;
|
||
display: flex;
|
||
align-items: center;
|
||
padding-right: 20rpx;
|
||
padding-left: 20rpx;
|
||
padding-top: 20rpx;
|
||
padding-bottom: 22rpx;
|
||
|
||
image {
|
||
width: 74rpx;
|
||
height: 74rpx;
|
||
border-radius: 6rpx;
|
||
}
|
||
|
||
.store-margin {
|
||
width: 26rpx;
|
||
height: 26rpx;
|
||
margin-left: 10rpx;
|
||
}
|
||
|
||
.kefu {
|
||
color: #ffffff;
|
||
margin-right: 26rpx;
|
||
cursor: pointer;
|
||
|
||
.icon-kefu3 {
|
||
font-size: 34rpx;
|
||
}
|
||
}
|
||
|
||
.text {
|
||
flex: 1;
|
||
min-width: 0;
|
||
margin-right: 20rpx;
|
||
margin-left: 20rpx;
|
||
|
||
navigator {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
max-width: 100%;
|
||
|
||
.name {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
font-weight: bold;
|
||
font-size: 30rpx;
|
||
line-height: 1;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.iconfont {
|
||
margin-left: 10rpx;
|
||
font-size: 17rpx;
|
||
color: #FFFFFF;
|
||
}
|
||
}
|
||
|
||
.score {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-top: 17rpx;
|
||
font-weight: 500;
|
||
font-size: 24rpx;
|
||
line-height: 1;
|
||
color: #FFFFFF;
|
||
|
||
.star {
|
||
position: relative;
|
||
width: 111rpx;
|
||
height: 19rpx;
|
||
margin-right: 10rpx;
|
||
background: url(../../columnGoods/images/star.png) left top/100% 100% no-repeat;
|
||
overflow: hidden;
|
||
|
||
view {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: url(../../columnGoods/images/star_active.png) left top/111rpx 19rpx no-repeat;
|
||
|
||
&.star_purple {
|
||
background: url(../../columnGoods/images/star_active_purple.png) left top/111rpx 19rpx no-repeat;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
button {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
width: 113rpx;
|
||
height: 48rpx;
|
||
border-radius: 24rpx;
|
||
background-image: linear-gradient(-90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
|
||
font-weight: 500;
|
||
font-size: 22rpx;
|
||
color: #FFFFFF;
|
||
|
||
.iconfont {
|
||
margin-right: 6rpx;
|
||
font-size: 22rpx;
|
||
}
|
||
|
||
&.gary {
|
||
background-color: #999;
|
||
}
|
||
}
|
||
}
|
||
|
||
.font-bg-red {
|
||
background-color: var(--view-theme);
|
||
}
|
||
|
||
.nav.fixed {
|
||
position: fixed;
|
||
left: 0;
|
||
width: 100%;
|
||
|
||
.nav-cont {
|
||
position: absolute;
|
||
width: 100%;
|
||
}
|
||
}
|
||
|
||
.nav {
|
||
position: relative;
|
||
padding: 0 30rpx;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
|
||
.nav-cont {
|
||
display: flex;
|
||
align-items: center;
|
||
height: 84rpx;
|
||
|
||
.item {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
min-width: 0;
|
||
|
||
.cont {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
width: 116rpx;
|
||
height: 44rpx;
|
||
border-radius: 22rpx;
|
||
font-weight: 500;
|
||
font-size: 24rpx;
|
||
color: #666666;
|
||
|
||
.arrow-icon {
|
||
margin-left: 10rpx;
|
||
font-size: 18rpx;
|
||
}
|
||
|
||
.layout-icon {
|
||
font-size: 32rpx;
|
||
}
|
||
|
||
.icon-pailie {
|
||
font-size: 32rpx;
|
||
}
|
||
|
||
image {
|
||
width: 15rpx;
|
||
height: 21rpx;
|
||
margin-left: 7rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.active {
|
||
.cont {
|
||
font-size: 28rpx;
|
||
font-weight: bold;
|
||
color: var(--view-theme);
|
||
}
|
||
}
|
||
}
|
||
|
||
.guanzhu {
|
||
width: 146rpx;
|
||
height: 58rpx;
|
||
line-height: 58rpx;
|
||
background: #46B03A;
|
||
border-radius: 68rpx 68rpx 68rpx 68rpx;
|
||
font-weight: 600;
|
||
font-size: 28rpx;
|
||
color: #FFFFFF;
|
||
text-align: center;
|
||
}
|
||
|
||
.guanzhu-active {
|
||
background: transparent;
|
||
border: 2rpx solid #46B03A;
|
||
color: #46B03A;
|
||
}
|
||
|
||
.select {
|
||
position: absolute;
|
||
top: 100%;
|
||
left: 0;
|
||
z-index: 2;
|
||
width: 100%;
|
||
padding-right: 40rpx;
|
||
padding-bottom: 28rpx;
|
||
padding-left: 74rpx;
|
||
border-bottom-right-radius: 24rpx;
|
||
border-bottom-left-radius: 24rpx;
|
||
background-color: #FFFFFF;
|
||
box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
|
||
|
||
.item {
|
||
margin-top: 28rpx;
|
||
font-size: 24rpx;
|
||
color: #454545;
|
||
}
|
||
|
||
.active {
|
||
color: var(--view-theme);
|
||
|
||
.iconfont {
|
||
color: var(--view-theme);
|
||
float: right;
|
||
font-size: 20rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.goods {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: space-between;
|
||
padding-top: 20rpx;
|
||
padding-right: 20rpx;
|
||
padding-left: 20rpx;
|
||
background-color: #F5F5F5;
|
||
width: 750rpx;
|
||
|
||
.item {
|
||
width: 345rpx;
|
||
border-radius: 16rpx;
|
||
margin-bottom: 20rpx;
|
||
background-color: #FFFFFF;
|
||
overflow: hidden;
|
||
|
||
.sell_out {
|
||
display: flex;
|
||
width: 110rpx;
|
||
height: 110rpx;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 100%;
|
||
background: rgba(0, 0, 0, .6);
|
||
color: #fff;
|
||
font-size: 24rpx;
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
margin: -55rpx 0 0 -55rpx;
|
||
|
||
&::before {
|
||
content: "";
|
||
display: block;
|
||
width: 100rpx;
|
||
height: 100rpx;
|
||
border-radius: 100%;
|
||
border: 1px dashed #fff;
|
||
position: absolute;
|
||
top: 5rpx;
|
||
left: 5rpx;
|
||
}
|
||
}
|
||
|
||
.image,
|
||
.easy-loadimage,
|
||
image,
|
||
uni-image {
|
||
width: 180rpx;
|
||
height: 180rpx;
|
||
|
||
image {
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
}
|
||
|
||
.text {
|
||
padding: 20rpx 20rpx 25rpx;
|
||
|
||
.name {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 10rpx;
|
||
|
||
.name_text {
|
||
display: inline-block;
|
||
max-width: 340rpx;
|
||
font-size: 29rpx;
|
||
color: #262626;
|
||
}
|
||
|
||
.sale_num {
|
||
font-size: 22rpx;
|
||
color: #9A9A9A;
|
||
}
|
||
}
|
||
|
||
.tag {
|
||
margin-bottom: 10rpx;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
|
||
.tag-item {
|
||
padding: 2rpx 6rpx;
|
||
border-radius: 6rpx;
|
||
border: 1rpx solid #40AE36;
|
||
font-size: 18rpx;
|
||
margin-right: 7rpx;
|
||
color: #40AE36;
|
||
}
|
||
}
|
||
|
||
.shop-detail {
|
||
display: flex;
|
||
align-items: center;
|
||
width: 100%;
|
||
// margin-bottom: 28rpx;
|
||
font-size: 22rpx;
|
||
line-height: 28rpx;
|
||
color: #999999;
|
||
display: -webkit-box;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
-webkit-line-clamp: 3;
|
||
/* 控制显示的行数 */
|
||
white-space: pre-wrap;
|
||
|
||
.brand {
|
||
&::after {
|
||
content: "";
|
||
display: inline-block;
|
||
width: 0rpx;
|
||
height: 12rpx;
|
||
margin: 0 8rpx;
|
||
border: 1rpx solid #A1A1A1;
|
||
border-radius: 1rpx;
|
||
background-color: #A1A1A1;
|
||
opacity: .5;
|
||
}
|
||
}
|
||
|
||
.unit {}
|
||
}
|
||
|
||
.price {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
width: 100%;
|
||
|
||
.price-num {
|
||
.unit-price {
|
||
font-weight: bold;
|
||
color: #F55726;
|
||
font-size: 32rpx;
|
||
}
|
||
|
||
.unit-name {
|
||
font-size: 22rpx;
|
||
color: #999999;
|
||
}
|
||
}
|
||
|
||
.price-icon {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
width: 48rpx;
|
||
height: 48rpx;
|
||
margin-top: 4rpx;
|
||
border-radius: 50%;
|
||
background-color: #40AE36;
|
||
color: #fff;
|
||
}
|
||
}
|
||
|
||
.money-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-top: 43rpx;
|
||
|
||
.money {
|
||
font-weight: bold;
|
||
font-size: 26rpx;
|
||
color: var(--view-priceColor);
|
||
|
||
text {
|
||
font-size: 34rpx;
|
||
line-height: 1;
|
||
}
|
||
}
|
||
}
|
||
|
||
.score {
|
||
margin-top: 20rpx;
|
||
font-weight: 500;
|
||
font-size: 20rpx;
|
||
line-height: 1;
|
||
color: #737373;
|
||
}
|
||
}
|
||
|
||
.item_tags {
|
||
margin-top: 8rpx;
|
||
}
|
||
|
||
.item_tags .tags_item {
|
||
display: inline-block;
|
||
font-size: 20rpx;
|
||
text-align: center;
|
||
border-radius: 5rpx;
|
||
padding: 0 4rpx;
|
||
line-height: 28rpx;
|
||
margin-right: 8rpx;
|
||
}
|
||
|
||
.item_tags .tags_item.ticket {
|
||
border: 1px solid var(--view-theme);
|
||
color: var(--view-theme);
|
||
}
|
||
|
||
.item_tags .tags_item.delivery {
|
||
color: #FF9000;
|
||
border: 1px solid #FF9000;
|
||
}
|
||
|
||
.foot {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
height: 52rpx;
|
||
background-image: linear-gradient(-90deg, var(--view-bntColor21) 0%, var(--view-bntColor22) 100%);
|
||
font-weight: 500;
|
||
font-size: 24rpx;
|
||
color: #FFFFFF;
|
||
|
||
.iconfont {
|
||
margin-right: 10rpx;
|
||
font-size: 22rpx;
|
||
line-height: 1;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.column {
|
||
padding: 0;
|
||
background-color: #FFFFFF;
|
||
|
||
.item {
|
||
position: relative;
|
||
display: flex;
|
||
width: 100%;
|
||
padding: 30rpx 20rpx;
|
||
border-radius: 0;
|
||
margin-bottom: 0;
|
||
|
||
&::before {
|
||
content: " ";
|
||
position: absolute;
|
||
top: 0;
|
||
right: 20rpx;
|
||
left: 250rpx;
|
||
border-top: 1px solid #F5F5F5;
|
||
}
|
||
|
||
/deep/.image,
|
||
/deep/.easy-loadimage,
|
||
/deep/image,
|
||
/deep/uni-image {
|
||
width: 260rpx;
|
||
height: 260rpx;
|
||
border-radius: 16rpx;
|
||
overflow: hidden;
|
||
position: relative;
|
||
|
||
}
|
||
|
||
.border-picture {
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: center/cover no-repeat;
|
||
}
|
||
|
||
.text {
|
||
position: relative;
|
||
width: 530rpx;
|
||
min-width: 0;
|
||
padding-top: 0;
|
||
padding-right: 0;
|
||
padding-bottom: 0;
|
||
|
||
.name {
|
||
color: #282828;
|
||
width: 100%;
|
||
display: flex;
|
||
}
|
||
|
||
.item_bot {
|
||
width: 100%;
|
||
}
|
||
|
||
.money-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
margin-top: 52rpx;
|
||
|
||
.ticket {
|
||
height: 28rpx;
|
||
padding-right: 12rpx;
|
||
padding-left: 12rpx;
|
||
border: none;
|
||
border-radius: 0;
|
||
margin-top: 17rpx;
|
||
margin-left: 0;
|
||
background: url(../../../static/images/yh.png) top left/100% 100% no-repeat;
|
||
line-height: 28rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.foot {
|
||
position: absolute;
|
||
right: 20rpx;
|
||
bottom: 30rpx;
|
||
height: 44rpx;
|
||
padding-right: 17rpx;
|
||
padding-left: 17rpx;
|
||
border-radius: 22rpx;
|
||
font-size: 22rpx;
|
||
color: #F5F5F5;
|
||
}
|
||
}
|
||
}
|
||
|
||
.category {
|
||
padding-top: 34rpx;
|
||
padding-right: 20rpx;
|
||
padding-left: 20rpx;
|
||
|
||
.section {
|
||
border-radius: 10rpx;
|
||
margin-bottom: 20rpx;
|
||
background-color: #FFFFFF;
|
||
|
||
.head {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
height: 90rpx;
|
||
padding-right: 20rpx;
|
||
padding-left: 36rpx;
|
||
font-weight: bold;
|
||
color: #282828;
|
||
|
||
&::before {
|
||
content: " ";
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 20rpx;
|
||
width: 6rpx;
|
||
height: 24rpx;
|
||
background-color: var(--view-theme);
|
||
transform: translateY(-50%);
|
||
}
|
||
|
||
.title {
|
||
flex: 1;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
font-size: 30rpx;
|
||
}
|
||
|
||
.iconfont {
|
||
font-size: 22rpx;
|
||
line-height: 1;
|
||
}
|
||
}
|
||
|
||
.body {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 9rpx 36rpx 14rpx;
|
||
|
||
.item {
|
||
width: 314rpx;
|
||
height: 84rpx;
|
||
padding-right: 30rpx;
|
||
padding-left: 30rpx;
|
||
border-radius: 10rpx;
|
||
background-color: #F5F5F5;
|
||
margin-bottom: 10rpx;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
font-weight: 500;
|
||
font-size: 26rpx;
|
||
line-height: 84rpx;
|
||
color: #282828;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.coupon {
|
||
padding: 30rpx;
|
||
background-color: #F5F5F5;
|
||
|
||
.item {
|
||
display: flex;
|
||
margin-bottom: 16rpx;
|
||
|
||
.left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
width: 240rpx;
|
||
font-weight: 500;
|
||
font-size: 24rpx;
|
||
line-height: 1;
|
||
color: #FFFFFF;
|
||
background-size: 100% 100%;
|
||
|
||
&.gary {
|
||
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAACqCAMAAACknjIxAAAAgVBMVEUAAADGxsbKysrKysvDw8LBwcG/v77MzMzGxsaxsbHExMS/v7+9vb26urqvr6+3t7e0tLTCwsKlpaTGxsatra2qqqq8vLynp6fIyMi5ubm2trazs7Ojo6PKysqpqanBwcGfn5+mpqasrKzMzMyioqKhoaGgoKCampqdnZ2cnJyhoKBnDnX9AAAACXRSTlMAE3Zubnapp1QPqckSAAAYs0lEQVR42pyc3XITMQyFCVzwU0J/0jYN6TYkpL3g/R+Q2mv7SDrSKqBlOpO9++ZIsixp+QD7ndrk2NP0ZG2j7JuwW9jhcLg9VLsa9n3YY7d1t12z624/q91028/2tduPrz+G3Xc7nU7gXaW470/5o3k7MGifBCx4DfABdhUSr2GNdmdwf1pcmIergL/EpAMY5uNuyiN46xMAF+YrRXs1YBswiFleLXDEy8QA/pz7s2XWuLk/wxbVBW7A+/N6pgU0FCZeQatcejXlLp1EMDwavBsB3JEPDfgKAgtiT14AQ2FovIfAcQCfZnv4F4E18VP5Y2hZ3lhf0FL4kr4Vdqdhr+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u3Gi/VfuR+3CkAzenNdvtZkfqsCBErzWZJR+++njGk9hdeSqK/RFUnbP7voZwMtvcZz8/AZ4SxYd3qwHVMpsLNzZ8+j8jQzA2d5+zMDSInmzHVi/g9PFEci7o5Oie9+ZjnIiFsBwaBWib7wd8ToGMBJ5sHgea59hdBH/W6X1u86sO8spI6MvTg+QCfL2KA1cLGDIG1pt3npDxLSGqapy4PvP538d5fev+3Uktk6H0tYC4HS21JfHdqCcBi3+VmRvun10iKOmQoMDiX1eMcz/gPuReN+sFJJ6pTPkndT2xduvCxsDvwWt5aWe7wOr9zngBW3bkMihM24m7hT0L++47S8wMl0Il4EhMdS914X1maNR+LZbeH6u8qLWX//xDXg2+l64oaPpO8GhPeIY+BPp200XvbMdmOZb0FVogU/yVrvdgXd3FOHW6DurI2gHntMCvlE+9p+B31LAiprOILFkCeLVNztJuIO8O/2AAfO2w8YFtMXaXjyVvOzNjVcxMAz6cv8O1Rf4dvvLz2/wbGxXuC1eIEMuOQB8nkzi7qLuwSTvgv0FWzFPbqn+R/UAAAAASUVORK5CYII=');
|
||
}
|
||
|
||
.money {
|
||
margin-bottom: 25rpx;
|
||
font-weight: 800;
|
||
font-size: 36rpx;
|
||
|
||
text {
|
||
font-size: 60rpx;
|
||
}
|
||
}
|
||
}
|
||
|
||
.right {
|
||
flex: 1;
|
||
min-width: 0;
|
||
padding-right: 18rpx;
|
||
padding-left: 27rpx;
|
||
background-color: #FFFFFF;
|
||
position: relative;
|
||
overflow: hidden;
|
||
|
||
.name {
|
||
padding-top: 32rpx;
|
||
padding-bottom: 32rpx;
|
||
border-bottom: 1px solid #F0F0F0;
|
||
font-weight: 500;
|
||
font-size: 30;
|
||
line-height: 1;
|
||
color: #282828;
|
||
|
||
text {
|
||
display: inline-block;
|
||
text-align: center;
|
||
line-height: 40rpx;
|
||
height: 40rpx;
|
||
padding: 0 10rpx;
|
||
-webkit-box-sizing: border-box;
|
||
box-sizing: border-box;
|
||
background: var(--view-minorColor);
|
||
border: 1px solid var(--view-theme);
|
||
opacity: 1;
|
||
border-radius: 22rpx;
|
||
font-size: 20rpx;
|
||
color: var(--view-theme);
|
||
margin-right: 12rpx;
|
||
|
||
&.gary {
|
||
border-color: #BBB;
|
||
color: #bbb;
|
||
background-color: #F5F5F5;
|
||
|
||
}
|
||
}
|
||
}
|
||
|
||
.time-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
padding-top: 16rpx;
|
||
padding-bottom: 16rpx;
|
||
font-weight: 500;
|
||
font-size: 20rpx;
|
||
color: #999999;
|
||
|
||
.time {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.button {
|
||
width: 136rpx;
|
||
height: 44rpx;
|
||
border-radius: 22rpx;
|
||
background-color: var(--view-theme);
|
||
font-weight: 500;
|
||
font-size: 22rpx;
|
||
line-height: 44rpx;
|
||
text-align: center;
|
||
color: #FFFFFF;
|
||
|
||
}
|
||
|
||
.gary {
|
||
font-size: 130rpx;
|
||
color: #DFDFDF;
|
||
position: absolute;
|
||
right: -15rpx;
|
||
z-index: 0;
|
||
bottom: -20rpx;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.disabled {
|
||
.left {
|
||
background-image: url(../static/images/coupon2.png);
|
||
}
|
||
|
||
.right {
|
||
.name {
|
||
text {
|
||
border-color: #C1C1C1;
|
||
color: #C1C1C1;
|
||
}
|
||
}
|
||
|
||
.time-wrap {
|
||
.button {
|
||
background-color: #CCCCCC;
|
||
color: #FFFFFF;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
.empty-box {
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
margin-top: 0;
|
||
padding-top: 200rpx;
|
||
|
||
image {
|
||
width: 414rpx;
|
||
height: 240rpx;
|
||
}
|
||
|
||
.txt {
|
||
font-size: 26rpx;
|
||
color: #999;
|
||
}
|
||
}
|
||
|
||
.footer {
|
||
position: fixed;
|
||
bottom: 0;
|
||
left: 0;
|
||
z-index: 5;
|
||
display: flex;
|
||
width: 100%;
|
||
height: 100rpx;
|
||
height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
|
||
height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
|
||
background-color: #FFFFFF;
|
||
opacity: 0.96;
|
||
|
||
.item {
|
||
flex: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
font-weight: 500;
|
||
font-size: 20rpx;
|
||
color: #282828;
|
||
|
||
.iconfont {
|
||
font-size: 43rpx;
|
||
}
|
||
|
||
.icon-zhuanti {
|
||
font-size: 38rpx;
|
||
}
|
||
}
|
||
|
||
.active {
|
||
color: var(--view-theme);
|
||
}
|
||
}
|
||
|
||
.p-b-75 {
|
||
padding-bottom: 150rpx;
|
||
}
|
||
|
||
.vip-money {
|
||
color: #282828;
|
||
font-size: 22rpx;
|
||
margin-left: 6rpx;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.vipImg {
|
||
width: 65rpx;
|
||
height: 28rpx;
|
||
margin-left: 4rpx;
|
||
|
||
image {
|
||
width: 100% !important;
|
||
height: 100% !important;
|
||
display: block;
|
||
}
|
||
}
|
||
</style> |