123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995 |
- <template>
- <view class="home">
- <!-- 微信提示遮罩 -->
- <view v-if="isWeiXin" class="shadow"><image src="/static/image/tabbar/weixinShadow.png" mode="aspectFit"></image></view>
- <audio id="audio" src="/h5/pagesA/static/bj1.mp3" loop></audio>
- <!--S 头部搜索 -->
- <view class="home_bar">
- <view class="home_bar_nav"></view>
- <view class="home_bar_con flex">
- <view class="home_bar_logo"><image :src="logo" mode="aspectFill"></image></view>
- <view class="home_bar_search flexs" @click="goSearch">
- <image src="https://chaomd.liuniu946.com/image/home/sousuo@2x.png" mode="" style="background-size: 100%;"></image>
- <input type="text" disabled placeholder="拆个盒子" placeholder-style="color:#808080" />
- </view>
- <view class="home_bar_serve" @click="goServe"><image src="https://chaomd.liuniu946.com/image/home/kefu@2x.png" mode=""></image></view>
- </view>
- </view>
- <!--E 头部搜索 -->
- <!--S 轮播图 -->
- <swiper autoplay circular class="swiper">
- <swiper-item v-for="(item, index) in bannerList" :key="index"><image src="/static/image/tabbar/index-banner1.jpg" mode="aspectFill"></image></swiper-item>
- <swiper-item v-for="(item, index) in bannerList" :key="index"><image src="/static/image/tabbar/index-banner2.jpg" mode="aspectFill"></image></swiper-item>
- <swiper-item v-for="(item, index) in bannerList" :key="index"><image src="/static/image/tabbar/index-banner3.jpg" mode="aspectFill"></image></swiper-item>
- </swiper>
- <view class="home_swiper">
- <!-- 菜单start -->
- <view class="home_swiper_nav flex">
- <view class="home_swiper_nav_li center" v-for="(item, index) in navList" :key="index" @click="changeNav(item)">
- <image :src="item.image" mode=""></image>
- <text>{{ item.name }}</text>
- </view>
- </view>
- <!-- 菜单end -->
- <!-- 获奖公告start -->
- <view class="award-notice" @tap="tomore">
- <view class="title-view flex">
- <view class="title-box flex">
- <!-- <text class="title">获奖公告</text> -->
- <view class="title"><image src="../../static/image/home/notice@2x.png" mode="aspectFit"></image></view>
- <!-- <text class="tip">{{total}}人获得心仪商品</text> -->
- <text class="tip">1.53万人获得心仪商品</text>
- </view>
- <view class="more flex">
- 查看更多
- <image class="more-icon" src="../../static/image/publice/return@2x.png" mode="aspectFit"></image>
- </view>
- </view>
- <swiper autoplay :display-multiple-items="4" circular class="goods-list flex" :class="{ 'goods-list-no': vgoods.length < 4 }">
- <swiper-item class="goods-item-swiper" v-for="item in vgoods">
- <view class="goods-item">
- <view class="goods-info">
- <view class="goods-img"><image :src="item.image" mode="aspectFit"></image></view>
- <view class="goods-price flex">¥ {{ item.price }}</view>
- </view>
- <view class="bottom-view">
- <view class="player-view flex">
- <view class="player-avatar"><image :src="item.avatar" mode="aspectFit"></image></view>
- <text class="player-name">{{ item.username }}</text>
- </view>
- <view class="goods-name">{{ item.goods_name }}</view>
- </view>
- </view>
- </swiper-item>
- <swiper-item class="goods-item-swiper" v-for="item in vgoods2"></swiper-item>
- </swiper>
- <!-- <view class="goods-list flex">
- <view class="goods-item" v-for="item in 10">
- <view class="goods-info">
- <image class="goods-img" src="../../static/image/open/erji@2x.png" mode="aspectFit"></image>
- <view class="goods-price flex">
- ¥ 480.00
- </view>
- </view>
- <view class="bottom-view">
- <view class="player-view flex">
- <image class="player-avatar" src="../../static/image/publice/weixin@2x.png" mode="aspectFit"></image>
- <text class="player-name">**玩家</text>
- </view>
- <view class="goods-name">
- Apple/iPhoneiPhoneiPhoneiPhone
- </view>
- </view>
- </view>
- </view> -->
- <view class="home_swiper_ul flex">
- <view class="home_swiper_li flexs" v-for="(item, index) in iconList" :key="index">
- <image :src="item.image" mode=""></image>
- <text>{{ item.name }}</text>
- </view>
- </view>
- </view>
- <!-- 获奖公告end -->
- <!-- 轮播图start -->
- <!-- <swiper autoplay circular class="swiper">
- <swiper-item v-for="(item,index) in bannerList" :key="index" @click="changeBanner(item)">
- <image :src="item.image" mode="aspectFill"></image>
- </swiper-item>
- </swiper> -->
- <!-- 轮播end -->
- </view>
- <!--E 轮播图 -->
- <!-- S 试一试 -->
- <view class="home_trial flex">
- <view class="home_trial_img flexs">
- <text>试试手气</text>
- <image src="https://chaomd.liuniu946.com/image/home/zuijia@2x.png" mode=""></image>
- </view>
- <view class="home_trial_go" @click="shishisq"><image src="https://chaomd.liuniu946.com/image/home/jinru@2x.png" mode=""></image></view>
- </view>
- <!-- E 试一试 -->
- <!-- S 最新开箱 -->
- <view class="home_newest">
- <!-- <view class="home_newest_head flex">
- <view class="home_newest_head_new">最新开箱</view>
- <view class="home_newest_head_go flexs" @click="goNewBox">
- <text>查看更多</text>
- <image src="/static/image/publice/jinruer@2x.png" mode=""></image>
- </view>
- </view>
- <scroll-view scroll-x="true" class="scroll-view">
- <view class="scroll-view_li" v-for="(item,index) in newBoxList" :key="'list-5-' + index" @click="goMessage(item,0)">
- <view class="scroll-view_li_img">
- <image :src="item.goods_images[0]" mode="aspectFill"></image>
- </view>
- <view class="scroll-view_li_price flexs">
- <text>¥</text>
- <text>{{ item.coin_price }}</text>
- </view>
- </view>
- </scroll-view> -->
- <!-- <view class="home_newest_ul flex">
- <view class="home_newest_li flexs" v-for="(item,index) in hotList" :key="index" @click="changeHot(item)">
- <view class="home_newest_img">
- <image :src="item.image" mode=""></image>
- </view>
- <view class="home_newest_con">
- <view class="home_newest_name">{{ item.name }}</view>
- <view class="home_newest_title">{{ item.title }}</view>
- </view>
- </view>
- </view> -->
- </view>
- <view class="home_swiper">
- <!-- E 最新开箱 -->
- <!-- <swiper autoplay circular class="swiper">
- <swiper-item v-for="(item,index) in bannerList" :key="index" @click="changeBanner(item)">
- <image :src="item.image" mode="aspectFill"></image>
- </swiper-item>
- </swiper> -->
- </view>
- <!-- 轮播end -->
- <!-- S 推荐盲盒 -->
- <view class="home_recommend home_newest">
- <view class="home_newest_head flex">
- <view class="home_newest_head_new">
- 推荐
- <text class="dot"></text>
- </view>
- <view class="home_newest_head_go flexs" @click="goRecommend">
- <text>更多分类</text>
- <image src="/static/image/publice/jinruer@2x.png" mode=""></image>
- </view>
- </view>
- <view class="home_recommend_ul flex ">
- <!-- <view class="home_recommend_item flex" v-for="(item,index) in shopList" :key="index" @click="goMessage(item,0)">
- <view class="item-box">
- <view class="coin-view">
- <text class="coin-price">{{item.coin_price}}</text>
- <text class="coin-unit">金币/抽</text>
- </view>
- <text class="box-name">{{item.box_name}}</text>
- <view class="goods-list flex">
- <view class="goods-img goods-img-0">
- <image :src="item.goods_images[0]" mode="aspectFit"></image>
- </view>
-
- <swiper :autoplay="false" :display-multiple-items="4" class="goods-list4 flex">
- <swiper-item class="goods-img" v-for="(img, img_index) in item.goods_images.slice(1)" :key="img_index">
- <image :src="img" mode="aspectFit"></image>
- </swiper-item>
- <swiper-item class="goods-img" v-for="t in item.goods_images2"></swiper-item>
- </swiper>
- </view>
- <view class="bottom-view flex">
- <text class="goods-num">共{{item.goods_num}}款商品</text>
- <view class="goods-jiazhi">
- <view class="min-max">
- <text class="price">{{item.price_min}}~{{item.price_max}}</text>
- </view>
- </view>
- </view>
- </view>
- </view> -->
- <view class="home_recommend_li" v-for="(item, index) in shopList" :key="index" @click="goMessage(item, 0)">
- <view class="home_recommend_li_img">
- <view class="home_recommend_li_img_top flex">
- <view class="home_recommend_li_img_box"><image :src="item.goods_images[0]" mode="aspectFit"></image></view>
- <!-- <view class="home_recommend_li_img_right" v-if="item.right.length != 0">
- <image :src="items" mode="aspectFit" v-for="(items,index) in item.right" :key="index"></image>
- </view> -->
- </view>
- <!-- <view class="home_recommend_li_img_bot">
- <image :src="items" mode="aspectFit" v-for="(items,index) in item.bot" :key="index"></image>
- </view> -->
- </view>
- <view class="home_recommend_li_main">
- <view class="home_recommend_li_price">
- <view class="li_price">
- <view class="price">{{ item.price_min }}~{{ item.price_max }}</view>
- </view>
- </view>
- <view class="home_recommend_li_name">{{ item.box_name }}</view>
- <view class="home_recommend_li_glod flex">
- <view class="item-box">
- <text class="coin-price">{{ item.coin_price }}</text>
- <text class="coin-unit1">金币/抽</text>
- </view>
- <text class="gjksp">共{{ item.goods_num }}款商品</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- E 推荐盲盒 -->
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- vgoods: [],
- vgoods2: 0,
- total: 0,
- iconList: [
- {
- image: 'https://chaomd.liuniu946.com/image/home/zhengpinbaozheng@2x.png',
- name: '官方正品保证'
- },
- {
- image: 'https://chaomd.liuniu946.com/image/home/yijianhuishou@2x.png',
- name: '一键秒回收'
- },
- {
- image: 'https://chaomd.liuniu946.com/image/home/youhui@2x.png',
- name: '全网最优惠'
- }
- ],
- navList: [
- {
- image: 'https://chaomd.liuniu946.com/image/home/chaowanmanghe@2x.png?i=1',
- name: '盲盒商城',
- url: '/pages/index/more'
- },
- {
- image: 'https://chaomd.liuniu946.com/image/home/youhuichongzhi@2x.png?i=1',
- name: '优惠充值',
- url: '/pages/me/recharge'
- },
- {
- image: 'https://chaomd.liuniu946.com/image/home/fahuoliucheng@2x.png?i=1',
- name: '发货流程',
- url: '/pages/index/flow'
- },
- {
- image: 'https://chaomd.liuniu946.com/image/home/xinshoubangzhu@2x.png?i=1',
- name: '新手帮助',
- url: '/pages/index/help'
- }
- ], //导航列表
- hotList: [
- {
- image: 'https://chaomd.liuniu946.com/image/home/remen@2x.png',
- name: '热门专区',
- title: '跟随热门手气更欧',
- url: '/pages/index/hot?type=0'
- },
- {
- image: 'https://chaomd.liuniu946.com/image/home/dijia@2x.png',
- name: '低价专区',
- title: '低价试试手气',
- url: '/pages/index/hot?type=1'
- }
- ],
- bannerList: [], //轮播图
- logo: '', //logo
- shopList: [], //获取推荐列表
- newBoxList: [], //最新开箱
- pages: 0,
- page: 1, //
- isWeiXin: isWeiXin() //是否为微信
- };
- },
- methods: {
- sumUv() {
- this.$api.sumuv().then(res => {});
- },
- tomore() {
- uni.navigateTo({
- url: '/pages/index/records'
- });
- },
- getVgoods() {
- this.$api.getVgoods().then(res => {
- if (res.code === 1) {
- this.vgoods = res.data.list;
- this.total = res.data.total;
- if (this.total < 4) {
- this.vgoods2 = 4 - this.total;
- }
- }
- });
- },
- //去客服
- goServe() {
- uni.navigateTo({ url: '/pagesB/pages/server' });
- },
- //试试手气
- shishisq() {
- uni.navigateTo({ url: '/pages/index/details?id=' + 46 + '&type=0' });
- },
- //去推荐,盲盒
- goRecommend() {
- uni.navigateTo({ url: '/pages/index/recommend' });
- },
- //最新开箱
- goNewBox() {
- uni.navigateTo({ url: '/pages/index/newBox' });
- },
- //轮播图
- changeBanner(item) {
- if (item.type == 'word') {
- uni.setStorageSync('bannerMessage', JSON.stringify(item.value));
- uni.navigateTo({ url: '/pagesA/pages/bannerMessage' });
- } else if (item.type == 'link') {
- location.href = item.value;
- } else if (item.type == 'box') {
- uni.navigateTo({ url: '/pages/index/details?id=' + 36 + '&type=0' });
- }
- },
- //去搜索
- goSearch() {
- uni.navigateTo({ url: '/pages/index/search' });
- },
- //去详情
- goMessage(item, type) {
- return;
- uni.navigateTo({ url: '/pages/index/details?id=' + item.box_id + '&type=' + type });
- },
- //热门专区
- changeHot(item) {
- uni.navigateTo({ url: item.url });
- },
- //头部四个
- changeNav(item) {
- uni.navigateTo({ url: item.url });
- },
- //获取轮播图
- getbannerList() {},
- //最新开箱
- getNewbox() {
- this.$api.newestOpen().then(res => {
- if (res.code === 1) {
- this.newBoxList = res.data;
- }
- });
- },
- //获取推荐列表
- getShopList() {
- this.$api.recommend().then(res => {
- if (res.code === 1) {
- res.data.data.forEach(item => {
- item.image = item.goods_images[0];
- item.right = [];
- item.bot = [];
- item.goods_images.forEach((em, index) => {
- if (index > 0 && index < 3) {
- item.right.push(em);
- }
- if (index > 2) {
- item.bot.push(em);
- }
- });
- if (item.goods_images.length < 5) {
- item.goods_images2 = 5 - item.goods_images.length;
- }
- });
- (this.shopList = this.page == 1 ? res.data.data : [...this.shopList, ...res.data.data]), (this.pages = res.data.last_page);
- }
- });
- },
- //获取首页信息
- getBaseInfo() {
- this.$api.baseInfo().then(res => {
- if (res.code === 1) {
- this.logo = res.data.logo;
- this.bannerList = res.data.banner;
- }
- });
- }
- },
- onLoad({ sharecode, token, is_channel }) {
- if (sharecode) {
- uni.setStorageSync('sharecode', sharecode);
- }
- if (is_channel) {
- uni.setStorageSync('is_channel', is_channel);
- }
- if (token) {
- uni.setStorageSync('token', token);
- }
- this.getBaseInfo();
- this.getbannerList();
- this.getNewbox();
- this.getShopList();
- this.getVgoods();
- this.sumUv();
- },
- onShow() {
- let is_notice = uni.getStorageSync('is_notice');
- uni.removeStorageSync('is_notice');
- if (is_notice == 1) {
- setTimeout(() => {
- uni.showModal({
- title: '提示',
- content: '恭喜,获得10金币',
- success: function(res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }, 1000);
- }
- },
- mounted() {
- let audio = document.getElementById('audio').querySelector('audio');
- audio.play();
- },
- onReachBottom() {
- if (this.page < this.pages) {
- this.page++;
- this.getShopList();
- }
- }
- };
- //判断是否是微信浏览器的函数
- function isWeiXin() {
- //window.navigator.userAgent属性包含了浏览器类型、版本、操作系统类型、浏览器引擎类型等信息,这个属性可以用来判断浏览器类型
- var ua = window.navigator.userAgent.toLowerCase();
- //通过正则表达式匹配ua中是否含有MicroMessenger字符串
- if (ua.match(/MicroMessenger/i) == 'micromessenger') {
- return true;
- } else {
- return false;
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #ffffff;
- }
- //主页双产品
- .home_recommend_ul .home_recommend_li .home_recommend_li_img .home_recommend_li_img_box uni-image {
- width: 145px !important;
- }
- .home_recommend_li_price .li_price {
- text-align: left;
- width: 83px;
- height: 19px;
- line-height: 19px;
- position: absolute;
- right: 0;
- top: 0;
- }
- .home_recommend_ul .home_recommend_li .coin-price {
- font-size: 18px;
- font-family: DINAlternate-Bold, DINAlternate;
- font-weight: bold;
- color: #f55d22 !important;
- line-height: 26px;
- }
- .home_recommend_ul .home_recommend_li .coin-unit1 {
- font-size: 11px;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: bold !important;
- color: #fa6400 !important;
- line-height: 16px;
- margin-left: 3px;
- }
- .home_recommend_ul .home_recommend_li .gjksp {
- height: 16px;
- line-height: 25px;
- }
- .home_recommend_li_price .li_price .price {
- font-size: 13px;
- font-family: DINAlternate-Bold, DINAlternate;
- font-weight: bold;
- color: #ffffff;
- line-height: 19px;
- }
- .home_bar {
- width: 100%;
- position: sticky;
- top: 0;
- left: 0;
- padding: 0 30rpx;
- z-index: 2021;
- background: #ffffff;
- .home_bar_nav {
- width: 100%;
- }
- .home_bar_con {
- height: 88rpx;
- }
- .home_bar_logo {
- width: 66rpx;
- height: 66rpx;
- }
- .home_bar_search {
- width: 600rpx;
- height: 58rpx;
- padding: 0 20rpx;
- background: #f7f7f7;
- border-radius: 200rpx;
- image {
- width: 44rpx;
- height: 44rpx;
- }
- input {
- flex: 1;
- font-size: 26rpx;
- margin-left: 15rpx;
- }
- }
- .home_bar_serve {
- width: 44rpx;
- height: 44rpx;
- }
- }
- .home_swiper {
- padding: 0 30rpx;
- background: #ffffff;
- .award-notice {
- padding: 22rpx 15rpx 0 30rpx;
- // width: 686rpx;
- height: 358rpx;
- background: url(../../pagesA/static/jpgg.jpg);
- background-size: 100%;
- border-radius: 24rpx 24rpx 0rpx 0rpx;
- .title-view {
- padding-right: 24rpx;
- .title {
- font-size: 39rpx;
- font-family: YouSheBiaoTiHei;
- color: #ffffff;
- margin-right: 20rpx;
- width: 142rpx;
- height: 30rpx;
- }
- .tip {
- font-size: 24rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #ffffff;
- line-height: 34rpx;
- }
- .more {
- font-size: 24rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #ffffff;
- line-height: 34rpx;
- // margin-top: 12rpx;
- .more-icon {
- width: 24rpx;
- height: 24rpx;
- }
- }
- }
- .goods-list {
- margin: 20rpx 0 0;
- height: 206rpx;
- justify-content: flex-start;
- .goods-item {
- margin-right: 18rpx;
- width: 146rpx;
- height: 206rpx;
- background: #ffffff;
- border-radius: 8rpx;
- .goods-info {
- position: relative;
- height: 106rpx;
- .goods-img {
- width: 100%;
- height: 100%;
- }
- .goods-price {
- position: absolute;
- bottom: -10rpx;
- right: 0;
- z-index: 1;
- justify-content: center;
- min-width: 92rpx;
- height: 32rpx;
- background: linear-gradient(90deg, #ff495c 0%, #ff769e 100%);
- border-radius: 16rpx 0px 0px 0px;
- font-size: 18rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #ffffff;
- line-height: 26rpx;
- }
- }
- .bottom-view {
- padding: 20rpx 0 0 16rpx;
- width: 146rpx;
- height: 100rpx;
- background: #e8dbf9;
- border-radius: 0px 0px 8rpx 8rpx;
- .player-view {
- justify-content: flex-start;
- .player-avatar {
- width: 32rpx;
- height: 32rpx;
- border-radius: 50%;
- }
- .player-name {
- margin-left: 4rpx;
- font-size: 18rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #171a20;
- line-height: 26rpx;
- }
- }
- .goods-name {
- margin-top: 6rpx;
- width: 124rpx;
- font-size: 18rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #171a20;
- line-height: 26rpx;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- }
- }
- }
- .home_swiper_ul {
- padding-right: 24rpx;
- margin-top: 16rpx;
- }
- }
- .swiper {
- height: 156rpx;
- border-radius: 99rpx;
- overflow: hidden;
- overflow: hidden;
- image {
- border-radius: 20rpx;
- }
- }
- .home_swiper_li {
- height: 64rpx;
- image {
- width: 34rpx;
- height: 34rpx;
- margin-right: 10rpx;
- }
- text {
- color: #fff;
- }
- }
- .home_swiper_nav {
- justify-content: space-around;
- }
- .home_swiper_nav_li {
- height: 182rpx;
- flex-direction: column;
- image {
- width: 70rpx;
- height: 70rpx;
- margin-bottom: 10rpx;
- }
- text {
- color: #000000;
- font-size: 26rpx;
- }
- }
- }
- .home_trial {
- height: 88rpx;
- margin: 10rpx 0;
- padding: 0 30rpx;
- background: #ffffff;
- .home_trial_img {
- text {
- font-size: 28rpx;
- }
- image {
- width: 38rpx;
- height: 38rpx;
- margin-left: 10rpx;
- }
- }
- .home_trial_go {
- width: 50rpx;
- height: 50rpx;
- }
- }
- .home_newest {
- background: #ffffff;
- .home_newest_head {
- padding: 30rpx 28rpx;
- .home_newest_head_new {
- font-size: 28rpx;
- font-weight: bold;
- position: relative;
- .dot {
- position: absolute;
- right: -16rpx;
- top: 0rpx;
- background-color: #fff;
- border: 6rpx solid #f7b500;
- border-radius: 50%;
- }
- }
- .home_newest_head_go {
- text {
- color: #999999;
- }
- image {
- width: 22rpx;
- height: 22rpx;
- margin-left: 10rpx;
- }
- }
- }
- .scroll-view {
- white-space: nowrap;
- box-sizing: border-box;
- padding-left: 28rpx;
- .scroll-view_li {
- margin-right: 20rpx;
- display: inline-block;
- .scroll-view_li_img {
- image {
- width: 150rpx;
- height: 150rpx;
- border-radius: 10rpx;
- }
- margin-bottom: 20rpx;
- }
- .scroll-view_li_price {
- text {
- color: #cf271b;
- &:last-child {
- font-size: 30rpx;
- }
- }
- }
- }
- }
- .home_newest_ul {
- padding: 4rpx 28rpx 4rpx 28rpx;
- background-color: #f8fafb;
- .home_newest_li {
- width: 332rpx;
- height: 130rpx;
- padding-left: 30rpx;
- background: #f8fafb;
- border-radius: 6rpx;
- .home_newest_img {
- width: 70rpx;
- height: 70rpx;
- margin-right: 24rpx;
- }
- .home_newest_name {
- font-size: 30rpx;
- font-weight: bold;
- }
- .home_newest_title {
- color: #999999;
- margin-top: 10rpx;
- }
- }
- }
- }
- .home_recommend_ul {
- flex-wrap: wrap;
- justify-content: center;
- // padding: 0 28rpx;
- .home_recommend_item {
- margin-top: -30rpx;
- justify-content: center;
- width: 746rpx;
- height: 384rpx;
- background-image: url(https://chaomd.liuniu946.com/image/home/bg@2x.png);
- background-size: 100% 100%;
- background-position: center;
- .item-box {
- width: 686rpx;
- height: 324rpx;
- padding: 22rpx 0 20rpx 18rpx;
- position: relative;
- .coin-view {
- position: absolute;
- top: 20rpx;
- right: 20rpx;
- .coin-price {
- font-size: 48rpx;
- font-family: DINAlternate-Bold, DINAlternate;
- font-weight: bold;
- color: #f55d22;
- line-height: 56rpx;
- }
- .coin-unit {
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #fa6400;
- line-height: 34rpx;
- margin-left: 8rpx;
- }
- }
- .box-name {
- font-size: 32rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 500;
- color: #2e333f;
- line-height: 44rpx;
- }
- .goods-list {
- margin: 44rpx 0 6rpx;
- .goods-img {
- width: 92rpx;
- height: 92rpx;
- }
- .goods-img-0 {
- width: 148rpx;
- height: 148rpx;
- }
- .goods-list4 {
- flex: 1;
- height: 92rpx;
- justify-content: flex-start;
- }
- }
- .bottom-view {
- .goods-num {
- font-size: 24rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #7a808d;
- line-height: 34rpx;
- margin-left: 8rpx;
- }
- .goods-jiazhi {
- margin-right: 20rpx;
- background-image: url(https://chaomd.liuniu946.com/image/home/jiazhi10@2x.png);
- background-size: 100% 100%;
- background-position: center;
- width: 274rpx;
- height: 40rpx;
- position: relative;
- .min-max {
- text-align: left;
- width: 162rpx;
- height: 40rpx;
- line-height: 40rpx;
- position: absolute;
- right: 0;
- top: 0;
- .unit {
- font-size: 20rpx;
- font-family: PingFangSC-Regular, PingFang SC;
- font-weight: 400;
- color: #ffffff;
- line-height: 28rpx;
- }
- .price {
- font-size: 28rpx;
- font-family: DINAlternate-Bold, DINAlternate;
- font-weight: bold;
- color: #ffffff;
- line-height: 32rpx;
- }
- }
- }
- }
- }
- }
- .home_recommend_li {
- width: 332rpx;
- padding: 20rpx;
- margin-bottom: 30rpx;
- background: url(../../static/image/tabbar/scpbj.png);
- background-size: 100%;
- box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(153, 153, 153, 0.1);
- border-radius: 10rpx;
- margin: 5px 5px;
- .home_recommend_li_img {
- height: auto;
- .home_recommend_li_img_top {
- align-items: flex-start;
- }
- .home_recommend_li_img_bot {
- display: flex;
- margin-top: 20rpx;
- justify-content: flex-end;
- image {
- width: 85rpx;
- height: 85rpx;
- margin-left: 20rpx;
- &:first-child {
- margin-left: 0;
- }
- border-radius: 6rpx;
- }
- }
- .home_recommend_li_img_box {
- image {
- width: 190rpx;
- height: 190rpx;
- border-radius: 6rpx;
- }
- }
- .home_recommend_li_img_right {
- image {
- width: 85rpx;
- height: 85rpx;
- border-radius: 6rpx;
- &:first-child {
- margin-bottom: 20rpx;
- }
- }
- }
- }
- .home_recommend_li_price {
- // width: 280rpx;
- height: 40rpx;
- color: #ffffff;
- margin: 20rpx 0;
- font-size: 26rpx;
- line-height: 40rpx;
- padding-left: 18rpx;
- background: url(/h5/static/img/jiazhi10@2x.27fb9543.png);
- background-size: 100% 100%;
- border-radius: 20rpx;
- position: relative;
- }
- .home_recommend_li_name {
- font-size: 28rpx;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- height: 76rpx;
- line-height: 40rpx;
- }
- .home_recommend_li_glod {
- text {
- color: #cf271b;
- font-size: 26tpx;
- &:last-child {
- color: #666666;
- font-size: 24rpx;
- }
- }
- }
- }
- }
- .shadow {
- height: 100vh;
- width: 100vw;
- position: fixed;
- top: 0;
- left: 0;
- background-color: #000;
- z-index: 99999999;
- uni-image {
- height: 480rpx !important;
- }
- }
- </style>
|