index.vue 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546
  1. <template>
  2. <view class="container mine clearfix">
  3. <view
  4. class="tui-header-box first"
  5. :style="{ height: isCmcustomClass == 'fiexd' ? CustomBar + 6 + 'px' : CustomBar + 6 + 'px' }"
  6. :class="isCmcustomClass"
  7. >
  8. <view class="header-top" :style="{ paddingTop: top + 'px', lineHeight: CustomBar + 20 + 'px' }"></view>
  9. <view class="header-sit">
  10. <text class="iconfont icon-fanhui" @click.stop="this.$api.navigateBack(1)"></text>
  11. <text class="header-sit-text">关联订单</text>
  12. </view>
  13. </view>
  14. <view class="tui-header-tabs day clearfix" :style="{ top: CustomBar + 6 + 'px' }">
  15. <view v-if="!isShowHeader">
  16. <view class="tui-header-top">
  17. <view class="title"> 收款信息 </view>
  18. <view class="tui-header-button">
  19. <view class="button btn-confirm" @click.stop="btnConfirm"> 设为非订单款项 </view>
  20. </view>
  21. </view>
  22. <view class="tui-header-item">
  23. <view class="list-title-t">
  24. <view class="list-title-tip">
  25. <text class="badges">{{ paymentInfo.sourceType | formatSourceType }}</text>
  26. </view>
  27. <view class="list-title-num" :style="{ color: formatColor(paymentInfo.confirmType) }">{{
  28. paymentInfo.confirmType | formatStateType
  29. }}</view>
  30. </view>
  31. <view class="list-title-b">
  32. <view class="list-title-b-item ">
  33. 收款金额:<text class="text">¥{{ paymentInfo.receiptAmount | NumFormat }} </text>
  34. </view>
  35. <view class="list-title-b-item ">
  36. 收款类型:<text class="text">{{ paymentInfo.payType }}</text>
  37. </view>
  38. </view>
  39. <view class="list-title-b">
  40. 收款时间:<text class="text">{{ paymentInfo.receiptDate }}</text>
  41. </view>
  42. <template v-if="paymentInfo.smsContent">
  43. <view class="list-title-b">收款短信:</view>
  44. <view class="list-title-b sms">
  45. <text class="text">{{ paymentInfo.smsContent }}</text>
  46. </view>
  47. </template>
  48. <view class="list-icon">无人确认</view>
  49. </view>
  50. </view>
  51. <view class="tui-header-tabmain">
  52. <input
  53. class="input"
  54. type="text"
  55. confirm-type="search"
  56. @confirm="subMitSearch()"
  57. placeholder="请输入供应商名称"
  58. />
  59. <text class="iconfont icon-sousuo"></text>
  60. </view>
  61. <view class="tui-header-tabmain">
  62. <view
  63. class="main-item one"
  64. v-for="(item, index) in listTabs"
  65. :key="index"
  66. :class="{ active: currents == index }"
  67. @click="tabClick(1, index)"
  68. >
  69. <view class="text">{{ item.name }}</view>
  70. </view>
  71. </view>
  72. <view class="tui-header-tabmain day">
  73. <view
  74. class="main-item tab"
  75. v-for="(item, index) in listReturnType"
  76. :key="index"
  77. :class="{ tabActive: tabCurrents == index }"
  78. @click="tabClick(2, index)"
  79. >
  80. <view class="text">{{ item.name }}</view>
  81. </view>
  82. </view>
  83. </view>
  84. <view
  85. class="user-section"
  86. :style="{
  87. top: isIphoneX ? CustomBar + 330 + 'px' : CustomBar + 315 + 'px',
  88. left: 0 + 'px',
  89. paddingBottom: isIphoneX ? '178rpx' : '144rpx'
  90. }"
  91. >
  92. <view class="header-content">
  93. <view :class="{ 'tui-order-list': scrollTop >= 0 }" class="clearfix">
  94. <!-- 空白页 -->
  95. <empty v-if="isEmpty" :typeIndex="currents" :navbarHeight="navbarHeight"></empty>
  96. <!-- 列表 -->
  97. <view v-else class="tui-order-content">
  98. <view
  99. class="tui-order-item"
  100. v-for="(payment, payIndex) in payList"
  101. :key="payIndex"
  102. @click.stop="orderDetail(payment.id)"
  103. >
  104. <view class="list-title">
  105. <view class="list-title-t">
  106. <view class="list-title-tip">
  107. <text class="badges">{{ payment.orderType | formatOrderType }}</text>
  108. </view>
  109. <view class="list-title-num">{{ payment.confirmType | StateExpFormat }}</view>
  110. </view>
  111. <view class="list-title-b">
  112. 客户名称:<text class="text">{{ payment.userName }}</text>
  113. </view>
  114. <view class="list-title-b">
  115. 订单编号:<text class="text">{{ payment.number }} ( {{ payment.id }} )</text>
  116. </view>
  117. <view class="list-title-b">
  118. 下单日期:<text class="text">{{ payment.receiptDate }}</text>
  119. </view>
  120. <view class="list-title-b">
  121. <view class="list-title-b-item ">
  122. 订单金额:<text class="text">¥{{ payment.receiptAmount | NumFormat }}</text>
  123. </view>
  124. <view class="list-title-b-item ">
  125. 余额抵扣:<text class="text">¥{{ payment.receiptAmount | NumFormat }}</text>
  126. </view>
  127. </view>
  128. <view class="list-title-b">
  129. 经理折扣:<text class="text">¥{{ payment.receiptAmount }}</text>
  130. </view>
  131. <view class="list-title-b">
  132. <view class="list-title-b-item ">
  133. 应收金额:<text class="text">¥{{ payment.receiptAmount | NumFormat }}</text>
  134. </view>
  135. <view class="list-title-b-item ">
  136. 已收金额:<text class="text">¥{{ payment.receiptAmount | NumFormat }}</text>
  137. </view>
  138. </view>
  139. <view class="list-title-b">
  140. <view class="list-title-b-item ">
  141. 剩余应收:<text class="text">¥{{ payment.receiptAmount | NumFormat }}</text>
  142. </view>
  143. <view class="list-title-b-item ">
  144. 待审金额:<text class="text">¥{{ payment.receiptAmount | NumFormat }}</text>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="list-checked" @click="checkedOrder(payment)">
  149. <text
  150. class="iconfont"
  151. :class="payment.isChecked ? 'icon-yixuanze' : 'icon-weixuanze'"
  152. ></text>
  153. </view>
  154. <view class="list-detail" @click="handelDetail(payment)">
  155. <text class="iconfont icon-xiayibu"></text>
  156. </view>
  157. </view>
  158. <!--加载loadding-->
  159. <tui-loadmore :visible="loadding" :index="3" type="black"></tui-loadmore>
  160. <tui-nomore :visible="!pullUpOn" bgcolor="#F7F7F7" :text="nomoreText"></tui-nomore>
  161. <!--加载loadding-->
  162. </view>
  163. </view>
  164. </view>
  165. </view>
  166. <view class="distinguish-button" :style="{ paddingBottom: isIphoneX ? '68rpx' : '24rpx' }">
  167. <view class="button" @click="confirmDistinguish">确认</view>
  168. </view>
  169. <!--右抽屉-->
  170. <tui-drawer mode="right" :visible="rightDrawer" @close="closeDrawer">
  171. <view class="d-container clearfix" :style="{ paddingTop: CustomBar + 10 + 'px' }">
  172. <view class="drawer-main">
  173. <view class="drawer-main-name">日期</view>
  174. <view class="drawer-main-time">
  175. <view class="drawer-main-time-input">
  176. <picker
  177. mode="date"
  178. :value="date"
  179. :start="startDate"
  180. :end="endDate"
  181. @change="bindStartDateChange"
  182. >
  183. <text class="input-text">{{ queryData.startAddTime }}</text>
  184. </picker>
  185. <text class="iconfont icon-riqi"></text>
  186. </view>
  187. <view class="line">-</view>
  188. <view class="drawer-main-time-input">
  189. <picker
  190. mode="date"
  191. :value="date"
  192. :start="startDate"
  193. :end="endDate"
  194. @change="bindEndDateChange"
  195. >
  196. <text class="input-text">{{ queryData.endAddTime }}</text>
  197. </picker>
  198. <text class="iconfont icon-riqi"></text>
  199. </view>
  200. </view>
  201. <view class="drawer-main-name">收款短信(全匹配)</view>
  202. <view class="drawer-main-textarea">
  203. <textarea class="textarea" placeholder="请输入收款备注..." v-model="params.remarks" />
  204. </view>
  205. </view>
  206. <view class="drawer-input btn" :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }">
  207. <view class="drawer-btn clear" @click="closeDrawer">取消</view>
  208. <view class="drawer-btn comfrim" @click="handSearchConfirm">确定</view>
  209. </view>
  210. </view>
  211. </tui-drawer>
  212. <!-- 弹窗 -->
  213. <tui-modal
  214. :show="modal"
  215. @click="handleClick"
  216. @cancel="hideMobel"
  217. :content="contentModalText"
  218. color="#333"
  219. :size="32"
  220. shape="circle"
  221. :maskClosable="false"
  222. ></tui-modal>
  223. </view>
  224. </template>
  225. <script>
  226. import headerBack from '@/components/cm-module/headerNavbar/header-back' //自定义导航
  227. import modalLayer from '@/components/modal-layer'
  228. import empty from '@/components/empty'
  229. import wxLogin from '@/services/wxLogin.js'
  230. import { mapState, mapMutations } from 'vuex'
  231. const defaultListQuery = {
  232. pageNum: 1, //页数
  233. pageSize: 10, //条数
  234. orderNum: '',
  235. phone: '',
  236. date: '', //订单提交时间
  237. classification: '', //订单分类
  238. merchantId: 0,
  239. source: '' //订单来源
  240. }
  241. export default {
  242. components: {
  243. empty
  244. },
  245. data() {
  246. const currentDate = this.getDate({
  247. format: true
  248. })
  249. return {
  250. CustomBar: this.CustomBar, // 顶部导航栏高度
  251. isIphoneX: this.$store.state.isIphoneX,
  252. paymentInfo: {
  253. id: 6090,
  254. receiptAmount: 5000, //收款金额
  255. associateAmount: 5000, //关联金额
  256. payType: '广发银行-0115', //收款类型
  257. receiptDate: '2022-02-15 10:58:25', // 收款时间
  258. reviewDate: '2022-02-15 10:58:25', // 审核时间
  259. smsContent:
  260. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  261. confirmType: 0,
  262. userName: '采美网络信息有限公司',
  263. sourceType: 1,
  264. state: 1
  265. },
  266. listTabs: [
  267. {
  268. name: '商品订单',
  269. type: 1
  270. },
  271. {
  272. name: '订金订单',
  273. type: 2
  274. },
  275. {
  276. name: '小程序订单',
  277. type: 3
  278. },
  279. {
  280. name: '退款子订单',
  281. type: 4
  282. }
  283. ],
  284. listReturnType: [
  285. {
  286. name: '待确认',
  287. type: 2
  288. },
  289. {
  290. name: '已确认',
  291. type: 3
  292. }
  293. ],
  294. queryData: {
  295. startAddTime: '',
  296. endAddTime: ''
  297. },
  298. date: currentDate,
  299. listCount: {
  300. toBeClosed: 0,
  301. toBeDelivered: 0,
  302. toBePaid: 0,
  303. toBeReceived: 0,
  304. toBeSuccess: 0
  305. },
  306. currents: 0,
  307. tabCurrents: 0,
  308. userID: 0,
  309. openId: '',
  310. listQuery: Object.assign({}, defaultListQuery),
  311. payList: [
  312. {
  313. id: 6090,
  314. number: 'W164488903271223',
  315. receiptAmount: 5000, //收款金额
  316. associateAmount: 5000, //关联金额
  317. orderType: 1, //收款类型
  318. receiptDate: '2022-02-15 10:58:25', // 收款时间
  319. reviewDate: '2022-02-15 10:58:25', // 审核时间
  320. smsContent:
  321. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  322. confirmType: 11,
  323. userName: '采美网络信息有限公司',
  324. sourceType: 1,
  325. state: 1,
  326. isChecked: false
  327. },
  328. {
  329. id: 6090,
  330. number: 'W164488903271223',
  331. receiptAmount: 5000, //收款金额
  332. associateAmount: 5000, //关联金额
  333. orderType: 1, //收款类型
  334. receiptDate: '2022-02-15 10:58:25', // 收款时间
  335. reviewDate: '2022-02-15 10:58:25', // 审核时间
  336. smsContent:
  337. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  338. confirmType: 11,
  339. userName: '采美网络信息有限公司',
  340. sourceType: 2,
  341. state: 1,
  342. isChecked: false
  343. },
  344. {
  345. id: 6092,
  346. number: 'W164488903271223',
  347. receiptAmount: 5000, //收款金额
  348. associateAmount: 5000, //关联金额
  349. orderType: 2, //收款类型
  350. receiptDate: '2022-02-15 10:58:25', // 收款时间
  351. reviewDate: '2022-02-15 10:58:25', // 审核时间
  352. smsContent:
  353. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  354. confirmType: 11,
  355. userName: '采美网络信息有限公司',
  356. sourceType: 3,
  357. state: 2,
  358. isChecked: false
  359. },
  360. {
  361. id: 6092,
  362. number: 'W164488903271223',
  363. receiptAmount: 5000, //收款金额
  364. associateAmount: 5000, //关联金额
  365. orderType: 2, //收款类型
  366. receiptDate: '2022-02-15 10:58:25', // 收款时间
  367. reviewDate: '2022-02-15 10:58:25', // 审核时间
  368. smsContent:
  369. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  370. confirmType: 11,
  371. userName: '采美网络信息有限公司',
  372. sourceType: 3,
  373. state: 2,
  374. isChecked: false
  375. },
  376. {
  377. id: 6092,
  378. number: 'W164488903271223',
  379. receiptAmount: 5000, //收款金额
  380. associateAmount: 5000, //关联金额
  381. orderType: 2, //收款类型
  382. receiptDate: '2022-02-15 10:58:25', // 收款时间
  383. reviewDate: '2022-02-15 10:58:25', // 审核时间
  384. smsContent:
  385. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  386. confirmType: 11,
  387. userName: '采美网络信息有限公司',
  388. sourceType: 3,
  389. state: 2,
  390. isChecked: false
  391. },
  392. {
  393. id: 6092,
  394. number: 'W164488903271223',
  395. receiptAmount: 5000, //收款金额
  396. associateAmount: 5000, //关联金额
  397. orderType: 2, //收款类型
  398. receiptDate: '2022-02-15 10:58:25', // 收款时间
  399. reviewDate: '2022-02-15 10:58:25', // 审核时间
  400. smsContent:
  401. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  402. confirmType: 11,
  403. userName: '采美网络信息有限公司',
  404. sourceType: 3,
  405. state: 2,
  406. isChecked: false
  407. },
  408. {
  409. id: 6092,
  410. number: 'W164488903271223',
  411. receiptAmount: 5000, //收款金额
  412. associateAmount: 5000, //关联金额
  413. orderType: 2, //收款类型
  414. receiptDate: '2022-02-15 10:58:25', // 收款时间
  415. reviewDate: '2022-02-15 10:58:25', // 审核时间
  416. smsContent:
  417. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  418. confirmType: 11,
  419. userName: '采美网络信息有限公司',
  420. sourceType: 3,
  421. state: 2,
  422. isChecked: false
  423. },
  424. {
  425. id: 6092,
  426. number: 'W164488903271223',
  427. receiptAmount: 5000, //收款金额
  428. associateAmount: 5000, //关联金额
  429. orderType: 2, //收款类型
  430. receiptDate: '2022-02-15 10:58:25', // 收款时间
  431. reviewDate: '2022-02-15 10:58:25', // 审核时间
  432. smsContent:
  433. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  434. confirmType: 11,
  435. userName: '采美网络信息有限公司',
  436. sourceType: 3,
  437. state: 2,
  438. isChecked: false
  439. },
  440. {
  441. id: 6092,
  442. number: 'W164488903271223',
  443. receiptAmount: 5000, //收款金额
  444. associateAmount: 5000, //关联金额
  445. orderType: 3, //收款类型
  446. receiptDate: '2022-02-15 10:58:25', // 收款时间
  447. reviewDate: '2022-02-15 10:58:25', // 审核时间
  448. smsContent:
  449. '【中信银行】您尾号0897的中信卡于05月29日14:42,二代支付存入人民币99.00元,当前余额为人民币13871.67元。',
  450. confirmType: 11,
  451. userName: '采美网络信息有限公司',
  452. sourceType: 4,
  453. state: 2,
  454. isChecked: false
  455. }
  456. ],
  457. btnoRderID: 0, //点击按钮传入的的订单ID
  458. scrollTop: 0,
  459. deteleType: '',
  460. skeletonShow: true,
  461. isEmpty: false,
  462. isDelete: false,
  463. isModalLayer: false,
  464. loadding: false,
  465. pullUpOn: true,
  466. total: 0,
  467. pullFlag: true,
  468. navbarHeight: '',
  469. nomoreText: '上拉显示更多',
  470. contentModalText: '', //操作文字提示语句
  471. modal: false,
  472. rightDrawer: false,
  473. hanldOrder: '', //储存监听订单信息
  474. OperationType: '', //操作类型
  475. isCmcustomClass: 'left',
  476. isShowHeader:false,
  477. height: 64, //header高度
  478. top: 0, //标题图标距离顶部距离
  479. scrollH: 0, //滚动总高度
  480. opcity: 1
  481. }
  482. },
  483. onLoad() {
  484. let obj = {}
  485. uni.getSystemInfo({
  486. success: res => {
  487. this.width = obj.left || res.windowWidth
  488. this.height = obj.top ? obj.top + obj.height + 8 : res.statusBarHeight + 44
  489. this.top = obj.top ? obj.top + (obj.height - 32) / 2 : res.statusBarHeight + 6
  490. this.scrollH = res.windowWidth * 0.6
  491. }
  492. })
  493. },
  494. filters: {
  495. StateExpFormat(state) {
  496. //订单状态文字和颜色
  497. var HtmlStateText = '',
  498. stateTextObject = {
  499. 0: '待确认',
  500. 4: '交易完成',
  501. 5: '订单完成',
  502. 6: '已关闭',
  503. 7: '交易全退',
  504. 77: '交易全退',
  505. 11: '待付款待发货',
  506. 12: '待付款部分发货',
  507. 13: '待付款已发货',
  508. 21: '部分付款待发货',
  509. 22: '部分付款部分发货',
  510. 23: '部分付款已发货',
  511. 31: '已付款待发货',
  512. 32: '已付款部分发货',
  513. 33: '已付款已发货',
  514. 111: '待付款待发货'
  515. }
  516. Object.keys(stateTextObject).forEach(function(key) {
  517. if (key == state) {
  518. HtmlStateText = stateTextObject[key]
  519. }
  520. })
  521. return HtmlStateText
  522. },
  523. formatSourceType(value) {
  524. switch (value) {
  525. case 1:
  526. return '订单'
  527. break
  528. case 2:
  529. return '非订单'
  530. break
  531. case 3:
  532. return '返佣'
  533. break
  534. case 4:
  535. return '供应商退款'
  536. break
  537. }
  538. },
  539. formatStateType(value) {
  540. switch (value) {
  541. case 0:
  542. return '待确认'
  543. break
  544. case 1:
  545. return '已确认'
  546. break
  547. case 2:
  548. return '待审核'
  549. break
  550. case 3:
  551. return '审核通过'
  552. break
  553. }
  554. },
  555. formatOrderType(value) {
  556. switch (value) {
  557. case 1:
  558. return '自主订单'
  559. break
  560. case 2:
  561. return '协销订单'
  562. break
  563. case 3:
  564. return '客服订单'
  565. break
  566. }
  567. },
  568. NumFormat: function(text) {
  569. //处理金额
  570. return Number(text).toFixed(2)
  571. }
  572. },
  573. computed: {
  574. ...mapState(['hasLogin', 'userInfo']),
  575. startDate() {
  576. return this.getDate('start')
  577. },
  578. endDate() {
  579. return this.getDate('end')
  580. }
  581. },
  582. methods: {
  583. getDate(type) {
  584. const date = new Date()
  585. let year = date.getFullYear()
  586. let month = date.getMonth() + 1
  587. let day = date.getDate()
  588. if (type === 'start') {
  589. year = year - 1
  590. } else if (type === 'end') {
  591. year = year + 1
  592. }
  593. month = month > 9 ? month : '0' + month
  594. day = day > 9 ? day : '0' + day
  595. return `${year}-${month}-${day}`
  596. },
  597. bindStartDateChange(event) {
  598. //开始时间
  599. console.log('开始时间==>', event.detail.value)
  600. this.queryData.startAddTime = event.detail.value
  601. },
  602. bindEndDateChange(event) {
  603. //结束时间
  604. console.log('结束时间==>', event.detail.value)
  605. this.queryData.endAddTime = event.detail.value
  606. },
  607. getOrderDatainit(index) {
  608. this.listQuery.pageNum = 1
  609. this.OrderService.OrderList(
  610. Object.assign(
  611. {
  612. status: index
  613. },
  614. this.listQuery
  615. )
  616. )
  617. .then(response => {
  618. let resData = response.data.list
  619. this.total = response.data.total
  620. if (resData && resData.length > 0) {
  621. this.isEmpty = false
  622. this.orderData = [...resData]
  623. this.hanldOrderList(this.orderData)
  624. if (this.total > this.orderData.length) {
  625. this.pullUpOn = false
  626. this.nomoreText = '上拉显示更多'
  627. } else {
  628. if (this.orderData.length < 5) {
  629. this.pullUpOn = true
  630. } else {
  631. this.pullUpOn = false
  632. this.nomoreText = '已至底部'
  633. }
  634. }
  635. } else {
  636. this.isEmpty = true
  637. }
  638. })
  639. .catch(error => {
  640. this.$util.msg(error.msg, 2000)
  641. })
  642. },
  643. getOnReachBottomData(index) {
  644. //上拉加载
  645. this.listQuery.pageNum += 1
  646. this.OrderService.OrderList(
  647. Object.assign(
  648. {
  649. status: index
  650. },
  651. this.listQuery
  652. )
  653. ).then(response => {
  654. let resData = response.data.list
  655. this.total = response.data.total
  656. this.orderData = this.orderData.concat(resData)
  657. this.hanldOrderList(this.orderData)
  658. this.pullFlag = false // 防上拉暴滑
  659. setTimeout(() => {
  660. this.pullFlag = true
  661. }, 500)
  662. if (this.total > this.orderData.length) {
  663. this.pullUpOn = false
  664. this.nomoreText = '上拉显示更多'
  665. } else {
  666. this.loadding = false
  667. this.pullUpOn = false
  668. this.nomoreText = '已至底部'
  669. }
  670. })
  671. },
  672. change(e) {
  673. //切换tab传递当前tab[index]执行初始化方法
  674. this.currentTabs = e.index
  675. switch (e.index) {
  676. case 0:
  677. this.currentTab = -1
  678. break
  679. case 1:
  680. this.currentTab = 0
  681. break
  682. case 2:
  683. this.currentTab = 1
  684. break
  685. case 3:
  686. this.currentTab = 2
  687. break
  688. case 4:
  689. this.currentTab = 3
  690. break
  691. case 5:
  692. this.currentTab = 4
  693. break
  694. }
  695. this.pageNum = 1
  696. this.orderData = []
  697. this.pullUpOn = true //切换时隐藏
  698. this.loadding = false //切换时隐藏
  699. this.getOrderDatainit(this.currentTab)
  700. },
  701. orderDetail(id) {
  702. //订单详情跳转
  703. this.isModalLayer = true
  704. this.$api.navigateTo(`/pages/relation/order/detail?orderId=${id}`)
  705. },
  706. handButtonConfirm(data) {
  707. //获取点击
  708. console.log('data', data)
  709. // this.handShowAlert(data)
  710. },
  711. handShowAlert(data) {
  712. console.log('data', data)
  713. //执行
  714. switch (data.type) {
  715. case 'pay':
  716. this.$api.navigateTo(`/pages/user/order/order-details?path=pay&state=0&orderID=${this.btnoRderID}`)
  717. break
  718. case 'delete':
  719. this.modal = true
  720. this.contentModalText = '确认删除该订单吗?'
  721. break
  722. case 'cancel':
  723. this.modal = true
  724. this.contentModalText = '确认关闭该订单吗?'
  725. break
  726. case 'refund':
  727. uni.setStorageSync('refundData', data.order)
  728. this.$api.navigateTo('/pages/user/order/order-refund')
  729. break
  730. case 'returned':
  731. uni.setStorageSync('refundData', data.order)
  732. this.$api.navigateTo('/pages/user/order/order-refund')
  733. break
  734. case 'query':
  735. this.isModalLayer = true
  736. this.$api.navigateTo('/pages/user/order/order-logistics?orderID=' + data.orderId)
  737. break
  738. case 'confirm':
  739. this.modal = true
  740. this.contentModalText = '是否确认收货?'
  741. // this.handOrderConfirm(data.orderId);
  742. break
  743. case 'cancelRefund':
  744. this.modal = true
  745. this.contentModalText = '确定取消退货/退款?'
  746. // this.handCancelRefundConfirm(data.orderId);
  747. break
  748. }
  749. },
  750. handleClick(e) {
  751. //用户操作订单
  752. let index = e.index
  753. if (index == 1) {
  754. switch (this.OperationType) {
  755. case 'delete': //删除订单
  756. this.handOrderDetele(this.hanldOrder)
  757. break
  758. case 'cancel': //取消订单
  759. this.modal = true
  760. this.handCenceConfirm(this.hanldOrder)
  761. break
  762. case 'refund': //退款
  763. this.modal = true
  764. this.handRefundConfirm(this.hanldOrder)
  765. break
  766. case 'returned': //退货
  767. this.modal = true
  768. this.handReturnedConfirm(this.hanldOrder)
  769. break
  770. case 'confirm': //确认收货
  771. this.handOrderConfirm(this.hanldOrder)
  772. break
  773. case 'cancelRefund': //确认收货
  774. this.handCancelRefundConfirm(this.hanldOrder)
  775. break
  776. }
  777. }
  778. this.modal = false
  779. },
  780. checkedOrder(payment) {
  781. // 勾选关联订单
  782. payment.isChecked = !payment.isChecked
  783. },
  784. hideMobel() {
  785. this.modal = false
  786. },
  787. hanldOrderList(list) {
  788. let state = ''
  789. for (let i = 0; i < list.length; i++) {
  790. if (list[i].status == 4) {
  791. state = list[i].returnApplyStatus
  792. switch (state) {
  793. case 0:
  794. list[i].status = 40
  795. break
  796. case 1:
  797. list[i].status = 41
  798. break
  799. case 2:
  800. list[i].status = 42
  801. break
  802. case 3:
  803. list[i].status = 43
  804. break
  805. }
  806. }
  807. }
  808. },
  809. //订单状态文字和颜色
  810. orderStateExp(state) {
  811. let stateText = '',
  812. stateTextObject = {
  813. 0: '待付款',
  814. 1: '待发货',
  815. 2: '已发货',
  816. 3: '已完成',
  817. 4: '已关闭',
  818. 5: '无效订单'
  819. }
  820. Object.keys(stateTextObject).forEach(key => {
  821. if (key == state) {
  822. stateText = stateTextObject[key]
  823. }
  824. })
  825. return stateText
  826. },
  827. formatColor(state) {
  828. //设置邀请码状态亚瑟
  829. let stateColor = '',
  830. stateColorObject = {
  831. 0: '#f0ad4e',
  832. 1: '#4cd964',
  833. 2: '#dd524d',
  834. 3: '#007aff'
  835. }
  836. Object.keys(stateColorObject).forEach(function(key) {
  837. if (key == state) {
  838. stateColor = stateColorObject[key]
  839. }
  840. })
  841. return stateColor
  842. },
  843. orderPriceToFixed(n) {
  844. let price = ''
  845. price = Number(n).toFixed(2)
  846. return price
  847. },
  848. tabClick(type, index) {
  849. switch (type) {
  850. case 1:
  851. this.currents = index
  852. this.getOrderDatainit(this.currents)
  853. this.tabCurrents = 0
  854. break
  855. case 2:
  856. this.tabCurrents = index
  857. this.getOrderDatainit(this.currents)
  858. }
  859. },
  860. bindDateChange: function(e) {
  861. //选择筛选时间
  862. console.log(e)
  863. this.listQuery.date = e.detail.value
  864. console.log(this.listQuery.date)
  865. },
  866. bindPickerChange: function(type, e) {
  867. //选择筛选条件
  868. if (type == 1) {
  869. this.listQuery.classification = this.Array[e.target.value].name
  870. console.log(this.listQuery.classification)
  871. } else {
  872. this.listQuery.source = this.Array1[e.target.value].name
  873. console.log(this.listQuery.source)
  874. }
  875. },
  876. toNoSms(url) {
  877. this.$api.navigateTo(url)
  878. }
  879. },
  880. onPageScroll(e) {
  881. //实时获取到滚动的值
  882. if (e.scrollTop > 30) {
  883. this.isCmcustomClass = 'fiexd'
  884. } else {
  885. this.isCmcustomClass = 'left'
  886. }
  887. if (e.scrollTop > 180) {
  888. this.isShowHeader = true
  889. } else {
  890. this.isShowHeader = false
  891. }
  892. },
  893. onReachBottom() {
  894. if (this.total > this.orderData.length) {
  895. this.loadding = true
  896. this.pullUpOn = true
  897. this.getOnReachBottomData(this.currents)
  898. }
  899. },
  900. onPullDownRefresh() {
  901. setTimeout(() => {
  902. this.listQuery.pageNum = 1
  903. this.currents = 0
  904. // this.getOrderDatainit(this.currents)
  905. uni.stopPullDownRefresh()
  906. }, 200)
  907. },
  908. onShareAppMessage(res) {
  909. //分享购买优惠券
  910. const payment = res.target.dataset.payment
  911. console.log('payment', payment)
  912. if (res.from === 'button') {
  913. // console.log('来自页面内转发按钮')
  914. return {
  915. title: `【待确认】收款金额${payment.receiptAmount.toFixed(2)}元,收款时间:${payment.receiptDate}`,
  916. path: `pages/seller/cart/coupon-share?payment=${payment.id}`,
  917. imageUrl: 'https://static.caimei365.com/app/img/icon/icon-shareCoupon@2x.png'
  918. }
  919. }
  920. },
  921. onShow() {
  922. this.$api.getComStorage('userInfo').then(resolve => {
  923. this.listQuery.merchantId = resolve.id
  924. // this.getOrderDatainit(this.currents)
  925. })
  926. }
  927. }
  928. </script>
  929. <style lang="scss">
  930. @import '@/uni.scss';
  931. page {
  932. background: #f7f7f7;
  933. }
  934. .tui-header-box {
  935. width: 100%;
  936. background: #ffffff;
  937. z-index: 999;
  938. position: fixed;
  939. top: 0;
  940. left: 0;
  941. background-size: cover;
  942. background-image: url(https://static.caimei365.com/app/crm/image/statistic_bg2.png);
  943. &.fiexd {
  944. }
  945. &.first {
  946. }
  947. }
  948. .header-top {
  949. width: 100%;
  950. font-size: 16px;
  951. font-weight: 500;
  952. height: 32px;
  953. display: flex;
  954. align-items: center;
  955. justify-content: center;
  956. position: relative;
  957. padding: 0 40rpx;
  958. }
  959. .header-sit {
  960. width: 100%;
  961. box-sizing: border-box;
  962. height: 80rpx;
  963. line-height: 80rpx;
  964. box-sizing: border-box;
  965. color: #ffffff;
  966. .header-sit-text {
  967. text-align: left;
  968. font-size: $font-size-40;
  969. font-weight: 600;
  970. font-family: '正楷';
  971. }
  972. .icon-fanhui {
  973. display: block;
  974. width: 80rpx;
  975. height: 80rpx;
  976. float: left;
  977. text-align: center;
  978. line-height: 80rpx;
  979. font-size: 42rpx;
  980. }
  981. }
  982. .tui-header-tabs {
  983. width: 100%;
  984. height: auto;
  985. margin-bottom: 40rpx;
  986. padding: 20rpx 24rpx;
  987. background: #ffffff;
  988. box-sizing: border-box;
  989. position: fixed;
  990. z-index: 999;
  991. box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
  992. .tui-header-top {
  993. width: 100%;
  994. height: 66rpx;
  995. box-sizing: border-box;
  996. float: left;
  997. .title {
  998. float: left;
  999. line-height: 66rpx;
  1000. color: #333333;
  1001. text-align: left;
  1002. font-size: $font-size-30;
  1003. font-weight: 600;
  1004. }
  1005. .tui-header-button {
  1006. float: right;
  1007. box-sizing: border-box;
  1008. height: 100%;
  1009. line-height: 66rpx;
  1010. padding: 5rpx 0;
  1011. .button {
  1012. float: left;
  1013. box-sizing: border-box;
  1014. padding: 0 24rpx;
  1015. height: 100%;
  1016. line-height: 56rpx;
  1017. border-radius: 8rpx;
  1018. text-align: center;
  1019. color: #ffffff;
  1020. margin-left: 10rpx;
  1021. &.btn-confirm {
  1022. background: $btn-confirm;
  1023. }
  1024. &.btn-error {
  1025. background: #ff5000;
  1026. }
  1027. }
  1028. }
  1029. }
  1030. .tui-header-item {
  1031. width: 100%;
  1032. height: auto;
  1033. margin-top: 10rpx;
  1034. position: relative;
  1035. float: left;
  1036. .list-title-t {
  1037. width: 100%;
  1038. height: 50rpx;
  1039. float: left;
  1040. font-size: $font-size-28;
  1041. padding-bottom: 10rpx;
  1042. margin-bottom: 10rpx;
  1043. .list-title-num {
  1044. float: left;
  1045. text-align: left;
  1046. color: #999999;
  1047. margin-left: 30rpx;
  1048. line-height: 40rpx;
  1049. }
  1050. .list-title-tip {
  1051. float: left;
  1052. .badges {
  1053. display: block;
  1054. float: left;
  1055. padding: 0 15rpx;
  1056. height: 40rpx;
  1057. line-height: 40rpx;
  1058. border-radius: 4rpx;
  1059. background: $btn-confirm;
  1060. font-size: $font-size-24;
  1061. text-align: center;
  1062. color: #ffffff;
  1063. }
  1064. }
  1065. }
  1066. .list-title-b {
  1067. width: 100%;
  1068. height: 40rpx;
  1069. float: left;
  1070. font-size: $font-size-24;
  1071. line-height: 40rpx;
  1072. color: #666666;
  1073. text-align: left;
  1074. .text{
  1075. color: #999999;
  1076. }
  1077. .list-title-b-item {
  1078. width: 50%;
  1079. height: 100%;
  1080. float: left;
  1081. }
  1082. &.sms {
  1083. height: 100rpx;
  1084. padding: 10rpx;
  1085. border-radius: 4rpx;
  1086. }
  1087. }
  1088. .list-icon {
  1089. width: 120rpx;
  1090. height: 60rpx;
  1091. border: 1px solid #e1e1e1;
  1092. border-radius: 10rpx;
  1093. text-align: center;
  1094. font-size: 20rpx;
  1095. line-height: 60rpx;
  1096. position: absolute;
  1097. right: 90rpx;
  1098. top: 40rpx;
  1099. color: #dd524d;
  1100. z-index: 99;
  1101. transform: rotate(45deg);
  1102. -webkit-transform: rotate(45deg);
  1103. -moz-transform: rotate(45deg);
  1104. font-family: '正楷';
  1105. }
  1106. }
  1107. .tui-header-tabmain {
  1108. width: 100%;
  1109. height: 70rpx;
  1110. float: left;
  1111. position: relative;
  1112. &.day {
  1113. height: 70rpx;
  1114. box-sizing: border-box;
  1115. padding: 20rpx 0;
  1116. border-top: 1px solid #efefef;
  1117. }
  1118. .main-item {
  1119. float: left;
  1120. text-align: left;
  1121. color: #ffffff;
  1122. box-sizing: border-box;
  1123. &.one {
  1124. width: 25%;
  1125. .text {
  1126. width: 100%;
  1127. height: 70rpx;
  1128. line-height: 70rpx;
  1129. display: block;
  1130. float: left;
  1131. font-size: $font-size-28;
  1132. color: #666666;
  1133. text-align: left;
  1134. font-weight: 600;
  1135. font-family: '正楷';
  1136. }
  1137. }
  1138. &.tab {
  1139. width: 140rpx;
  1140. border-radius: 8rpx;
  1141. background: #f7f7f7;
  1142. margin-right: 15rpx;
  1143. padding: 0 20rpx;
  1144. .text {
  1145. width: 100%;
  1146. height: 50rpx;
  1147. line-height: 50rpx;
  1148. display: block;
  1149. float: left;
  1150. font-size: $font-size-24;
  1151. color: #666666;
  1152. text-align: center;
  1153. }
  1154. }
  1155. &.active {
  1156. .text {
  1157. color: #576efa;
  1158. font-size: $font-size-28;
  1159. }
  1160. }
  1161. &.tabActive {
  1162. background: #576efa;
  1163. .text {
  1164. color: #ffffff;
  1165. }
  1166. }
  1167. }
  1168. .input {
  1169. width: 100%;
  1170. height: 70rpx;
  1171. box-sizing: border-box;
  1172. padding: 0 20rpx;
  1173. padding-left: 70rpx;
  1174. background: #f7f7f7;
  1175. border-radius: 8rpx;
  1176. }
  1177. .icon-sousuo {
  1178. width: 80rpx;
  1179. height: 70rpx;
  1180. display: block;
  1181. line-height: 70rpx;
  1182. text-align: center;
  1183. color: #999999;
  1184. font-size: $font-size-40;
  1185. position: absolute;
  1186. left: 0;
  1187. top: 0;
  1188. }
  1189. }
  1190. .button-content {
  1191. width: 100%;
  1192. height: auto;
  1193. float: left;
  1194. position: relative;
  1195. .btn {
  1196. height: 64rpx;
  1197. padding: 0 20rpx;
  1198. margin: 10rpx 0 0 0;
  1199. line-height: 64rpx;
  1200. font-size: $font-size-26;
  1201. text-align: center;
  1202. border-radius: 6rpx;
  1203. float: right;
  1204. }
  1205. .btn-confirm {
  1206. background-color: #ff5000;
  1207. color: #ffffff;
  1208. }
  1209. }
  1210. }
  1211. .distinguish-button {
  1212. width: 100%;
  1213. position: fixed;
  1214. bottom: 0;
  1215. left: 0;
  1216. background-color: #ffffff;
  1217. padding: 0 50rpx;
  1218. padding-top: 20rpx;
  1219. .button {
  1220. width: 100%;
  1221. height: 80rpx;
  1222. background: $btn-confirm;
  1223. border-radius: 40rpx;
  1224. text-align: center;
  1225. color: #ffffff;
  1226. line-height: 80rpx;
  1227. font-size: $font-size-28;
  1228. box-shadow: 0 10rpx 14rpx 0 rgba(86, 119, 252, 0.2);
  1229. }
  1230. }
  1231. .user-section {
  1232. position: absolute;
  1233. width: 100%;
  1234. }
  1235. .header-content {
  1236. width: 100%;
  1237. height: auto;
  1238. position: relative;
  1239. background-color: #f7f7f7;
  1240. .tui-header-btm {
  1241. width: 100%;
  1242. padding: 0 30rpx;
  1243. box-sizing: border-box;
  1244. display: flex;
  1245. align-items: center;
  1246. justify-content: space-between;
  1247. color: #fff;
  1248. }
  1249. .tui-btm-item {
  1250. flex: 1;
  1251. display: flex;
  1252. flex-direction: column;
  1253. align-items: center;
  1254. justify-content: center;
  1255. }
  1256. .tui-btm-num {
  1257. font-size: 32rpx;
  1258. font-weight: 600;
  1259. position: relative;
  1260. }
  1261. .tui-btm-text {
  1262. font-size: 24rpx;
  1263. opacity: 0.85;
  1264. padding-top: 4rpx;
  1265. }
  1266. }
  1267. .uni-badge--small {
  1268. -webkit-transform: scale(0.8);
  1269. -ms-transform: scale(0.8);
  1270. transform: scale(0.8);
  1271. -webkit-transform-origin: center center;
  1272. -ms-transform-origin: center center;
  1273. transform-origin: center center;
  1274. }
  1275. .uni-badge {
  1276. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  1277. -webkit-box-sizing: border-box;
  1278. box-sizing: border-box;
  1279. font-size: 12px;
  1280. line-height: 1;
  1281. display: inline-block;
  1282. padding: 3px 6px;
  1283. color: #333;
  1284. border-radius: 100px;
  1285. background-color: #f1f1f1;
  1286. }
  1287. .uni-badge-error {
  1288. color: #fff;
  1289. background-color: #dd524d;
  1290. }
  1291. .tui-order-list {
  1292. margin-top: 24rpx;
  1293. width: 100%;
  1294. position: relative;
  1295. box-sizing: border-box;
  1296. padding: 0 20rpx;
  1297. }
  1298. .tui-order-content {
  1299. width: 100%;
  1300. height: auto;
  1301. }
  1302. .tui-order-item {
  1303. display: flex;
  1304. flex-direction: column;
  1305. width: 100%;
  1306. padding: 20rpx 20rpx;
  1307. background: #fff;
  1308. margin-bottom: 24rpx;
  1309. border-radius: 8rpx;
  1310. position: relative;
  1311. .list-checked {
  1312. width: 80rpx;
  1313. height: 80rpx;
  1314. line-height: 80rpx;
  1315. text-align: center;
  1316. position: absolute;
  1317. right: 0;
  1318. top: 0;
  1319. .iconfont {
  1320. font-size: 38rpx;
  1321. color: $color-system;
  1322. }
  1323. }
  1324. .list-detail {
  1325. width: 80rpx;
  1326. height: 290rpx;
  1327. line-height: 290rpx;
  1328. text-align: center;
  1329. position: absolute;
  1330. right: 0;
  1331. top: 80rpx;
  1332. .iconfont {
  1333. font-size: $font-size-30;
  1334. color: #999999;
  1335. }
  1336. }
  1337. }
  1338. .list-title {
  1339. width: 100%;
  1340. height: auto;
  1341. .list-title-t {
  1342. width: 100%;
  1343. height: 50rpx;
  1344. float: left;
  1345. font-size: $font-size-24;
  1346. padding-bottom: 10rpx;
  1347. .list-title-tip {
  1348. float: left;
  1349. .badges {
  1350. display: block;
  1351. float: left;
  1352. padding: 0 15rpx;
  1353. height: 40rpx;
  1354. line-height: 40rpx;
  1355. border-radius: 4rpx;
  1356. background: radial-gradient(circle, rgba(255, 180, 39, 1) 0%, rgba(245, 142, 77, 1) 100%);
  1357. font-size: $font-size-24;
  1358. text-align: center;
  1359. color: #ffffff;
  1360. }
  1361. }
  1362. .list-title-num {
  1363. float: left;
  1364. text-align: left;
  1365. color: #e15616;
  1366. line-height: 40rpx;
  1367. margin-left: 20rpx;
  1368. }
  1369. }
  1370. .list-title-b {
  1371. width: 100%;
  1372. height: 40rpx;
  1373. float: left;
  1374. font-size: $font-size-24;
  1375. line-height: 40rpx;
  1376. color: #666666;
  1377. text-align: left;
  1378. .text{
  1379. color: #999999;
  1380. }
  1381. .list-title-b-item {
  1382. width: 50%;
  1383. height: 100%;
  1384. float: left;
  1385. }
  1386. &.sms {
  1387. height: auto;
  1388. }
  1389. }
  1390. }
  1391. .d-container {
  1392. width: 580rpx;
  1393. padding: 80rpx 0;
  1394. .drawer-main {
  1395. width: 100%;
  1396. height: auto;
  1397. box-sizing: border-box;
  1398. float: left;
  1399. .drawer-main-name {
  1400. width: 100%;
  1401. height: 80rpx;
  1402. line-height: 80rpx;
  1403. text-align: left;
  1404. font-size: $font-size-26;
  1405. color: #333333;
  1406. box-sizing: border-box;
  1407. padding: 0 20rpx;
  1408. font-weight: bold;
  1409. }
  1410. .drawer-main-time {
  1411. width: 100%;
  1412. height: 56rpx;
  1413. box-sizing: border-box;
  1414. .line {
  1415. color: #999999;
  1416. float: left;
  1417. line-height: 56rpx;
  1418. }
  1419. .drawer-main-time-input {
  1420. width: 228rpx;
  1421. height: 56rpx;
  1422. background: #f7f7f7;
  1423. border-radius: 28rpx;
  1424. box-sizing: border-box;
  1425. padding: 0 20rpx;
  1426. line-height: 56rpx;
  1427. float: left;
  1428. margin: 0 20rpx;
  1429. position: relative;
  1430. box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
  1431. .input-text {
  1432. display: block;
  1433. height: 56rpx;
  1434. font-size: 26rpx;
  1435. color: #666666;
  1436. }
  1437. .icon-riqi {
  1438. color: $color-system;
  1439. display: block;
  1440. width: 40rpx;
  1441. height: 56rpx;
  1442. position: absolute;
  1443. right: 10rpx;
  1444. top: 0;
  1445. line-height: 56rpx;
  1446. }
  1447. }
  1448. }
  1449. .drawer-main-textarea {
  1450. width: 100%;
  1451. height: 160rpx;
  1452. box-sizing: border-box;
  1453. padding: 0 20rpx;
  1454. background: #ffffff;
  1455. border-radius: 8rpx;
  1456. .textarea {
  1457. width: 100%;
  1458. height: 100%;
  1459. background: #f7f7f7;
  1460. box-sizing: border-box;
  1461. padding: 20rpx 20rpx;
  1462. font-size: $font-size-24;
  1463. border-radius: 8rpx;
  1464. box-shadow: 0 10rpx 10rpx 0 rgba(86, 119, 252, 0.2);
  1465. }
  1466. }
  1467. }
  1468. .drawer-input {
  1469. width: 100%;
  1470. float: left;
  1471. box-sizing: border-box;
  1472. padding: 24rpx 10rpx 0 10rpx;
  1473. border: 1px solid rgba(0, 0, 0, 0.2);
  1474. border-radius: 4rpx;
  1475. position: relative;
  1476. background-color: #ffffff;
  1477. &.btn {
  1478. border: none;
  1479. display: flex;
  1480. position: fixed;
  1481. left: 0;
  1482. bottom: 0;
  1483. }
  1484. .drawer-btn {
  1485. width: 210rpx;
  1486. height: 84rpx;
  1487. border-radius: 42rpx;
  1488. background: $btn-confirm;
  1489. line-height: 84rpx;
  1490. text-align: center;
  1491. font-size: $font-size-26;
  1492. color: #ffffff;
  1493. flex: 1;
  1494. margin: 0 10rpx;
  1495. &.comfrim {
  1496. background: $btn-confirm;
  1497. }
  1498. &.clear {
  1499. background: #f7f7f7;
  1500. color: #999999;
  1501. }
  1502. }
  1503. }
  1504. }
  1505. </style>