123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
- <template>
- <view class="container">
- <!-- 头部轮播 -->
- <view class="carousel-section">
- <!-- 背景色区域 -->
- <view class="bg"><image src="../../static/img/index.png" mode=""></image></view>
- <!-- 标题栏和状态栏占位符 -->
- <view class="titleNview-placing"></view>
- <!-- 搜素栏 -->
- <view class="search flex">
- <image src="../../static/icon/address.png" class="address"></image>
- <view class="shop-name clamp" @click.stop="canChange == 1 ? nav('/pages/shoping/list') : ''">{{ storeInfo.name }}</view>
- <view class="input-box flex" @click.stop="clickSearch">
- <view class=" input-content flex">
- <view class="iconfont iconsearch"></view>
- <view class="input"><input type="text" disabled value="输入关键字搜索" /></view>
- </view>
- </view>
- </view>
- <swiper class="carousel" autoplay="true" duration="400" interval="5000" @change="swiperChange" :indicator-dots="true" indicator-active-color="#FFFFFF">
- <!-- <swiper class="carousel" autoplay="true" duration="400" interval="5000"> -->
- <swiper-item v-for="(item, index) in carouselList" :key="index" class="carousel-item">
- <image :src="item.pic" mode="aspectFill" @click="bannerNavToUrl(item)"></image>
- </swiper-item>
- </swiper>
- </view>
- <!-- 分类 -->
- <view class="cate-section">
- <navigator url="/pages/product/classify?type=5">
- <view class="cate-item">
- <image class="Uimg" src="/static/icon/in2.png"></image>
- <text>套餐商品</text>
- </view>
- </navigator>
- <navigator :url="canChange == 1 ? '/pages/shoping/list?type=5' : '/pages/shoping/list'">
- <view class="cate-item">
- <image src="/static/icon/in1.png"></image>
- <text>附近门店</text>
- </view>
- </navigator>
- <navigator url="/pages/shoping/list?type=7">
- <view class="cate-item">
- <image src="/static/icon/in5.png"></image>
- <text>异业联盟</text>
- </view>
- </navigator>
- <navigator url="/pages/product/classify?type=7">
- <view class="cate-item">
- <image src="/static/icon/in3.png"></image>
- <text>商家礼包</text>
- </view>
- </navigator>
- <navigator url="/pages/received/index?state=0">
- <view class="cate-item">
- <image src="/static/icon/in4.png"></image>
- <text>收付款</text>
- </view>
- </navigator>
- </view>
- <!-- 积分兑换 -->
- <view class="main-box">
- <view class="main-top">
- <image src="../../static/icon/indexI.png" mode="" class="main-icon"></image>
- <view class="main-title">积分兑换</view>
- <view class="main-synopsis">超值体验</view>
- </view>
- <view class="main-content">
- <view class="content-top flex" @click="nav('/pages/prefecture/integral')">
- <view class="content-font">
- <view class="content-title">积分兑换热门好物</view>
- <view class="content-synopsis">买到就是赚到</view>
- </view>
- <image src="../../static/icon/fanhui.png" class="go" mode=""></image>
- </view>
- <!-- <view class="commodity flex">
- <view class="commodity-item" v-for="(item, index) in integralList" :key="item.id" @click="navToDetailPagejf(item)">
- <image class="commodity-image" :src="item.image" mode=""></image>
- <view class="commodity-title clamp">{{ item.store_name }}</view>
- <view class="price clamp">{{ item.max_use_integral * 1 }}积分+</view>
- <view class="vip-price">
- <text>¥{{ item.price }}</text>
- </view>
- </view>
- </view> -->
- </view>
- </view>
- <!-- 消费券专区 -->
- <view class="main-box">
- <view class="main-top">
- <image src="../../static/icon/xfzq.png" mode="" class="main-icon"></image>
- <view class="main-title">消费券专区</view>
- <view class="main-synopsis">买多赚多</view>
- </view>
- <view class="main-content ">
- <view class="content-top flex xfq" @click="nav('/pages/prefecture/voucher')">
- <view class="content-font">
- <view class="content-title">精选好货 平台推荐</view>
- <view class="content-synopsis">消费券兑换</view>
- </view>
- <image src="../../static/icon/fanhui.png" class="go" mode=""></image>
- </view>
- <!-- <view class="commodity flex">
- <view class="commodity-item" v-for="(item, index) in bastList" :key="item.id" @click="navToDetailvoucher(item)">
- <image class="commodity-image" :src="item.image" mode=""></image>
- <view class="commodity-title clamp">{{ item.store_name }}</view>
- <view class="vip-price">
- <image src="../../static/icon/xfq.png" mode=""></image>
- <text>{{ item.price }}</text>
- </view>
- </view>
- </view> -->
- </view>
- </view>
- <view class="vip" @click="navTo('/pages/wallet/openMember')"></view>
- <!-- 精选好货 -->
- <view class="bastgood-box">
- <view class="bast-bg"><image src="../../static/icon/jxhh.png" mode=""></image></view>
- <view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)">
- <image :src="item.image"></image>
- <view class="guess-box">
- <view class="title clamp2">{{ item.store_name }}</view>
- <view class="price-box flex">
- <view class="yuanprice">{{ item.ot_price }}</view>
- <image src="../../static/icon/down.png" mode=""></image>
- <view class="jiang">直降{{ (item.ot_price - item.price).toFixed(2) }}元</view>
- </view>
- <view class="price">¥{{ item.price }}</view>
- <view class="btn">立即购买</view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import seckill from './seckill';
- import { openMap } from '@/utils/rocessor.js';
- import { loadIndexs, store_list, getStore } from '@/api/index.js';
- import { interceptor } from '@/utils/loginUtils';
- import { userinfo } from '@/api/user.js';
- import { mapState, mapMutations } from 'vuex';
- import { getProducts } from '@/api/product.js';
- // #ifdef H5
- import { weixindata, shareLoad } from '@/utils/wxAuthorized';
- // #endif
- export default {
- components: {
- seckill
- },
- filters: {
- moneyNum: function(value) {
- return +value;
- }
- },
- data() {
- return {
- titleNViewBackground: '',
- swiperCurrent: 0,
- swiperLength: 0,
- longitude: 121.436289, //经度
- latitude: 28.651485, //纬度
- carouselList: [], //轮播列表
- goodsList: [], //积分商品列表
- bastList: [], //消费券商品列表
- integralList: [], //积分商品列表
- bastBanner: [], //促销商品列表
- menusList: [], //头部菜单
- userServant: [
- {
- image: ''
- }
- ] //用户推广服务
- };
- },
- computed: {
- ...mapState(['loginInterceptor', 'storeInfo', 'canChange', 'baseURL']),
- ...mapState('user', ['hasLogin', 'userInfo'])
- },
- onLoad(option) {
- let agree = uni.getStorageSync('agree') || false;
- //#ifdef APP-PLUS
- // 判断是否已经同意协议
- if (!agree) {
- uni.redirectTo({ url: '/pages/contract/start' });
- }
- //#endif
- if (option.spread) {
- // 存储邀请人
- uni.setStorage({
- key: 'spread',
- data: option.spread
- });
- }
- let canChange = uni.getStorageSync('canChange') || '';
- if (option.store_id) {
- getStore({
- id: option.store_id
- }).then(({ data }) => {
- this.setStoreInfo(data);
- console.log(data);
- });
- this.setCanChange();
- uni.setStorageSync('canChange', option.store_id);
- } else {
- if (canChange == '') {
- this.getaddress();
- } else {
- console.log('进入缓存');
- getStore({
- id: canChange
- }).then(({ data }) => {
- this.setStoreInfo(data);
- });
- this.setCanChange();
- }
- }
- },
- onShow() {
- // 判断是否强制登录
- if (this.loginInterceptor && !this.hasLogin) {
- // 登录拦截
- userinfo()
- .then(e => {
- // #ifdef H5
- this.IndexShare();
- // #endif
- })
- .catch(e => {
- console.log(e);
- });
- }
- if (this.hasLogin) {
- // #ifdef H5
- this.IndexShare();
- // #endif
- }
- 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/notice/notice'
- });
- }
- },
- // #endif
- methods: {
- ...mapMutations(['setLat', 'setLon', 'setStoreInfo', 'setCanChange']),
- // #ifdef H5
- IndexShare() {
- let obj = this;
- let pages = getCurrentPages();
- // 获取当前页面
- let page = pages[pages.length - 1];
- let path = '/pages/index/index' + '?';
- // 保存传值
- for (let i in page.options) {
- path += i + '=' + page.options[i] + '&';
- }
- console.log(obj.Path);
- // 保存邀请人
- path += 'spread=' + this.userInfo.uid;
- let data = {
- link: this.baseURL + path,
- title: this.userInfo.nickname + '邀请您进入满园春',
- desc: '欢迎加入满园春',
- imgUrl: this.baseURL + '/static/img/logo.png'
- };
- console.log(data, '分享数据');
- shareLoad(data);
- },
- // #endif
- //获取定位信息
- getaddress() {
- console.log('dizhi+++++++++++');
- let obj = this;
- uni.getLocation({
- type: 'gcj02',
- success: res => {
- console.log(res);
- console.log('66666666666666666666');
- obj.setLat(res.latitude);
- obj.setLon(res.longitude);
- obj.getStore(res.latitude, res.longitude);
- },
- fail: err => {
- console.log(err, 'shi+++++++++++++++');
- openMap().then(e => {
- this.getaddress();
- });
- }
- });
- },
- // 點擊搜索框
- clickSearch() {
- uni.navigateTo({
- url: '/pages/product/search'
- });
- },
- navTo(url) {
- if (!this.hasLogin) {
- url = '/pages/public/login';
- // #ifdef H5
- let weichatBrowser = uni.getStorageSync('weichatBrowser');
- // 判断是否为微信浏览器
- if (weichatBrowser) {
- url = '/pages/public/wxLogin';
- }
- // #endif
- // #ifdef MP-WEIXIN
- url = '/pages/public/wxLogin';
- // #endif
- }
- uni.navigateTo({
- url
- });
- },
- // 监听图片加载完成
- onImageError(key, index) {
- this[key][index].image = '/static/error/errorImage.jpg';
- },
- getStore(latitude, longitude) {
- let obj = this;
- store_list({
- latitude: latitude,
- longitude: longitude,
- page: 1,
- limit: 1
- }).then(({ data }) => {
- console.log(data, 'storeInfo++++');
- obj.setStoreInfo(data.list[0]);
- });
- },
- // 请求载入数据
- async loadData() {
- const obj = this;
- loadIndexs({}).then(({ data }) => {
- let goods = data.info;
- this.carouselList = data.banner;
- this.swiperLength = this.carouselList.length;
- this.menusList = data.menus;
- this.goodsList = goods.bastList; //最新商品
- this.integralList = goods.integralList;
- });
- // getProducts({
- // page: 1,
- // limit: 2,
- // is_consumer: 1
- // })
- // .then(({ data }) => {
- // obj.bastList = data.map(e => {
- // e.price = Number(e.price);
- // e.ot_price = Number(e.ot_price);
- // return e;
- // });
- // console.log(obj.bastList, '123456');
- // })
- // .catch(e => {
- // console.log(e);
- // });
- },
- //轮播图切换修改背景色
- swiperChange(e) {
- const index = e.detail.current;
- this.swiperCurrent = index;
- // this.titleNViewBackground = this.carouselList[index].background;
- },
- //详情页
- navToDetailPage(item) {
- uni.navigateTo({
- url: '/pages/product/product?id=' + item.id
- });
- },
- //积分详情页
- navToDetailPagejf(item) {
- uni.navigateTo({
- url: '/pages/product/product?id=' + item.id
- });
- },
- //消费券详情页
- navToDetailvoucher(item) {
- uni.navigateTo({
- url: '/pages/prefecture/detail?id=' + item.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
- });
- },
- nav(url) {
- console.log(url, '111111111');
- uni.navigateTo({
- url
- });
- }
- }
- };
- </script>
- <style lang="scss">
- page {
- background: #f5f5f5;
- }
- .m-t {
- margin-top: 16rpx;
- }
- .vip {
- margin: 0 30rpx;
- margin-top: 40rpx;
- height: 120rpx;
- background-image: url('../../static/user/upgrade.png');
- background-size: 100% 170rpx;
- }
- /* 头部 轮播图 */
- .carousel-section {
- position: relative;
- padding-top: 10px;
- overflow: hidden;
- .bg {
- position: absolute;
- top: 0;
- left: 0;
- width: 750rpx;
- height: 346rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .titleNview-placing {
- height: var(--status-bar-height);
- box-sizing: content-box;
- }
- .search {
- justify-content: flex-start;
- padding: 10rpx 24rpx 20rpx;
- align-items: center;
- .address {
- width: 32rpx;
- height: 38rpx;
- }
- .shop-name {
- height: 38rpx;
- position: relative;
- z-index: 100;
- width: 206rpx;
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #ffffff;
- padding-left: 10rpx;
- }
- .input-box {
- position: relative;
- z-index: 99;
- width: 427rpx;
- height: 60rpx;
- background: rgba(39, 170, 116, 0.4);
- box-shadow: 0px 9rpx 21rpx 0px rgba(4, 114, 69, 0.22);
- border-radius: 30px;
- margin-left: 25rpx;
- .input-content {
- position: relative;
- z-index: 11;
- border-radius: 99rpx;
- flex-grow: 1;
- padding: 5rpx 30rpx;
- background: #a2e0c7;
- .iconsearch {
- font-size: 50rpx;
- color: #ffffff;
- }
- .input {
- margin-left: 19rpx;
- flex-grow: 1;
- color: #ffffff;
- input {
- font-size: 26rpx;
- color: #ffffff;
- }
- }
- }
- .input-button {
- padding-left: 20rpx;
- font-size: $font-base;
- height: 100%;
- }
- }
- }
- }
- .carousel {
- width: 100%;
- height: 300rpx;
- background-color: #fff;
- .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;
- background: #fff;
- .cate-item {
- display: flex;
- flex-direction: column;
- align-items: center;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- .none-font-color {
- color: $page-color-base;
- }
- .Uimg {
- border-radius: 999px;
- }
- }
- /* 原图标颜色太深,不想改图了,所以加了透明度 */
- image {
- width: 88rpx;
- height: 88rpx;
- margin-bottom: 14rpx;
- border-radius: 50%;
- opacity: 0.7;
- }
- }
- .ad-1 {
- width: 100%;
- height: 210upx;
- padding: 10upx 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;
- }
- // 积分兑换,消费券
- .main-box {
- background-color: #ffffff;
- margin-top: 20rpx;
- padding: 22rpx 30rpx;
- .main-top {
- display: flex;
- justify-content: flex-start;
- align-items: center;
- .main-icon {
- width: 36rpx;
- height: 36rpx;
- }
- .main-title {
- margin-left: 8rpx;
- font-size: 32rpx;
- font-family: Source Han Sans CN;
- font-weight: 500;
- color: #333333;
- }
- .main-synopsis {
- margin-left: 16rpx;
- font-size: 20rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #95a0b1;
- }
- }
- .main-content {
- width: 690rpx;
- background: #f4f4f4;
- border-radius: 12rpx;
- margin: 20rpx auto 0;
- padding-bottom: 10rpx;
- .xfq {
- background: linear-gradient(43deg, #ffc063, #ffa163) !important;
- }
- .content-top {
- width: 690rpx;
- background: linear-gradient(43deg, #73deb2, #52c696);
- border-radius: 12rpx 12rpx 0px 0px;
- padding: 24rpx 22rpx 68rpx 27rpx;
- .content-font {
- .content-title {
- font-size: 32rpx;
- font-family: Source Han Sans CN;
- font-weight: 500;
- color: #ffffff;
- }
- .content-synopsis {
- margin-top: 10rpx;
- font-size: 24rpx;
- font-family: Source Han Sans CN;
- font-weight: 400;
- color: #ffffff;
- }
- }
- .go {
- width: 30rpx;
- height: 35rpx;
- transform: rotate(180deg);
- -ms-transform: rotate(180deg); /* Internet Explorer */
- -moz-transform: rotate(180deg); /* Firefox */
- -webkit-transform: rotate(180deg); /* Safari 和 Chrome */
- -o-transform: rotate(180deg); /* Opera */
- }
- }
- }
- .commodity {
- width: 670rpx;
- background: #ffffff;
- border-radius: 8rpx;
- padding: 2rpx;
- margin: -50rpx auto 0;
- flex-wrap: wrap;
- justify-content: flex-start;
- .commodity-item {
- width: 33%;
- padding: 14rpx 30rpx 22rpx;
- .commodity-image {
- width: 160rpx;
- height: 160rpx;
- }
- .commodity-title {
- margin-top: 14rpx;
- width: 162rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #3f3f3f;
- }
- .price {
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #999999;
- }
- .vip-price {
- font-size: 30rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #ff6f0f;
- image {
- position: relative;
- z-index: 10;
- width: 26rpx;
- height: 26rpx;
- }
- text {
- display: inline-block;
- margin-left: 6rpx;
- }
- }
- }
- }
- }
- .bastgood-box {
- margin-top: 20rpx;
- background-color: #ffffff;
- padding: 40rpx 0;
- .bast-bg {
- width: 376rpx;
- height: 34rpx;
- margin: 0 auto;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .guess-item {
- display: flex;
- width: 710rpx;
- background: #ffffff;
- box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
- border-radius: 10rpx;
- padding: 15rpx;
- margin: 20rpx auto 0;
- position: relative;
- image {
- width: 236rpx;
- height: 236rpx;
- border-radius: 10rpx;
- }
- .guess-box {
- padding: 12rpx 0 0 24rpx;
- width: 436rpx;
- .title {
- font-size: 32rpx;
- padding-left: 4rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #333333;
- width: 368rpx;
- line-height: 36rpx;
- }
- .price-box {
- margin-top: 76rpx;
- justify-content: flex-start;
- .yuanprice {
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- text-decoration: line-through;
- color: #999999;
- padding-right: 6rpx;
- }
- image {
- width: 16rpx;
- height: 18rpx;
- }
- .jiang {
- padding-left: 2rpx;
- font-size: 24rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #b59467;
- }
- }
- .price {
- font-size: 36rpx;
- font-family: PingFang SC;
- font-weight: bold;
- color: #ff1135;
- }
- .btn {
- width: 138rpx;
- height: 52rpx;
- background: #52c696;
- border-radius: 26rpx;
- font-size: 26rpx;
- font-family: PingFang SC;
- font-weight: 500;
- color: #ffffff;
- line-height: 52rpx;
- text-align: center;
- position: absolute;
- bottom: 25rpx;
- right: 25rpx;
- }
- }
- }
- }
- </style>
|