1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171 |
- <template>
- <view class="container mine clearfix">
- <view class="tui-header-box first"
- :style="{ height: CustomBar + 6 + 'px' }">
- <view class="header-top" :style="{ paddingTop: top + 'px', lineHeight: CustomBar + 20 + 'px' }"></view>
- <view class="header-sit">
- <text class="iconfont icon-fanhui" @click.stop="this.$api.navigateBack(1)"></text>
- <text class="header-sit-text">收款列表</text>
- <text class="iconfont icon-iconfonticonfontsousuo1" @click.stop="rDrawer"></text>
- </view>
- </view>
- <view class="tui-header-tabs day clearfix" :style="{ top: CustomBar + 6 + 'px' }">
- <view class="main one">
- <view class="main-item one" v-for="(item, index) in listTabs" :key="index"
- :class="{ active: currents == index }" @click="tabClick(1, index, item.type)">
- <view class="text">{{ item.name }}</view>
- </view>
- </view>
- <view class="main day" v-if="currents == 0">
- <view class="main-item tab" v-for="(item, index) in listTabsType" :key="index"
- :class="{ tabActive: tabCurrents == index }" @click="tabClick(2, index, item.type)">
- <view class="text">{{ item.name }}</view>
- </view>
- </view>
- <view class="main day" v-if="currents == 1">
- <view class="main-item tab small" v-for="(item, index) in listNoTbasType" :key="index"
- :class="{ tabActive: tabCurrents == index }" @click="tabClick(3, index, item.type)">
- <view class="text">{{ item.name }}</view>
- </view>
- </view>
- <view class="main day" v-if="currents == 2 || currents == 3">
- <view class="main-item tab" v-for="(item, index) in listReturnType" :key="index"
- :class="{ tabActive: tabCurrents == index }" @click="tabClick(2, index, item.type)">
- <view class="text">{{ item.name }}</view>
- </view>
- </view>
- </view>
- <tui-skeleton v-if="skeletonShow" backgroundColor="#fafafa" borderRadius="10rpx" :isLoading ="true" :loadingType="7"></tui-skeleton>
- <view class="user-section" v-else :style="{
- top: CustomBar + 105 + 'px',
- left: 0 + 'px'
- }">
- <view class="header-content">
- <view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
- <!-- 空白页 -->
- <empty v-if="isEmpty" :typeIndex="currents" :navbarHeight="navbarHeight"></empty>
- <!-- 列表 -->
- <view v-else class="tui-order-content">
- <view class="tui-order-item" v-for="(receipt, payIndex) in payList" :key="payIndex">
- <view class="list-title" @click.stop="receiptDetail(receipt)">
- <view class="list-title-t">
- <view class="list-title-tip">
- <text class="badges">{{ receipt.receiptType | formatReceiptType }}</text>
- <text class="badgesa" v-if="receipt.receiptType == 2">
- {{ receipt.newReceiptType | formatNewReceiptType }}
- </text>
- </view>
- <view class="list-title-num" :style="{ color: formatColor(receipt.receiptStatus) }">{{
- receipt.receiptStatusText
- }}</view>
- </view>
- <view class="list-title-b">
- 收款金额:<text class="text">¥{{ receipt.receiptAmount | NumFormat }}</text>
- </view>
- <view class="list-title-b" v-if="receipt.associateAmount">
- 关联金额:<text class="text">¥{{ receipt.associateAmount | NumFormat }}</text>
- </view>
- <view class="list-title-b">
- 收款类型:<text class="text">{{ receipt.payTypeText }}</text>
- </view>
- <view class="list-title-b">
- 收款时间:<text class="text">{{ receipt.receiptDate }}</text>
- </view>
- <view class="list-title-b" v-if="receipt.reviewDate">
- 审核时间:<text class="text">{{ receipt.reviewDate }}</text>
- </view>
- <view class="list-title-b" v-if="userName">
- 客户名称:<text class="text">{{ receipt.userName }}</text>
- </view>
- <template v-if="receipt.smsContent">
- <view class="list-title-b">收款短信:</view>
- <view class="list-title-b sms">
- <text class="text">{{ receipt.smsContent }}</text>
- </view>
- </template>
- </view>
- <button class="list-shaore"
- open-type="share"
- :data-receipt="receipt"
- v-if="USER_TYPE!=1 && receipt.receiptType !=3 "
- >
- <text class="iconfont icon-fenxiang"></text>
- </button>
- <!-- 底部button -->
- <list-button ref="listButton" :status="receipt.receiptStatus" :dataInfo="receipt" v-if="handlebBtnVisible"
- @buttonConfirm="handButtonConfirm">
- </list-button>
- </view>
- <!--加载loadding-->
- <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
- <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text="nomoreText"></tui-nomore>
- <!--加载loadding-->
- </view>
- </view>
- </view>
- </view>
- <!-- 口头返佣按钮 -->
- <view class="tui-icon-button" v-if="currents == 2 && returnBtnVisible" @click="toNoSms('/pages/relation/return/list')">
- <text class="iconfont icon-jiahao"></text>
- </view>
- <!--右抽屉-->
- <tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
- <view class="d-container clearfix" :style="{ paddingTop: CustomBar + 10 + 'px' }">
- <view class="drawer-main">
- <view class="drawer-main-name">日期</view>
- <view class="drawer-main-time">
- <view class="drawer-main-time-input">
- <picker mode="date" :value="date" :start="startDate" :end="endDate"
- @change="bindStartDateChange">
- <text class="input-text">{{ listQuery.startDate }}</text>
- </picker>
- <text class="iconfont icon-riqi"></text>
- </view>
- <view class="line">-</view>
- <view class="drawer-main-time-input">
- <picker mode="date" :value="date" :start="startDate" :end="endDate"
- @change="bindEndDateChange">
- <text class="input-text">{{ listQuery.endDate }}</text>
- </picker>
- <text class="iconfont icon-riqi"></text>
- </view>
- </view>
- <view class="drawer-main-name">收款短信(全匹配)</view>
- <view class="drawer-main-textarea">
- <textarea class="textarea" placeholder="收款短信内容..." v-model="listQuery.smsContent" />
- </view>
- </view>
- <view class="drawer-input btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
- <view class="drawer-btn clear" @click="closeDrawer">取消</view>
- <view class="drawer-btn comfrim" @click="handSearchConfirm">确定</view>
- </view>
- </view>
- </tui-drawer>
- <!-- 弹窗 -->
- <tui-modal :show="modal" @click="handleClick" @cancel="hideMobel" :content="contentModalText" color="#333"
- :size="32" shape="circle" :maskClosable="false"></tui-modal>
- <!--设非订单款项弹窗 -->
- <tui-modal :show="modal1" :padding="'40rpx 30rpx'" @cancel="hideMobel1" :custom="true" fadeIn >
- <view class="tui-modal-custom">
- <view class="tui-prompt-title">非订单款项</view>
- <view class="tui-prompt-textarea" >
- <textarea
- :class="modal1 ? 'show' : 'none'"
- class="textarea"
- placeholder="请填写说明(必填)"
- v-model="noOrderReason"
- />
- </view>
- <view class="tui-prompt-flex">
- <view class="btn btn-cancel" @click="hideMobel1">取消</view>
- <view class="btn btn-confirm" @click="handleClick1">确定</view>
- </view>
- </view>
- </tui-modal>
- </view>
- </template>
- <script>
- import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
- import listButton from '@/components/cm-module/orderDetails/list-button' //按钮
- import modalLayer from '@/components/modal-layer'
- import empty from '@/components/empty'
- import {
- defaultAllTabs,
- defaultServiceTabs ,
- listTabsType,
- listReturnType,
- listNoTbasType
- } from '@/utils/config.tabs.js'
- import {
- mapState,
- mapMutations
- } from 'vuex'
- const defaultListQuery = {
- endDate : '',//筛选结束时间
- pageNum:1, //页码
- pageSize:10, //每页数量
- receiptStatus:0, //收款状态:0全部 1待确认、2已确认(待审核)、3审核通过、4审核未通过、5收款撤销【线上支付成功为审核通过】
- receiptType:1, //收款款项类型:1订单款,2非订单款,3返佣款 , 5供应商退款
- smsContent:'', //收款短信
- startDate:''//筛选开始时间
- }
- export default {
- components: {
- listButton,
- empty
- },
- data() {
- const currentDate = this.getDate({
- format: true
- })
- return {
- CustomBar: this.CustomBar, // 顶部导航栏高度
- isIphoneX: this.$store.state.isIphoneX,
- skeletonShow:true,
- listTabs: [],// 收款款项类型
- listTabsType: listTabsType, //收款状态:
- listReturnType: listReturnType, //收款状态:
- listNoTbasType: listNoTbasType, //非订单筛选类别:
- date: currentDate,
- currents: 0,
- tabCurrents: 0,
- listQuery: Object.assign({}, defaultListQuery),
- operateParams:{
- id : 0,
- receiptType: 0,
- delFlag:0,
- },
- payList: [],
- noOrderReason:'',//设置费订单款备注
- scrollTop: 0,
- isEmpty: false,
- loadding: false,
- pullUpOn: true,
- hasNextPage: false,
- pullFlag: true,
- navbarHeight: '',
- nomoreText: '上拉显示更多',
- contentModalText: '', //操作文字提示语句
- modal: false,
- modal1: false,
- rightDrawer: false,
- hanldReceipt: {}, //储存监听收款信息
- handleOperId: 0, //操作类型
- height: 64, //header高度
- top: 0, //标题图标距离顶部距离
- scrollH: 0, //滚动总高度
- opcity: 1
- }
- },
- onLoad() {
- let obj = {}
- uni.getSystemInfo({
- success: res => {
- this.width = obj.left || res.windowWidth
- this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight + 44
- this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res.statusBarHeight + 6
- this.scrollH = res.windowWidth * 0.6
- }
- })
- },
- computed: {
- ...mapState(['USER_TYPE','handlebBtnVisible','returnBtnVisible','handleListTabs']),
- startDate() {
- return this.getDate('start')
- },
- endDate() {
- return this.getDate('end')
- },
-
- },
- methods: {
- async initGetStotage() {
- this.listTabs = this.handleListTabs
- this.getOrderDatainit()
- },
- getOrderDatainit() {
- this.initListQuery()
- this.OrderService.orderReceiptList(this.listQuery)
- .then(response => {
- let data = response.data
- if (data.list && data.list.length > 0) {
- this.isEmpty = false
- this.hasNextPage = response.data.hasNextPage
- this.payList = data.list
- this.pullFlag = false
- setTimeout(() => {
- this.pullFlag = true
- }, 500)
- if (this.hasNextPage) {
- this.pullUpOn = false
- this.nomoreText = '上拉显示更多'
- } else {
- if (this.payList.length < 4) {
- this.pullUpOn = true
- this.loadding = false
- } else {
- this.pullUpOn = false
- this.loadding = false
- this.nomoreText = '已至底部'
- }
- }
- } else {
- this.isEmpty = true
- }
- this.skeletonShow = false
- })
- .catch(error => {
- this.$util.msg(error.msg, 2000)
- })
- },
- getOnReachBottomData() {
- //上拉加载
- this.listQuery.pageNum += 1
- this.OrderService.orderReceiptList(this.listQuery).then(response => {
- let data = response.data
- if (data.list && data.list.length > 0) {
- this.hasNextPage = data.hasNextPage
- this.payList = this.payList.concat(data.list)
- this.pullFlag = false // 防上拉暴滑
- setTimeout(() => {
- this.pullFlag = true
- }, 500)
- if (this.hasNextPage) {
- this.pullUpOn = false
- this.nomoreText = '上拉显示更多'
- } else {
- this.pullUpOn = false
- this.loadding = false
- this.nomoreText = '已至底部'
- }
- }
- })
- .catch(error => {
- this.$util.msg(error.msg, 2000)
- })
- },
- receiptDetail(receipt) {
- switch(receipt.receiptType){
- case 1:// 1:订单 1待确认、2已确认(待审核)、3审核通过、4审核未通过、5收款撤销【线上支付成功为审核通过】
- if(receipt.receiptStatus == 1 || receipt.receiptStatus == 4 || receipt.receiptStatus == 5){// 订单待确认
- this.$api.navigateTo(`/pages/relation/ordinary/index?id=${receipt.id}`)
- }else if(receipt.receiptStatus == 2){// 待审核
- this.$api.navigateTo(`/pages/relation/ordinary/examine-detail?id=${receipt.id}`)
- }else if(receipt.receiptStatus == 3){// 审核通过
- this.$api.navigateTo(`/pages/relation/ordinary/detail?id=${receipt.id}`)
- }
- break
- case 2:// 2:非订单
- this.$api.navigateTo(`/pages/relation/nonorder/detail?id=${receipt.id}`)
- break
- case 3:// 3:返佣
- if(receipt.receiptStatus == 1 || receipt.receiptStatus == 4 || receipt.receiptStatus == 5){// 返佣待确认
- this.$api.navigateTo(`/pages/relation/return/index?id=${receipt.id}`)
- }else if(receipt.receiptStatus == 2){
- this.$api.navigateTo(`/pages/relation/return/detail?id=${receipt.id}`)
- }
- break
- case 5:// 4:供应商退款
- if(receipt.receiptStatus == 1 || receipt.receiptStatus == 4 || receipt.receiptStatus == 5){// 返佣待确认
- this.$api.navigateTo(`/pages/relation/refund/index?id=${receipt.id}`)
- }else if(receipt.receiptStatus == 2){
- this.$api.navigateTo(`/pages/relation/refund/detail?id=${receipt.id}`)
- }
- break
- }
- },
- handButtonConfirm(data) {
- //获取点击操作
- console.log('data',data)
- this.handShowAlert(data.handleAction,data.receipt)
- },
- handShowAlert(handleAction,receipt) {
- //执行
- switch (handleAction.handleId) {
- case 0: // 作废
- this.contentModalText = '该款项将作废,请重新识别收款短信!'
- this.modal = true
- break
- case 1:// 设为普通款
- this.contentModalText = '确认将该款项设为普通款项?'
- this.modal = true
- break
- case 2:// 设为非订单款
- this.$api.navigateTo(`/pages/relation/nonorder/add?id=${receipt.id}`)
- break
- case 3:// 设为返佣款
- this.contentModalText = '确认将该款项设为返佣款项?'
- this.modal = true
- break
- case 4:// 设为供应商退款
- this.contentModalText = '确认将该款项设为供应商退款?'
- this.modal = true
- break
- }
- this.hanldReceipt = receipt
- this.handleOperId = handleAction.handleId
- },
- handleClick(e) {
- // 确定操作
- let index = e.index
- if (index == 1) {
- switch (this.handleOperId) {
- case 0: // 作废
- this.handReceiptConfirm(this.handleOperId,this.hanldReceipt)
- break
- case 1: // 设为普通款
- this.handReceiptConfirm(this.handleOperId,this.hanldReceipt)
- break
- case 3: // 设为返佣款
- this.handReceiptConfirm(this.handleOperId,this.hanldReceipt)
- break
- case 4: // 设为供应商退款
- this.handReceiptConfirm(this.handleOperId,this.hanldReceipt)
- break
- }
- }
- this.modal = false
- },
- handleClick1(){
- // 确认设为非订单款项
- console.log('handleOperId',this.handleOperId)
- console.log('hanldReceipt',this.hanldReceipt)
- if(this.noOrderReason == ''){
- this.$util.msg('请输入设为非订单款项说明!', 2000)
- return
- }
- this.modal1 = false
- this.handReceiptConfirm(this.handleOperId,this.hanldReceipt)
- },
- handReceiptConfirm(handleOperId,hanldReceipt) {
- //操作款项
- this.operateParams.id = hanldReceipt.id
- switch (this.handleOperId) {// 设置接口参数
- case 0: // 作废
- this.operateParams.delFlag = 1
- this.operateParams.receiptType = hanldReceipt.receiptType
- break
- case 1: // 设为普通款
- this.operateParams.receiptType = 1
- break
- case 2: // 设为非订单款
- this.operateParams.receiptType = 2
- this.operateParams.noOrderReason = this.noOrderReason
- break
- case 3: // 设为返佣款
- this.operateParams.receiptType = 3
- break
- case 4: // 设为供应商退款
- this.operateParams.receiptType = 5
- break
- }
- this.OrderService.orderReceiptOperate(this.operateParams)
- .then(response => {
- this.$util.msg(response.msg, 2000, true, 'success')
- setTimeout(() => {
- this.getOrderDatainit()
- }, 2000)
- })
- .catch(error => {
- this.$util.msg(error.msg, 2000)
- })
- },
- handSearchConfirm(){
- this.getOrderDatainit()
- this.rightDrawer = false
- },
- hideMobel() {
- this.modal = false
- },
- hideMobel1(){
- this.modal1 = false
- },
- formatColor(state) {
- //设置邀请码状态亚瑟
- let stateColor = '',
- stateColorObject = {
- 1: '#ff7900',
- 2: '#4cd964',
- 3: '#19be6b',
- 4: '#ed3f14',
- 5: '#F74D54'
- }
- Object.keys(stateColorObject).forEach(function(key) {
- if (key == state) {
- stateColor = stateColorObject[key]
- }
- })
- return stateColor
- },
- getDate(type) {
- const date = new Date()
- let year = date.getFullYear()
- let month = date.getMonth() + 1
- let day = date.getDate()
- if (type === 'start') {
- year = year - 1
- } else if (type === 'end') {
- year = year + 1
- }
- month = month > 9 ? month : '0' + month
- day = day > 9 ? day : '0' + day
- return `${year}-${month}-${day}`
- },
- bindStartDateChange(event) {
- //开始时间
- this.listQuery.startDate = event.detail.value
- },
- bindEndDateChange(event) {
- //结束时间
- this.listQuery.endDate = event.detail.value
- },
- rDrawer() {
- //弹出抽屉
- this.rightDrawer = true
- },
- closeDrawer(e) {
- //关闭抽屉
- this.rightDrawer = false
- },
- tabClick(num, index, type) {
- switch (num) {
- case 1:// 订单款
- this.isEmpty = false
- this.pullUpOn = true
- this.currents = index
- this.listQuery.receiptType = type
- this.listQuery.receiptStatus = 0
- this.listQuery.startDate = ''
- this.listQuery.endDate = ''
- this.listQuery.smsContent = ''
- this.listQuery.newReceiptType = ''
- this.getOrderDatainit()
- this.tabCurrents = 0
- break
- case 2:
- this.isEmpty = false
- this.pullUpOn = true
- this.tabCurrents = index
- this.listQuery.startDate = ''
- this.listQuery.endDate = ''
- this.listQuery.smsContent = ''
- this.listQuery.receiptStatus = type
- this.getOrderDatainit()
- break
- case 3:// 非订单款类别选项
- this.isEmpty = false
- this.pullUpOn = true
- this.tabCurrents = index
- this.listQuery.startDate = ''
- this.listQuery.endDate = ''
- this.listQuery.smsContent = ''
- this.listQuery.newReceiptType = type
- this.getOrderDatainit()
- break
- }
- },
- toNoSms(url) {
- this.$api.navigateTo(url)
- },
- navBack() {
- uni.navigateBack({
- delta: 1
- })
- },
- initListQuery(){// 初始化
- this.payList =[]
- this.loadding = true
- this.pullUpOn = true
- this.listQuery.pageNum = 1
- },
- formatReceiptType(value) {
- //订单状态文字和颜色
- var HtmlStateText = '',
- stateTextObject = {
- 1: '订单款',
- 2: '非订单款',
- 3: '返佣款',
- 4: '订单款或者非订单款',
- 5: '供应商退款'
- }
- Object.keys(stateTextObject).forEach(function(key) {
- if (key == value) {
- HtmlStateText = stateTextObject[key]
- }
- })
- return HtmlStateText
- }
- },
- onPageScroll(e) {
- //实时获取到滚动的值
- },
- onReachBottom() {
- if (this.hasNextPage) {
- this.loadding = true
- this.pullUpOn = true
- this.getOnReachBottomData()
- }
- },
- onPullDownRefresh() {
- setTimeout(() => {
- this.getOrderDatainit()
- uni.stopPullDownRefresh()
- }, 200)
- },
- onShareAppMessage(res) {
- //分享购买优惠券
- const receipt = res.target.dataset.receipt
- const receiptTypeText = this.formatReceiptType(receipt.receiptType)
- if (res.from === 'button') {
- // console.log('来自页面内转发按钮')
- return {
- title: `¥${receipt.receiptAmount.toFixed(2)} | ${receipt.receiptDate} | ${receipt.receiptStatusText}(${receiptTypeText})`,
- path: `/pages/login/login-share?id=${receipt.id}`,
- imageUrl: 'https://static.caimei365.com/app/crm/image/icon-share@2x.jpg'
- }
- }
- },
- onShow() {
- this.initGetStotage()
- }
- }
- </script>
- <style lang="scss">
- @import '@/uni.scss';
- page {
- background: #f7f7f7;
- }
- .tui-header-box {
- width: 100%;
- background: #ffffff;
- z-index: 999;
- position: fixed;
- top: 0;
- left: 0;
- background-size: cover;
- background-image: url(https://static.caimei365.com/app/crm/image/statistic_bg2.png);
- }
- .tui-header-tabs {
- width: 100%;
- height: auto;
- margin-bottom: 40rpx;
- padding: 20rpx;
- background: #4688fa;
- box-sizing: border-box;
- position: fixed;
- z-index: 999;
- border-radius: 0 0 10rpx 10rpx;
- &.day {
- background: #ffffff;
- padding: 20rpx 24rpx;
- box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
- }
- .title {
- font-size: $font-size-36;
- line-height: 60rpx;
- color: #fff;
- font-weight: bold;
- margin-bottom: 20rpx;
- }
- .main {
- width: 100%;
- height: 80rpx;
- &.day {
- height: 70rpx;
- box-sizing: border-box;
- padding: 20rpx 0;
- border-top: 1px solid #efefef;
- }
- &.one {}
- .main-item {
- float: left;
- text-align: center;
- color: #ffffff;
- box-sizing: border-box;
- &.one {
- width: 25%;
- .text {
- width: 100%;
- height: 80rpx;
- line-height: 80rpx;
- display: block;
- float: left;
- font-size: $font-size-28;
- color: #666666;
- text-align: center;
- font-weight: 600;
- font-family: '正楷';
- }
- }
- &.tab {
- width: 140rpx;
- border-radius: 8rpx;
- background: #f7f7f7;
- margin: 0 10rpx;
- padding: 0 20rpx;
- .text {
- width: 100%;
- height: 50rpx;
- line-height: 50rpx;
- display: block;
- float: left;
- font-size: $font-size-24;
- color: #666666;
- text-align: center;
- }
- &.small{
- width: auto;
- border-radius: 8rpx;
- background: #f7f7f7;
- margin: 0 10rpx;
- padding: 0 18rpx;
- .text {
- width: 100%;
- height: 50rpx;
- line-height: 50rpx;
- display: block;
- float: left;
- font-size: $font-size-22;
- color: #666666;
- text-align: center;
- }
- &.tabActive {
- .text {
- color: $btn-confirm;
- }
- }
- }
- }
- &.active {
- .text {
- color: $btn-confirm;
- font-size: $font-size-28;
- position: relative;
- &::before{
- content: '';
- width: 60rpx;
- height: 4rpx;
- background: $btn-confirm;
- position: absolute;
- left: 50%;
- bottom: 0;
- margin-left: -30rpx;
- }
- }
- }
- &.tabActive {
- .text {
- color: $btn-confirm;
- }
- }
- }
- }
- }
- .header-top {
- 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;
- color: #ffffff;
- .header-sit-text {
- text-align: left;
- font-size: $font-size-40;
- font-weight: 600;
- font-family: '正楷';
- }
- .icon-fanhui {
- display: block;
- width: 80rpx;
- height: 80rpx;
- float: left;
- text-align: center;
- line-height: 80rpx;
- font-size: 42rpx;
- }
- .icon-iconfonticonfontsousuo1 {
- font-size: 42rpx;
- margin-left: 30rpx;
- }
- }
- .mine {
- width: 100%;
- height: 100%;
- position: relative;
- }
- .user-section {
- position: absolute;
- width: 100%;
- }
- .header-content {
- width: 100%;
- height: auto;
- position: relative;
- background-color: #f7f7f7;
- .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;
- }
- }
- .uni-badge--small {
- -webkit-transform: scale(0.8);
- -ms-transform: scale(0.8);
- transform: scale(0.8);
- -webkit-transform-origin: center center;
- -ms-transform-origin: center center;
- transform-origin: center center;
- }
- .uni-badge {
- font-family: 'Helvetica Neue', Helvetica, sans-serif;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- font-size: 12px;
- line-height: 1;
- display: inline-block;
- padding: 3px 6px;
- color: #333;
- border-radius: 100px;
- background-color: #f1f1f1;
- }
- .uni-badge-error {
- color: #fff;
- background-color: #dd524d;
- }
- .tui-order-list {
- margin-top: 24rpx;
- width: 100%;
- position: relative;
- box-sizing: border-box;
- padding: 0 20rpx;
- }
- .tui-order-content {
- width: 100%;
- height: auto;
- }
- .tui-order-item {
- display: flex;
- flex-direction: column;
- width: 100%;
- padding: 20rpx 20rpx;
- background: #fff;
- margin-bottom: 24rpx;
- border-radius: 10rpx;
- position: relative;
- .list-shaore {
- width: 80rpx;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- position: absolute;
- right: 0;
- top: 0;
- background: transparent;
- border-radius: 0;
- border: 0;
- margin: 0;
- .iconfont {
- font-size: 48rpx;
- color: $color-system;
- }
- }
- }
- .list-title {
- width: 100%;
- height: auto;
- .list-title-t {
- width: 100%;
- height: 50rpx;
- float: left;
- font-size: $font-size-28;
- padding-bottom: 10rpx;
- margin-bottom: 10rpx;
- .list-title-num {
- float: left;
- text-align: left;
- color: #999999;
- margin-left: 30rpx;
- line-height: 40rpx;
- }
- .list-title-tip {
- float: left;
- .badges {
- display: block;
- float: left;
- padding: 0 15rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 6rpx;
- background: $btn-confirm;
- font-size: $font-size-24;
- text-align: center;
- color: #ffffff;
- }
- .badgesa {
- display: block;
- float: left;
- padding: 0 15rpx;
- height: 40rpx;
- line-height: 40rpx;
- border-radius: 4rpx;
- background: #7fba4f;
- font-size: $font-size-24;
- text-align: center;
- color: #ffffff;
- margin-left: 24rpx;
- }
- }
- }
- .list-title-b {
- width: 100%;
- height: 40rpx;
- float: left;
- font-size: $font-size-24;
- line-height: 40rpx;
- color: #666666;
- text-align: left;
- .text{
- color: #999999;
- }
- &.sms {
- height: auto;
- }
- }
- }
- .d-container {
- width: 580rpx;
- padding: 80rpx 0;
- .drawer-main {
- width: 100%;
- height: auto;
- box-sizing: border-box;
- float: left;
- .drawer-main-name {
- width: 100%;
- height: 80rpx;
- line-height: 80rpx;
- text-align: left;
- font-size: $font-size-26;
- color: #333333;
- box-sizing: border-box;
- padding: 0 20rpx;
- font-weight: bold;
- }
- .drawer-main-time {
- width: 100%;
- height: 56rpx;
- box-sizing: border-box;
- .line {
- color: #999999;
- float: left;
- line-height: 56rpx;
- }
- .drawer-main-time-input {
- width: 228rpx;
- height: 56rpx;
- background: #f7f7f7;
- border-radius: 28rpx;
- box-sizing: border-box;
- padding: 0 20rpx;
- line-height: 56rpx;
- float: left;
- margin: 0 20rpx;
- position: relative;
- box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
- .input-text {
- display: block;
- height: 56rpx;
- font-size: 26rpx;
- color: #666666;
- }
- .icon-riqi {
- color: $color-system;
- display: block;
- width: 40rpx;
- height: 56rpx;
- position: absolute;
- right: 10rpx;
- top: 0;
- line-height: 56rpx;
- }
- }
- }
- .drawer-main-textarea {
- width: 100%;
- height: 160rpx;
- box-sizing: border-box;
- padding: 0 20rpx;
- background: #ffffff;
- border-radius: 8rpx;
- .textarea {
- width: 100%;
- height: 100%;
- background: #f7f7f7;
- box-sizing: border-box;
- padding: 20rpx 20rpx;
- font-size: $font-size-24;
- border-radius: 8rpx;
- box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
- }
- }
- }
- .drawer-input {
- width: 100%;
- float: left;
- box-sizing: border-box;
- padding: 24rpx 10rpx 0 10rpx;
- border: 1px solid rgba(0, 0, 0, 0.2);
- border-radius: 4rpx;
- position: relative;
- background-color: #ffffff;
- &.btn {
- border: none;
- display: flex;
- position: fixed;
- left: 0;
- bottom: 0;
- }
- .drawer-btn {
- width: 210rpx;
- height: 84rpx;
- border-radius: 42rpx;
- background: $btn-confirm;
- line-height: 84rpx;
- text-align: center;
- font-size: $font-size-26;
- color: #ffffff;
- flex: 1;
- margin: 0 10rpx;
- &.comfrim {
- background: $btn-confirm;
- }
- &.clear {
- background: #f7f7f7;
- color: #999999;
- }
- }
- }
- }
- .tui-icon-button{
- width: 80rpx;
- height: 80rpx;
- line-height: 80rpx;
- text-align: center;
- border-radius: 50%;
- background: linear-gradient(45deg, #1CBBB4 0%, #0081FF 100%);
- box-shadow: 0 8rpx 8rpx 0 rgba(86, 119, 252, 0.2);
- position: fixed;
- bottom: 120rpx;
- right: 20rpx;
- .icon-jiahao{
- font-size: $font-size-44;
- color: #FFFFFF;
- }
- }
- .tui-prompt-title{
- line-height: 44rpx;
- text-align: center;
- }
- .tui-prompt-textarea{
- width: 100%;
- height: 160rpx;
- box-sizing: border-box;
- background: #f7f7f7;
- border-radius: 8rpx;
- padding:15rpx 20rpx;
- margin-top: 10rpx;
- .textarea {
- width: 100%;
- height: 100%;
- font-size: $font-size-26;
- &.none{
- display: none;
- }
- }
- }
- .tui-prompt-flex{
- width: 100%;
- height: 70rpx;
- display: flex;
- margin-top: 20rpx;
- .btn{
- flex: 1;
- line-height: 70rpx;
- font-size: $font-size-26;
- text-align: center;
- color: #FFFFFF;
- border-radius: 33rpx;
- margin: 0 24rpx;
- &.btn-cancel{
- background: #F7F7F7;
- color: #999999;
- }
- &.btn-confirm{
- background: $color-system;
- }
- }
-
- }
- </style>
|