index.vue 36 KB

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