123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991 |
- <template>
- <view class="container product clearfix">
- <view class="superv-header">
- <view class="superv-header-click" v-if="!isSuperv">
- <view class="oltext" @click="supervClickFn">管理</view>
- <view class="ortext" @click="searchClickFn">筛选</view>
- </view>
- <view class="superv-header-checked" v-else>
- <view class="oltext">
- <view class="checkbox iconfont" :class="[isChecked ?'icon-yixuanze':'icon-weixuanze']" @click="isCheckedAll"></view>
- <view class="text">全选</view>
- </view>
- <view class="ortext" @click="closeSupervFn">完成</view>
- </view>
- </view>
- <view class="product-content">
- <view :class="{'tui-order-list':scrollTop >= 0}" class="clearfix">
- <!-- 空白页 -->
- <view class="empty-container" v-if="isEmpty">
- <image class="empty-container-image" src="https://img.caimei365.com/group1/M00/03/71/Cmis2F3wna6AY2ZjAABpmnBICH4247.png"></image>
- <text class="error-text">暂无数据^_^</text>
- </view>
- <!-- 列表 -->
- <checkbox-group @change="buyChange" class="tui-group">
- <view class="tui-cart-cell tui-mtop" v-for="(item,index) in dataList" :key="index">
- <tui-swipe-actions :actions="actions" @click="handlerButton($event,item)" :params="item">
- <template v-slot:content>
- <view class="tui-goods-item">
- <view class="tui-goods-checkBox" v-if="isSuperv">
- <view class="checkbox iconfont" :class="[isChecked ?'icon-yixuanze':'icon-weixuanze']" @click="isCheckedAll"></view>
- </view>
- <view class="tui-goods-image">
- <image :src="item.mainImage" class="tui-goods-img"/>
- </view>
- <view class="tui-goods-info">
- <view class="tui-goods-title">{{ item.name }}</view>
- <view class="tui-price-box">
- <view class="tui-goods-price">¥{{item.price1 | NumFormat}}</view>
- </view>
- <view class="tui-goods-pip">市场价:¥{{item.normalPrice | NumFormat}}</view>
- <view class="tui-goods-pip">分类:{{ item.typeName }}</view>
- </view>
- <view class="tui-goods-status">
- <view class="status-text" :style="{ color: verifyColorFilter(item.validFlag)}">
- {{ item.validFlag | verifyStatusFilter }}
- </view>
- </view>
- </view>
- </template>
- </tui-swipe-actions>
- </view>
- </checkbox-group>
- <!--加载loadding-->
- <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
- <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text='nomoreText'></tui-nomore>
- <!--加载loadding-->
- </view>
- </view>
- <tui-modal :show="modal" @click="handleClick" @cancel="hideMobel" :content="contentModalText" color="#333" :size="32" shape="circle" :maskClosable="false"></tui-modal>
- <!--右抽屉-->
- <tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
- <view class="d-container clearfix" :style="{paddingTop:CustomBar+10+'px'}">
- <view class="d-label">商品货号:</view>
- <view class="d-input">
- <input class="input" type="text" value="" v-model="listQuery.keyword" placeholder="输入商品名称"/>
- </view>
- <view class="d-label">商品货号:</view>
- <view class="d-input">
- <input class="input" type="text" value="" v-model="listQuery.productSn" placeholder="输入商品货号"/>
- </view>
- <view class="d-label">状态:</view>
- <view class="d-input">
- <picker @change="bindPickerChange(3,$event)" :value="index" :range="Array2" range-key="name">
- <input class="input" type="text" disabled="false" v-model="listQuery.publishStatus" value="" placeholder="请选择审核状态"/>
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="d-label">主推商品:</view>
- <view class="d-input">
- <picker @change="bindPickerChange(2,$event)" :value="index" :range="brandOptions" range-key="name">
- <input class="input" type="text" disabled="false" v-model="listQuery.brandId" value="" placeholder="请选择商品品牌"/>
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="d-label">分类:</view>
- <view class="d-input">
- <picker @change="bindPickerChange(1,$event)" :value="index" :range="Array" range-key="name">
- <input class="input" type="text" disabled="false" v-model="listQuery.productCategoryId" value="" placeholder="请选择分类"/>
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="d-input">
- <picker @change="bindPickerChange(1,$event)" :value="index" :range="Array" range-key="name">
- <input class="input" type="text" disabled="false" v-model="listQuery.productCategoryId" value="" placeholder="请选择二级分类"/>
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="d-input">
- <picker @change="bindPickerChange(1,$event)" :value="index" :range="Array" range-key="name">
- <input class="input" type="text" disabled="false" v-model="listQuery.productCategoryId" value="" placeholder="请选择三级分类"/>
- <text class="iconfont icon-xiangyou"></text>
- </picker>
- </view>
- <view class="d-input btn">
- <view class="d-btn comfrim" @click="handSearchList">确定</view>
- <view class="d-btn clear" @click="handSearchClear">重置</view>
- </view>
- </view>
- </tui-drawer>
- <!-- 批量操作 -->
- <tui-bottom-popup :radius="false" :mask="false" :show="isSuperv" @close="closeSupervFn()">
- <view class="tui-popup-box clearfix">
- <view class="tui-right-flex tui-popup-btn" :style="{ paddingBottom :isIphoneX ? '68rpx' : '0rpx' }">
- <view class="tui-flex-1">
- <view class="tui-button" :class="isChecked ? 'active' : ''" @click="closeSupervFn()">批量下架</view>
- </view>
- </view>
- </view>
- </tui-bottom-popup>
- </view>
- </template>
- <script>
- import tuiLoadmore from "@/components/tui-components/loadmore/loadmore"
- import tuiNomore from "@/components/tui-components/nomore/nomore"
- import modalLayer from "@/components/modal-layer"
- import { mapState,mapMutations } from 'vuex'
- const defaultListQuery = {
- shopID:'',
- pageNum:1,
- pageSize:10,
- productCode:'',//货号
- name:'',//商品名称
- validFlag:'',//状态
- featuredFlag:'',//是否主推
- bigTypeID:0,//一级
- smallTypeID:0,//二级
- tinyTypeID:0//三级
- };
- export default{
- components: {
- tuiLoadmore,
- tuiNomore
- },
- data() {
- return{
- isSuperv:false,
- isChecked:false,
- mapStateArr:[
- {label:'isQuery',val:[4,5,12,13,33,22,23,32,77],status: true},
- {label:'isDelete',val:[6],status: true},
- {label:'isCancel',val:[0,111],status: true},
- {label:'isConfirm',val:[33],status: true},
- {label:'isConfirmation',val:[0],status: true},
- {label:'isPay',val:[11,12,13,21,22,23,111],status: true},
- ],
- actions: [
- {name: '查看详情',color: '#fff',fontsize: 26,width: 50,background: '#f9a94b'},
- {name: '添加主页推荐',color: '#fff',fontsize: 26,width: 50,background: '#ff7a51'},
- {name: '下架',color: '#fff',fontsize: 26,width: 50,background: '#fea785'},
- {name: '无操作',color: '#fff',fontsize: 26,width: 50,background: '#e1e1e1'},
- ],
- Array: [{name:'男装'},{name: '女装'},{name: '男鞋'},{name: '女鞋'},{name: '童鞋'}],
- brandOptions: [],
- Array2: [{name:'审核通过'},{name: '未审核'}],
- currents:0,
- userID:0,
- listQuery:Object.assign({}, defaultListQuery),
- dataList: [],
- btnoRderID: 0, //点击按钮传入的的订单ID
- scrollTop: 0,
- deteleType:'',
- skeletonShow: true,
- isEmpty: false,
- isDelete:false,
- isModalLayer: false,
- loadding: false,
- pullUpOn: true,
- pullFlag: true,
- hasNextPage: false,
- navbarHeight:'',
- nomoreText: '上拉显示更多',
- contentModalText:'',//操作文字提示语句
- modal:false,
- rightDrawer: false,
- handlerProduct:{},//储存监听商品信息
- OperationType:'',//操作类型
- isCmcustomClass : 'left',
- featuredNum:0,
-
- }
- },
- onLoad(){
-
- },
- filters: {
- NumFormat:function(text) {//处理金额
- return Number(text).toFixed(2);
- },
- verifyStatusFilter: function(state){
- let stateText = '',
- stateTextObject={
- '2':'已上架',
- '3':'已下架',
- '1':'待审核',
- '8':'审核未通过',
- '9':'已冻结',
- '10':'已隐身',
- '0':'已删除'
- };
- Object.keys(stateTextObject).forEach(function(key) {
- if(key == state){
- stateText = stateTextObject[key]
- }
- });
- return stateText;
- },
- },
- computed: {
- ...mapState(['hasLogin','userInfo'])
- },
- methods:{
- ...mapMutations(['login','logout']),
- GetProductListInfo(){
- this.listQuery.pageNum = 1
- this.ShopService.GetSupplierPyProduct(this.listQuery).then(response =>{
- let data = response.data.productPage
- this.hasNextPage = data.hasNextPage;
- console.log(data.results)
- if(data.results && data.results.length > 0){
- this.isEmpty = false;
- this.dataList = [...data.results];
- if(this.hasNextPage){
- this.pullUpOn = false
- this.nomoreText = '上拉显示更多'
- }else{
- if(this.dataList.length < 2){
- this.pullUpOn = true
- }else{
- this.pullUpOn = false
- this.nomoreText = '已至底部'
- }
- }
- }else{
- this.isEmpty = true
- }
- }).catch(error =>{
- this.$util.msg(error.msg,2000);
- })
- },
- GetOnReachBottomData(index){//上拉加载
- this.listQuery.pageNum += 1
- this.ProductService.GetProductList(this.listQuery).then(response =>{
- let data = response.data.productPage
- this.hasNextPage = data.hasNextPage;
- this.dataList = this.dataList.concat(data.results)
- this.pullFlag = false;// 防上拉暴滑
- setTimeout(()=>{this.pullFlag = true;},500)
- if(this.hasNextPage){
- this.pullUpOn = false
- this.nomoreText = '上拉显示更多'
- }else{
- this.loadding = false
- this.pullUpOn = false
- this.nomoreText = '已至底部'
- }
- })
- },
- handSearchList(){//搜索
- this.GetProductListInfo()
- this.leftDrawer = false;
- this.rightDrawer = false;
- },
- handSearchClear(){//重置搜索条件
-
- },
- handlerButton(e,item){//监听侧滑按钮点击事件
- switch(this.currents){
- case 0://全部商品列表
- this.handleCurrentsAll(e,item)
- break;
- case 1://上架商品列表
- this.handleCurrentsUpdate(e,item)
- break;
- case 2://下架商品列表
- this.handleCurrentsDown(e,item)
- break;
- }
- },
- handleCurrentsAll(e,item){//处理全部商品列表只做删除操作
- switch(e.index){
- case 0://删除
- this.handleDeleter(item)
- break;
- }
- },
- handleCurrentsUpdate(e,item){//处理上架商品列表只做下架&&删除操作
- switch(e.index){
- case 0://下架
- this.handleUnder(item)
- break;
- case 1://删除
- this.handleDeleter(item)
- break;
- }
- },
- handleCurrentsDown(e,item){//处理下架商品列表只做下架&&删除操作
- switch(e.index){
- case 0://上架
- this.handleGround(item)
- break;
- case 1://删除
- this.handleDeleter(item)
- break;
- }
- },
- handleDeleter(item){//删除操作
- this.OperationType = 'delete'
- this.handlerProduct = item
- this.modal = true;
- this.contentModalText = '是否删除该商品?';
- },
- handleGround(item){//上架操作
- this.OperationType = 'ground'
- this.handlerProduct = item
- this.modal = true;
- this.contentModalText = '是否上架该商品?';
- },
- handleUnder(item){//下架操作
- this.OperationType = 'under'
- this.handlerProduct = item
- this.modal = true;
- this.contentModalText = '是否下架该商品?';
- },
- handleClick(e) {//弹窗提示用户操作
- if(e.index == 1){
- switch(this.OperationType){
- case 'delete'://删除商品
- this.UpdateDeleteStatus()
- break;
- case 'ground'://上架商品
- this.UpdatePublishStatus(this.handlerProduct,1)
- break;
- case 'under'://下架商品
- this.UpdatePublishStatus(this.handlerProduct,0)
- break;
- }
- }
- this.modal = false;
- },
- UpdatePublishStatus(item,publishStatus){//上下架商品操作处理接口
- this.ProductService.ProductUpdatePublishStatus({publishStatus:publishStatus,ids:item.id}).then(response =>{
- this.$util.msg('操作成功',2000,true,'success');
- setTimeout(() => {
- this.GetProductListInfo()
- this.getOrderListCount()
- },2000)
- }).catch(error =>{
- this.$util.msg(error.message,2000)
- })
- },
- UpdateDeleteStatus(){//商品删除处理接口
- this.ProductService.ProductUpdateDeleteStatus({deleteStatus:1,ids:this.handlerProduct.id}).then(response =>{
- this.$util.msg('删除商品成功',2000,true,'success');
- setTimeout(() => {
- this.GetProductListInfo()
- this.getOrderListCount()
- },2000)
- }).catch(error =>{
- this.$util.msg(error.message,2000)
- })
- },
- hideMobel(){
- this.modal = false;
- },
- isCheckedAll(){
- this.isCheckedAll = true
- },
- addProductFn(){
- this.$util.msg('功能开发中,敬请期待^_^',2000);
- },
- supervClickFn(){//管理全选
- this.isSuperv = true
- },
- closeSupervFn(){
- this.isSuperv = false
- },
- searchClickFn() {//弹出抽屉
- this.rightDrawer = true;
- },
- closeDrawer(e) {//关闭抽屉
- this.leftDrawer = false;
- this.rightDrawer = false;
- },
- orderPriceToFixed (n){
- let price ='';
- price = Number(n).toFixed(2);
- return price
- },
- tabClick(index){
- this.currents = index
- switch(index){
- case 0:
- this.listQuery.publishStatus = ''
- this.dataList = []
- this.GetProductListInfo()
- this.actions =[
- {name: '删除',color: '#fff',fontsize: 28,width: 80,background: '#ff4759'},
- ]
- break;
- case 1:
- this.listQuery.publishStatus = 1
- this.dataList = []
- this.GetProductListInfo()
- this.actions =[
- {name: '下架',color: '#fff',fontsize: 28,width: 80,background: '#ffaa33'},
- {name: '删除',color: '#fff',fontsize: 28,width: 80,background: '#ff4759'},
- ]
- break;
- case 2:
- this.listQuery.publishStatus = 0
- this.dataList = []
- this.GetProductListInfo()
- this.actions =[
- {name: '上架',color: '#fff',fontsize: 28,width: 80,background: '#4688fa'},
- {name: '删除',color: '#fff',fontsize: 28,width: 80,background: '#ff4759'},
- ]
- break;
-
- }
- },
- bindDateChange: function(e) {//选择筛选时间
- this.listQuery.date = e.detail.value
- },
- bindPickerChange: function(type,e) {//选择筛选条件
- console.log(type)
- console.log(e)
- switch(type){
- case 1:
- this.listQuery.classification = this.Array[e.target.value].name
- console.log(this.listQuery.classification)
- break;
- case 2:
- this.listQuery.source = this.brandOptions[e.target.value].name
- console.log(this.listQuery.source)
- break;
- case 3:
- this.listQuery.classification = this.Array2[e.target.value].name
- console.log(this.listQuery.classification)
- break;
- }
- },
- verifyColorFilter: function(state){
- let stateColor = '',
- stateColorObject={
- '2':'#1890f9',
- '1':'#f9a94b',
- '0':'#FFB12A',
- '3':'#627386',
- '8':'#FF2A2A',
- '9':'#f94b4b'
- };
- Object.keys(stateColorObject).forEach(function(key){
- if(key == state){
- stateColor = stateColorObject[key]
- }
- });
- return stateColor;
- },
- },
- onPageScroll(e){//实时获取到滚动的值
- if(e.scrollTop>30){
- this.isCmcustomClass = 'fiexd'
- }else{
- this.isCmcustomClass = 'left'
- }
- },
- onReachBottom() {
- if(this.total > this.dataList.length){
- this.loadding = true
- this.pullUpOn = true
- this.GetOnReachBottomData()
- }
- },
- onPullDownRefresh() {
- setTimeout(() => {
- this.listQuery.pageNum = 1
- uni.stopPullDownRefresh()
- }, 200)
- },
- onShow(){
- this.$api.getComStorage('userInfo').then((resolve) =>{
- this.listQuery.shopID = resolve.shopID
- this.GetProductListInfo()
- })
- }
- }
- </script>
- <style lang="scss">
- @import "@/uni.scss";
- page{
- background:#FFF;
- }
- .superv-header{
- width: 100%;
- height: 80rpx;
- background-color: #F7F7F7;
- line-height: 80rpx;
- position: fixed;
- top: 0;
- left: 0;
- box-sizing: border-box;
- padding: 0 24rpx;
- z-index: 999;
- .superv-header-click{
- width: 100%;
- height: 80rpx;
- font-size: $font-size-30;
- .oltext{
- float: left;
- color: #666666;
- }
- .ortext{
- float: right;
- color: $color-system;
- }
- }
- .superv-header-checked{
- width: 100%;
- height: 80rpx;
- font-size: $font-size-30;
- .oltext{
- float: left;
- color: #666666;
- display: flex;
- .checkbox{
- display: flex;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- box-sizing: border-box;
- text-align: center;
- text-decoration: none;
- border-radius: 0;
- -webkit-tap-highlight-color: transparent;
- overflow: hidden;
- font-size: 34rpx;
- color:$color-system;
- line-height: 80rpx;
- }
- .text{
- float: left;
- line-height: 80rpx;
- margin-left: 15rpx;
- }
- }
- .ortext{
- float: right;
- color: $color-system;
- }
- }
- }
- .d-container {
- width: 560rpx;
- padding: 80rpx 30rpx;
- .d-title{
- width: 100%;
- height:80rpx;
- line-height: 80rpx;
- text-align: center;
- color: #4688fa;
- font-size: $font-size-32;
- float: left;
- }
- .d-time{
- width: 100%;
- height: 70rpx;
- float: left;
- box-sizing: border-box;
- padding: 0 10rpx;
- border: 1px solid rgba(0,0,0,0.2);
- border-radius: 4rpx;
- margin-bottom: 30rpx;
- .iconfont{
- width:70rpx;
- height: 60rpx;
- display: block;
- float: left;
- font-size: 50rpx;
- color: #666666;
- line-height: 70rpx;
- text-align: left;
- }
- .input{
- width: 220rpx;
- height: 70rpx;
- line-height: 70rpx;
- float: left;
- box-sizing: border-box;
- font-size: $font-size-24;
- color: #333333;
- padding: 0 10rpx;
- }
- }
- .d-label{
- width: 100%;
- height: 44rpx;
- line-height: 44rpx;
- text-align: left;
- color: #666666;
- font-size: $font-size-26;
- float: left;
- }
- .d-input{
- width: 100%;
- height: 70rpx;
- float: left;
- box-sizing: border-box;
- padding: 0 10rpx;
- border: 1px solid rgba(0,0,0,0.2);
- border-radius: 4rpx;
- margin-bottom: 30rpx;
- position: relative;
- &.btn{
- border: none;
- margin-top: 40rpx;
- }
- .input{
- width: 100%;
- height: 70rpx;
- line-height: 70rpx;
- float: left;
- box-sizing: border-box;
- font-size: $font-size-24;
- color: #333333;
- padding: 0 10rpx;
- padding-right: 68rpx;
- }
- .iconfont{
- width: 50rpx;
- height: 68rpx;
- display: block;
- line-height: 68rpx;
- text-align: center;
- font-size: 30rpx;
- color: #999999;
- position: absolute;
- right: 0;
- top: 0;
- }
- .d-btn{
- width: 210rpx;
- height: 84rpx;
- border-radius: 42rpx;
- background: $btn-confirm;
- line-height: 84rpx;
- text-align: center;
- font-size: $font-size-26;
- color: #FFFFFF;
- float: right;
- &.comfrim{
- background: $btn-confirm;
- margin-left: 20rpx;
- }
- &.clear{
- background: #e1e1e1;
- }
- }
- }
- }
- .tui-header {
- width: 100%;
- font-size: 16px;
- font-weight: 500;
- height: 32px;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- padding: 0 40rpx;
- }
- .header-sit{
- width:100%;
- box-sizing: border-box;
- height: 80rpx;
- line-height: 80rpx;
- box-sizing: border-box;
- padding:0 40rpx;
- text-align: left;
- font-size: $font-size-40;
- color: #FFFFFF;
- font-weight: 600;
- font-family: '正楷';
- margin-top: 30rpx;
- .iconfont{
- font-size: 42rpx;
- margin-left: 30rpx;
- }
- }
- .mine{
- width: 100%;
- height: 100%;
- position:relative;
- }
- .product-content{
- width: 100%;
- height: auto;
- position: relative;
- padding:0;
- padding-top: 80rpx;
- box-sizing: border-box;
- .header-tabs{
- width: 100%;
- height: auto;
- margin-bottom: 40rpx;
- padding: 20rpx;
- border-radius: 20rpx;
- background:#4688fa;
- box-sizing: border-box;
- &.day{
- background:#FFFFFF;
- padding:40rpx 20rpx;
- box-shadow:0px 3px 6px rgba(0,0,0,0.2);
- }
- .title{
- font-size: $font-size-36;
- line-height: 60rpx;
- color: #FFF;
- font-weight: bold;
- margin-bottom: 20rpx;
- }
- .main{
- width: 100%;
- height: 110rpx;
- .main-item{
- float: left;
- width:20%;
- text-align: center;
- color: #FFFFFF;
- box-sizing: border-box;
- &.active{
- .iconfont{
- color: #576efa;
- }
- .text{
- font-weight: bold;
- color:#576efa ;
- font-size: $font-size-28;
- }
- }
- .text{
- width: 100%;
- height:60rpx;
- line-height: 60rpx;
- display: block;
- float: left;
- font-size:$font-size-24;
- color: #666666;
- text-align: center;
- &.nm{
- color: #222222;
- height:40rpx;
- line-height: 40rpx;
- font-size: $font-size-32;
- font-weight: bold;
- }
- }
- .iconfont{
- font-size:50rpx;
- color: #7aa5fa ;
- position: relative;
- .badg{
- padding: 0 10rpx;
- height: 30rpx;
- display: inline-block;
- font-size: $font-size-24;
- text-align: center;
- line-height: 30rpx;
- background-color: #ff4759;
- color: #FFF;
- position: absolute;
- top: -15rpx;
- right:20rpx;
- border-radius: 15rpx;
- }
- }
- }
- }
- }
- .tui-header-btm {
- width: 100%;
- padding: 0 30rpx;
- box-sizing: border-box;
- display: flex;
- align-items: center;
- justify-content: space-between;
- color: #fff;
- }
- .tui-btm-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
-
- .tui-btm-num {
- font-size: 32rpx;
- font-weight: 600;
- position: relative;
- }
- .tui-btm-text {
- font-size: 24rpx;
- opacity: 0.85;
- padding-top: 4rpx;
- }
- }
- .tui-goods-item {
- display: flex;
- padding: 30rpx 20rpx;
- box-sizing: border-box;
- border-bottom: 1px solid #EBEBEB;
- }
- .tui-goods-checkBox{
- display: flex;
- align-items: center;
- margin: 0 15rpx;
- .checkbox{
- display: flex;
- margin: 0;
- padding: 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- box-sizing: border-box;
- text-align: center;
- text-decoration: none;
- border-radius: 0;
- -webkit-tap-highlight-color: transparent;
- overflow: hidden;
- background-color:#FFFFFF;
- font-size: 36rpx;
- color:$color-system;
- }
- .text{
- font-size: $font-size-24;
- margin-left: 10rpx;
- }
- }
- .tui-goods-image{
- width: 180rpx;
- height: 180rpx !important;
- border-radius: 12rpx;
- .tui-goods-img {
- width: 180rpx;
- height: 180rpx !important;
- border-radius: 12rpx;
- flex-shrink: 0;
- display: block;
- }
- }
- .tui-goods-info {
- width: 420rpx;
- padding-left: 20rpx;
- display: flex;
- flex-direction: column;
- align-items: flex-start;
- justify-content: space-between;
- box-sizing: border-box;
- overflow: hidden;
- position: relative;
- }
- .tui-goods-status{
- width: 160rpx;
- float: right;
- .status-text{
- font-size: $font-size-24;
- line-height: 44rpx;
- text-align: center;
- color: #666666;
- }
- }
- .tui-goods-title {
- white-space: normal;
- word-break: break-all;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 26rpx;
- color: #333;
- line-height: 44rpx;
- }
- .tui-goods-pip{
- white-space: normal;
- word-break: break-all;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- font-size: 24rpx;
- color: #999;
- line-height: 44rpx;
- }
- .tui-goods-ediet{
- width: 60rpx;
- height: 60rpx;
- background: linear-gradient(90deg,rgba(122,165,250,1) 0%,rgba(87,110,250,1) 100%);
- border-radius: 50%;
- line-height: 60rpx;
- text-align: center;
- position: absolute;
- right: 0;
- top: 50%;
- .icon-bianji1 {
- flex-shrink: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #FFFFFF;
- font-size: 24rpx;
- }
- }
- .tui-goods-model {
- max-width: 100%;
- color: #FFFFFF;
- background: #4688fa;
- border-radius: 40rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding: 0 20rpx;
- box-sizing: border-box;
- margin-top: 10rpx;
- }
-
- .tui-model-text {
- max-width: 100%;
- transform: scale(0.9);
- transform-origin: 0 center;
- font-size: 24rpx;
- line-height: 40rpx;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .tui-price-box {
- width: 100%;
- display: flex;
- align-items: flex-end;
- justify-content: space-between;
- }
-
- .tui-goods-price {
- font-size: $font-size-28;
- font-weight: 500;
- color: #FF201F;
- }
- .tui-popup-box {
- position: relative;
- box-sizing: border-box;
- min-height: 200rpx;
- padding:6rpx 24rpx;
- }
- .tui-popup-btn {
- width: 100%;
- height: auto;
- float: left;
- box-sizing: border-box;
- padding: 0 75rpx;
- margin-top: 30rpx;
- .tui-button{
- width: 600rpx;
- height: 88rpx;
- background: #e1e1e1;
- line-height: 88rpx;
- text-align: center;
- color: #FFFFFF;
- font-size: $font-size-28;
- border-radius: 44rpx;
- &.active{
- background: $btn-confirm;
- }
- }
- }
- </style>
|