123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113 |
- <template>
- <view class="container">
- <!--header-->
- <view class="tui-header-box">
- <view class="tui-header" :style="{ width: width + 'px', height: height + 'px' }">
- <view class="tui-back" :style="{ marginTop: arrowTop + 'px' }" @tap="back">
- <tui-icon name="arrowleft" color="#000"></tui-icon>
- </view>
- <view class="tui-searchbox tui-search-mr" :style="{ marginTop: inputTop + 'px' }" @tap="search">
- <icon type="search" :size="13" color="#999"></icon>
- <text class="tui-search-text" v-if="!searchKey">搜索</text>
- <view class="tui-search-key" v-if="searchKey">
- <view class="tui-key-text">{{ searchKey }}</view>
- <tui-icon name="shut" :size="12" color="#fff"></tui-icon>
- </view>
- </view>
- </view>
- </view>
- <!--header-->
- <!--screen-->
- <view class="tui-header-screen" :style="{ top: height + 'px' }">
- <view class="tui-screen-top">
- <view class="tui-top-item tui-icon-ml" :class="[tabIndex == 0 ? 'tui-active tui-bold' : '']"
- data-index="0" @tap="screen">
- <view>{{ selectedName }}</view>
- <tui-icon :name="selectH > 0 ? 'arrowup' : 'arrowdown'" :size="14"
- :color="tabIndex == 0 ? '#e41f19' : '#444'"></tui-icon>
- </view>
- <view class="tui-top-item" :class="[tabIndex == 1 ? 'tui-active tui-bold' : '']" @tap="screen"
- data-index="1">销量</view>
- <view class="tui-top-item" :class="[tabIndex == 4 ? 'tui-active tui-bold' : '']" @tap="screen"
- data-index="4">新品</view>
- <view class="tui-top-item" @tap="screen" data-index="2">
- <tui-icon :name="isList ? 'manage' : 'listview'" :size="isList ? 22 : 18"
- :bold="isList ? false : true" color="#333"></tui-icon>
- </view>
- <!--<view class="tui-top-item tui-icon-ml" @tap="screen" data-index="3">
- <text>筛选</text>
- <tui-icon name="screen" :size="12" color="#333" :bold="true"></tui-icon>
- </view>-->
- <!--下拉选择列表-综合-->
- <view class="tui-dropdownlist" :class="[selectH > 0 ? 'tui-dropdownlist-show' : '']"
- :style="{ height: selectH + 'rpx' }">
- <view class="tui-dropdownlist-item tui-icon-middle" :class="[item.selected ? 'tui-bold' : '']"
- v-for="(item, index) in dropdownList" :key="index" @tap.stop="dropdownItem" :data-index="index">
- <text class="tui-ml tui-middle">{{ item.name }}</text>
- <tui-icon name="check" :size="16" color="#e41f19" :bold="true" v-if="item.selected"></tui-icon>
- </view>
- </view>
- <view class="tui-dropdownlist-mask" :class="[selectH > 0 ? 'tui-mask-show' : '']"
- @tap.stop="hideDropdownList"></view>
- <!--下拉选择列表--综合-->
- </view>
- </view>
- <!--screen-->
- <!--list-->
- <view class="tui-product-list" :style="{ marginTop: px(dropScreenH + 18) }">
- <view class="tui-product-container">
- <block v-for="(item, index) in goodsList" :key="index">
- <!--商品列表-->
- <view class="tui-pro-item" :class="[isList ? 'tui-flex-list' : 'tui-flex-card']"
- hover-class="tui-hover" :hover-start-time="150"
- :data-url="'/pages/goodsDetail/goodsDetail?id=' + item.id" @tap="navigationTo">
- <image :src="item.pic" class="tui-pro-img" :class="[isList ? 'tui-proimg-list' : '']"
- mode="widthFix" />
- <view class="tui-pro-content">
- <view class="tui-pro-tit">{{ item.name }}</view>
- <view>
- <view class="tui-pro-price">
- <text v-if="item.is_points_goods==1"
- class="tui-sale-price">{{lang.points}}:{{ item.pay_points }}</text>
- <text v-if="item.is_points_goods!=1" class="tui-sale-price">¥{{ item.price }}</text>
- <text v-if="item.original_price>0"
- class="tui-factory-price">¥{{ item.original_price }}</text>
- </view>
- <view v-if="item.sale_count>30" class="tui-pro-pay">{{ item.sale_count }}人付款</view>
- </view>
- </view>
- </view>
- <!--商品列表-->
- </block>
- </view>
- </view>
- <!--list-->
- <!--顶部下拉筛选弹层 属性-->
- <tui-top-dropdown backgroundColor="#f7f7f7" :show="dropScreenShow" :paddingbtm="110" :translatey="dropScreenH"
- @close="btnCloseDrop">
- <scroll-view class="tui-scroll-box" scroll-y :scroll-top="scrollTop">
- <view class="tui-seizeaseat-20"></view>
- <view class="tui-drop-item tui-icon-middle" :class="[item.selected ? 'tui-bold' : '']"
- v-for="(item, index) in attrData" :key="index" @tap.stop="btnSelected" :data-index="index">
- <tui-icon name="check" :size="16" color="#e41f19" :bold="true" v-if="item.selected"></tui-icon>
- <text class="tui-ml tui-middle">{{ item.name }}</text>
- </view>
- <view class="tui-seizeaseat-30"></view>
- </scroll-view>
- <view class="tui-drop-btnbox">
- <view class="tui-drop-btn tui-btn-white" hover-class="tui-white-hover" :hover-stay-time="150"
- @tap="reset">重置</view>
- <view class="tui-drop-btn tui-btn-red" hover-class="tui-red-hover" :hover-stay-time="150"
- @tap="btnSure">确定</view>
- </view>
- </tui-top-dropdown>
- <!---顶部下拉筛选弹层 属性-->
- <!--左抽屉弹层 筛选 -->
- <tui-drawer mode="right" :visible="drawer" @close="closeDrawer">
- <view class="tui-drawer-box" :style="{ paddingTop: height + 'px' }">
- <scroll-view class="tui-drawer-scroll" scroll-y :style="{ height: drawerH + 'px' }">
- <view class="tui-drawer-title">
- <text class="tui-title-bold">价格区间</text>
- <view class="tui-attr-right">
- <tui-icon name="position-fill" color="#e41f19" :size="14" class="tui-location"></tui-icon>
- <text class="tui-addr-left">北京朝阳区三环到四环之间</text>
- </view>
- </view>
- <view class="tui-drawer-content">
- <input placeholder-class="tui-phcolor" class="tui-input" placeholder="最低价" maxlength="11"
- type="number" />
- <tui-icon name="reduce" color="#333" :size="14"></tui-icon>
- <input placeholder-class="tui-phcolor" class="tui-input" placeholder="最高价" maxlength="11"
- type="number" />
- </view>
- <view class="tui-drawer-title">
- <text class="tui-title-bold">全部分类</text>
- <view class="tui-all-box tui-icon-ml">
- <view class="tui-attr-right">全部</view>
- <tui-icon name="arrowdown" :size="14" color="#444"></tui-icon>
- </view>
- </view>
- <view class="tui-drawer-content tui-flex-attr">
- <view class="tui-attr-item tui-btmItem-active">
- <view class="tui-attr-ellipsis">男装</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">女装</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">运动服饰</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">户外鞋服</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">文化</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">服饰配件</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">流行男鞋</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">艺术</view>
- </view>
- </view>
- <view class="tui-drawer-title">
- <text class="tui-title-bold">品牌</text>
- <view class="tui-all-box tui-icon-ml">
- <view class="tui-attr-right tui-active ">花花公子,七匹狼(SEPTWOLVES)</view>
- <tui-icon name="arrowdown" :size="14" color="#444"></tui-icon>
- </view>
- </view>
- <view class="tui-drawer-content tui-flex-attr">
- <view class="tui-attr-item tui-btmItem-active">
- <view class="tui-attr-ellipsis">花花公子</view>
- </view>
- <view class="tui-attr-item tui-btmItem-active">
- <view class="tui-attr-ellipsis">七匹狼(SEPTWOLVES)</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">吉普</view>
- </view>
- </view>
- <view class="tui-drawer-title">
- <text class="tui-title-bold">尺码</text>
- <view class="tui-all-box tui-icon-ml">
- <view class="tui-attr-right">全部</view>
- <tui-icon name="arrowup" :size="14" color="#444"></tui-icon>
- </view>
- </view>
- <view class="tui-drawer-content tui-flex-attr">
- <view class="tui-attr-item tui-btmItem-active">
- <view class="tui-attr-ellipsis">27</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">28</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">29</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">30</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">31</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">32</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">33</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">34</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">35</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">36</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">37</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">38</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">39</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">40</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">41</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">42</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">43</view>
- </view>
- <view class="tui-attr-item">
- <view class="tui-attr-ellipsis">44</view>
- </view>
- </view>
- <view class="tui-safearea-bottom"></view>
- </scroll-view>
- <view class="tui-attr-btnbox">
- <view class="tui-attr-safearea">
- <view class="tui-drawer-btn tui-drawerbtn-black" hover-class="tui-white-hover"
- :hover-stay-time="150">重置</view>
- <view class="tui-drawer-btn tui-drawerbtn-primary" hover-class="tui-red-hover"
- :hover-stay-time="150" @tap="closeDrawer">确定(80万+件商品)</view>
- </view>
- </view>
- </view>
- </tui-drawer>
- <!--左抽屉弹层 筛选-->
- <!--加载loadding-->
- <tui-loadmore v-if="loadding" :index="3" type="red"></tui-loadmore>
- <tui-nomore v-if="!pullUpOn && isList" backgroundColor="#f7f7f7"></tui-nomore>
- <!--加载loadding-->
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- lang:{},
- searchKey: '', //搜索关键词
- width: 200, //header宽度
- height: 64, //header高度
- inputTop: 0, //搜索框距离顶部距离
- arrowTop: 0, //箭头距离顶部距离
- dropScreenH: 0, //下拉筛选框距顶部距离
- attrData: [],
- attrIndex: -1,
- dropScreenShow: false,
- scrollTop: 0,
- tabIndex: 0, //顶部筛选索引
- isList: false, //是否以列表展示 | 列表或大图
- drawer: false,
- drawerH: 0, //抽屉内部scrollview高度
- selectedName: '综合',
- selectH: 0,
- dropdownList: [{
- name: '综合',
- selected: true
- },
- {
- name: '价格升序',
- selected: false
- },
- {
- name: '价格降序',
- selected: false
- }
- ],
- goodsList: [],
- where: {
- sid: 0,
- keyword: '',
- priceOrder: '',
- salesOrder: '',
- news: 0,
- page: 1,
- limit: 10,
- categoryId: 0,
- },
- price: 0,
- stock: 0,
- pageIndex: 1,
- loadding: false,
- pullUpOn: true
- };
- },
- onLoad: function(options) {
- let _this = this;
- this.where.categoryId = options.cid || ''
- this.where.keyword = options.keyword || '';
- let obj = {};
- // #ifdef MP-WEIXIN
- obj = wx.getMenuButtonBoundingClientRect();
- // #endif
- // #ifdef MP-BAIDU
- obj = swan.getMenuButtonBoundingClientRect();
- // #endif
- // #ifdef MP-ALIPAY
- my.hideAddToDesktopMenu();
- // #endif
- uni.getSystemInfo({
- success: res => {
- this.width = obj.left || res.windowWidth;
- this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight + 44;
- this.inputTop = obj.top ? obj.top + (obj.height - 30) / 2 : res.statusBarHeight + 7;
- this.arrowTop = obj.top ? obj.top + (obj.height - 32) / 2 : res.statusBarHeight + 6;
- this.searchKey = options.keyword || options.searchKey || '';
- //略小,避免误差带来的影响
- this.dropScreenH = (this.height * 750) / res.windowWidth + 85;
- this.drawerH = res.windowHeight - uni.upx2px(100) - this.height;
- }
- });
- _this.$request.get('Lang.getlang').then(res => {
- if (res.errno == 0) {
- _this.lang = res.data;
- }
- });
- this.get_product_list();
- },
- methods: {
- px(num) {
- return uni.upx2px(num) + 'px';
- },
- btnSelected: function(e) {
- let index = e.currentTarget.dataset.index;
- this.$set(this.attrData[index], 'selected', !this.attrData[index].selected);
- },
- reset() {
- let arr = this.attrData;
- for (let item of arr) {
- item.selected = false;
- }
- this.attrData = arr;
- },
- btnCloseDrop() {
- this.scrollTop = 1;
- this.$nextTick(() => {
- this.scrollTop = 0;
- });
- this.dropScreenShow = false;
- this.attrIndex = -1;
- },
- btnSure: function() {
- let index = this.attrIndex;
- let arr = this.attrData;
- let active = false;
- let attrName = '';
- //这里只是为了展示选中效果,并非实际场景
- for (let item of arr) {
- if (item.selected) {
- active = true;
- attrName += attrName ? ';' + item.name : item.name;
- }
- }
- let obj = this.attrArr[index];
- this.btnCloseDrop();
- this.$set(obj, 'isActive', active);
- this.$set(obj, 'selectedName', attrName);
- },
- showDropdownList: function() {
- this.selectH = 246;
- this.tabIndex = 0;
- },
- hideDropdownList: function() {
- this.selectH = 0;
- },
- dropdownItem: function(e) {
- let index = Number(e.currentTarget.dataset.index);
- let arr = this.dropdownList;
- if (index == 0) {
- }
- for (let i = 0; i < arr.length; i++) {
- if (i === index) {
- arr[i].selected = true;
- } else {
- arr[i].selected = false;
- }
- }
- this.dropdownList = arr;
- this.selectedName = index == 0 ? '综合' : '价格';
- this.selectH = 0;
- this.price = index;
- this.where.page = 1;
- this.get_product_list(true);
- },
- screen: function(e) {
- let index = e.currentTarget.dataset.index;
- this.hideDropdownList();
- this.btnCloseDrop();
- if (index == 0) {
- this.showDropdownList();
- } else if (index == 1) {
- this.tabIndex = 1;
- if (this.stock == 1) {
- this.stock = 2
- } else {
- this.stock = 1
- }
- } else if (index == 2) {
- this.isList = !this.isList;
- } else if (index == 3) {
- this.drawer = true;
- } else if (index == 4) {
- if (this.tabIndex == 4) {
- this.tabIndex = 0;
- } else {
- this.tabIndex = 4;
- }
- if (this.where.news == 1) {
- this.where.news = 0;
- } else {
- this.where.news = 1;
- }
- }
- this.loadend = false;
- this.where.page = 1;
- this.get_product_list(true);
- },
- closeDrawer: function() {
- this.drawer = false;
- },
- back: function() {
- if (this.drawer) {
- this.closeDrawer();
- } else {
- uni.navigateBack();
- }
- },
- search: function() {
- this.sam.navigateTo('/pages/common/search/search');
- },
- navigationTo: function(e) {
- this.sam.navigateTo(e.currentTarget.dataset.url);
- },
- //设置where条件
- setWhere: function() {
- if (this.price == 0)
- this.where.priceOrder = '';
- else if (this.price == 1)
- this.where.priceOrder = 'desc';
- else if (this.price == 2)
- this.where.priceOrder = 'asc';
- if (this.stock == 0)
- this.where.salesOrder = '';
- else if (this.stock == 1)
- this.where.salesOrder = 'desc';
- else if (this.stock == 2)
- this.where.salesOrder = 'asc';
- },
- //查找产品
- get_product_list: function(isPage) {
- var that = this;
- this.setWhere();
- console.log(this.where);
- if (that.loadend) return;
- if (that.loading) return;
- if (isPage === true) {
- that.where.page =1;
- that.goodsList = [];
- }
- that.where.showLoading = true;
- this.$request.post('goods', that.where).then(res => {
- if (res.errno == 0) {
- that.goodsList = that.goodsList.concat(res.data.data);
- that.loadend = that.goodsList.length < that.where.limit;
- that.loading = false;
- that.where.page = that.where.page + 1
- }
- })
- },
- },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh: function() {
- this.where.page = 1;
- this.loadend = false;
- this.goodsList = [];
- this.get_product_list();
- uni.stopPullDownRefresh();
- },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom: function() {
- this.get_product_list();
- }
- };
- </script>
- <style>
- page {
- background-color: #f7f7f7;
- }
- .container {
- padding-bottom: env(safe-area-inset-bottom);
- }
- /* 隐藏scroll-view滚动条*/
- ::-webkit-scrollbar {
- width: 0;
- height: 0;
- color: transparent;
- }
- .tui-header-box {
- width: 100%;
- background: #fff;
- position: fixed;
- z-index: 1001;
- left: 0;
- top: 0;
- }
- .tui-header {
- display: flex;
- align-items: flex-start;
- }
- .tui-back {
- margin-left: 8rpx;
- height: 32px !important;
- width: 32px !important;
- }
- .tui-searchbox {
- width: 100%;
- height: 30px;
- margin-right: 30rpx;
- border-radius: 15px;
- font-size: 12px;
- background: #f7f7f7;
- padding: 3px 10px;
- box-sizing: border-box;
- color: #999;
- display: flex;
- align-items: center;
- overflow: hidden;
- }
- /* #ifdef MP */
- .tui-search-mr {
- margin-right: 20rpx !important;
- }
- /* #endif */
- .tui-search-text {
- padding-left: 16rpx;
- }
- .tui-search-key {
- max-width: 80%;
- height: 100%;
- padding: 0 16rpx;
- margin-left: 12rpx;
- display: flex;
- align-items: center;
- border-radius: 15px;
- background: rgba(0, 0, 0, 0.5);
- color: #fff;
- }
- .tui-key-text {
- box-sizing: border-box;
- padding-right: 12rpx;
- font-size: 12px;
- line-height: 12px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- /*screen*/
- .tui-header-screen {
- width: 100%;
- box-sizing: border-box;
- background: #fff;
- position: fixed;
- z-index: 1000;
- }
- .tui-screen-top,
- .tui-screen-bottom {
- display: flex;
- align-items: center;
- justify-content: space-between;
- font-size: 28rpx;
- color: #333;
- }
- .tui-screen-top {
- height: 88rpx;
- position: relative;
- background: #fff;
- }
- .tui-top-item {
- height: 28rpx;
- line-height: 28rpx;
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tui-topitem-active {
- color: #e41f19;
- }
- .tui-screen-bottom {
- height: 100rpx;
- padding: 0 30rpx;
- box-sizing: border-box;
- font-size: 24rpx;
- align-items: center;
- overflow: hidden;
- }
- .tui-bottom-text {
- line-height: 26rpx;
- max-width: 82%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .tui-bottom-item {
- flex: 1;
- width: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 0 12rpx;
- box-sizing: border-box;
- background-color: #f7f7f7;
- margin-right: 20rpx;
- white-space: nowrap;
- height: 60rpx;
- border-radius: 40rpx;
- }
- .tui-bottom-item:last-child {
- margin-right: 0;
- }
- .tui-btmItem-active {
- background-color: #fcedea !important;
- color: #e41f19;
- font-weight: bold;
- position: relative;
- }
- .tui-btmItem-active::after {
- content: '';
- position: absolute;
- border: 1rpx solid #e41f19;
- width: 100%;
- height: 100%;
- border-radius: 40rpx;
- left: 0;
- top: 0;
- }
- .tui-btmItem-tap {
- position: relative;
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- }
- .tui-btmItem-tap::after {
- content: '';
- position: absolute;
- width: 100%;
- height: 22rpx;
- background: #f7f7f7;
- left: 0;
- top: 58rpx;
- }
- .tui-bold {
- font-weight: bold;
- }
- .tui-active {
- color: #e41f19;
- }
- .tui-addr-left {
- padding-left: 6rpx;
- }
- .tui-seizeaseat-20 {
- height: 20rpx;
- }
- .tui-seizeaseat-30 {
- height: 30rpx;
- }
- /*screen*/
- /*顶部下拉选择 属性*/
- .tui-scroll-box {
- width: 100%;
- height: 480rpx;
- box-sizing: border-box;
- position: relative;
- z-index: 99;
- color: #fff;
- font-size: 30rpx;
- word-break: break-all;
- }
- .tui-drop-item {
- color: #333;
- height: 80rpx;
- font-size: 28rpx;
- padding: 20rpx 40rpx 20rpx 40rpx;
- box-sizing: border-box;
- display: inline-block;
- width: 50%;
- }
- .tui-drop-btnbox {
- width: 100%;
- height: 100rpx;
- position: absolute;
- left: 0;
- bottom: 0;
- box-sizing: border-box;
- display: flex;
- }
- .tui-drop-btn {
- width: 50%;
- font-size: 32rpx;
- text-align: center;
- height: 100rpx;
- line-height: 100rpx;
- border: 0;
- }
- .tui-btn-red {
- background: #e41f19;
- color: #fff;
- }
- .tui-red-hover {
- background: #c51a15 !important;
- color: #e5e5e5;
- }
- .tui-btn-white {
- background: #fff;
- color: #333;
- }
- .tui-white-hover {
- background: #e5e5e5;
- color: #2e2e2e;
- }
- /*顶部下拉选择 属性*/
- /*顶部下拉选择 综合*/
- .tui-dropdownlist {
- width: 100%;
- position: absolute;
- background-color: #fff;
- border-bottom-left-radius: 24rpx;
- border-bottom-right-radius: 24rpx;
- overflow: hidden;
- box-sizing: border-box;
- padding-top: 10rpx;
- padding-bottom: 26rpx;
- left: 0;
- top: 88rpx;
- visibility: hidden;
- transition: all 0.2s ease-in-out;
- z-index: 999;
- }
- .tui-dropdownlist-show {
- visibility: visible;
- }
- .tui-dropdownlist-mask {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.6);
- z-index: -1;
- transition: all 0.2s ease-in-out;
- opacity: 0;
- visibility: hidden;
- }
- .tui-mask-show {
- opacity: 1;
- visibility: visible;
- }
- .tui-dropdownlist-item {
- color: #333;
- height: 70rpx;
- font-size: 28rpx;
- padding: 0 40rpx;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- /*顶部下拉选择 综合*/
- .tui-drawer-box {
- width: 686rpx;
- font-size: 24rpx;
- overflow: hidden;
- position: relative;
- padding-bottom: 100rpx;
- }
- .tui-drawer-title {
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 30rpx;
- box-sizing: border-box;
- height: 80rpx;
- }
- .tui-title-bold {
- font-size: 26rpx;
- font-weight: bold;
- flex-shrink: 0;
- }
- .tui-location {
- margin-right: 6rpx;
- }
- .tui-attr-right {
- width: 70%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- text-align: right;
- }
- .tui-all-box {
- width: 90%;
- white-space: nowrap;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- }
- .tui-drawer-content {
- padding: 16rpx 30rpx 30rpx 30rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- box-sizing: border-box;
- }
- .tui-input {
- border: 0;
- height: 64rpx;
- border-radius: 32rpx;
- width: 45%;
- background-color: #f7f7f7;
- text-align: center;
- font-size: 24rpx;
- color: #333;
- }
- .tui-phcolor {
- text-align: center;
- color: #b2b2b2;
- font-size: 24rpx;
- }
- .tui-flex-attr {
- flex-wrap: wrap;
- justify-content: flex-start;
- }
- .tui-attr-item {
- width: 30%;
- height: 64rpx;
- background-color: #f7f7f7;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 0 4rpx;
- box-sizing: border-box;
- border-radius: 32rpx;
- margin-right: 5%;
- margin-bottom: 5%;
- }
- .tui-attr-ellipsis {
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
- width: 96%;
- text-align: center;
- }
- .tui-attr-item:nth-of-type(3n) {
- margin-right: 0%;
- }
- .tui-attr-btnbox {
- width: 100%;
- position: absolute;
- left: 0;
- bottom: 0;
- box-sizing: border-box;
- padding: 0 30rpx;
- background: #fff;
- }
- .tui-attr-safearea {
- height: 100rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding-bottom: env(safe-area-inset-bottom);
- }
- .tui-safearea-bottom {
- width: 100%;
- height: env(safe-area-inset-bottom);
- }
- .tui-attr-btnbox::before {
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- border-top: 1px solid #eaeef1;
- transform: scaleY(0.5) translateZ(0);
- transform-origin: 0 0;
- }
- .tui-drawer-btn {
- width: 47%;
- text-align: center;
- height: 60rpx;
- border-radius: 30rpx;
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- }
- .tui-drawerbtn-black {
- border: 1rpx solid #555;
- }
- .tui-drawerbtn-primary {
- background: #e41f19;
- color: #fff;
- }
- /* 商品列表*/
- .tui-product-list {
- display: flex;
- justify-content: space-between;
- flex-direction: row;
- flex-wrap: wrap;
- box-sizing: border-box;
- }
- .tui-product-container {
- width: 100%;
- margin-left: 10rpx;
- margin-right: 10rpx;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .tui-pro-item {
- background: #fff;
- box-sizing: border-box;
- overflow: hidden;
- transition: all 0.15s ease-in-out;
- }
- .tui-flex-card {
- border-radius: 12rpx;
- width: 48%;
- margin-left: 1%;
- margin-right: 1%;
- margin-bottom: 2%;
- }
- .tui-flex-list {
- width: 100%;
- padding-top: 10rpx;
- padding-bottom: 10rpx;
- display: flex;
- margin-bottom: 1rpx !important;
- }
- .tui-pro-img {
- width: 100%;
- display: block;
- }
- .tui-proimg-list {
- width: 260rpx;
- height: 260rpx !important;
- flex-shrink: 0;
- border-radius: 12rpx;
- }
- .tui-pro-content {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- box-sizing: border-box;
- padding: 20rpx;
- }
- .tui-pro-tit {
- color: #2e2e2e;
- font-size: 26rpx;
- word-break: break-all;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- .tui-pro-price {
- padding-top: 18rpx;
- }
- .tui-sale-price {
- font-size: 34rpx;
- font-weight: 500;
- color: #e41f19;
- }
- .tui-factory-price {
- font-size: 24rpx;
- color: #a0a0a0;
- text-decoration: line-through;
- padding-left: 12rpx;
- }
- .tui-pro-pay {
- padding-top: 10rpx;
- font-size: 24rpx;
- color: #656565;
- }
- /* 列表*/
- </style>
|