123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881 |
- <template>
- <view class="container">
- <!-- 小程序头部兼容 -->
- <!-- #ifdef MP -->
- <view class="input-box flex" @click="clickSearch">
- <view class=" input-content flex">
- <view class="iconfont iconsearch"></view>
- <view class="input"><input type="text" disabled placeholder="请输入搜索内容" /></view>
- </view>
- </view>
- <view class="mp-height"></view>
- <!-- #endif -->
- <!-- 头部轮播 -->
- <!-- <view class="carousel-section"> -->
- <!-- 标题栏和状态栏占位符 -->
- <!-- <view class="titleNview-placing"></view> -->
- <!-- 背景色区域 -->
- <!-- <view class="titleNview-background" :style="{ backgroundColor: '#5DBC7C' }"></view> -->
- <!-- <view class="titleNview-background" ></view>
- <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange">
- <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item" @click="bannerNavToUrl(item)"><image :src="item.pic" /></swiper-item>
- </swiper>
- </view> -->
- <view class="titleNview-placing"></view>
- <view class="swiper-wrapper">
- <swiper class="swiper" autoplay="true" duration="400" interval="5000" @change="swiperChange" circular>
- <swiper-item v-for="(item, index) in carouselList" :key="index" class="swiper-item" @click="bannerNavToUrl(item)"><image :src="item.pic" /></swiper-item>
- </swiper>
- </view>
- <!-- 自定义swiper指示器 -->
- <view class="swiper-dot">
- <template v-for="item in swiperLength">
- <view class="swiper-dots-item" :key="item" :class="{ action: swiperCurrent + 1 === item }"></view>
- </template>
- </view>
- <!-- 秒杀title -->
- <view class="m-tap">
- <image src="../../static/img/seckill.png" mode=""></image>
- <text class="iconfont iconenter" @click="loadMore('/pages/product/seckill')">更多</text>
- </view>
- <!-- 秒杀商品 -->
- <view class="sckill-wrapper">
- <scroll-view scroll-x="true" class="sckill">
- <view class="item-wrapper">
- <view class="goods-box">
- <view class="image-wrapper"><image src="../../static/img/good1.jpg" mode="scaleToFill"></image></view>
- <view class="good-title">麻辣砂锅麻辣麻辣砂锅麻辣</view>
- <view class="price">
- <view class="now-price">¥77</view>
- <view class="old-price">¥99</view>
- </view>
- </view>
- <view class="goods-box">
- <view class="image-wrapper"><image src="../../static/img/good1.jpg" mode="scaleToFill"></image></view>
- <view class="good-title">麻辣砂锅麻辣麻辣砂锅麻辣</view>
- <view class="price">
- <view class="now-price">¥77</view>
- <view class="old-price">¥99</view>
- </view>
- </view>
- <view class="goods-box">
- <view class="image-wrapper"><image src="../../static/img/good1.jpg" mode="scaleToFill"></image></view>
- <view class="good-title">麻辣砂锅麻辣麻辣砂锅麻辣</view>
- <view class="price">
- <view class="now-price">¥77</view>
- <view class="old-price">¥99</view>
- </view>
- </view>
- <view class="goods-box">
- <view class="image-wrapper"><image src="../../static/img/good1.jpg" mode="scaleToFill"></image></view>
- <view class="good-title">麻辣砂锅麻辣麻辣砂锅麻辣</view>
- <view class="price">
- <view class="now-price">¥77</view>
- <view class="old-price">¥99</view>
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- <!-- 超值拼团title -->
- <view class="m-tap">
- <image src="../../static/img/groupBooking.png" mode=""></image>
- <text class="iconfont iconenter" @click="loadMore('/pages/product/groupBooking/index')">更多</text>
- </view>
- <!-- 超值拼团商品 -->
- <view class="groupBooking-wrapper">
- <view class="spgood">
- <view class="left-wrapper"><image src="../../static/img/spimg1.jpg" mode="scaleToFill"></image></view>
- <view class="right-wrapper">
- <view class="right-title">湿热肝上火气肺痰煲汤材料</view>
- <view class="ex-addr">
- <image src="../../static/img/shop.png" mode="" class="name-img"></image>
- 子臣台州旗舰店
- <image src="../../static/img/point.png" mode="" class="point-img"></image>
- 200m
- </view>
- <view class="right-bottom">
- <view class="sp-price">
- <view class="now-price">¥ 77</view>
- <view class="old-price">¥ 99</view>
- </view>
- <view class="sp-btn">马上拼</view>
- </view>
- </view>
- </view>
- <view class="jg"></view>
- <view class="spgood">
- <view class="left-wrapper"><image src="../../static/img/spimg1.jpg" mode="scaleToFill"></image></view>
- <view class="right-wrapper">
- <view class="right-title">湿热肝上火气肺痰煲汤材料</view>
- <view class="ex-addr">
- <image src="../../static/img/shop.png" mode="" class="name-img"></image>
- 子臣台州旗舰店
- <image src="../../static/img/point.png" mode="" class="point-img"></image>
- 200m
- </view>
- <view class="right-bottom">
- <view class="sp-price">
- <view class="now-price">¥ 77</view>
- <view class="old-price">¥ 99</view>
- </view>
- <view class="sp-btn">马上拼</view>
- </view>
- </view>
- </view>
- <view class="jg"></view>
- <view class="spgood">
- <view class="left-wrapper"><image src="../../static/img/spimg1.jpg" mode="scaleToFill"></image></view>
- <view class="right-wrapper">
- <view class="right-title">湿热肝上火气肺痰煲汤材料</view>
- <view class="ex-addr">
- <image src="../../static/img/shop.png" mode="" class="name-img"></image>
- 子臣台州旗舰店
- <image src="../../static/img/point.png" mode="" class="point-img"></image>
- 200m
- </view>
- <view class="right-bottom">
- <view class="sp-price">
- <view class="now-price">¥ 77</view>
- <view class="old-price">¥ 99</view>
- </view>
- <view class="sp-btn">马上拼</view>
- </view>
- </view>
- </view>
- </view>
- <!-- 积分兑换title -->
- <view class="m-tap">
- <image src="../../static/img/exchange.png" mode=""></image>
- <text class="iconfont iconenter" @click="loadMore('/pages/product/pointsExchange')">更多</text>
- </view>
- <!-- 积分兑换商品 -->
- <view class="exchange-wrapper">
- <view class="exgood-wrapper">
- <view class="ex-img-wrapper"><image src="../../static/img/ex1.jpg" mode=""></image></view>
- <view class="exgood-title">湿热肝上火气肺痰煲湿热肝上火气肺痰煲</view>
- <view class="ex-addr">
- <image src="../../static/img/shop.png" mode="" class="name-img"></image>
- 子臣台州旗舰店
- <image src="../../static/img/point.png" mode="" class="point-img"></image>
- 200m
- </view>
- <view class="ex-price">
- ¥26+20
- <text class="tx1">积分</text>
- <text class="tx2">¥99</text>
- </view>
- <view class="bg"></view>
- </view>
- <view class="exgood-wrapper">
- <view class="ex-img-wrapper"><image src="../../static/img/ex1.jpg" mode=""></image></view>
- <view class="exgood-title">湿热肝上火气肺痰煲湿热肝上火气肺痰煲</view>
- <view class="ex-addr">
- <image src="../../static/img/shop.png" mode="" class="name-img"></image>
- 子臣台州旗舰店
- <image src="../../static/img/point.png" mode="" class="point-img"></image>
- 200m
- </view>
- <view class="ex-price">
- ¥26+20
- <text class="tx1">积分</text>
- <text class="tx2">¥99</text>
- </view>
- <view class="bg"></view>
- </view>
- </view>
- <!-- 分类 -->
- <view class="cate-section">
- <view class="cate-item">
- <image src="/static/icon/c3.png"></image>
- <text>联盟礼包</text>
- </view>
- <navigator url="/pages/product/groupBooking/index">
- <view class="cate-item">
- <image src="/static/icon/c5.png"></image>
- <text>超值拼团</text>
- </view>
- </navigator>
- <navigator url="/pages/product/seckill">
- <view class="cate-item">
- <image src="/static/icon/c7.png"></image>
- <text>限时秒杀</text>
- </view>
- </navigator>
- <navigator url="/pages/index/sign">
- <view class="cate-item">
- <image src="/static/icon/c8.png"></image>
- <text>每日签到</text>
- </view>
- </navigator>
- </view>
- <view class="ad-1"><image src="/static/temp/ad1.jpg" mode="scaleToFill"></image></view>
- <!-- 可领取优惠券 -->
- <!-- <scroll-view class="coupon-box clamp" :scroll-x="true">
- <view v-for="(item, index) in couponArray" :key="item.id" class="coupon-list">
- <view class="row flex">
- <view class="list-money flex">
- <image :src="item.is_use ? '/static/img/img02.png' : '/static/img/img03.png'" mode="scaleToFill"></image>
- <view class="list-money-text">
- <view class="tit" :class="{ noAction: item.is_use }">
- <text>{{ item.coupon_price }}</text>
- </view>
- </view>
- </view>
- <view class="list-interval position-relative">
- <view class="bottom"></view>
- <view class="top"></view>
- </view>
- <view class="row_list_right">
- <view class="right_top"><text class="right_title" :class="{ noAction: item.is_use }">满减券</text></view>
- <view class="right_time">
- <text>满{{ item.use_min_price }}使用</text>
- </view>
- </view>
- <view class="right_use" :class="{ noAction: item.is_use }" @click="setCoupons(item)">
- <text>{{ item.is_use ? '已领取' : '立即领取' }}</text>
- </view>
- </view>
- </view>
- </scroll-view> -->
- <!-- 秒杀楼层 -->
- <seckill></seckill>
- <!-- 砍价 -->
- <view class="hot-goods">
- <view class="hot-headers flex-upDown-center">
- <!-- <image class="img" src="../../static/img/img44.png"></image> -->
- <view class="hot-title">超值砍价</view>
- <view><view class="more" @click.stop="navTo('/pages/activity/goods_bargain/index')">更多</view></view>
- </view>
- <view class="hot-lists" v-for="(baritem, barindex) in bargainlist" :key="barindex" @click.stop="navToDetailPages(baritem)">
- <view class="hot-produce">
- <view class="produce-image"><image :src="baritem.image"></image></view>
- <view class="produce-content">
- <view class="produce-price1 ">
- <view class="produce-name line2">{{ baritem.title }}</view>
- <!-- <view class="produce-info">
- 已抢
- <text style="color: #FF383E">{{ baritem.sales }}</text>
- 箱/仅剩
- <text style="color:#FF383E">{{ baritem.stock }}</text>
- 箱
- </view> -->
- <view class="produce-center">
- <view class="kanjia_word">
- <view class="word-1">原价:¥{{ baritem.price }}</view>
- <view class="word-2">
- 砍后价
- <text style="font-size: 24rpx;">¥</text>
- <text style="font-size: 36rpx;">{{ baritem.min_price }}</text>
- </view>
- </view>
- <view
- class="kanjia_button flex-center"
- @tap.stop="openSubscribe('/pages/activity/goods_bargain_details/index?id=' + baritem.id + '&bargain=' + userInfo.uid)"
- >
- <view>查看详情</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 拼团楼层 -->
- <view class="recommend flex">
- <view class="recommend_list" @click="change(ls.id)" v-for="ls in recommend" :key="ls.re_title">
- <view class="re_title" v-bind:class="{ active_color: ls.id == checkid }">{{ ls.re_title }}</view>
- <view class="re_name" v-bind:class="{ active_color: ls.id == checkid }">{{ ls.re_name }}</view>
- <image class="selected_icon" v-bind:class="{ active: ls.id == checkid }" src="/static/img/img04.png"></image>
- </view>
- </view>
- <swiper id="list-box" @change="listChange" :style="{ height: swiperHeight + 'px' }" :current="checkid">
- <swiper-item>
- <!-- <scroll-view scroll-y="true" class="list-box-h"> -->
- <view class="guess-section">
- <view v-for="(item, index) in bastList" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
- <text class="title clamp margin-c-20">{{ item.store_name }}</text>
- <view class="cmy-hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <text class="font-color-gray">{{ item.sales }}人购买</text>
- </view>
- </view>
- </view>
- </view>
- <!-- </scroll-view> -->
- </swiper-item>
- <swiper-item>
- <scroll-view scroll-y="true" class="list-box-h">
- <view class="guess-section">
- <view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
- <text class="title clamp margin-c-20">{{ item.store_name }}</text>
- <view class="cmy-hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <text class="font-color-gray">{{ item.sales }}人购买</text>
- </view>
- </view>
- </view>
- </view>
- </scroll-view>
- </swiper-item>
- <swiper-item>
- <scroll-view scroll-y="true">
- <view class="guess-section">
- <view v-for="(item, index) in bastBanner" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <navigator :url="item.link">
- <view class="image-wrappe r"><image :src="item.image" mode="scaleToFill"></image></view>
- <text class="title clamp margin-c-20">{{ item.store_name }}</text>
- <view class="cmy-hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <text class="font-color-gray">库存{{ item.stock + item.unit_name }}</text>
- </view>
- </view>
- </navigator>
- </view>
- </view>
- </scroll-view>
- </swiper-item>
- </swiper>
- <!-- 精品 商品 -->
- <view class="f-header m-t">
- <view class="f-left-icon"></view>
- <view class="tit-box"><text class="tit">精品推荐</text></view>
- <navigator url="/pages/product/classify?type=1"><text class="iconfont iconenter">更多</text></navigator>
- </view>
- <view class="guess-section">
- <view v-for="(item, index) in bastList" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
- <text class="title clamp margin-c-20">{{ item.store_name }}</text>
- <view class="cmy-hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <text class="font-color-gray">{{ item.sales }}人购买</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 最新 商品 -->
- <view class="f-header m-t">
- <view class="f-left-icon"></view>
- <view class="tit-box"><text class="tit">最新商品</text></view>
- <navigator url="/pages/product/classify?type=3"><text class="iconfont iconenter">更多</text></navigator>
- </view>
- <view class="guess-section">
- <view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
- <text class="title clamp margin-c-20">{{ item.store_name }}</text>
- <view class="cmy-hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <text class="font-color-gray">{{ item.sales }}人购买</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 促销 商品 -->
- <view class="f-header m-t">
- <view class="f-left-icon"></view>
- <view class="tit-box"><text class="tit">促销商品</text></view>
- <navigator url="/pages/product/classify?type=4"><text class="iconfont iconenter">更多</text></navigator>
- </view>
- <view class="guess-section">
- <view v-for="(item, index) in bastBanner" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
- <text class="title clamp margin-c-20">{{ item.store_name }}</text>
- <view class="cmy-hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <text class="font-color-gray">{{ item.sales }}人购买</text>
- </view>
- </view>
- </view>
- </view>
- <!-- 会员升级专区 -->
- <!-- <view class="f-header m-t">
- <view class="f-left-icon"></view>
- <view class="tit-box"><text class="tit">会员升级专区</text></view>
- <text class="iconfont iconenter">更多</text>
- </view> -->
- <!-- <view class="uservip flex">
- <image @error="onImageError('userServant', 0)" lazy-load :src="userServant[0].image" mode="aspectFill"></image>
- <view class="detail">
- <view class="title">满园春1999元会员升级礼包</view>
- <view class="icon">自营</view>
- <view class="flex price-box">
- <view class="price">
- <text class="font-size-sm">¥</text>
- 18888
- </view>
- <view class="text">115人购买</view>
- </view>
- </view>
- </view> -->
- <!-- 精品推荐 -->
- <!-- <view class="f-header m-t">
- <view class="f-left-icon"></view>
- <view class="tit-box"><text class="tit">精品推荐</text></view>
- <text class="iconfont iconenter">更多</text>
- </view> -->
- <!-- <view class="guess-section">
- <view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <view class="image-wrapper"><image @error="onImageError('goodsList', index)" lazy-load :src="item.image" mode="aspectFill"></image></view>
- <text class="title clamp margin-c-20">
- <text class="icon">自营</text>
- {{ item.title }}
- </text>
- <view class="hr"></view>
- <view class="price margin-c-20 flex">
- <view>
- <text class="font-size-sm ">¥</text>
- {{ item.price }}
- </view>
- <view class="font-size-sm">
- <view class='detail'>
- <text class="icon">代理价</text>
- <text></text>
- </view>
- <view class="detail">
- <text class="font-color-yellow">会员价</text>
- <text class="font-color-yellow">7.5折</text>
- </view>
- </view>
- </view>
- <view class="tip">兑换价¥44+44积分</view>
- </view>
- </view> -->
- <view class="Mask" v-show="shareShow">
- <image @click="share" src="http://shicai.liuniu946.com/static/img/shareimg4.png"></image>
- <view class="Toshare" @click="Toshare"></view>
- <view class="Tocancel" @click="Tocancel"></view>
- </view>
- </view>
- </template>
- <script>
- import seckill from '../../components/seckill/seckill.vue';
- import { loadIndexs } from '@/api/index.js';
- import { getUserInfo } from '@/api/user.js';
- import { setCoupons } from '@/api/functionalUnit.js';
- import { getBargainList } from '@/api/product.js';
- import { interceptor } from '@/utils/loginUtils';
- import { mapState } from 'vuex';
- export default {
- components: {
- seckill
- },
- watch: {
- //自适应swiper高度
- checkid(newValue, oldValue) {
- let obj = this;
- if (newValue == 0) {
- let bHeight = Math.ceil(obj.bastList.length / 2);
- obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
- }
- if (newValue == 1) {
- let bHeight = Math.ceil(obj.goodsList.length / 2);
- obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
- }
- if (newValue == 2) {
- let bHeight = Math.ceil(obj.bastBanner.length / 2);
- obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
- }
- },
- // 初次加载页面高度时修改页面高度
- bastList(newValue, oldValue) {
- let obj = this;
- let bHeight = Math.ceil(newValue.length / 2);
- obj.$nextTick(function() {
- uni.createSelectorQuery()
- .select('#list-box')
- .fields(
- {
- size: true
- },
- function(data) {
- obj.pageProportion = data.width / 750;
- obj.swiperHeight = Math.ceil(obj.pageProportion * 520 * bHeight);
- }
- )
- .exec();
- });
- }
- },
- data() {
- return {
- shareShow: false, //分享海报
- pageProportion: 0, //保存页面基于750宽度的比例
- swiperHeight: 0,
- checkid: 0,
- titleNViewBackground: '',
- swiperCurrent: 0,
- swiperLength: 0,
- bargainlist: [], //砍价商品
- carouselList: [], //轮播列表
- goodsList: [], //最新商品列表
- bastList: [], //精品推荐列表
- bastBanner: [], //促销商品列表
- menusList: [], //头部菜单
- page: 1,
- limit: 5,
- userServant: [
- {
- image: ''
- }
- ], //用户推广服务
- couponArray: [], //可领取优惠券
- recommend: [
- {
- id: 0,
- re_title: '精选',
- re_name: '为你推荐'
- },
- {
- id: 1,
- re_title: '最新',
- re_name: '最新好货优选'
- },
- {
- id: 2,
- re_title: '便宜好货',
- re_name: '90天便宜好货'
- }
- ],
- actTime: new Date()
- };
- },
- computed: {
- ...mapState(['loginInterceptor']),
- ...mapState('user', ['hasLogin', 'userInfo'])
- },
- onLoad: function(option) {
- // #ifndef MP
- if (option.spread) {
- // 存储其他邀请人
- uni.setStorageSync('spread', option.spread);
- }
- // #endif
- // #ifdef MP
- if (option.scene) {
- // 存储小程序邀请人
- uni.setStorage({
- key: 'spread_code',
- data: option.scene
- });
- }
- // #endif
- },
- onShow: function() {
- // 判断是否强制登录
- if (this.loginInterceptor && !this.hasLogin) {
- // 登录拦截
- interceptor();
- }
- this.loadData();
- this.getBargainList();
- },
- //下拉刷新
- onPullDownRefresh() {
- this.loadData();
- },
- // #ifndef MP
- // 监听导航栏输入框点击事件
- onNavigationBarSearchInputClicked(e) {
- //跳转到搜索页面
- this.clickSearch();
- },
- //点击导航栏 buttons 时触发
- onNavigationBarButtonTap(e) {
- const index = e.index;
- if (index === 0) {
- this.$api.msg('点击了扫描');
- } else if (index === 1) {
- // #ifdef APP-PLUS
- const pages = getCurrentPages();
- const page = pages[pages.length - 1];
- const currentWebview = page.$getAppWebview();
- currentWebview.hideTitleNViewButtonRedDot({
- index
- });
- // #endif
- uni.navigateTo({
- url: '/pages/user/notice'
- });
- }
- },
- // #endif
- methods: {
- //砍价商品推荐详情页
- navToDetailPages(item) {
- let id = item.product_id;
- //let type = 2;
- uni.navigateTo({
- url: '/pages/product/product?id=' + id
- });
- },
- openSubscribe: function(e) {
- let page = e;
- // #ifndef MP
- uni.navigateTo({
- url: page
- });
- // #endif
- // #ifdef MP
- uni.showLoading({
- title: '正在加载'
- });
- openBargainSubscribe()
- .then(res => {
- uni.hideLoading();
- uni.navigateTo({
- url: page
- });
- })
- .catch(err => {
- uni.hideLoading();
- });
- // #endif
- },
- getBargainList() {
- let that = this;
- getBargainList({
- page: that.page,
- limit: that.limit
- })
- .then(function(res) {
- that.$set(that, 'bargainlist', res.data.slice(0, 2));
- })
- .catch(res => {
- console.log(res, 'getBargainList');
- });
- },
- Mask() {
- this.MaskShow = false;
- this.shareShow = true;
- uni.setStorage({
- key: 'FirstEntry',
- data: true,
- success: function() {
- console.log(uni.getStorageSync('FirstEntry'), 'Mask');
- }
- });
- },
- Toshare() {
- if (this.userInfo == '') {
- getUserInfo({})
- .then(({ data }) => {
- this.setUserInfo(data);
- this.userInfo = data;
- })
- .catch(e => {});
- } else {
- this.shareShow = false;
- uni.navigateTo({
- url: '/pages/user/shareQrCode?spread=' + this.userInfo.uid
- });
- }
- },
- Tocancel() {
- this.shareShow = false;
- },
- // 监听切换事件
- listChange(e) {
- this.checkid = e.detail.current;
- },
- // 點擊搜索框
- clickSearch() {
- uni.navigateTo({
- url: '/pages/product/search'
- });
- },
- // 点击触发领取优惠券
- setCoupons(item) {
- // 判断是否已经领取了优惠券
- let obj = this;
- uni.showModal({
- title: '领取提示',
- content: '是否领取优惠券',
- success(e) {
- if (e.confirm) {
- setCoupons({
- couponId: item.id
- }).then(e => {
- item.is_use = true;
- uni.showToast({
- title: '领取成功',
- type: 'top',
- duration: 2000
- });
- });
- }
- }
- });
- },
- //商品种类切换
- change(item) {
- let id = item;
- this.checkid = id;
- if (this.checkid == 1) {
- // console.log(1);
- this.detail = this.selected_detail;
- } else if (this.checkid == 2) {
- // console.log(2);
- this.detail = this.new_product;
- } else {
- this.detail = this.cheap_good;
- }
- },
- // 监听图片加载完成
- onImageError(key, index) {
- this[key][index].image = '/static/error/errorImage.jpg';
- },
- // 请求载入数据
- async loadData() {
- loadIndexs({})
- .then(({ data }) => {
- console.log('index-data++++++++++++++++++',data)
- let goods = data.info;
- this.carouselList = data.banner;
- this.swiperLength = this.carouselList.length;
- this.menusList = data.menus;
- this.goodsList = goods.firstList; //最新商品
- this.bastList = goods.bastList; //精品推荐
- this.bastBanner = data.benefit; //促销单品
- this.$set(this, 'couponArray', data.couponList); //保存卡包券
- uni.stopPullDownRefresh();
- })
- .catch(e => {
- uni.stopPullDownRefresh();
- });
- },
- //轮播图切换修改背景色
- swiperChange(e) {
- const index = e.detail.current;
- this.swiperCurrent = index;
- this.titleNViewBackground = this.carouselList[index].background;
- },
- //详情页
- navToDetailPage(item) {
- let id = item.id;
- uni.navigateTo({
- url: '/pages/product/product?id=' + id
- });
- },
- // 轮播图跳转
- bannerNavToUrl(item) {
- // #ifdef H5
- if (item.wap_url.indexOf('http') > 0) {
- window.location.href = item.wap_url;
- }
- // #endif
- //测试数据没有写id,用title代替
- uni.navigateTo({
- url: item.wap_url
- });
- },
- loadMore(url) {
- console.log('加载更多');
- uni.navigateTo({
- url: url
- });
- }
- }
- };
- </script>
- <style lang="scss">
- .Mask {
- width: 100%;
- height: 100vh;
- position: fixed;
- z-index: 99999;
- background-color: rgba(0, 0, 0, 0.7);
- top: 0;
- image {
- width: 100%;
- height: 100vh;
- }
- }
- // 热销商品
- .hot-goods {
- margin: 0 25rpx;
- padding: 5rpx 25rpx 30rpx 25rpx;
- background-color: #fff;
- border-radius: 10rpx;
- .hot-headers {
- margin: 25rpx 0;
- width: 100%;
- display: flex;
- .img {
- width: 32rpx;
- height: 32rpx;
- margin-right: 10rpx;
- }
- .hot-title {
- font-size: 30rpx;
- margin-right: 15rpx;
- }
- .more {
- line-height: 1;
- padding: 5rpx 10rpx 5rpx 15rpx;
- text-align: center;
- font-size: 20rpx;
- border-radius: 15rpx;
- color: #ffffff;
- background: linear-gradient(90deg, rgba(250, 52, 38, 1) 0%, rgba(249, 30, 83, 1) 100%);
- image {
- width: 20rpx;
- height: 20rpx;
- }
- }
- }
- .hot-lists {
- line-height: 1;
- display: flex;
- .hot-produce {
- width: 100%;
- height: 260rpx;
- border-top: 1px solid #f0f0f0;
- display: flex;
- padding-top: 28rpx;
- .produce-image {
- width: 200rpx;
- height: 200rpx;
- image {
- width: 200rpx;
- height: 200rpx;
- border: 1px solid #f0f0f0;
- }
- }
- .produce-content {
- // flex-direction: column;
- margin-left: 30rpx;
- height: 200rpx;
- position: relative;
- width: calc(100% - 200rpx - 30rpx);
- .produce-name {
- font-size: 28rpx;
- font-weight: bold;
- line-height: 35rpx;
- color: #343434;
- }
- .produce-info {
- font-size: 20rpx;
- margin-top: 25rpx;
- }
- .produce-price {
- display: flex;
- align-items: flex-end;
- color: #ff383e;
- font-size: 24rpx;
- margin-top: 70rpx;
- font-weight: bold;
- text {
- font-size: 36rpx;
- }
- .produce-price-1 {
- font-size: 22rpx;
- font-weight: 500;
- text-decoration: line-through;
- color: rgba(170, 170, 170, 1);
- margin-left: 20rpx;
- }
- }
- .produce-price1 {
- height: 100%;
- letter-spacing: 3rpx;
- color: #ff383e;
- font-size: 24rpx;
- font-weight: bold;
- .produce-center {
- width: 100%;
- position: absolute;
- bottom: 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
- .kanjia_word {
- .word-1 {
- font-size: 22rpx;
- color: #666666;
- }
- .word-2 {
- font-size: 28rpx;
- color: #ff383e;
- margin-top: 10rpx;
- }
- }
- .kanjia_button {
- height: 50rpx;
- width: 150rpx;
- border-radius: 25rpx;
- font-size: 26rpx;
- font-weight: 500;
- color: #ff383e;
- border: 1px solid rgba(255, 56, 62, 1);
- }
- }
- }
- }
- }
- }
- }
- /* #ifdef MP */
- .mp-height {
- height: 44px;
- }
- .input-box {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- padding: 25rpx;
- background-color: #ffffff;
- z-index: 999;
- height: 44px;
- .iconsearch {
- font-size: 50rpx;
- }
- .input-content {
- border-radius: 99rpx;
- flex-grow: 1;
- padding: 10rpx 30rpx;
- background-color: rgba(231, 231, 231, 0.7);
- .input {
- flex-grow: 1;
- input {
- font-size: $font-lg;
- }
- }
- }
- .input-button {
- padding-left: 20rpx;
- font-size: $font-lg;
- height: 100%;
- }
- }
- page {
- // background-color: red;
- .cate-section {
- position: relative;
- z-index: 5;
- border-radius: 16rpx 16rpx 0 0;
- margin-top: -20rpx;
- }
- .carousel-section {
- padding: 0;
- .titleNview-placing {
- padding-top: 0;
- height: 0;
- }
- .carousel {
- .carousel-item {
- padding: 0;
- }
- }
- .swiper-dots {
- left: 45rpx;
- bottom: 40rpx;
- }
- }
- }
- /* #endif */
- page {
- background: #f7f8f7;
- }
- .m-t {
- margin-top: 16rpx;
- }
- /* 头部 轮播图 */
- .carousel-section {
- position: relative;
- padding-top: 10px;
- overflow: hidden;
- .titleNview-placing {
- height: var(--status-bar-height);
- padding-top: 44px;
- box-sizing: content-box;
- }
- .titleNview-background {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 426rpx;
- transition: 0.4s;
- }
- .carousel {
- width: 100%;
- height: 240rpx;
- .carousel-item {
- width: 100%;
- height: 100%;
- padding: 0 28rpx;
- overflow: hidden;
- }
- image {
- width: 100%;
- height: 100%;
- border-radius: $border-radius-sm;
- }
- }
- }
- // .swiper-dots {
- // display: flex;
- // position: absolute;
- // left: 60rpx;
- // bottom: 15rpx;
- // width: 72rpx;
- // height: 36rpx;
- // background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABkCAYAAADDhn8LAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTMyIDc5LjE1OTI4NCwgMjAxNi8wNC8xOS0xMzoxMzo0MCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OTk4MzlBNjE0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OTk4MzlBNjA0NjU1MTFFOUExNjRFQ0I3RTQ0NEExQjMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6Q0E3RUNERkE0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6Q0E3RUNERkI0NjExMTFFOTg5NzI4MTM2Rjg0OUQwOEUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4Gh5BPAAACTUlEQVR42uzcQW7jQAwFUdN306l1uWwNww5kqdsmm6/2MwtVCp8CosQtP9vg/2+/gY+DRAMBgqnjIp2PaCxCLLldpPARRIiFj1yBbMV+cHZh9PURRLQNhY8kgWyL/WDtwujjI8hoE8rKLqb5CDJaRMJHokC6yKgSCR9JAukmokIknCQJpLOIrJFwMsBJELFcKHwM9BFkLBMKFxNcBCHlQ+FhoocgpVwwnv0Xn30QBJGMC0QcaBVJiAMiec/dcwKuL4j1QMsVCXFAJE4s4NQA3K/8Y6DzO4g40P7UcmIBJxbEesCKWBDg8wWxHrAiFgT4fEGsB/CwIhYE+AeBAAdPLOcV8HRmWRDAiQVcO7GcV8CLM8uCAE4sQCDAlHcQ7x+ABQEEAggEEAggEEAggEAAgQACASAQQCCAQACBAAIBBAIIBBAIIBBAIABe4e9iAe/xd7EAJxYgEGDeO4j3EODp/cOCAE4sYMyJ5cwCHs4rCwI4sYBxJ5YzC84rCwKcXxArAuthQYDzC2JF0H49LAhwYUGsCFqvx5EF2T07dMaJBetx4cRyaqFtHJ8EIhK0i8OJBQxcECuCVutxJhCRoE0cZwMRyRcFefa/ffZBVPogePihhyCnbBhcfMFFEFM+DD4m+ghSlgmDkwlOgpAl4+BkkJMgZdk4+EgaSCcpVX7bmY9kgXQQU+1TgE0c+QJZUUz1b2T4SBbIKmJW+3iMj2SBVBWz+leVfCQLpIqYbp8b85EskIxyfIOfK5Sf+wiCRJEsllQ+oqEkQfBxmD8BBgA5hVjXyrBNUQAAAABJRU5ErkJggg==);
- // background-size: 100% 100%;
- // .num {
- // width: 36rpx;
- // height: 36rpx;
- // border-radius: 50px;
- // font-size: 24rpx;
- // color: #fff;
- // text-align: center;
- // line-height: 36rpx;
- // }
- // .sign {
- // position: absolute;
- // top: 0;
- // left: 50%;
- // line-height: 36rpx;
- // font-size: 12rpx;
- // color: #fff;
- // transform: translateX(-50%);
- // }
- // }
- /* 分类 */
- .cate-section {
- display: flex;
- justify-content: space-around;
- align-items: center;
- flex-wrap: wrap;
- padding: 30rpx 22rpx;
- .cate-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: $font-sm + 2rpx;
- color: $font-color-dark;
- }
- /* 原图标颜色太深,不想改图了,所以加了透明度 */
- image {
- width: 88rpx;
- height: 88rpx;
- margin-bottom: 14rpx;
- border-radius: 50%;
- opacity: 0.7;
- }
- }
- // 中间广告图片
- .ad-1 {
- width: 100%;
- height: 210rpx;
- padding: 10rpx 0;
- background: #fff;
- image {
- width: 100%;
- height: 100%;
- }
- }
- /*公用边框样式*/
- %icon {
- margin-right: 10rpx;
- display: inline-block;
- padding: 2rpx 10rpx;
- border: 1rpx solid $color-yellow;
- color: $color-yellow;
- line-height: 1;
- font-size: $font-base;
- border-radius: 10rpx;
- }
- .f-header {
- display: flex;
- align-items: center;
- height: 92rpx;
- padding: 6rpx 30rpx 8rpx;
- image {
- flex-shrink: 0;
- width: 80rpx;
- height: 80rpx;
- margin-right: 20rpx;
- }
- .tit-box {
- @extend %font-title-box;
- }
- .tit {
- @extend %font-title;
- }
- .iconenter {
- font-size: $font-lg + 2rpx;
- color: $font-color-light;
- }
- .f-left-icon {
- @extend %f-left-icon;
- }
- .iconfont {
- font-size: $font-sm - 2rpx;
- }
- }
- // 会员升级礼包
- .uservip {
- border-radius: $border-radius-sm;
- background-color: white;
- box-shadow: $box-shadow;
- height: 300rpx;
- margin: 0 30rpx;
- image {
- height: 100%;
- width: 300rpx;
- }
- .detail {
- position: relative;
- padding: 20rpx;
- height: 100%;
- .icon {
- @extend %icon;
- }
- .price-box {
- position: absolute;
- bottom: 20rpx;
- width: calc(100% - 40rpx);
- .price {
- font-size: $font-lg + 2rpx;
- font-weight: bold;
- color: $font-color-base;
- }
- .text {
- color: $color-gray;
- font-size: $font-sm;
- }
- }
- .title {
- font-size: $font-lg;
- font-weight: bold;
- }
- }
- }
- /* 猜你喜欢 */
- .guess-section {
- display: flex;
- flex-wrap: wrap;
- padding: 0 30rpx;
- .guess-item {
- overflow: hidden;
- display: flex;
- flex-direction: column;
- width: 48%;
- margin-bottom: 4%;
- border-radius: $border-radius-sm;
- background-color: white;
- box-shadow: $box-shadow;
- &:nth-child(2n + 1) {
- margin-right: 4%;
- }
- }
- .image-wrapper {
- width: 100%;
- height: 330rpx;
- border-radius: 3px;
- overflow: hidden;
- image {
- width: 100%;
- height: 100%;
- opacity: 1;
- }
- }
- .title {
- font-size: $font-base;
- color: $font-color-dark;
- font-weight: bold;
- line-height: 80rpx;
- }
- .price {
- font-size: $font-lg;
- color: $font-color-base;
- font-weight: bold;
- line-height: 1;
- line-height: 80rpx;
- }
- .icon {
- @extend %icon;
- }
- .detail {
- line-height: 1;
- }
- .tip {
- color: white;
- background-color: $color-yellow;
- line-height: 1.5;
- font-size: $font-sm;
- padding-left: 20rpx;
- }
- }
- // 推荐
- .recommend {
- width: 95%;
- height: 155rpx;
- margin: 0rpx auto;
- padding-top: 30rpx;
- font-size: 26rpx;
- text-align: center;
- color: #333333;
- align-items: flex-start;
- .recommend_list {
- width: 33%;
- }
- .re_title {
- font-size: 32rpx;
- font-weight: bold;
- }
- .re_name {
- color: #999999;
- padding-top: 10rpx;
- }
- .selected_icon {
- width: 25rpx;
- height: 10rpx;
- margin: 0px auto;
- display: none;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .active {
- display: block;
- }
- .active_color {
- color: #dc4d46 !important;
- }
- }
- // 列表
- .list-box-h {
- height: 1550rpx;
- }
- // 优惠券
- .coupon-list {
- display: inline-block;
- }
- .row {
- border-radius: 15rpx;
- margin: 25rpx;
- height: 155rpx;
- // width: 552rpx;
- overflow: hidden;
- background-color: #ffffff;
- padding-right: 25rpx;
- .list-interval {
- border: 1px dashed $border-color-light;
- height: 100%;
- .top,
- .bottom {
- border-radius: 100rpx;
- width: 30rpx;
- height: 30rpx;
- position: absolute;
- background-color: $page-color-base;
- right: -15rpx;
- }
- .top {
- top: -18rpx;
- }
- .bottom {
- bottom: -18rpx;
- }
- }
- .list-money {
- height: 100%;
- min-width: 155rpx;
- text-align: center;
- image {
- height: 100%;
- width: 20rpx;
- }
- .list-money-text {
- flex-grow: 1;
- padding: 0 25rpx;
- .tit {
- text-align: center;
- padding: 15rpx 0rpx;
- font-size: 55rpx;
- color: $color-red;
- font-weight: bold;
- &.noAction {
- color: $font-color-light;
- }
- }
- .price {
- padding-bottom: 25rpx;
- color: $font-color-light;
- }
- }
- }
- .row_list_right {
- // flex-grow: 1;
- min-width: 200rpx;
- padding-left: 25rpx;
- line-height: 1;
- .right_time {
- padding: 10rpx 0rpx;
- color: $font-color-light;
- font-size: $font-sm;
- }
- .right_top {
- margin: 15rpx 0;
- .right_name {
- font-size: $font-base;
- color: #bc253a;
- font-weight: bold;
- }
- .right_title {
- font-size: $font-base;
- color: $font-base;
- font-weight: bold;
- &.noAction {
- color: $font-color-light;
- }
- }
- }
- }
- .right_use {
- margin: 15rpx 0;
- padding: 10rpx;
- width: 160rpx;
- text-align: center;
- color: #fff;
- background-color: #bc253a;
- border-radius: 50rpx;
- font-size: $font-sm;
- &.noAction {
- background-color: $font-color-light;
- }
- }
- .iconlocation {
- font-size: 36rpx;
- color: $font-color-light;
- }
- }
- .swiper-dot {
- padding-top: 28rpx;
- display: flex;
- justify-content: center;
- .swiper-dots-item {
- width: 25rpx;
- height: 8rpx;
- border-radius: 4rpx 4rpx;
- background-color: #cea19e;
- margin: 0 16rpx;
- // z-index: 999;
- }
- .action {
- background-color: #901b21;
- }
- }
- .m-tap {
- height: 66rpx;
- margin-top: 49rpx;
- display: flex;
- position: relative;
- // align-content: center;
- image {
- // justify-items: center;
- // align-items: center;
- width: 295rpx;
- height: 66rpx;
- position: absolute;
- left: 0;
- right: 0;
- margin: 0 auto;
- }
- .iconenter {
- font-size: 26rpx;
- color: $font-color-light;
- position: absolute;
- right: 25rpx;
- top: 21rpx;
- }
- }
- .sckill-wrapper {
- width: 701rpx;
- height: 293rpx;
- background-image: url(../../static/img/sckillbg.png);
- background-size: 100% 100%;
- margin: 34rpx auto 37rpx;
- padding: 31rpx 21rpx;
- .sckill {
- width: 659rpx;
- height: 231rpx;
- // background-color: #bfa;
- // display: flex;
- // flex-direction: row;
- // flex-wrap: nowrap;
- // overflow: hidden;
- // margin: auto;
- .item-wrapper {
- display: flex;
- .goods-box {
- width: 192rpx;
- height: 231rpx;
- margin: 0 42rpx 0 0;
- flex-shrink: 0;
- .image-wrapper {
- width: 192rpx;
- height: 150rpx;
- border-radius: 10rpx;
- overflow: hidden;
- image {
- width: 100%;
- height: 100%;
- opacity: 1;
- }
- }
- .good-title {
- padding: 15rpx 0rpx 0rpx 6rpx;
- font-size: 26rpx;
- font-weight: 500;
- color: #333333;
- line-height: 26rpx;
- opacity: 0.8;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .price {
- display: flex;
- height: 39rpx;
- justify-content: space-between;
- .now-price {
- // padding-top:19rpx ;
- font-size: 26rpx;
- font-weight: bold;
- color: #901b21;
- line-height: 16rpx;
- padding-left: 10rpx;
- align-self: flex-end;
- }
- .old-price {
- // padding-top:27rpx ;
- align-self: flex-end;
- font-size: 24rpx;
- font-weight: 500;
- text-decoration: line-through;
- color: #9d9d9d;
- line-height: 16rpx;
- padding-right: 10rpx;
- }
- }
- }
- }
- }
- }
- .groupBooking-wrapper {
- width: 700rpx;
- height: 781rpx;
- padding: 30rpx 20rpx;
- background-image: url(../../static/img/bg2.png);
- background-size: 100% 100%;
- margin: 35rpx auto 39rpx;
- background-color: #fff;
- .spgood {
- width: 100%;
- height: 200rpx;
- // background-color: #4CD964;
- display: flex;
-
- .left-wrapper {
- width: 200rpx;
- height: 200rpx;
- image {
- width: 200rpx;
- height: 200rpx;
- border-radius: 20rpx;
- }
- }
- .right-wrapper {
- padding-left: 22rpx;
- width: 100%;
- height: 200rpx;
- // background-color: red;
- .right-title {
- padding-top: 8rpx;
- width: 100%;
- // height: 29rpx;
- font-size: 30rpx;
- font-weight: bold;
- color: #333333;
- }
- .right-addr {
- margin-top: 18rpx;
- display: flex;
- .shop-img {
- width: 26rpx;
- height: 23rpx;
- margin: 0 4rpx 0 0;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .shop-name {
- // height: 22rpx;
- font-size: 22rpx;
- font-weight: 500;
- color: #dcb876;
- }
- .point-img {
- width: 16rpx;
- height: 23rpx;
- margin: 0 4rpx 0 14rpx;
- image {
- width: 100%;
- height: 21rpx;
- }
- }
- .point-disc {
- font-size: 24rpx;
- font-weight: 500;
- padding-top: 3rpx;
- color: #dcb876;
- }
- }
- .ex-addr {
- margin-top: 16rpx;
- padding-left: 22rpx;
- height: 22rpx;
- font-size: 22rpx;
- font-weight: 500;
- color: #dcb876;
- image {
- height: 22rpx;
- }
- .name-img {
- // vertical-align: ;
- width: 26rpx;
- margin: 0 4rpx -3rpx 0;
- }
- .point-img {
- width: 16rpx;
- margin: 0 4rpx -3rpx 14rpx;
- }
- }
- .right-bottom {
- margin-top: 47rpx;
- // justify-items: flex-end;
- display: flex;
- justify-content: space-between;
- .sp-price {
- height: 52rpx;
- display: flex;
- vertical-align: bottom;
- line-height: 52rpx;
- .now-price {
- font-size: 30rpx;
- font-weight: bold;
- color: #901b21;
- margin-right: 16rpx;
- }
- .old-price {
- font-size: 22rpx;
- font-weight: 500;
- text-decoration: line-through;
- color: #aaaaaa;
- }
- }
- .sp-btn {
- width: 137rpx;
- height: 52rpx;
- border-radius: 26rpx;
- font-size: 26rpx;
- text-align: center;
- line-height: 52rpx;
- font-weight: 400;
- color: #ffffff;
- background-color: #901b21;
- }
- }
- }
- }
- .jg {
- margin: 30rpx auto 29rpx;
- width: 660rpx;
- height: 1px;
- background: #ecd49e;
- opacity: 0.5;
- }
- }
- .exchange-wrapper {
- // background-color: #fff;
- width: 696rpx;
- // height: 100rpx;
- margin: 37rpx auto 39rpx;
- // padding: 0 27rpx;
- display: flex;
- justify-content: space-between;
- position: relative;
- .exgood-wrapper {
- width: 342rpx;
- height: 540rpx;
- box-shadow: 0px 4px 18px 0px rgba(144, 27, 33, 0.13);
- background-color: #fff;
- .ex-img-wrapper {
- width: 342rpx;
- height: 338rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .exgood-title {
- margin-top: 33rpx;
- padding-left: 21rpx;
- font-size: 30rpx;
- font-weight: bold;
- color: #333333;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .ex-addr {
- margin-top: 16rpx;
- padding-left: 22rpx;
- height: 22rpx;
- font-size: 22rpx;
- font-weight: 500;
- color: #dcb876;
- image {
- height: 22rpx;
- }
- .name-img {
- width: 26rpx;
- margin: 0 4rpx -3rpx 0;
- }
- .point-img {
- width: 16rpx;
- margin: 0 4rpx -3rpx 14rpx;
- }
- }
- .ex-price {
- margin-top: 17rpx;
- padding-left: 22rpx;
- font-size: 36rpx;
- font-weight: bold;
- color: #901b21;
- vertical-align: bottom;
- .tx1 {
- font-size: 24rpx;
- vertical-align: baseline;
- position: relative;
- top: -2rpx;
- }
- .tx2 {
- margin-left: 9rpx;
- font-size: 26rpx;
- font-weight: 500;
- text-decoration: line-through;
- color: #9d9d9d;
- line-height: 35rpx;
- }
- }
- .bg {
- position: absolute;
- top: 0;
- width: 342rpx;
- height: 540rpx;
- background-image: url(../../static/img/bg3.png);
- background-size: 100% 100%;
- }
- }
- }
- .titleNview-placing {
- height: var(--status-bar-height);
- padding-top: 44px;
- box-sizing: content-box;
- }
- .swiper-wrapper {
- width: 720rpx;
- height: 370rpx;
- border-radius: 15rpx;
- // background-color: #bfa;
- overflow: hidden;
- margin: 0 auto;
- .swiper {
- width: 100%;
- height: 370rpx;
- .swiper-item {
- width: 100%;
- height: 100%;
- // box-sizing: content-box;
- padding:0 10rpx;
- image {
- width: 100%;
- height: 100%;
-
- border-radius: $border-radius-sm;
- }
- }
- }
- }
- .container {
- // background-color: red;
- background-image: url(../../static/img/main_bg.png);
- background-size: 100%;
- }
- </style>
|