home.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992
  1. <template>
  2. <view class="container">
  3. <!-- 头部选择房间区域 -->
  4. <view class="select-item" @click="navigateToSelect">
  5. <view class="picker-item-logol">
  6. <image class="picker-item-logo-left" src="../../static/room.png"></image>
  7. </view>
  8. <view class="picker-item-label">已选房间</view>
  9. <view class="picker-item-content" v-if="roomSelect=='请选择宿舍'">{{roomSelect}}</view>
  10. <view class="picker-item-content2" v-else>{{roomSelect}}</view>
  11. <view class="picker-item-logor">
  12. <image class="picker-item-logo-right" src="../../static/right.png"></image>
  13. </view>
  14. </view>
  15. <!-- 账单显示区域 -->
  16. <view class="bill">
  17. <!-- 筛选框区域 -->
  18. <view class="choose">
  19. <view class="time" v-if="isShow">
  20. <uni-data-select :clear="false" :placeholder="time_value+''" :localdata="time_range"
  21. @change="changeTime">
  22. </uni-data-select>
  23. </view>
  24. <view class="type" v-if="isShow">
  25. <uni-data-select :clear="false" placeholder="全部" :localdata="type_range" @change="changeType">
  26. </uni-data-select>
  27. </view>
  28. </view>
  29. <!-- 没有账单时展示的内容 -->
  30. <view class="null" v-if="!list.length">
  31. <img src="../../static/null.png">
  32. <span>暂无账单</span>
  33. </view>
  34. <!-- 有账单时展示的内容 -->
  35. <view class="has" v-else>
  36. <!-- 账单列表区域 -->
  37. <view class="has_bill">
  38. <view class="item" v-for="item in list" :key="item.id">
  39. <view class="item_header">
  40. {{item.payMonth+item.paymentItem}}
  41. </view>
  42. <view class="item_box">
  43. <view class="item_box_1">
  44. 上月表数:{{item.lastElectry}}
  45. </view>
  46. <view class="item_box_2">
  47. 本月表数:{{item.nowElectry}}
  48. </view>
  49. </view>
  50. <view class="item_box">
  51. <view class="item_box_1">
  52. 用量:{{item.nowTonnage}}吨
  53. </view>
  54. <view class="item_box_2">
  55. 补助吨数:{{item.subsidiesTonnage}}吨
  56. </view>
  57. </view>
  58. <view class="item_box" v-if="item.payItemType=='2'">
  59. <view class="item_box_1">
  60. 支付人:{{item.payerName}}
  61. </view>
  62. </view>
  63. <view class="item_notes">
  64. 备注:{{item.orderNotice}}
  65. </view>
  66. <view class="item_box">
  67. <view class="item_box_1 font">
  68. {{item.payCreateTime}}
  69. </view>
  70. <view class="item_box_2">
  71. 实付款:{{item.realPayAmount}}
  72. </view>
  73. </view>
  74. <view class="item_button">
  75. <button class="feedback right" type="primary" plain size="mini"
  76. @click="handleFeedback(item)">
  77. 订单反馈
  78. </button>
  79. <button class="feedback" type="warn" size="mini" disabled v-if="item.payItemType=='2'">
  80. 已支付
  81. </button>
  82. <button class="feedback" type="primary" size="mini" @click="navigateToPay(item)" v-else>
  83. 支付
  84. </button>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 电话区域按钮 -->
  91. <view class="phone">
  92. <view class="phone_box">
  93. 咨询电话:
  94. <span @click="handlePhone">82293462</span>
  95. </view>
  96. </view>
  97. <!-- 悬浮按钮区域 -->
  98. <view v-if="roomSelect!='请选择宿舍'" class="suspend_button" @click="goBill" @touchstart="down"
  99. @touchmove.prevent.stop="move" @touchend="end">
  100. 订单查询
  101. </view>
  102. <!-- 订单反馈弹窗区域 -->
  103. <uni-popup ref="popup_feedback" background-color="#fff" :is-mask-click="false">
  104. <view class="popup_view">
  105. <view class="title">{{popTitle}}</view>
  106. <view class="forms">
  107. <uni-forms ref="valiForm" :rules="rules" :modelValue="valiFormData">
  108. <uni-forms-item label="姓名:" required name="feedbackPersonName">
  109. <uni-easyinput v-model="valiFormData.feedbackPersonName" placeholder="请输入姓名" />
  110. </uni-forms-item>
  111. <uni-forms-item label="联系电话:" required name="feedbackPersonPhone">
  112. <uni-easyinput maxlength="11" v-model="valiFormData.feedbackPersonPhone" type="number"
  113. placeholder="请输入联系人手机号码" />
  114. </uni-forms-item>
  115. <uni-forms-item label="宿舍号:" required name="feedbackRoom">
  116. <uni-easyinput v-model="valiFormData.feedbackRoom" placeholder="请输入宿舍号" />
  117. </uni-forms-item>
  118. <uni-forms-item label="反馈信息:" required name="feedbackInfo">
  119. <uni-easyinput type="textarea" v-model="valiFormData.feedbackInfo" placeholder="请输入反馈信息" />
  120. </uni-forms-item>
  121. <uni-forms-item label="上传图片:" name="feedbackImg">
  122. <uni-file-picker limit="3" title="最多上传3张图片" v-model="valiFormData.feedbackImg"
  123. fileMediatype="image" :image-styles="imageStyles" mode="grid" @select="select"
  124. @delete="handleDelete">
  125. </uni-file-picker>
  126. </uni-forms-item>
  127. </uni-forms>
  128. <view class="form_button">
  129. <button type="primary" size="mini" @click="popSubmit('valiForm')">
  130. 提交
  131. </button>
  132. <button type="primary" plain size="mini" @click="close">
  133. 取消
  134. </button>
  135. </view>
  136. </view>
  137. </view>
  138. </uni-popup>
  139. </view>
  140. </template>
  141. <script>
  142. // 引入照片压缩js文件
  143. import * as TranslateImage from '../../util/imageZip.js'
  144. // 引入加密函数
  145. import {
  146. rsaEncrypt
  147. } from '@/util/rsa'
  148. export default {
  149. data() {
  150. return {
  151. // 图片上传组件的样式
  152. imageStyles: {
  153. width: 75,
  154. height: 75,
  155. border: {
  156. color: "#ccc",
  157. width: 1,
  158. style: 'dashed',
  159. radius: '5px'
  160. }
  161. },
  162. // 选择的宿舍绑定数据
  163. roomSelect: "请选择宿舍",
  164. // 悬浮按钮移动标识
  165. flags: false,
  166. maxW: 0,
  167. maxH: 0,
  168. position: {
  169. x: 0,
  170. y: 0
  171. },
  172. nx: 0,
  173. ny: 0,
  174. // 账单数据
  175. list: [],
  176. // 时间筛选框选中值绑定数据
  177. time_value: "",
  178. // 时间筛选框列表绑定数据
  179. time_range: [],
  180. // 支付状态 0是全部 1是未支付 2是已支付
  181. pay_type: 0,
  182. // 支付状态筛选框列表绑定数据
  183. type_range: [{
  184. value: 1,
  185. text: "全部"
  186. },
  187. {
  188. value: 2,
  189. text: "未支付"
  190. },
  191. {
  192. value: 3,
  193. text: "已支付"
  194. },
  195. ],
  196. // 订单反馈弹窗 表格的验证规则
  197. rules: {
  198. feedbackPersonName: {
  199. rules: [{
  200. required: true,
  201. errorMessage: "请输入姓名",
  202. },
  203. {
  204. minLength: 2,
  205. maxLength: 8,
  206. errorMessage: "请输入正确的姓名",
  207. }
  208. ],
  209. },
  210. feedbackPersonPhone: {
  211. rules: [{
  212. required: true,
  213. errorMessage: "请输入联系人手机号码",
  214. },
  215. {
  216. pattern: /^[1]([3-9])[0-9]{9}$/,
  217. errorMessage: '请输入正确的手机号码'
  218. }
  219. ],
  220. },
  221. feedbackRoom: {
  222. rules: [{
  223. required: true,
  224. errorMessage: "请输入宿舍号",
  225. }, ],
  226. },
  227. feedbackInfo: {
  228. rules: [{
  229. required: true,
  230. errorMessage: "请输入反馈信息",
  231. }, ],
  232. },
  233. },
  234. // 订单反馈弹窗 表格绑定数据
  235. valiFormData: {
  236. feedbackPersonName: "",
  237. feedbackPersonPhone: "",
  238. feedbackRoom: "",
  239. feedbackInfo: "",
  240. feedbackImg: []
  241. },
  242. // 弹窗标题
  243. popTitle: "",
  244. // 订单号
  245. orderNo: "",
  246. // 金额
  247. amount: "",
  248. // 微信支付参数
  249. form: {
  250. appId: "",
  251. timeStamp: "",
  252. nonceStr: "",
  253. signType: "",
  254. paySign: "",
  255. package: "",
  256. },
  257. //农商行地址
  258. notifyUrl: "https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/pay/jxnxs/notify/",
  259. // 反馈提交图片参数
  260. imgs: [],
  261. payId: ""
  262. };
  263. },
  264. onLoad() {
  265. // 判断是否存在card_number,不存在则重新授权
  266. this.getAuthorization();
  267. // 如果之前已经选择过宿舍,则从缓存中读取
  268. if (localStorage.room) {
  269. this.roomSelect = localStorage.room
  270. this.getData()
  271. this.getTimeList()
  272. }
  273. },
  274. methods: {
  275. getAuthorization() {
  276. let card_number = localStorage.getItem("card_number");
  277. let studentName = localStorage.getItem("studentName");
  278. let openId = localStorage.getItem("openId");
  279. if (!card_number || !studentName || !openId) {
  280. uni.showModal({
  281. title: "提示",
  282. content: "请先领取校园卡或授权后再进行相关操作",
  283. showCancel: false,
  284. success: () => {
  285. uni.reLaunch({
  286. url: "/pages/index/index",
  287. });
  288. },
  289. });
  290. }
  291. },
  292. // 获取账单列表数据
  293. async getData() {
  294. // 对密码进行加密
  295. let rsaRoom = rsaEncrypt(localStorage.room)
  296. // console.log(rsaRoom);
  297. // 获取当前年份
  298. if (!this.time_value) {
  299. let date = new Date();
  300. this.time_value = date.getFullYear()
  301. }
  302. let res = await this.$myRequest({
  303. url: "/payableinfowater/queryWaterInfo",
  304. method: "post",
  305. data: {
  306. dorm: rsaRoom,
  307. year: this.time_value,
  308. payStatu: this.pay_type,
  309. },
  310. });
  311. // console.log(res);
  312. if (res.success) {
  313. this.list = res.data
  314. }
  315. },
  316. // 获取时间筛选框时间数组
  317. async getTimeList() {
  318. let res = await this.$myRequest({
  319. url: "/payableinfowater/queryAllYear",
  320. data: {
  321. dorm: localStorage.room,
  322. },
  323. });
  324. // console.log(res);
  325. if (res.success) {
  326. this.time_range = res.data
  327. }
  328. },
  329. // 选择图片回调
  330. select(e) {
  331. e.tempFiles.forEach((item) => {
  332. TranslateImage.translate(item.path, ((res) => {
  333. // 判断图片大小是否过大
  334. if (Number(res.size) > 1000000) {
  335. uni.showModal({
  336. content: `图片过大,请重新上传`,
  337. showCancel: false,
  338. success() {}
  339. })
  340. return
  341. }
  342. uni.showLoading({
  343. title: '上传中'
  344. });
  345. // 上传图片
  346. uni.uploadFile({
  347. url: `https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/feedbackmsg/uploadImage`,
  348. filePath: res.url,
  349. name: 'images',
  350. success: (uploadFileRes) => {
  351. // 收集提交请求所需要的图片参数数据
  352. this.imgs.push((JSON.parse(uploadFileRes.data).data))
  353. // 处理前端页面预览图片的数据
  354. const path = item.path;
  355. this.valiFormData.feedbackImg.push({
  356. url: path,
  357. name: ""
  358. })
  359. uni.hideLoading();
  360. },
  361. fail: () => {
  362. uni.hideLoading();
  363. }
  364. });
  365. }))
  366. })
  367. },
  368. // 删除图片回调
  369. handleDelete(e) {
  370. const num = this.valiFormData.feedbackImg.findIndex(v => v.path === e.tempFilePath);
  371. this.valiFormData.feedbackImg.splice(num, 1);
  372. this.imgs.splice(num, 1);
  373. },
  374. // 订单反馈按钮弹窗
  375. async handleFeedback(item) {
  376. this.popTitle = item.title
  377. this.valiFormData.feedbackPersonName = "";
  378. this.valiFormData.feedbackPersonPhone = "";
  379. this.valiFormData.feedbackRoom = "";
  380. this.valiFormData.feedbackInfo = "";
  381. this.valiFormData.feedbackImg = [];
  382. this.imgs = [];
  383. let res = await this.$myRequest({
  384. url: "/wechat/getUserNameTele",
  385. data: {
  386. cardNumber: localStorage.card_number,
  387. },
  388. });
  389. // console.log(res);
  390. if (res.success) {
  391. this.valiFormData.feedbackPersonName = res.data.name
  392. this.valiFormData.feedbackPersonPhone = res.data.telephone
  393. this.valiFormData.feedbackRoom = localStorage.room
  394. }
  395. this.$refs.popup_feedback.open();
  396. },
  397. // 订单反馈弹窗提交按钮回调
  398. popSubmit(ref) {
  399. this.$refs[ref]
  400. .validate()
  401. .then(async (res) => {
  402. // 如果上传了图片,处理图片参数字段
  403. if (res.feedbackImg.length) {
  404. res.image = this.imgs.join(";")
  405. }
  406. res.feedbackItemName = "水费缴纳"
  407. // 整理参数
  408. let {
  409. feedbackImg,
  410. ...data
  411. } = res
  412. let result = await this.$myRequest({
  413. url: "/feedbackmsg/save",
  414. method: "post",
  415. data
  416. })
  417. if (result.success) {
  418. uni.showToast({
  419. title: '提交成功',
  420. });
  421. }
  422. this.$refs.popup_feedback.close();
  423. })
  424. .catch((err) => {
  425. console.log("err", err);
  426. });
  427. },
  428. // 订单反馈弹窗取消按钮回调
  429. close() {
  430. this.$refs.popup_feedback.close();
  431. },
  432. // 时间筛选框数据改变回调
  433. changeTime(e) {
  434. if (e != "") {
  435. this.time_range.forEach((element) => {
  436. if (element.value == e) {
  437. this.time_value = element.text
  438. }
  439. })
  440. this.getData()
  441. }
  442. },
  443. // 支付状态筛选框数据改变回调
  444. changeType(e) {
  445. if (e == 1 || e == 2 || e == 3) {
  446. if (e == 1) {
  447. this.pay_type = 0
  448. } else if (e == 2) {
  449. this.pay_type = 1
  450. } else if (e == 3) {
  451. this.pay_type = 2
  452. }
  453. this.getData()
  454. }
  455. },
  456. // 跳转到选择宿舍页面
  457. navigateToSelect() {
  458. uni.navigateTo({
  459. url: '/pages/select/select',
  460. });
  461. },
  462. // 支付回调
  463. navigateToPay(item) {
  464. // console.log(item);
  465. this.payId = item.id
  466. this.amount = item.realPayAmount;
  467. this.getQuery(item)
  468. },
  469. // 处理参数
  470. async getQuery(item) {
  471. // console.log(item);
  472. let res = await this.$myRequest({
  473. url: `/payorder/${item.payForIdentify}/receiveOrder`,
  474. method: "post",
  475. data: {
  476. id: item.id,
  477. studentNo: "",
  478. itemName: item.paymentItem,
  479. payYear: item.payMonth,
  480. payDetail: item.payAmountDetail,
  481. dorm: item.dorm,
  482. payOrderLoan: "",
  483. orderNotice: item.orderNotice,
  484. // payItemType: 1,
  485. payCount: "1",
  486. notPaySize: 0,
  487. nowRealPayAmount: item.realPayAmount,
  488. payerCardNumber: localStorage.card_number,
  489. payerName: localStorage.studentName
  490. }
  491. })
  492. // console.log(res);
  493. if (res.success) {
  494. this.createPayorder(item)
  495. }
  496. },
  497. // 创建订单
  498. async createPayorder(item) {
  499. let res = await this.$myRequest({
  500. url: `/payorder/${item.payForIdentify}/create`,
  501. method: "post",
  502. data: {
  503. id: item.id,
  504. studentNo: "",
  505. itemName: item.paymentItem,
  506. payYear: item.payMonth,
  507. payDetail: item.payAmountDetail,
  508. dorm: item.dorm,
  509. payOrderLoan: 0,
  510. orderNotice: item.orderNotice,
  511. payCount: "1",
  512. notPaySize: 0,
  513. nowRealPayAmount: item.realPayAmount,
  514. payerCardNumber: localStorage.card_number,
  515. payerName: localStorage.studentName
  516. },
  517. });
  518. // console.log(res);
  519. if (res.success) {
  520. this.orderNo = res.data[0].orderNo;
  521. if (res.data[0].payMethod == "1") {
  522. // console.log("建行");
  523. this.getjhPay();
  524. } else {
  525. // console.log("农商");
  526. this.getnsPay();
  527. }
  528. }
  529. },
  530. // 建行支付请求
  531. async getjhPay() {
  532. let res = await this.$myRequest({
  533. url: "/pay/ccb/getJsApiParam",
  534. data: {
  535. orderNo: this.orderNo,
  536. openId: localStorage.openId,
  537. secondOrderNo: "",
  538. payment: "2"
  539. },
  540. });
  541. // console.log(res);
  542. if (res.success) {
  543. this.form = {
  544. ...res.data,
  545. };
  546. //调起微信支付
  547. // this.wxPay();
  548. this.updateStatu()
  549. } else {
  550. uni.showToast({
  551. title: res.message,
  552. icon: "error",
  553. mask: true,
  554. });
  555. }
  556. },
  557. // 更改支付状态
  558. async updateStatu() {
  559. let res = await this.$myRequest({
  560. url: "/payableinfowater/updateWaterStatu",
  561. data: {
  562. payStatu: "0",
  563. payInfoId: this.payId
  564. },
  565. });
  566. // console.log(res);
  567. if (res.success) {
  568. //调起微信支付
  569. this.wxPay();
  570. }
  571. },
  572. // 微信支付回调
  573. wxPay() {
  574. let that = this;
  575. function onBridgeReady() {
  576. WeixinJSBridge.invoke(
  577. "getBrandWCPayRequest",
  578. that.form,
  579. function(res) {
  580. if (res.errMsg == "get_brand_wcpay_request:ok") {
  581. // 使用以上方式判断前端返回,微信团队郑重提示:
  582. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  583. } else {
  584. }
  585. }
  586. );
  587. }
  588. // 兼容处理
  589. if (typeof WeixinJSBridge == "undefined") {
  590. if (document.addEventListener) {
  591. document.addEventListener(
  592. "WeixinJSBridgeReady",
  593. onBridgeReady,
  594. false
  595. );
  596. } else if (document.attachEvent) {
  597. document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
  598. document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
  599. }
  600. } else {
  601. onBridgeReady();
  602. }
  603. },
  604. // 农商支付请求
  605. getnsPay() {
  606. let O = "6fc31630a4d3de99f5e41debbd35b9f0";
  607. let out_no = this.orderNo;
  608. let amount = this.amount;
  609. let appoint_notify = this.notifyUrl;
  610. let mainUrl =
  611. `https://q.jxnxs.com/newpay?O=${O}&out_no=${out_no}&amount=${amount}&appoint_notify=${appoint_notify}`;
  612. window.location.href = mainUrl;
  613. },
  614. // 订单查询悬浮按钮回调
  615. goBill() {
  616. uni.navigateTo({
  617. url: "/pages/bill/bill"
  618. })
  619. },
  620. // 实现移动端拖拽
  621. down(event) {
  622. let suspend_button = document.querySelector(".suspend_button");
  623. this.flags = true;
  624. let touch;
  625. if (event.touches) {
  626. touch = event.touches[0];
  627. } else {
  628. touch = event;
  629. }
  630. this.maxW = document.body.clientWidth - suspend_button.offsetWidth;
  631. this.maxH = document.body.clientHeight - suspend_button.offsetHeight;
  632. this.position.x = touch.clientX - suspend_button.offsetLeft;
  633. this.position.y = touch.clientY - suspend_button.offsetTop;
  634. },
  635. move(event) {
  636. let suspend_button = document.querySelector(".suspend_button");
  637. if (this.flags) {
  638. let touch;
  639. if (event.touches) {
  640. touch = event.touches[0];
  641. } else {
  642. touch = event;
  643. }
  644. this.nx = touch.clientX - this.position.x;
  645. this.ny = touch.clientY - this.position.y;
  646. if (this.nx < 0) {
  647. this.nx = 0;
  648. } else if (this.nx > this.maxW) {
  649. this.nx = this.maxW;
  650. }
  651. if (this.ny < 0) {
  652. this.ny = 0;
  653. } else if (this.ny >= this.maxH) {
  654. this.ny = this.maxH;
  655. }
  656. suspend_button.style.left = this.nx + "px";
  657. suspend_button.style.top = this.ny + "px";
  658. }
  659. },
  660. end() {
  661. this.flags = false;
  662. },
  663. // 拨打电话回调
  664. handlePhone() {
  665. uni.makePhoneCall({
  666. phoneNumber: '82293462'
  667. });
  668. },
  669. // 下拉刷新
  670. onPullDownRefresh() {
  671. if (localStorage.room) {
  672. this.roomSelect = localStorage.room
  673. this.getData()
  674. this.getTimeList()
  675. }
  676. setTimeout(() => {
  677. uni.stopPullDownRefresh();
  678. }, 1500)
  679. },
  680. },
  681. computed: {
  682. // 计算出缓存中是否存在宿舍号
  683. isShow() {
  684. if (localStorage.room) {
  685. return true
  686. } else {
  687. return false
  688. }
  689. }
  690. },
  691. }
  692. </script>
  693. <style lang="scss" scoped>
  694. .container {
  695. overflow: auto;
  696. min-height: 100vh;
  697. background-image: url(../../static/bg.png);
  698. background-size: 100% 100%;
  699. .select-item {
  700. margin: 19rpx 0;
  701. display: flex;
  702. background-color: #ffffff;
  703. height: 139rpx;
  704. .picker-item-logol {
  705. width: 88rpx;
  706. display: flex;
  707. justify-content: flex-end;
  708. align-items: center;
  709. .picker-item-logo-left {
  710. width: 58rpx;
  711. height: 58rpx;
  712. }
  713. }
  714. .picker-item-label {
  715. font-size: 30rpx;
  716. width: 161rpx;
  717. height: 139rpx;
  718. line-height: 139rpx;
  719. text-align: center;
  720. }
  721. .picker-item-content {
  722. width: 360rpx;
  723. height: 139rpx;
  724. line-height: 139rpx;
  725. font-size: 36rpx;
  726. text-align: center;
  727. color: #999999;
  728. }
  729. .picker-item-content2 {
  730. width: 360rpx;
  731. height: 139rpx;
  732. line-height: 139rpx;
  733. font-size: 32rpx;
  734. text-align: center;
  735. color: black;
  736. overflow: hidden;
  737. text-overflow: ellipsis;
  738. white-space: nowrap;
  739. }
  740. .picker-item-logor {
  741. width: 91rpx;
  742. display: flex;
  743. justify-content: center;
  744. align-items: center;
  745. .picker-item-logo-right {
  746. width: 40rpx;
  747. height: 40rpx;
  748. }
  749. }
  750. }
  751. .bill {
  752. margin: 20rpx 0;
  753. min-height: 920rpx;
  754. .choose {
  755. display: flex;
  756. margin: 0 20rpx;
  757. .time {
  758. flex: 1;
  759. padding-right: 40rpx;
  760. }
  761. .type {
  762. flex: 1;
  763. }
  764. }
  765. .null {
  766. display: flex;
  767. flex-direction: column;
  768. align-items: center;
  769. margin: 0 auto;
  770. padding-top: 300rpx;
  771. width: 50%;
  772. height: 400rpx;
  773. img {
  774. height: 90%;
  775. }
  776. span {
  777. margin-top: 30rpx;
  778. }
  779. }
  780. .has {
  781. margin: 0 20rpx;
  782. .has_bill {
  783. margin-top: 20rpx;
  784. .item {
  785. margin-bottom: 20rpx;
  786. border-radius: 10rpx;
  787. background-color: #fff;
  788. .item_header {
  789. height: 96rpx;
  790. line-height: 96rpx;
  791. text-align: center;
  792. font-weight: bold;
  793. border-radius: 10rpx 10rpx 0 0;
  794. background-color: #e7eef5;
  795. }
  796. .item_box {
  797. display: flex;
  798. margin: 0 30rpx;
  799. height: 70rpx;
  800. line-height: 70rpx;
  801. font-weight: bold;
  802. .item_box_1 {
  803. flex: 1.5;
  804. }
  805. .item_box_2 {
  806. flex: 1;
  807. }
  808. .font {
  809. font-weight: normal;
  810. color: #999;
  811. }
  812. }
  813. .item_notes {
  814. margin: 0 30rpx;
  815. height: 60rpx;
  816. line-height: 60rpx;
  817. font-size: 26rpx;
  818. color: #999;
  819. }
  820. .item_button {
  821. display: flex;
  822. justify-content: flex-end;
  823. margin: 10rpx 50rpx;
  824. height: 74rpx;
  825. line-height: 74rpx;
  826. .feedback {
  827. margin: 0;
  828. padding: 0;
  829. width: 140rpx;
  830. height: 65rpx;
  831. line-height: 65rpx;
  832. font-size: 26rpx;
  833. }
  834. .right {
  835. margin-right: 50rpx;
  836. }
  837. }
  838. }
  839. }
  840. }
  841. }
  842. .phone {
  843. display: flex;
  844. justify-content: center;
  845. align-items: center;
  846. margin: 20rpx 0;
  847. height: 70rpx;
  848. .phone_box {
  849. margin-bottom: 20rpx;
  850. span {
  851. color: #4993EA;
  852. }
  853. }
  854. }
  855. .suspend_button {
  856. position: fixed;
  857. left: 80rpx;
  858. bottom: 120rpx;
  859. width: 140rpx;
  860. height: 140rpx;
  861. line-height: 140rpx;
  862. text-align: center;
  863. border-radius: 70rpx;
  864. color: #fff;
  865. background-color: rgba(0, 0, 0, 0.4);
  866. }
  867. .popup_view {
  868. width: 650rpx;
  869. .title {
  870. height: 90rpx;
  871. line-height: 90rpx;
  872. font-size: 36rpx;
  873. font-weight: bold;
  874. text-align: center;
  875. background-color: #e7eef5;
  876. }
  877. .forms {
  878. margin: 40rpx;
  879. width: 550rpx;
  880. .form_button {
  881. display: flex;
  882. text-align: center;
  883. button {
  884. width: 200rpx;
  885. }
  886. }
  887. }
  888. }
  889. }
  890. ::v-deep .uni-select__input-placeholder {
  891. font-size: 28rpx;
  892. color: #3a3a3a;
  893. }
  894. ::v-deep .uniui-bottom::before {
  895. color: #fff;
  896. }
  897. ::v-deep .uni-forms-item__label {
  898. width: 160rpx !important;
  899. }
  900. </style>