123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911 |
- <template>
- <view class="container" :style="{paddingTop:navbarHeight+'px'}">
- <!-- 自定义返回 -->
- <header-back :systeminfo='systeminfo' :navbar-data='nvabarData' :headerBtnPosi ="headerBtnPosi" :isDelete="isDelete" @goSearchPath="handlSearchPath"></header-back>
- <view class="order-section-top" :style="{marginTop:navbarHeight+'px'}">
- <scroll-view scroll-x scroll-with-animation class="tab-view" :scroll-left="scrollLeft">
- <view v-for="(item,index) in orderTabBar" :key="index" class="tab-bar-item" :class="[currentTab==index ? 'active' : '']"
- :data-current="index" @tap.stop="onClickTab">
- <text class="tab-bar-title">{{item.text}}</text>
- </view>
- </scroll-view>
- </view>
- <swiper class="tab-content" :current="currentTab" duration="80" @animationfinish="onChange" :style="{height:winHeight+'px'}" >
- <swiper-item v-for="(tabItem,index) in orderTabBar" :key="index">
- <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="false" :loadingType="5"></tui-skeleton>
- <scroll-view scroll-y class="scoll-y tui-skeleton" @scrolltolower="scrolltolower" >
- <view :class="{'tui-order-list':scrollTop >= 0}" class="tui-skeleton clearfix">
- <!-- 空白页 -->
- <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0" :typeIndex="currentTab" :navbarHeight="navbarHeight"></empty>
- <!-- 列表 -->
- <template v-else >
- <view class="tui-order-content" v-if="isRequest && isEmpty">
- <view class="tui-order-item" v-for="(order,orderIndex) in tabItem.orderList" :key="orderIndex" >
- <view class="order-title">
- <view class="order-title-name">{{order.clubName}}</view>
- <view class="order-title-t">
- <text class="bage-text tui-skeleton-fillet"><text class="text">订单编号:</text>{{order.orderNo}}</text>
- </view>
- <view class="order-title-b">
- <view class="order-title-btxt tui-skeleton-fillet"><text class="text">下单时间:</text>{{order.orderTime}}</view>
- <view class="order-title-tip tui-skeleton-fillet">{{ StateExpFormat(order.status) }}</view>
- </view>
- </view>
- <block v-for="(shop,sindex) in order.shopOrderList" :key="sindex">
- <view class="goods-title">
- <view class="title-logo"><image :src="shop.shopLogo" mode=""></image></view>
- <view class="title-text tui-skeleton-fillet">{{shop.shopName}}</view>
- </view>
- <view class="goods-item" v-for="(pros,prosIndex) in shop.orderProductList" :key="prosIndex" @click.stop="detail(order.orderId)">
- <view class="goods-pros-t">
- <view class="pros-img tui-skeleton-fillet">
- <image :src="pros.productImage" alt="" />
- <text class="tips" v-if="pros.productType ==2 || pros.productType ==1">赠品</text>
- </view>
- <view class="pros-product clearfix">
- <view class="producttitle tui-skeleton-fillet">{{pros.name}}</view>
- <view class="productspec tui-skeleton-fillet" v-if="pros.productCategory!=2">规格:{{pros.productUnit}}</view>
- <view class="productprice">
- <view class="price " v-if="pros.productType ==2 || pros.productType ==1">
- <text>¥0.00</text>
- </view>
- <view class="price tui-skeleton-fillet" v-else :class="PromotionsFormat(pros.productPromotion) ? 'disabled' : ''">
- <text>¥{{pros.price | NumFormat}}</text>
- </view>
- <view class="count tui-skeleton-fillet">
- <text class="small">x</text>{{pros.num}}
- </view>
- </view>
- <view class="floor-item-act" v-if=" pros.productPromotion!=null ">
- <view v-if="PromotionsFormat(pros.productPromotion)" class="floor-tags">
- {{pros.productPromotion.name}}
- <text v-if ="pros.productPromotion!=null && pros.productPromotion.type !=3">
- :¥{{ pros.productPromotion == null ? '0.00' : pros.productPromotion.touchPrice | NumFormat}}
- </text>
- </view>
- <view v-else-if="pros.productPromotion.type !=3" class="floor-tags">{{pros.productPromotion.name}}</view>
- </view>
- </view>
- </view>
- </view>
- </block>
- <view class="order-footer">
- <view class="order-footer-top" v-if="order.discountFee!=0">经理折扣:¥{{order.discountFee | NumFormat}}</view>
- <view class="order-footer-bot">
- <view class="count tui-skeleton-fillet">共{{order.productCount}}件商品</view>
- <view class="money tui-skeleton-fillet" v-if="order.status==31||order.status==32||order.status==33">已支付:<label style="color:#f94b4b ;">¥{{ order.receiptAmount | NumFormat }}</label></view>
- <view class="money tui-skeleton-fillet" v-else>待付总额:<label style="color:#f94b4b ;">¥{{ order.pendingPayments | NumFormat }}</label></view>
- </view>
- </view>
- <!-- 底部button -->
- <order-button ref="orderButton"
- :status="order.status"
- :order="order"
- @buttonConfirm="handButtonConfirm">
- </order-button>
- </view>
- <tui-loadmore :visible="true" text="加载更多..." v-if="loadding"></tui-loadmore>
- <tui-nomore :visible="true" :text="nomoreText" v-else></tui-nomore>
- </view>
- </template>
- </view>
- </scroll-view>
- </swiper-item>
- </swiper>
- <!-- 付款弹窗 -->
- <order-model v-if="isPayModel"
- :payModelData="payModelData"
- :modelType='modelType'
- @cancelConfirm = "hanldCancelConfirm"
- @paymentConfirm ='hanldPaymentConfirm'/>
-
- <!-- 分享弹窗 -->
- <!-- 操作弹窗 -->
- <tui-modal :show="modal" @click="handleClick" @cancel="hideMobel" :content="contentModalText" color="#333" :size="32" shape="circle" :maskClosable="false"></tui-modal>
- <!-- 分享弹窗 -->
- <share-alert v-if="isShareModal" :orderID="btnoRderID" @shareConfirm ='onShareAppMessage' />
- <!-- 透明模态层 -->
- <modal-layer v-if='isModalLayer'></modal-layer>
- </view>
- </template>
- <script>
- import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
- import btSearch from '@/components/uni-search/bt-search.vue' //搜索
- import tuiSkeleton from "@/components/tui-skeleton/tui-skeleton"
- import orderButton from '@/components/cm-module/orderDetails/orderListButton' //按钮
- import modalLayer from "@/components/modal-layer"
- import empty from "@/components/empty";
- import shareAlert from '@/components/cm-module/modelAlert/shareAlert' //分享弹窗
- import orderModel from '@/components/cm-module/modelAlert/order-alert' //付款弹窗
- export default {
- components: {
- headerBack,
- empty,
- btSearch,
- orderButton,
- tuiSkeleton,
- modalLayer,
- shareAlert,
- orderModel
- },
- data() {
- return {
- CustomBar:this.CustomBar,// 顶部导航栏高度
- orderTabBar: [{state: 0, text: '全部', orderList: []},
- {state: 1, text: '待付款', orderList: []},
- {state: 2, text: '待发货', orderList: []},
- {state: 3, text: '已发货', orderList: []},
- {state: 4, text: '退货/款', orderList: []}
- ],
- headerBtnPosi: this.setHeaderBtnPosi(), //获取设备顶部胶囊高度
- systeminfo: this.setSysteminfo(), //获取设备信息
- nvabarData: { //顶部自定义导航
- showCapsule: 1, // 是否显示左上角图标 1表示显示 0表示不显示,
- showSearch: 1,
- title: '我的订单', // 导航栏 中间的标题
- },
- winHeight: "", //窗口高度
- currentTab: 0, //预设当前项的值
- scrollLeft: 0 ,//tab标题的滚动条位置
- userId:0,
- orderData: [],
- btnoRderID: 0, //点击按钮传入的的订单ID
- pageNum: 1, //页数
- pageSize: 10, //条数
- scrollTop: 0,
- skeletonShow: true,
- isRequest:false,
- isDelete:false,
- isClickChange: false,
- isShareModal: false,//控制分享弹窗
- isModalLayer: false,
- isPayModel:false,
- loadding: false,
- pullDownOn: true,
- hasNextPage: false,
- pullFlag: true,
- navbarHeight:'',
- payModelData:{},
- hanldOrderData:{},
- modelType:0,
- nomoreText: '上拉显示更多',
- isOnloadFlag:false,
- modal:false,
- OperationType:'',
- contentModalText:'',
- listType:''
- }
- },
- computed:{
- isEmpty(){
- return this.orderTabBar[this.currentTab].orderList.length > 0
- }
- },
- onLoad(e) {
- let self = this;
- this.listType = e.listType || ''
- if(e.type ==='detele'){self.isDelete = true}
- this.storeId = uni.getStorageSync('clubInfo').storeId
- self.currentTab = e.state
- self.isOnloadFlag = true
- self.getHeaderTopHeight()//设置自定义导航高度
- // 高度自适应
- uni.getSystemInfo({
- success: function(res) {
- let calc = res.windowHeight;
- self.winHeight = calc - self.CustomBar;
- }
- });
- if(this.listType === 'store'){
- this.nvabarData.title = '门店订单列表'
- }
- },
- filters:{
- NumFormat(value) {//处理金额
- return Number(value).toFixed(2);
- },
- },
- methods: {
- goShophome(id){
- this.$api.navigateTo(`/supplier/pages/user/my-shop?shopId=${id}`)
- },
- // 滚动切换标签样式
- onChange: function(e) {
- let index = e.target.current || e.detail.current;
- if (this.isClickChange) {
- this.currentTab = index;
- this.isClickChange = false;
- return;
- }
- this.isClickChange = false;
- this.currentTab = index;
- this.checkCor();
- this.pageNum = 1
- this.loadding = false //切换时隐藏
- this.nomoreText = ''
- if(!this.isOnloadFlag){
- this.GetOrderDatainit(this.currentTab,'tabChange')
- }
- },
- // 点击标题切换当前页时改变样式
- onClickTab: function(e) {
- let tabIndex = e.target.dataset.current || e.currentTarget.dataset.current;
- if (this.currentTab === tabIndex) {
- return false;
- } else {
- this.isClickChange = true;
- this.currentTab = tabIndex
- this.pageNum = 1
- this.loadding = false //切换时隐藏
- this.GetOrderDatainit(this.currentTab)
- }
- },
- //判断当前滚动超过一屏时,设置tab标题滚动条。
- checkCor: function() {
- if (this.currentTab > 3) {
- //这里距离按实际计算
- this.scrollLeft = 300
- } else {
- this.scrollLeft = 0
- }
- },
- GetOrderDatainit(index,source){
- /**
- * @订单初始化加载 仅加载第一页码
- * @param:orderState(订单状态:0全部,1待付款,2待发货,3已发货,4退货款)
- * @param:userId(用户ID)
- * @param:pageNum(页码数)
- * @param:pageSize(每页条数)
- * @param:organizeID(全局变量组织ID)
- */
- setTimeout(()=>{
- this.skeletonShow = false
- this.isOnloadFlag = false
- },1500)
- let orderItem = this.orderTabBar[index];
- let state = orderItem.state;
- if(source === 'tabChange' && orderItem.loaded === true){
- //tab切换只有第一次需要加载数据
- return;
- }
- setTimeout(()=>{
- this.$api.getStorage().then((result) =>{
- this.organizeId = result.organizeId
- const params = {
- orderState:index,
- organizeId:this.organizeId,
- pageNum:1,
- pageSize:this.pageSize,
- }
- if(this.listType === 'store'){
- params.storeId = this.storeId
- }
- this.OrderService.QueryOrderList(params)
- .then(response =>{
- //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
- let orderList = response.data.list.filter(item=>{
- //添加不同状态下订单的表现形式
- item = Object.assign(item, this.StateExpFormat(item.state));
- return item;
- });
- orderItem.orderList =[];
- orderList.forEach(item=>{
- orderItem.orderList.push(item);
- })
- this.$set(orderItem, 'loaded', true);
- this.hasNextPage = response.data.hasNextPage;
- if(this.hasNextPage){
- this.loaddingText = '上拉加载更多'
- }else{
- this.loaddingText = '已至底部'
- }
- this.isRequest = true
- }).catch(error =>{
- this.$util.msg(error.msg,2000);
- })
- })
- }, 600);
- },
- //上拉加载
- getOnReachBottomData(index){
- this.loadding = true
- this.pageNum += 1
- this.OrderService.QueryOrderList({
- orderState:index,
- organizeId:this.organizeId,
- pageNum:this.pageNum,
- pageSize:this.pageSize
- })
- .then(response =>{
- //loaded新字段用于表示数据加载完毕,如果为空可以显示空白页
- // let orderList = response.data.list.filter(item=>{
- // //添加不同状态下订单的表现形式
- // item = Object.assign(item, this.StateExpFormat(item.state));
- // return item;
- // });
- let orderItem = this.orderTabBar[index];
- let resData = response.data.list
- this.hasNextPage = response.data.hasNextPage;
- orderItem.orderList = orderItem.orderList.concat(resData)
- this.pullFlag = false;// 防上拉暴滑
- setTimeout(()=>{this.pullFlag = true},500)
- this.loadding = false
- if(this.hasNextPage){
- this.nomoreText = '上拉显示更多'
- }else{
- this.nomoreText = '已至底部'
- }
- }).catch(error =>{
- this.$util.msg(error.msg,2000)
- })
- },
- scrolltolower() {
- if(this.hasNextPage && this.pullFlag){
- this.getOnReachBottomData(this.currentTab);
- }
- },
- detail(id) {//订单详情跳转
- this.isModalLayer = true;
- this.$api.navigateTo(`/pages/user/order/order-details?state=${this.currentTab}&orderId=${id}`)
- },
- handButtonConfirm(data) {//获取点击
- console.log(data)
- this.hanldOrder = data
- this.btnoRderID = data.orderId
- this.OperationType = data.type
- this.handShowAlert(data)
- },
- handShowAlert(data) {//执行
- switch(data.type){
- case 'cancel':
- this.modal = true;
- this.contentModalText = '确认取消该订单吗?';
- break;
- case 'delete':
- this.modal = true;
- this.contentModalText = '确认删除该订单吗?';
- break;
- case 'confirm':
- this.modal = true;
- this.contentModalText = '是否确认收货?'
- break;
- case 'query':
- this.isModalLayer = true;
- this.$api.navigateTo('/pages/user/order/order-logistics?orderId='+data.orderId)
- break;
- case 'pay':
- this.hanldOrderData = data.order;
- this.getOrderPaymentValidation(data)
- // if(data.order.onlinePayFlag == '0'){
- // this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
- // }else{
- // this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${data.order.pendingPayments}&orderId=${data.orderId}`)
- // }
- break;
- }
- },
- //监听根据付款状态做操作
- getOrderPaymentValidation(data){
- this.OrderService.OrderPaymentValidation({orderId:data.orderId}).then(response =>{
- let dataCode = response.data.code
- this.payModelData = response.data
- console.log(response);
- switch(dataCode){
- case 1:
- this.isPayModel = true;
- this.modelType = 1
- break;
- case 2:
- this.isPayModel = true;
- this.modelType = 2
- break;
- case -1:
- this.$util.modal('','订单已申请全部退款,无需再付款!','确定','',false,() =>{})
- break;
- default:
- if(response.data.onlinePayFlag == '1'){
- this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${response.data.pendingPayments}&orderId=${data.orderId}`)
- }else{
- this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
- }
- }
-
- }).catch(error =>{
- this.$util.msg(error.msg,2000)
- })
- },
- //余额抵扣跳转
- hanldPaymentConfirm(data){
- this.OrderService.OrderBalanceDeduction({orderId:data.order.orderId}).then(response =>{
- if(data.type === 2){
- this.$api.navigateTo(`/pages/user/order/success?type=success&orderId=${data.order.orderId}`)
- }else{
- if(data.order.onlinePayFlag === '1'){
- this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${data.order.pendingPayments}&orderId=${data.order.orderId}`)
- }else{
- this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.order.orderId}`)
- }
- }
- }).catch(error =>{
- this.$util.msg(error.msg,2000)
- })
- },
- //不使用余额抵扣直接跳转收银台
- hanldCancelConfirm(data){
- if(data.onlinePayFlag == '1'){
- this.$api.navigateTo(`/pages/user/order/order-payment?type=onlinePay&Amount=${this.hanldOrderData.pendingPayments}&orderId=${data.orderId}`)
- }else{
- this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderId=${data.orderId}`)
- }
- },
- //用户操作订单
- handleClick(e) {
- let index = e.index;
- if(index == 1){
- switch(this.OperationType){
- case 'delete':
- this.handOrderDetele(this.btnoRderID);
- break
- case 'cancel':
- this.handCenceConfirm(this.btnoRderID)
- break
- case 'confirm':
- this.handOrderConfirm(this.btnoRderID);
- break
- }
- }
- this.modal = false;
- },
- //确认收货
- handOrderConfirm (id){
- this.OrderService.ConfirmReceipt({orderId:id}).then(response =>{
- this.$util.msg(response.msg,2000,true,'success');
- setTimeout(() => {
- this.GetOrderDatainit(this.currentTab)
- },2000)
- }).catch(error =>{
- this.$util.msg(error.msg,2000)
- })
- },
- //删除订单
- handOrderDetele(id){
- this.OrderService.DeleteOrder({orderId:id}).then(response =>{
- this.$util.msg(response.msg,2000,true,'success');
- setTimeout(() => {
- this.GetOrderDatainit(this.currentTab)
- },2000)
- }).catch(error =>{
- this.$util.msg(error.msg,2000)
- })
- },
- //取消订单
- handCenceConfirm(id){
- this.OrderService.CancelOrder({orderId:id}).then(response =>{
- this.$util.msg(response.msg,2000,true,'success');
- setTimeout(() => {
- this.GetOrderDatainit(this.currentTab)
- },2000)
- }).catch(error =>{
- this.$util.msg(error.msg,2000)
- })
- },
- handlSearchPath(){
- this.$api.navigateTo('/pages/user/order/search-order')
- },
- //分享转发
- onShareAppMessage (res){
- this.isShareModal = false
- if (res.from === 'button') {// 来自页面内转发按钮
- }
- return {
- title: '点击查看您的订单~',
- path: `/pages/user/order/orderShareLogin?orderId=${this.btnoRderID}&organizeId=${this.organizeId}`,
- imageUrl:'https://static.caimei365.com/app/wisa/img/icon/icon-share.png'
- }
- },
- orderPriceToFixed (n){
- let price ='';
- price = n.toFixed(2);
- return price
- },
- getHeaderTopHeight (){ // 状态栏高度
- let statusBarHeight = this.systeminfo.statusBarHeight
- let headerPosi = this.headerBtnPosi
- let btnPosi = { // 胶囊实际位置,坐标信息不是左上角原点
- height: headerPosi.height,
- width: headerPosi.width,
- // 胶囊top - 状态栏高度
- top: headerPosi.top - statusBarHeight,
- // 胶囊bottom - 胶囊height - 状态栏height (现胶囊bottom 为距离导航栏底部的长度)
- bottom: headerPosi.bottom - headerPosi.height - statusBarHeight,
- // 屏幕宽度 - 胶囊right
- right: this.systeminfo.screenWidth - headerPosi.right
- }
- this.navbarHeight= headerPosi.bottom + btnPosi.bottom// 原胶囊bottom + 现胶囊bottom
- },
- setHeaderBtnPosi (){
- // 获得胶囊按钮位置信息
- let headerBtnPosi = uni.getMenuButtonBoundingClientRect();
- return headerBtnPosi
- },
- setSysteminfo (){
- let systeminfo;
- uni.getSystemInfo({ // 获取设备信息
- success: (res) => {
- systeminfo = res
- },
- })
- return systeminfo
- },
- PromotionsFormat(promo){//促销活动类型数据处理
- if(promo!=null){
- if(promo.type == 1 && promo.mode == 1){
- return true
- }else{
- return false
- }
- }
- return false
- },
- StateExpFormat(state){ //订单状态文字和颜色
- var HtmlStateText = '',
- stateTextObject={
- 4:'交易完成',
- 5:'订单完成',
- 6:'已关闭',
- 7:'交易全退',
- 77:'交易全退',
- 11:'待付款待发货',
- 12:'待付款部分发货',
- 13:'待付款已发货',
- 21:'部分付款待发货',
- 22:'部分付款部分发货',
- 23:'部分付款已发货',
- 31:'已付款待发货',
- 32:'已付款部分发货',
- 33:'已付款已发货',
- 111:'待付款待发货'
- };
- Object.keys(stateTextObject).forEach(function(key){
- if(key == state){
- HtmlStateText = stateTextObject[key]
- }
- });
- return HtmlStateText;
- }
- },
- onPageScroll(e) {
- this.scrollTop = e.scrollTop;
- },
- onShow() {
- this.isModalLayer = false;
- this.GetOrderDatainit(this.currentTab)
- // console.log(this.orderTabBar)
- }
- }
- </script>
- <style lang="scss">
- /*tabbar start*/
- ::-webkit-scrollbar {
- width: 0;
- height: 0;
- color: transparent;
- }
- .order-section-top{
- width: 100%;
- position: fixed;
- top: 0;
- left: 0;
- z-index: 99;
- background: #FFFFFF;
- }
- .tab-view::before {
- content: '';
- position: absolute;
- border-bottom: 1rpx solid #eaeef1;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- bottom: 0;
- right: 0;
- left: 0;
- }
- .tab-view {
- width: 100%;
- height: 80rpx;
- overflow: hidden;
- box-sizing: border-box;
- background: #fff;
- white-space: nowrap;
- border-top: 1px solid #F7F7F7;
- }
- .tab-bar-item {
- padding: 0;
- height: 80rpx;
- min-width: 90rpx;
- line-height: 80rpx;
- margin: 0 28rpx;
- display: inline-block;
- text-align: center;
- box-sizing: border-box;
- }
- .tab-bar-title {
- height: 80rpx;
- line-height: 80rpx;
- font-size:$font-size-28;
- color: $text-color;
- }
- .active {
- border-bottom: 6rpx solid #c4761f;
- }
- .active .tab-bar-title {
- color:#c4761f !important;
- }
- /*tabbar end*/
- .scoll-y {
- height: 100%;
- }
- page{
- background: #F7F7F7;
- }
- .container {
- height: 100vh;
- box-sizing: border-box;
- // padding-bottom: env(safe-area-inset-bottom);
- // height: auto;
- position: relative;
- }
- .tui-order-content{
- width: 100%;
- height: auto;
- }
- .tui-order-list {
- margin-top: 90rpx;
- width: 100%;
- position: relative;
- }
- .tui-order-item {
- display: flex;
- flex-direction: column;
- width: 702rpx;
- padding:20rpx 24rpx 0 24rpx;
- background: #fff;
- border-bottom: 20rpx solid #F7F7F7;
- }
- .order-title{
- width: 100%;
- height: auto;
- padding-bottom: 20rpx;
- border-bottom: 1px solid #e1e1e1;
- .order-title-name{
- width: 100%;
- height: 48rpx;
- line-height: 48rpx;
- text-align: left;
- font-size: $font-size-28;
- color: #333333;
- }
- .order-title-t{
- width: 100%;
- height: 48rpx;
- float: left;
- line-height: 48rpx;
- position: relative;
- .bage-icon{
- width: 50rpx;
- height: 50rpx;
- display: block;
- position: absolute;
- right: 0;
- top: 9rpx;
- }
- .bage-text{
- display: inline-block;
- font-size: $font-size-28;
- line-height: 48rpx;
- text-align: left;
- color: $text-color;
- .text{
- color: #999999;
- }
- }
- }
- .order-title-b{
- width: 100%;
- height: 48rpx;
- float: left;
- margin-top: 8rpx;
- .order-title-btxt{
- float: left;
- font-size: $font-size-28;
- line-height: 48rpx;
- color: $text-color;
- text-align: left;
- .text{
- color: #999999;
- }
- }
- .order-title-tip{
- float: right;
- font-size: $font-size-28;
- line-height: 48rpx;
- text-align: right;
- color: #FF2A2A;
- }
- }
- }
- .goods-title{
- width: 100%;
- height: 56rpx;
- float: left;
- margin-top:10rpx;
- .title-logo{
- width: 56rpx;
- height: 56rpx;
- float: left;
- box-sizing: border-box;
- margin-right: 10rpx;
- border: 1px solid #e1e1e1;
- image{
- width: 56rpx;
- height: 56rpx;
- display: block;
- }
- }
- .title-text{
- width: 400rpx;
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- float: left;
- font-size: $font-size-28;
- color: $text-color;
- text-align: left;
- line-height: 56rpx;
- font-weight: bold;
- }
- }
- .goods-item{
- width: 100%;
- height: auto;
- }
- .goods-pros-t{
- width: 100%;
- height: auto;
- padding:24rpx 0;
- .pros-img{
- float: left;
- width: 210rpx;
- height: 100%;
- border-radius: 10rpx;
- margin:0 26rpx 0 0;
- position: relative;
- .tips{
- display: inline-block;
- width: 80rpx;
- height: 40rpx;
- background-image: linear-gradient(214deg, #ff4500 0%, #ff5800 53%, #ff4367 100%);
- line-height: 40rpx;
- text-align: center;
- font-size: $font-size-24;
- color: #FFFFFF;
- border-radius:10rpx 0 10rpx 0 ;
- position: absolute;
- top:0;
- left: 0;
- }
- image{
- width: 210rpx;
- height: 210rpx;
- border-radius: 10rpx;
- border:1px solid #f3f3f3;
- }
- }
- }
- .pros-product{
- width: 460rpx;
- height: 100%;
- line-height: 36rpx;
- font-size: $font-size-26;
- position: relative;
- float: left;
- .producttitle{
- width: 100%;
- display: inline-block;
- height: auto;
- text-overflow:ellipsis;
- display: -webkit-box;
- word-break: break-all;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- margin-bottom: 8rpx;
- }
- .productspec{
- height: 36rpx;
- color: #999999;
- margin: 10rpx 0;
- }
- .productprice{
- height: 48rpx;
- width: 100%;
- float: left;
- .price{
- line-height: 48rpx;
- font-size: $font-size-28;
- width: 48%;
- color: #FF2A2A;
- float: left;
- font-weight: bold;
- &.disabled{
- color: #999999;
- text-decoration: line-through;
- }
- }
- .count{
- height: 100%;
- float: right;
- position: relative;
- .small{
- color: #666666;
- }
- }
- }
- .floor-item-act{
- width: 100%;
- height: 56rpx;
- text-align: center;
- box-sizing: border-box;
- float: left;
- padding:0 0 10rpx 0;
- .floor-tags{
- height: 28rpx;
- border-radius: 6rpx;
- background-color: #FFFFFF;
- line-height: 28rpx;
- color: #ff2a2a;
- text-align: center;
- display: inline-block;
- padding:0 5rpx;
- font-size: $font-size-20;
- border: 1px solid #ff2a2a;
- float: left;
- }
- }
- }
- .order-footer{
- width: 100%;
- height: 78rpx;
- float: left;
- margin-top: 20rpx;
- .order-footer-top{
- width: 100%;
- height: 34rpx;
- line-height: 34rpx;
- font-size: $font-size-24;
- color: #999999;
- text-align: right;
- }
- .order-footer-bot{
- width: 100%;
- float: left;
- height: 48rpx;
- line-height: 48rpx;
- font-size: $font-size-28;
- color: $text-color;
- .count{
- width: 50%;
- float: left;
- text-align: left;
- font-weight: bold;
- }
- .money{
- width: 50%;
- float: right;
- text-align: right;
- }
- }
- }
- </style>
|