home.vue 22 KB

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