index.vue 29 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169
  1. <template>
  2. <view class="invoice">
  3. <view class="invoice__tabs">
  4. <u-tabs :list="list" sticky :current="current" @change="change" active-color="#007AFF"></u-tabs>
  5. </view>
  6. <view class="invoice__content">
  7. <view class="open" v-if="current == 0">
  8. <view class="form">
  9. <u-form :model="form" ref="uForm">
  10. <u-form-item label="发票类型" label-width="130" required prop="type" >
  11. <u-radio-group v-model="form.type" @change="formTypeChange">
  12. <u-radio v-for="(item, index) in typeList" :key="index" :name="item.value">
  13. {{ item.name }}
  14. </u-radio>
  15. </u-radio-group>
  16. </u-form-item>
  17. <!-- 增值税发票 -->
  18. <template v-if="form.type == 2">
  19. <u-form-item label="申请主体" label-width="130" required prop="main">
  20. <u-radio-group v-model="form.main">
  21. <u-radio :key="index" name="2">
  22. 企业
  23. </u-radio>
  24. </u-radio-group>
  25. </u-form-item>
  26. <u-form-item label="发票抬头" label-width="130" required prop="header" >
  27. <u-input placeholder="请输入" v-model="form.header" />
  28. </u-form-item>
  29. <u-form-item label="单位税号" label-width="130" required prop="tax" >
  30. <u-input placeholder="请输入" v-model="form.tax" />
  31. </u-form-item>
  32. <u-form-item label="单位地址" label-width="130" required prop="address" >
  33. <u-input placeholder="请输入" v-model="form.address" />
  34. </u-form-item>
  35. <u-form-item label="电话号码" label-width="130" required prop="tel" >
  36. <u-input placeholder="请输入" v-model="form.tel" />
  37. </u-form-item>
  38. <u-form-item label="开户银行" label-width="130" required prop="bank" >
  39. <u-input placeholder="请输入" v-model="form.bank" />
  40. </u-form-item>
  41. <u-form-item label="银行账号" label-width="130" required prop="bankNo" >
  42. <u-input placeholder="请输入" v-model="form.bankNo" />
  43. </u-form-item>
  44. <u-form-item label="收件地址" label-width="130" required prop="recieveAddress" >
  45. <u-input placeholder="请输入" v-model="form.recieveAddress" />
  46. </u-form-item>
  47. <u-form-item label="收件人" label-width="130" required prop="name" >
  48. <u-input placeholder="请输入" v-model="form.name" />
  49. </u-form-item>
  50. <u-form-item label="收件手机" label-width="130" required prop="phone" >
  51. <u-input placeholder="请输入" v-model="form.phone" />
  52. </u-form-item>
  53. </template>
  54. <!-- 增值税发票 -->
  55. <!-- 普通发票 -->
  56. <template v-else>
  57. <u-form-item label="申请主体" label-width="130" required prop="main">
  58. <u-radio-group v-model="form.main">
  59. <u-radio v-for="(item, index) in mainList" :key="index" :name="item.value">
  60. {{ item.name }}
  61. </u-radio>
  62. </u-radio-group>
  63. </u-form-item>
  64. <u-form-item label="发票抬头" label-width="130" required prop="header" >
  65. <u-input placeholder="请输入" v-model="form.header" />
  66. </u-form-item>
  67. </template>
  68. <!-- 普通发票 -->
  69. <u-form-item label="选择订单" label-width="130" required prop="orderIds" right-icon="arrow-right" ref="orderIds">
  70. <view class="form-item" @click="selectOrderModal = true">
  71. <u-input placeholder="请选择" disabled @click="selectOrderModal = true" v-model="form.orderIds" />
  72. </view>
  73. </u-form-item>
  74. <view>
  75. <view class="check-order" v-for="(item,index) in orderList" :key="index" v-if="item.disabled">
  76. <view class="close" @click="deleteOrder(index)">
  77. <u-icon name="close-circle-fill" color="#FF2D55" size="40"></u-icon>
  78. </view>
  79. <view class="title">商品名称</view>
  80. <view class="number">订单编号</view>
  81. <view class="price">¥ 100元</view>
  82. </view>
  83. </view>
  84. </u-form>
  85. </view>
  86. <view class="order-text">
  87. <view class="order-text__label">本次申请开票金额:</view>
  88. <view class="order-text__price">¥ 999.00</view>
  89. </view>
  90. <view class="submit" @click="formSubmit">
  91. 提交申请
  92. </view>
  93. </view>
  94. <view class="." v-if="current == 1">
  95. <view class="nodata" v-if="!recordList.length">
  96. 您暂无相关发票记录哦~
  97. </view>
  98. <view class="record__list">
  99. <view class="record-item" @click="orderDetailModal = true;" v-for="(record,index) in recordList" :key="index">
  100. <view class="item__time">2021/10/29 09:30:00</view>
  101. <view class="item__content">
  102. <view class="top">
  103. <view class="state" :class="{wait:record.state == 1,refuse:record.state == 2,agree:record.state == 3}">
  104. <text v-if="record.state == 1">待审核</text>
  105. <text v-if="record.state == 2">驳回</text>
  106. <text v-if="record.state == 3">通过</text>
  107. <u-icon class="arrow" name="arrow-right" color="#ffffff" size="28"></u-icon>
  108. </view>
  109. </view>
  110. <view class="bottom">
  111. <view class="flex">
  112. <view class="text">发票类型</view>
  113. <view class="flex__auto">
  114. <text>普通发票</text>
  115. </view>
  116. </view>
  117. <view class="flex">
  118. <view class="text">申请主体</view>
  119. <view class="flex__auto">
  120. <text>个人</text>
  121. </view>
  122. </view>
  123. <view class="flex">
  124. <view class="text">发票状态</view>
  125. <view class="flex__auto">
  126. <text class="red" :class="{red:record.state != 2 ,green:record.state == 2}">未开票</text>
  127. </view>
  128. </view>
  129. <view @click.stop="showOrder(record.checked,index)">
  130. <view class="flex noborder" >
  131. <view class="text">开票订单</view>
  132. <view class="flex__auto">
  133. <text class="red">3</text>
  134. <u-icon v-if="!record.checked" name="arrow-down" color="#ccc" size="28"></u-icon>
  135. <u-icon v-if="record.checked" name="arrow-up" color="#ccc" size="28"></u-icon>
  136. </view>
  137. </view>
  138. <view class="order-list" v-if="record.checked">
  139. <view class="order-item">1.2021七大员新考施工专业人员岗提高班</view>
  140. <view class="order-item">2.2021七大员新考施工专业人员岗提高班订单名称过长换行</view>
  141. </view>
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. </view>
  149. <u-popup class="modal" v-model="selectOrderModal" mode="bottom" border-radius="24">
  150. <view class="select-order">
  151. <view class="line"></view>
  152. <view class="title">选择订单</view>
  153. <u-line color="#D6D6DB" />
  154. <view>
  155. <scroll-view scroll-y="true" style="height: 500rpx;">
  156. <view>
  157. <u-checkbox-group>
  158. <view v-for="(item, index) in orderList" :key="index" >
  159. <view class="order-item">
  160. <view>
  161. <u-checkbox
  162. :disabled="item.disabled"
  163. shape="circle"
  164. :name="item.name"
  165. v-model="item.checked"
  166. >
  167. <view class="order-item__bg" :class="item.checked?'active':''" >
  168. <view>
  169. <view class="order-title">商品名称</view>
  170. <view class="order-number">订单编号</view>
  171. <view class="order-price">¥ 100元</view>
  172. </view>
  173. </view>
  174. </u-checkbox >
  175. </view>
  176. </view>
  177. </view>
  178. </u-checkbox-group>
  179. </view>
  180. </scroll-view>
  181. </view>
  182. <view class="confrim-btn">
  183. <view class="okBtn" @click="okPopup()">确定</view>
  184. </view>
  185. </view>
  186. </u-popup>
  187. <u-popup class="modal" v-model="orderDetailModal" mode="center" border-radius="40">
  188. <view class="order-detail">
  189. <view class="order-detail__content">
  190. <scroll-view scroll-y="true" style="height: 972rpx;">
  191. <view class="header">2021年10月29日 09:30:00</view>
  192. <view class="body">
  193. <view class="body__item">
  194. <view class="title">发票申请信息</view>
  195. <view class="content">
  196. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  197. <view slot="title">发票类型:</view>
  198. <text>普通发票</text>
  199. </u-cell-item>
  200. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  201. <view slot="title">申请主体:</view>
  202. <text>个人</text>
  203. </u-cell-item>
  204. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  205. <view slot="title">发票抬头:</view>
  206. <text>广东中正科技教育科技有限公司</text>
  207. </u-cell-item>
  208. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  209. <view slot="title">单位税号:</view>
  210. <text>SH123456789</text>
  211. </u-cell-item>
  212. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  213. <view slot="title">单位地址:</view>
  214. <text>广州市天河区燕岭路123号建设大厦F座 16楼过长换行</text>
  215. </u-cell-item>
  216. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  217. <view slot="title">电话号码:</view>
  218. <text>企业 拷贝</text>
  219. </u-cell-item>
  220. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  221. <view slot="title">开户银行:</view>
  222. <text>中国工商银行星星支行</text>
  223. </u-cell-item>
  224. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  225. <view slot="title">银行账号:</view>
  226. <text>SH123456789 拷贝</text>
  227. </u-cell-item>
  228. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  229. <view slot="title">收件地址:</view>
  230. <text>广州市天河区燕岭路123号</text>
  231. </u-cell-item>
  232. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  233. <view slot="title">收件人:</view>
  234. <text>李大米</text>
  235. </u-cell-item>
  236. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  237. <view slot="title">发票抬头:</view>
  238. <text>广东中正科技教育科技有限公司</text>
  239. </u-cell-item>
  240. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false" >
  241. <view slot="title">收件手机:</view>
  242. <text>13800138000</text>
  243. </u-cell-item>
  244. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false" >
  245. <view slot="title">开票订单:</view>
  246. </u-cell-item>
  247. <view class="order-list">
  248. <view class="order-item">
  249. <view class="order-title">2021七大员新考施工专业人员岗提高班</view>
  250. <view class="order-number">GDXY1234567890</view>
  251. <view class="order-price">¥ 100元</view>
  252. </view>
  253. <view class="order-item">
  254. <view class="order-title">2021七大员新考施工专业人员岗提高班</view>
  255. <view class="order-number">GDXY1234567890</view>
  256. <view class="order-price">¥ 100元</view>
  257. </view>
  258. <view class="order-item">
  259. <view class="order-title">2021七大员新考施工专业人员岗提高班</view>
  260. <view class="order-number">GDXY1234567890</view>
  261. <view class="order-price">¥ 100元</view>
  262. </view>
  263. </view>
  264. <view class="order-text">
  265. <view class="order-text__label">本次申请开票金额:</view>
  266. <view class="order-text__price">¥ 999.00</view>
  267. </view>
  268. </view>
  269. </view>
  270. <view class="body__item">
  271. <view class="title">发票申请结果</view>
  272. <view class="content">
  273. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  274. <view slot="title">审核结果:</view>
  275. <text class="text wait">待审核</text>
  276. <text class="text agree">通过</text>
  277. <text class="text refuse">驳回</text>
  278. </u-cell-item>
  279. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  280. <view slot="title">发票状态:</view>
  281. <text class="text refuse">未开票</text>
  282. <text class="text agree">已开票</text>
  283. <text class="text refuse">已退票</text>
  284. </u-cell-item>
  285. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  286. <view slot="title">发票预览:</view>
  287. <view>
  288. <image class="preview" src="/static/info_3.png"></image>
  289. <view class="download-btn" @click="download">下载电子发票</view>
  290. </view>
  291. </u-cell-item>
  292. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  293. <view slot="title">机构发票邮寄状态:</view>
  294. <text class="text">是</text>
  295. </u-cell-item>
  296. <u-cell-item :border-bottom="false" hover-class="none" :arrow="false">
  297. <view slot="title">发票邮寄快递单号:</view>
  298. <text class="text">153666689456</text>
  299. </u-cell-item>
  300. </view>
  301. </view>
  302. </view>
  303. </scroll-view>
  304. </view>
  305. <view class="order-detail__btns">
  306. <view class="btn" @click="orderDetailModal = false;">知道了</view>
  307. <view class="btn warm" @click="orderCancelModal = true;">撤销申请</view>
  308. </view>
  309. <view class="order-detail__btns">
  310. <view class="btn ok" @click="orderDetailModal = false;">知道了</view>
  311. </view>
  312. </view>
  313. </u-popup>
  314. <u-popup class="modal" v-model="orderCancelModal" mode="center" border-radius="24">
  315. <view class="order-cancel">
  316. <view class="header">
  317. 温馨提示
  318. </view>
  319. <view class="body">
  320. <view>撤销申请后,</view>
  321. <view>本次的发票申请内容将不存在。</view>
  322. <view>请慎重考虑。 </view>
  323. <view>您确定要取消本次发票申请吗?</view>
  324. </view>
  325. <view class="footer">
  326. <view class="btn cancel" @click="orderCancelModal = false;">取消</view>
  327. <view class="btn ok" @click="orderCancel()">确定</view>
  328. </view>
  329. </view>
  330. </u-popup>
  331. </view>
  332. </template>
  333. <script>
  334. import { mapGetters } from 'vuex';
  335. export default {
  336. components: {},
  337. data() {
  338. return {
  339. checkOrderList:[],
  340. recordList:[{
  341. checked:false,
  342. state:'1'
  343. },{
  344. checked:false,
  345. state:'2'
  346. },{
  347. checked:false,
  348. state:'3'
  349. }],
  350. list: [
  351. {
  352. name: '发票申请'
  353. },
  354. {
  355. name: '发票记录'
  356. }
  357. ],
  358. form:{
  359. type:'',
  360. main:'',
  361. header:'',
  362. orderIds:'',
  363. },
  364. rules: {
  365. phone: [
  366. {
  367. required: true,
  368. message: '请输入收件手机',
  369. // 可以单个或者同时写两个触发验证方式
  370. trigger: ['change'],
  371. },
  372. {
  373. validator: (rule, value, callback) => {
  374. // 上面有说,返回true表示校验通过,返回false表示不通过
  375. // this.$u.test.mobile()就是返回true或者false的
  376. return this.$u.test.mobile(value);
  377. },
  378. message: '手机号码格式不正确',
  379. // 触发器可以同时用blur和change
  380. trigger: ['change'],
  381. }
  382. ],
  383. type: [
  384. {
  385. required: true,
  386. message: '请选择发票类型',
  387. // 可以单个或者同时写两个触发验证方式
  388. trigger: ['change'],
  389. }
  390. ],
  391. main: [
  392. {
  393. required: true,
  394. message: '请选择申请主体',
  395. // 可以单个或者同时写两个触发验证方式
  396. trigger: ['change'],
  397. }
  398. ],
  399. header: [
  400. {
  401. required: true,
  402. message: '请输入发票抬头',
  403. // 可以单个或者同时写两个触发验证方式
  404. trigger: ['change'],
  405. }
  406. ],
  407. tax: [
  408. {
  409. required: true,
  410. message: '请输入单位税号',
  411. // 可以单个或者同时写两个触发验证方式
  412. trigger: ['change'],
  413. }
  414. ],
  415. address: [
  416. {
  417. required: true,
  418. message: '请输入单位地址',
  419. // 可以单个或者同时写两个触发验证方式
  420. trigger: ['change'],
  421. }
  422. ],
  423. tel: [
  424. {
  425. required: true,
  426. message: '请输入电话号码',
  427. // 可以单个或者同时写两个触发验证方式
  428. trigger: ['change'],
  429. }
  430. ],
  431. bank: [
  432. {
  433. required: true,
  434. message: '请输入开户银行',
  435. // 可以单个或者同时写两个触发验证方式
  436. trigger: ['change'],
  437. }
  438. ],
  439. bankNo: [
  440. {
  441. required: true,
  442. message: '请输入银行账号',
  443. // 可以单个或者同时写两个触发验证方式
  444. trigger: ['change'],
  445. }
  446. ],
  447. recieveAddress: [
  448. {
  449. required: true,
  450. message: '请输入收件地址',
  451. // 可以单个或者同时写两个触发验证方式
  452. trigger: ['change'],
  453. }
  454. ],
  455. name: [
  456. {
  457. required: true,
  458. message: '请输入收件人',
  459. // 可以单个或者同时写两个触发验证方式
  460. trigger: ['change'],
  461. }
  462. ],
  463. orderIds: [
  464. {
  465. required: true,
  466. message: '请选择订单',
  467. // 可以单个或者同时写两个触发验证方式
  468. trigger: ['change'],
  469. }
  470. ],
  471. },
  472. orderValue:'',
  473. orderList:[{checked:false,name:'1'},{checked:false,name:'2'},{checked:false,name:'3'},{checked:false,name:'4'}],
  474. selectOrderModal:false,
  475. orderDetailModal:false,
  476. orderCancelModal:false,
  477. current: 1,
  478. order: [],
  479. typeList:[{
  480. name:'普通发票',
  481. value:'1'
  482. },{
  483. name:'增值税专用发票',
  484. value:'2'
  485. }],
  486. mainList:[{
  487. name:'个人',
  488. value:'1'
  489. },{
  490. name:'企业',
  491. value:'2'
  492. }]
  493. };
  494. },
  495. // onPullDownRefresh() {},
  496. onLoad(option) {
  497. // this.$refs.uForm.setRules(this.rules)
  498. },
  499. onShow() {
  500. },
  501. methods: {
  502. /**
  503. * @param {Object} checkedState 显示状态
  504. * @param {Object} index 索引值
  505. * 修改开票订单列表显示状态
  506. */
  507. showOrder(showState,index) {
  508. this.$set(this.recordList[index],'checked',!showState)
  509. },
  510. /**
  511. * 发票申请提交
  512. */
  513. formSubmit() {
  514. this.$refs.uForm.validate(valid => {
  515. if(valid) {
  516. uni.showToast({
  517. title:'申请成功'
  518. })
  519. }
  520. })
  521. },
  522. /**
  523. * @param {Object} e value
  524. * 发票类型修改
  525. */
  526. formTypeChange(e) {
  527. console.log(e)
  528. if(e == '2') {
  529. this.$set(this.form,'main','2')
  530. } else {
  531. this.$set(this.form,'main','')
  532. }
  533. },
  534. /**
  535. * @param {Object} e
  536. * tabs 切换
  537. */
  538. change(e) {
  539. console.log(e)
  540. this.current = e;
  541. },
  542. radioGroupChange(e) {
  543. console.log(e)
  544. },
  545. okPopup() {
  546. this.selectOrderModal = false;
  547. let strArr = [];
  548. this.orderList.forEach((item,index) => {
  549. if(item.checked) {
  550. this.$set(this.orderList[index],'disabled',true)
  551. strArr.push(item.name)
  552. }
  553. })
  554. this.form.orderIds = strArr.join(',')
  555. this.$nextTick(() => {
  556. this.$refs.orderIds.onFieldChange()
  557. })
  558. console.log(this.$refs.orderIds)
  559. },
  560. deleteOrder(index) {
  561. this.$set(this.orderList[index],'disabled',false)
  562. this.$set(this.orderList[index],'checked',false)
  563. let strArr = [];
  564. this.orderList.forEach((item,index) => {
  565. if(item.checked) {
  566. strArr.push(item.name)
  567. }
  568. })
  569. this.form.orderIds = strArr.join(',')
  570. this.$nextTick(() => {
  571. this.$refs.orderIds.onFieldChange()
  572. })
  573. },
  574. download() {
  575. uni.downloadFile({
  576. url: 'https://gw.alipayobjects.com/os/bmw-prod/c134022a-1088-47e2-bb76-a33ec0519101.pdf?spm=a2c4g.11186623.0.0.cf863d1fUcFiPN&file=c134022a-1088-47e2-bb76-a33ec0519101.pdf',
  577. success: function (res) {
  578. console.log(999)
  579. var filePath = res.tempFilePath;
  580. uni.openDocument({
  581. filePath: filePath,
  582. showMenu: true,
  583. success: function (res) {
  584. console.log(res,'打开文档成功');
  585. },
  586. fail:function(err) {
  587. console.log(err)
  588. }
  589. });
  590. }
  591. });
  592. },
  593. orderCancel() {
  594. this.orderDetailModal = false;
  595. this.orderCancelModal = false;
  596. uni.showToast({
  597. title:'撤销成功',
  598. icon:'none'
  599. })
  600. }
  601. },
  602. computed: { ...mapGetters(['userInfo']) }
  603. };
  604. </script>
  605. <style>
  606. page {
  607. background: #eaeef1;
  608. }
  609. </style>
  610. <style scoped lang="scss">
  611. .invoice {
  612. &__tabs {
  613. width: 100%;
  614. text-align: center;
  615. position: fixed;
  616. height: 96rpx;
  617. z-index: 999;
  618. }
  619. &__content {
  620. padding-top:96rpx;
  621. .open {
  622. padding-bottom:150rpx;
  623. margin:8rpx 24rpx 0;
  624. .form {
  625. padding:24rpx;
  626. width: 702rpx;
  627. background: #FFFFFF;
  628. border-radius: 24rpx;
  629. // /deep/ .u-input__input {
  630. // text-align: right;
  631. // }
  632. .form-item {
  633. height:78rpx;
  634. display: flex;
  635. align-items: center;
  636. .text {
  637. font-size: 28rpx;
  638. width:120rpx;
  639. // color: #999999;
  640. }
  641. .content {
  642. flex:1;
  643. text-align: left;
  644. color:#bbb;
  645. }
  646. }
  647. .check-order {
  648. margin-top:20rpx;
  649. width: 654rpx;
  650. height: 168rpx;
  651. background: #F5F5F5;
  652. border: 2px solid #F5F5F5;
  653. padding:20rpx;
  654. position:relative;
  655. .close {
  656. position:absolute;
  657. right:0;
  658. top:0;
  659. }
  660. .title,.number,.price {
  661. color:#333333;
  662. margin-top:10rpx;
  663. line-height: 30rpx;
  664. font-size: 30rpx;
  665. }
  666. .number {
  667. color:#999;
  668. }
  669. }
  670. }
  671. .order-text {
  672. margin-top:16rpx;
  673. padding:0 30rpx;
  674. width: 702rpx;
  675. height: 80rpx;
  676. background: #FFFFFF;
  677. border-radius: 24rpx;
  678. display: flex;
  679. align-items: center;
  680. &__label {
  681. font-size: 24rpx;
  682. }
  683. &__price {
  684. font-size: 30rpx;
  685. margin-left:20rpx;
  686. color:#FF2D55;
  687. }
  688. }
  689. .submit {
  690. text-align: center;
  691. line-height: 80rpx;
  692. color:#fff;
  693. font-size: 30rpx;
  694. width: 526rpx;
  695. height: 80rpx;
  696. background: #007AFF;
  697. box-shadow: 0rpx 8rpx 7rpx 1rpx rgba(0, 122, 255, 0.1);
  698. border-radius: 40rpx;
  699. position:fixed;
  700. left:50%;
  701. bottom:40rpx;
  702. transform: translateX(-50%);
  703. }
  704. }
  705. .record {
  706. .nodata {
  707. padding-top:160rpx;
  708. font-size: 32rpx;
  709. text-align: center;
  710. color: #999999;
  711. }
  712. &__list {
  713. .record-item {
  714. margin:0 8rpx 10rpx;
  715. .item__time {
  716. padding:20rpx 0;
  717. text-align: center;
  718. font-size: 24rpx;
  719. color: #999999;
  720. }
  721. .item__content {
  722. background:#fff;
  723. border-radius: 16rpx;
  724. .top {
  725. padding:12rpx 0;
  726. border-bottom:1px solid #EEEEEE;
  727. .state {
  728. position:relative;
  729. text-align: center;
  730. color:#fff;
  731. font-size: 30rpx;
  732. margin:0 auto;
  733. width: 240rpx;
  734. height: 56rpx;
  735. line-height: 56rpx;
  736. background: #007AFF;
  737. border-radius: 28rpx;
  738. &.wait {
  739. background: #007AFF;
  740. }
  741. &.refuse {
  742. background: #FF3B30;
  743. }
  744. &.wait {
  745. background: #34C759;
  746. }
  747. .arrow {
  748. position:absolute;
  749. top:50%;
  750. transform: translateY(-50%);
  751. right:18rpx;
  752. }
  753. }
  754. }
  755. .bottom {
  756. padding:0 32rpx;
  757. .flex {
  758. height:80rpx;
  759. display: flex;
  760. align-items: center;
  761. border-bottom:1px solid #EEEEEE;
  762. &.noborder{
  763. border:0;
  764. }
  765. .text {
  766. font-size: 24rpx;
  767. color: #666666;
  768. }
  769. &__auto {
  770. text-align: right;
  771. flex:1;
  772. font-size: 30rpx;
  773. font-weight: bold;
  774. color: #666666;
  775. .red {
  776. color:#FF3B30;
  777. }
  778. .green {
  779. color:#34C759;
  780. }
  781. }
  782. }
  783. .order-list {
  784. padding-bottom:30rpx;
  785. .order-item {
  786. border-radius: 16rpx;
  787. padding:14rpx;
  788. background:#F5F5F5;
  789. font-size: 30rpx;
  790. color:#333;
  791. margin-top:16rpx;
  792. }
  793. }
  794. }
  795. }
  796. }
  797. }
  798. }
  799. }
  800. .modal {
  801. .select-order {
  802. .line {
  803. width: 80rpx;
  804. height: 8rpx;
  805. background: #999999;
  806. border-radius: 4rpx;
  807. margin:8rpx auto 0;
  808. }
  809. .title {
  810. margin:20rpx 0 15rpx;
  811. text-align: center;
  812. font-size: 24rpx;
  813. color: #999999;
  814. }
  815. .order-item {
  816. display: flex;
  817. align-items: center;
  818. padding: 20rpx;
  819. &__bg {
  820. width: 654rpx;
  821. height: 168rpx;
  822. background: #F5F5F5;
  823. border: 2px solid #F5F5F5;
  824. border-radius: 16rpx;
  825. padding:20rpx;
  826. &.active {
  827. background: #EBF5FF;
  828. border: 2px solid #007AFF;
  829. }
  830. .order-title,.order-number,.order-price {
  831. color:#333333;
  832. margin-top:10rpx;
  833. line-height: 30rpx;
  834. font-size: 30rpx;
  835. }
  836. .order-number {
  837. color:#999;
  838. }
  839. }
  840. }
  841. .confrim-btn {
  842. width: 750rpx;
  843. height: 98rpx;
  844. background: rgba(255, 255, 255, 0.98);
  845. display: flex;
  846. align-items: center;
  847. justify-content: center;
  848. .okBtn {
  849. text-align: center;
  850. line-height: 64rpx;
  851. color:#fff;
  852. font-size: 30rpx;
  853. width: 200rpx;
  854. height: 64rpx;
  855. background: linear-gradient(0deg, #015EEA, #00C0FA);
  856. border-radius: 32rpx;
  857. }
  858. }
  859. }
  860. .order-detail {
  861. padding:24rpx 0 0;
  862. width: 640rpx;
  863. height: 1112rpx;
  864. background: #FFFFFF;
  865. display: flex;
  866. flex-direction: column;
  867. &__content {
  868. flex:1;
  869. padding:0 24rpx;
  870. /deep/ .u-cell {
  871. padding:10rpx;
  872. &_title {
  873. color:#999;
  874. }
  875. &__value {
  876. color:#333;
  877. text-align: left;
  878. }
  879. .text {
  880. &.wait {
  881. color:#007AFF;
  882. }
  883. &.agree {
  884. color:#34C759;
  885. }
  886. &.refuse {
  887. color:#FF3B30;
  888. }
  889. }
  890. .preview {
  891. width:240rpx;
  892. height:160rpx;
  893. }
  894. .download-btn {
  895. margin:10rpx 0 0;
  896. text-align: center;
  897. line-height: 56rpx;
  898. color:#fff;
  899. font-size: 30rpx;
  900. width: 224rpx;
  901. height: 56rpx;
  902. background: #007AFF;
  903. border-radius: 16rpx;
  904. }
  905. }
  906. .header {
  907. font-size: 30rpx;
  908. font-weight: bold;
  909. color: #333333;
  910. line-height: 48rpx;
  911. }
  912. .body {
  913. &__item {
  914. border-bottom:1px solid #EEEEEE;
  915. padding-bottom:30rpx;
  916. &:last-child {
  917. border:0;
  918. }
  919. .title {
  920. margin-top:30rpx;
  921. font-size: 24rpx;
  922. color: #007AFF;
  923. line-height: 48rpx;
  924. &::before {
  925. content:'';
  926. width: 4rpx;
  927. height: 24rpx;
  928. background: #007AFF;
  929. border-radius: 2rpx;
  930. display: inline-block;
  931. margin-right:10rpx;
  932. }
  933. }
  934. .order-list {
  935. .order-item {
  936. overflow: hidden;
  937. border-radius: 16rpx;
  938. padding:0 14rpx 14rpx;
  939. background:#F5F5F5;
  940. font-size: 30rpx;
  941. color:#333;
  942. margin-top:16rpx;
  943. .order-title,.order-number,.order-price {
  944. color:#333333;
  945. margin-top:20rpx;
  946. line-height: 26rpx;
  947. font-size: 26rpx;
  948. }
  949. .order-number {
  950. color:#999;
  951. }
  952. }
  953. }
  954. .order-text {
  955. margin-top:16rpx;
  956. padding:0 30rpx;
  957. height: 80rpx;
  958. background: #F5F5F5;
  959. border-radius: 16rpx;
  960. display: flex;
  961. align-items: center;
  962. &__label {
  963. font-size: 24rpx;
  964. color:#999999;
  965. }
  966. &__price {
  967. font-size: 30rpx;
  968. margin-left:20rpx;
  969. color:#FF2D55;
  970. }
  971. }
  972. }
  973. }
  974. }
  975. &__btns {
  976. border-top:1px solid #EEEEEE;
  977. padding:0 24rpx;
  978. width: 100%;
  979. height: 140rpx;
  980. background: #FFFFFF;
  981. display: flex;
  982. justify-content: center;
  983. align-items: center;
  984. .btn {
  985. text-align: center;
  986. width: 200rpx;
  987. height: 80rpx;
  988. line-height: 80rpx;
  989. background: #F5F5F5;
  990. border-radius: 40rpx;
  991. color:#007AFF;
  992. font-size: 30rpx;
  993. margin:0 10rpx;
  994. &.warm {
  995. background: #FF3B30;
  996. color:#fff;
  997. }
  998. &.ok {
  999. color:#fff;
  1000. width: 526rpx;
  1001. height: 80rpx;
  1002. background: #007AFF;
  1003. border-radius: 40rpx;
  1004. }
  1005. }
  1006. }
  1007. }
  1008. .order-cancel {
  1009. width: 640rpx;
  1010. height: 439rpx;
  1011. background: #FFFFFF;
  1012. padding:40rpx;
  1013. .header {
  1014. text-align: center;
  1015. font-size: 30rpx;
  1016. font-weight: bold;
  1017. color: #333333;
  1018. line-height: 48rpx;
  1019. }
  1020. .body {
  1021. margin-top:40rpx;
  1022. view {
  1023. font-size: 30rpx;
  1024. color: #666666;
  1025. line-height: 48rpx;
  1026. }
  1027. }
  1028. .footer {
  1029. margin-top:40rpx;
  1030. display: flex;
  1031. align-items: center;
  1032. justify-content: center;
  1033. .btn {
  1034. text-align: center;
  1035. line-height: 80rpx;
  1036. font-size: 30rpx;
  1037. color:#007AFF;
  1038. width: 200rpx;
  1039. height: 80rpx;
  1040. background: #F5F5F5;
  1041. border-radius: 40rpx;
  1042. margin:0 10rpx;
  1043. &.ok {
  1044. color:#fff;
  1045. background: #007AFF;
  1046. }
  1047. }
  1048. }
  1049. }
  1050. }
  1051. }
  1052. </style>