home.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971
  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. };
  262. },
  263. onLoad() {
  264. // 判断是否存在card_number,不存在则重新授权
  265. this.getAuthorization();
  266. // 如果之前已经选择过宿舍,则从缓存中读取
  267. if (localStorage.room) {
  268. this.roomSelect = localStorage.room
  269. this.getData()
  270. this.getTimeList()
  271. }
  272. },
  273. methods: {
  274. getAuthorization() {
  275. let card_number = localStorage.getItem("card_number");
  276. let studentName = localStorage.getItem("studentName");
  277. let openId = localStorage.getItem("openId");
  278. if (!card_number || !studentName || !openId) {
  279. uni.showModal({
  280. title: "提示",
  281. content: "请先领取校园卡或授权后再进行相关操作",
  282. showCancel: false,
  283. success: () => {
  284. uni.reLaunch({
  285. url: "/pages/index/index",
  286. });
  287. },
  288. });
  289. }
  290. },
  291. // 获取账单列表数据
  292. async getData() {
  293. // 对密码进行加密
  294. let rsaRoom = rsaEncrypt(localStorage.room)
  295. // console.log(rsaRoom);
  296. // 获取当前年份
  297. if (!this.time_value) {
  298. let date = new Date();
  299. this.time_value = date.getFullYear()
  300. }
  301. let res = await this.$myRequest({
  302. url: "/payableinfowater/queryWaterInfo",
  303. method:"post",
  304. data: {
  305. dorm: rsaRoom,
  306. year: this.time_value,
  307. payStatu: this.pay_type,
  308. },
  309. });
  310. // console.log(res);
  311. if (res.success) {
  312. this.list = res.data
  313. }
  314. },
  315. // 获取时间筛选框时间数组
  316. async getTimeList() {
  317. let res = await this.$myRequest({
  318. url: "/payableinfowater/queryAllYear",
  319. data: {
  320. dorm: localStorage.room,
  321. },
  322. });
  323. // console.log(res);
  324. if (res.success) {
  325. this.time_range = res.data
  326. }
  327. },
  328. // 选择图片回调
  329. select(e) {
  330. e.tempFiles.forEach((item) => {
  331. TranslateImage.translate(item.path, ((res) => {
  332. // 判断图片大小是否过大
  333. if (Number(res.size) > 1000000) {
  334. uni.showModal({
  335. content: `图片过大,请重新上传`,
  336. showCancel: false,
  337. success() {}
  338. })
  339. return
  340. }
  341. uni.showLoading({
  342. title: '上传中'
  343. });
  344. // 上传图片
  345. uni.uploadFile({
  346. url: `https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/feedbackmsg/uploadImage`,
  347. filePath: res.url,
  348. name: 'images',
  349. success: (uploadFileRes) => {
  350. // 收集提交请求所需要的图片参数数据
  351. this.imgs.push((JSON.parse(uploadFileRes.data).data))
  352. // 处理前端页面预览图片的数据
  353. const path = item.path;
  354. this.valiFormData.feedbackImg.push({
  355. url: path,
  356. name: ""
  357. })
  358. uni.hideLoading();
  359. },
  360. fail: () => {
  361. uni.hideLoading();
  362. }
  363. });
  364. }))
  365. })
  366. },
  367. // 删除图片回调
  368. handleDelete(e) {
  369. const num = this.valiFormData.feedbackImg.findIndex(v => v.path === e.tempFilePath);
  370. this.valiFormData.feedbackImg.splice(num, 1);
  371. this.imgs.splice(num, 1);
  372. },
  373. // 订单反馈按钮弹窗
  374. async handleFeedback(item) {
  375. this.popTitle = item.title
  376. this.valiFormData.feedbackPersonName = "";
  377. this.valiFormData.feedbackPersonPhone = "";
  378. this.valiFormData.feedbackRoom = "";
  379. this.valiFormData.feedbackInfo = "";
  380. this.valiFormData.feedbackImg = [];
  381. this.imgs = [];
  382. let res = await this.$myRequest({
  383. url: "/wechat/getUserNameTele",
  384. data: {
  385. cardNumber: localStorage.card_number,
  386. },
  387. });
  388. // console.log(res);
  389. if (res.success) {
  390. this.valiFormData.feedbackPersonName = res.data.name
  391. this.valiFormData.feedbackPersonPhone = res.data.telephone
  392. this.valiFormData.feedbackRoom = localStorage.room
  393. }
  394. this.$refs.popup_feedback.open();
  395. },
  396. // 订单反馈弹窗提交按钮回调
  397. popSubmit(ref) {
  398. this.$refs[ref]
  399. .validate()
  400. .then(async (res) => {
  401. // 如果上传了图片,处理图片参数字段
  402. if (res.feedbackImg.length) {
  403. res.image = this.imgs.join(";")
  404. }
  405. res.feedbackItemName = "水费缴纳"
  406. // 整理参数
  407. let {
  408. feedbackImg,
  409. ...data
  410. } = res
  411. let result = await this.$myRequest({
  412. url: "/feedbackmsg/save",
  413. method: "post",
  414. data
  415. })
  416. if (result.success) {
  417. uni.showToast({
  418. title: '提交成功',
  419. });
  420. }
  421. this.$refs.popup_feedback.close();
  422. })
  423. .catch((err) => {
  424. console.log("err", err);
  425. });
  426. },
  427. // 订单反馈弹窗取消按钮回调
  428. close() {
  429. this.$refs.popup_feedback.close();
  430. },
  431. // 时间筛选框数据改变回调
  432. changeTime(e) {
  433. if (e != "") {
  434. this.time_range.forEach((element) => {
  435. if (element.value == e) {
  436. this.time_value = element.text
  437. }
  438. })
  439. this.getData()
  440. }
  441. },
  442. // 支付状态筛选框数据改变回调
  443. changeType(e) {
  444. if (e == 1 || e == 2 || e == 3) {
  445. if (e == 1) {
  446. this.pay_type = 0
  447. } else if (e == 2) {
  448. this.pay_type = 1
  449. } else if (e == 3) {
  450. this.pay_type = 2
  451. }
  452. this.getData()
  453. }
  454. },
  455. // 跳转到选择宿舍页面
  456. navigateToSelect() {
  457. uni.navigateTo({
  458. url: '/pages/select/select',
  459. });
  460. },
  461. // 支付回调
  462. navigateToPay(item) {
  463. // console.log(item);
  464. this.amount = item.realPayAmount;
  465. this.getQuery(item)
  466. },
  467. // 处理参数
  468. async getQuery(item) {
  469. // console.log(item);
  470. let res = await this.$myRequest({
  471. url: `/payorder/${item.payForIdentify}/receiveOrder`,
  472. method: "post",
  473. data: {
  474. id: item.id,
  475. studentNo: "",
  476. itemName: item.paymentItem,
  477. payYear: item.payMonth,
  478. payDetail: item.payAmountDetail,
  479. dorm: item.dorm,
  480. payOrderLoan: "",
  481. orderNotice: item.orderNotice,
  482. // payItemType: 1,
  483. payCount: "1",
  484. notPaySize: 0,
  485. nowRealPayAmount: item.realPayAmount,
  486. payerCardNumber: localStorage.card_number,
  487. payerName: localStorage.studentName
  488. }
  489. })
  490. // console.log(res);
  491. if (res.success) {
  492. this.createPayorder(item)
  493. }
  494. },
  495. // 创建订单
  496. async createPayorder(item) {
  497. let res = await this.$myRequest({
  498. url: `/payorder/${item.payForIdentify}/create`,
  499. method: "post",
  500. data: {
  501. id: item.id,
  502. studentNo: "",
  503. itemName: item.paymentItem,
  504. payYear: item.payMonth,
  505. payDetail: item.payAmountDetail,
  506. dorm: item.dorm,
  507. payOrderLoan: 0,
  508. orderNotice: item.orderNotice,
  509. payCount: "1",
  510. notPaySize: 0,
  511. nowRealPayAmount: item.realPayAmount,
  512. payerCardNumber: localStorage.card_number,
  513. payerName: localStorage.studentName
  514. },
  515. });
  516. // console.log(res);
  517. if (res.success) {
  518. this.orderNo = res.data[0].orderNo;
  519. if (res.data[0].payMethod == "1") {
  520. // console.log("建行");
  521. this.getjhPay();
  522. } else {
  523. // console.log("农商");
  524. this.getnsPay();
  525. }
  526. }
  527. },
  528. // 建行支付请求
  529. async getjhPay() {
  530. let res = await this.$myRequest({
  531. url: "/pay/ccb/getJsApiParam",
  532. data: {
  533. orderNo: this.orderNo,
  534. openId: localStorage.openId,
  535. secondOrderNo: "",
  536. payment: "2"
  537. },
  538. });
  539. // console.log(res);
  540. if (res.success) {
  541. this.form = {
  542. ...res.data,
  543. };
  544. //调起微信支付
  545. this.wxPay();
  546. } else {
  547. uni.showToast({
  548. title: res.message,
  549. icon: "error",
  550. mask: true,
  551. });
  552. }
  553. },
  554. // 微信支付回调
  555. wxPay() {
  556. let that = this;
  557. function onBridgeReady() {
  558. WeixinJSBridge.invoke(
  559. "getBrandWCPayRequest",
  560. that.form,
  561. function(res) {
  562. if (res.errMsg == "get_brand_wcpay_request:ok") {
  563. // 使用以上方式判断前端返回,微信团队郑重提示:
  564. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  565. }
  566. }
  567. );
  568. }
  569. // 兼容处理
  570. if (typeof WeixinJSBridge == "undefined") {
  571. if (document.addEventListener) {
  572. document.addEventListener(
  573. "WeixinJSBridgeReady",
  574. onBridgeReady,
  575. false
  576. );
  577. } else if (document.attachEvent) {
  578. document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
  579. document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
  580. }
  581. } else {
  582. onBridgeReady();
  583. }
  584. },
  585. // 农商支付请求
  586. getnsPay() {
  587. let O = "6fc31630a4d3de99f5e41debbd35b9f0";
  588. let out_no = this.orderNo;
  589. let amount = this.amount;
  590. let appoint_notify = this.notifyUrl;
  591. let mainUrl =
  592. `https://q.jxnxs.com/newpay?O=${O}&out_no=${out_no}&amount=${amount}&appoint_notify=${appoint_notify}`;
  593. window.location.href = mainUrl;
  594. },
  595. // 订单查询悬浮按钮回调
  596. goBill() {
  597. uni.navigateTo({
  598. url: "/pages/bill/bill"
  599. })
  600. },
  601. // 实现移动端拖拽
  602. down(event) {
  603. let suspend_button = document.querySelector(".suspend_button");
  604. this.flags = true;
  605. let touch;
  606. if (event.touches) {
  607. touch = event.touches[0];
  608. } else {
  609. touch = event;
  610. }
  611. this.maxW = document.body.clientWidth - suspend_button.offsetWidth;
  612. this.maxH = document.body.clientHeight - suspend_button.offsetHeight;
  613. this.position.x = touch.clientX - suspend_button.offsetLeft;
  614. this.position.y = touch.clientY - suspend_button.offsetTop;
  615. },
  616. move(event) {
  617. let suspend_button = document.querySelector(".suspend_button");
  618. if (this.flags) {
  619. let touch;
  620. if (event.touches) {
  621. touch = event.touches[0];
  622. } else {
  623. touch = event;
  624. }
  625. this.nx = touch.clientX - this.position.x;
  626. this.ny = touch.clientY - this.position.y;
  627. if (this.nx < 0) {
  628. this.nx = 0;
  629. } else if (this.nx > this.maxW) {
  630. this.nx = this.maxW;
  631. }
  632. if (this.ny < 0) {
  633. this.ny = 0;
  634. } else if (this.ny >= this.maxH) {
  635. this.ny = this.maxH;
  636. }
  637. suspend_button.style.left = this.nx + "px";
  638. suspend_button.style.top = this.ny + "px";
  639. }
  640. },
  641. end() {
  642. this.flags = false;
  643. },
  644. // 拨打电话回调
  645. handlePhone() {
  646. uni.makePhoneCall({
  647. phoneNumber: '82293462'
  648. });
  649. },
  650. // 下拉刷新
  651. onPullDownRefresh() {
  652. if (localStorage.room) {
  653. this.roomSelect = "黄家湖" + localStorage.room
  654. this.getData()
  655. this.getTimeList()
  656. }
  657. setTimeout(() => {
  658. uni.stopPullDownRefresh();
  659. }, 1500)
  660. },
  661. },
  662. computed: {
  663. // 计算出缓存中是否存在宿舍号
  664. isShow() {
  665. if (localStorage.room) {
  666. return true
  667. } else {
  668. return false
  669. }
  670. }
  671. },
  672. }
  673. </script>
  674. <style lang="scss" scoped>
  675. .container {
  676. overflow: auto;
  677. min-height: 100vh;
  678. background-image: url(../../static/bg.png);
  679. background-size: 100% 100%;
  680. .select-item {
  681. margin: 19rpx 0;
  682. display: flex;
  683. background-color: #ffffff;
  684. height: 139rpx;
  685. .picker-item-logol {
  686. width: 88rpx;
  687. display: flex;
  688. justify-content: flex-end;
  689. align-items: center;
  690. .picker-item-logo-left {
  691. width: 58rpx;
  692. height: 58rpx;
  693. }
  694. }
  695. .picker-item-label {
  696. font-size: 30rpx;
  697. width: 161rpx;
  698. height: 139rpx;
  699. line-height: 139rpx;
  700. text-align: center;
  701. }
  702. .picker-item-content {
  703. width: 360rpx;
  704. height: 139rpx;
  705. line-height: 139rpx;
  706. font-size: 36rpx;
  707. text-align: center;
  708. color: #999999;
  709. }
  710. .picker-item-content2 {
  711. width: 360rpx;
  712. height: 139rpx;
  713. line-height: 139rpx;
  714. font-size: 32rpx;
  715. text-align: center;
  716. color: black;
  717. overflow: hidden;
  718. text-overflow: ellipsis;
  719. white-space: nowrap;
  720. }
  721. .picker-item-logor {
  722. width: 91rpx;
  723. display: flex;
  724. justify-content: center;
  725. align-items: center;
  726. .picker-item-logo-right {
  727. width: 40rpx;
  728. height: 40rpx;
  729. }
  730. }
  731. }
  732. .bill {
  733. margin: 20rpx 0;
  734. min-height: 920rpx;
  735. .choose {
  736. display: flex;
  737. margin: 0 20rpx;
  738. .time {
  739. flex: 1;
  740. padding-right: 40rpx;
  741. }
  742. .type {
  743. flex: 1;
  744. }
  745. }
  746. .null {
  747. display: flex;
  748. flex-direction: column;
  749. align-items: center;
  750. margin: 0 auto;
  751. padding-top: 300rpx;
  752. width: 50%;
  753. height: 400rpx;
  754. img {
  755. height: 90%;
  756. }
  757. span {
  758. margin-top: 30rpx;
  759. }
  760. }
  761. .has {
  762. margin: 0 20rpx;
  763. .has_bill {
  764. margin-top: 20rpx;
  765. .item {
  766. margin-bottom: 20rpx;
  767. border-radius: 10rpx;
  768. background-color: #fff;
  769. .item_header {
  770. height: 96rpx;
  771. line-height: 96rpx;
  772. text-align: center;
  773. font-weight: bold;
  774. border-radius: 10rpx 10rpx 0 0;
  775. background-color: #e7eef5;
  776. }
  777. .item_box {
  778. display: flex;
  779. margin: 0 30rpx;
  780. height: 70rpx;
  781. line-height: 70rpx;
  782. font-weight: bold;
  783. .item_box_1 {
  784. flex: 1.5;
  785. }
  786. .item_box_2 {
  787. flex: 1;
  788. }
  789. .font {
  790. font-weight: normal;
  791. color: #999;
  792. }
  793. }
  794. .item_notes {
  795. margin: 0 30rpx;
  796. height: 60rpx;
  797. line-height: 60rpx;
  798. font-size: 26rpx;
  799. color: #999;
  800. }
  801. .item_button {
  802. display: flex;
  803. justify-content: flex-end;
  804. margin: 10rpx 50rpx;
  805. height: 74rpx;
  806. line-height: 74rpx;
  807. .feedback {
  808. margin: 0;
  809. padding: 0;
  810. width: 140rpx;
  811. height: 65rpx;
  812. line-height: 65rpx;
  813. font-size: 26rpx;
  814. }
  815. .right {
  816. margin-right: 50rpx;
  817. }
  818. }
  819. }
  820. }
  821. }
  822. }
  823. .phone {
  824. display: flex;
  825. justify-content: center;
  826. align-items: center;
  827. margin: 20rpx 0;
  828. height: 70rpx;
  829. .phone_box {
  830. margin-bottom: 20rpx;
  831. span {
  832. color: #4993EA;
  833. }
  834. }
  835. }
  836. .suspend_button {
  837. position: fixed;
  838. left: 80rpx;
  839. bottom: 120rpx;
  840. width: 140rpx;
  841. height: 140rpx;
  842. line-height: 140rpx;
  843. text-align: center;
  844. border-radius: 70rpx;
  845. color: #fff;
  846. background-color: rgba(0, 0, 0, 0.4);
  847. }
  848. .popup_view {
  849. width: 650rpx;
  850. .title {
  851. height: 90rpx;
  852. line-height: 90rpx;
  853. font-size: 36rpx;
  854. font-weight: bold;
  855. text-align: center;
  856. background-color: #e7eef5;
  857. }
  858. .forms {
  859. margin: 40rpx;
  860. width: 550rpx;
  861. .form_button {
  862. display: flex;
  863. text-align: center;
  864. button {
  865. width: 200rpx;
  866. }
  867. }
  868. }
  869. }
  870. }
  871. ::v-deep .uni-select__input-placeholder {
  872. font-size: 28rpx;
  873. color: #3a3a3a;
  874. }
  875. ::v-deep .uniui-bottom::before {
  876. color: #fff;
  877. }
  878. ::v-deep .uni-forms-item__label {
  879. width: 160rpx !important;
  880. }
  881. </style>