bill.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923
  1. <template>
  2. <view class="container">
  3. <view class="body">
  4. <!-- 顶部tab标签区域 -->
  5. <view class="tab">
  6. <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text"
  7. activeColor="#fff">
  8. </uni-segmented-control>
  9. <view class="select" v-if="list.length">
  10. <uni-data-picker class="picker" placeholder="点击根据时间筛选" popup-title="请选择筛选条件" :localdata="dataTree"
  11. @change="onchange">
  12. </uni-data-picker>
  13. </view>
  14. <view class="content" v-if="list.length">
  15. <!-- 缴费失败区域 -->
  16. <view v-show="current === 0">
  17. <view class="detail" v-for="item in list" :key="item.id">
  18. <view class="detail_title">
  19. <view class="title1">
  20. {{ item.payYear }}水费账单
  21. </view>
  22. <text>缴费失败</text>
  23. </view>
  24. <view class="info">
  25. <view class="place">
  26. <view class="name">宿舍</view>
  27. <view class="rooms">{{ item.dorm }}</view>
  28. </view>
  29. <view class="place">
  30. <view class="name">上月表数</view>
  31. <view class="rooms">{{ item.payForIdentify }}</view>
  32. </view>
  33. <view class="place">
  34. <view class="name">本月表数</view>
  35. <view class="rooms">{{ item.studentName }}</view>
  36. </view>
  37. <view class="place">
  38. <view class="name">用量</view>
  39. <view class="rooms">{{ item.className }}</view>
  40. </view>
  41. <view class="place">
  42. <view class="name">补助吨数</view>
  43. <view class="rooms">{{ item.parentOrder }}</view>
  44. </view>
  45. <view class="place">
  46. <view class="time">备注:{{item.orderNotice}}</view>
  47. </view>
  48. <view class="timeAndNumber">
  49. <view class="time">{{ item.createTime }}</view>
  50. <view class="number">待付款¥{{ item.nowPayAmount }}</view>
  51. </view>
  52. <view class="button">
  53. <button type="primary" plain size="mini" class="button_item"
  54. @click="handleFeedback(item)">
  55. 订单反馈
  56. </button>
  57. <button type="primary" plain size="mini" class="button_item"
  58. @click="goPayPage(item)">
  59. 继续支付
  60. </button>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <!-- 缴费成功区域 -->
  66. <view v-show="current === 1">
  67. <view class="detail" v-for="item in list" :key="item.id">
  68. <view class="detail_title">
  69. <view class="title1">
  70. {{ item.payYear }}水费账单
  71. </view>
  72. <text class="title3">缴费成功</text>
  73. </view>
  74. <view class="info">
  75. <view class="place">
  76. <view class="name">宿舍</view>
  77. <view class="rooms">{{ item.dorm }}</view>
  78. </view>
  79. <view class="place">
  80. <view class="name">上月表数</view>
  81. <view class="rooms">{{ item.payForIdentify }}</view>
  82. </view>
  83. <view class="place">
  84. <view class="name">本月表数</view>
  85. <view class="rooms">{{ item.studentName }}</view>
  86. </view>
  87. <view class="place">
  88. <view class="name">用量</view>
  89. <view class="rooms">{{ item.className }}</view>
  90. </view>
  91. <view class="place">
  92. <view class="name">补助吨数</view>
  93. <view class="rooms">{{ item.parentOrder }}</view>
  94. </view>
  95. <view class="place">
  96. <view class="time">备注:{{item.orderNotice}}</view>
  97. </view>
  98. <view class="timeAndNumber">
  99. <view class="time">{{ item.createTime }}</view>
  100. <view class="number">实付款¥{{ item.nowPayAmount }}</view>
  101. </view>
  102. <view class="button2">
  103. <button class="button_item" type="primary" plain size="mini"
  104. @click="handleFeedback(item)">
  105. 订单反馈
  106. </button>
  107. </view>
  108. </view>
  109. </view>
  110. </view>
  111. </view>
  112. <!-- 图片区域 -->
  113. <view class="image" v-if="!list.length"></view>
  114. <!-- 提示信息区域 -->
  115. <view class="infoNo" v-if="!list.length"> 暂无缴费订单信息 </view>
  116. <view style="height: 15px"></view>
  117. </view>
  118. <!-- 悬浮按钮返回主页区域 -->
  119. <view id="item_box" class="suspension" @click="goHome" @touchstart="down" @touchmove.prevent="move"
  120. @touchend="end">
  121. <view class="icon">
  122. <img src="../../static/home.png" />
  123. </view>
  124. <view class="info">返回主页</view>
  125. </view>
  126. <!-- 订单反馈弹窗区域 -->
  127. <uni-popup ref="popup_feedback" background-color="#fff" :is-mask-click="false">
  128. <view class="popup_view">
  129. <view class="title">{{popTitle}}</view>
  130. <view class="forms">
  131. <uni-forms ref="valiForm" :rules="rules" :modelValue="valiFormData">
  132. <uni-forms-item label="姓名:" required name="feedbackPersonName">
  133. <uni-easyinput v-model="valiFormData.feedbackPersonName" placeholder="请输入姓名" />
  134. </uni-forms-item>
  135. <uni-forms-item label="联系电话:" required name="feedbackPersonPhone">
  136. <uni-easyinput maxlength="11" v-model="valiFormData.feedbackPersonPhone" type="number"
  137. placeholder="请输入联系人手机号码" />
  138. </uni-forms-item>
  139. <uni-forms-item label="宿舍号:" required name="feedbackRoom">
  140. <uni-easyinput v-model="valiFormData.feedbackRoom" placeholder="请输入宿舍号" />
  141. </uni-forms-item>
  142. <uni-forms-item label="反馈信息:" required name="feedbackInfo">
  143. <uni-easyinput type="textarea" v-model="valiFormData.feedbackInfo"
  144. placeholder="请输入反馈信息" />
  145. </uni-forms-item>
  146. <uni-forms-item label="上传图片:" name="feedbackImg">
  147. <uni-file-picker limit="3" title="最多上传3张图片" v-model="valiFormData.feedbackImg"
  148. fileMediatype="image" :image-styles="imageStyles" mode="grid" @select="select"
  149. @delete="handleDelete">
  150. </uni-file-picker>
  151. </uni-forms-item>
  152. </uni-forms>
  153. <view class="form_button">
  154. <button type="primary" size="mini" @click="submit('valiForm')">
  155. 提交
  156. </button>
  157. <button type="primary" plain size="mini" @click="close">
  158. 取消
  159. </button>
  160. </view>
  161. </view>
  162. </view>
  163. </uni-popup>
  164. </view>
  165. </view>
  166. </template>
  167. <script>
  168. // 引入照片压缩js文件
  169. import * as TranslateImage from '../../util/imageZip.js'
  170. export default {
  171. data() {
  172. return {
  173. // 图片上传组件的样式
  174. imageStyles: {
  175. width: 75,
  176. height: 75,
  177. border: {
  178. color: "#ccc",
  179. width: 1,
  180. style: 'dashed',
  181. radius: '5px'
  182. }
  183. },
  184. // 时间筛选框绑定数据
  185. dataTree: [],
  186. // 分段器数据
  187. items: ["缴费失败", "缴费成功"],
  188. // 当前激活分段器
  189. current: 1,
  190. // 缴费状态
  191. payStatu: 2,
  192. // 支付时间
  193. payYear: "",
  194. // 页面账单数据
  195. list: [],
  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. orderNo: "",
  244. // 支付金额
  245. amount: "",
  246. // 微信支付参数
  247. form: {
  248. appId: "",
  249. timeStamp: "",
  250. nonceStr: "",
  251. signType: "",
  252. paySign: "",
  253. package: "",
  254. },
  255. //农商行地址
  256. notifyUrl: "https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/pay/jxnxs/notify/",
  257. // 悬浮窗移动标识
  258. flags: false,
  259. // 定位属性
  260. position: {
  261. x: 0,
  262. y: 0,
  263. },
  264. nx: "",
  265. ny: "",
  266. xPum: "",
  267. yPum: "",
  268. maxW: "",
  269. maxH: "",
  270. // 弹窗标题
  271. popTitle: "",
  272. // 反馈提交图片参数
  273. imgs: [],
  274. };
  275. },
  276. onLoad() {
  277. // 判断是否存在card_number,不存在则重新授权
  278. this.getAuthorization();
  279. this.getData()
  280. this.getTime()
  281. },
  282. methods: {
  283. getAuthorization() {
  284. let card_number = localStorage.getItem("card_number");
  285. let studentName = localStorage.getItem("studentName");
  286. let openId = localStorage.getItem("openId");
  287. if (!card_number || !studentName || !openId) {
  288. uni.showModal({
  289. title: "提示",
  290. content: "请先领取校园卡或授权后再进行相关操作",
  291. showCancel: false,
  292. success: () => {
  293. uni.reLaunch({
  294. url: "/pages/index/index",
  295. });
  296. },
  297. });
  298. }
  299. },
  300. // 获取账单列表数据
  301. async getData() {
  302. let res = await this.$myRequest({
  303. url: "/payorder/queryWaterOrder",
  304. data: {
  305. payYear: this.payYear,
  306. payStatu: this.payStatu,
  307. itemName: "水费缴纳",
  308. cardNmber: localStorage.card_number
  309. }
  310. })
  311. // console.log(res);
  312. if (res.success) {
  313. this.list = res.data
  314. }
  315. },
  316. // 获取时间数组
  317. async getTime() {
  318. let res = await this.$myRequest({
  319. url: "/payorder/queryWaterOrderYear",
  320. data: {
  321. payStatu: this.payStatu,
  322. cardNumber: localStorage.card_number
  323. }
  324. })
  325. // console.log(res);
  326. if (res.success) {
  327. this.dataTree = res.data
  328. }
  329. },
  330. // 上传图片回调
  331. select(e) {
  332. e.tempFiles.forEach((item) => {
  333. TranslateImage.translate(item.path, ((res) => {
  334. // 判断图片大小是否过大
  335. if (Number(res.size) > 1000000) {
  336. uni.showModal({
  337. content: `图片过大,请重新上传`,
  338. showCancel: false,
  339. success() {}
  340. })
  341. return
  342. }
  343. uni.showLoading({
  344. title: '上传中'
  345. });
  346. // 上传图片
  347. uni.uploadFile({
  348. url: `https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/feedbackmsg/uploadImage`,
  349. filePath: res.url,
  350. name: 'images',
  351. success: (uploadFileRes) => {
  352. // 收集提交请求所需要的图片参数数据
  353. this.imgs.push((JSON.parse(uploadFileRes.data).data))
  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. onchange(e) {
  376. // console.log(e);
  377. if (e.detail.value.length == 0) {
  378. this.payYear = "";
  379. } else {
  380. this.payYear = e.detail.value[0].text;
  381. }
  382. this.getData()
  383. },
  384. // 顶部tab标签切换回调
  385. onClickItem(e) {
  386. this.current = e.currentIndex;
  387. if (this.current == 0) {
  388. this.payStatu = 1;
  389. } else {
  390. this.payStatu = 2;
  391. }
  392. this.getData()
  393. },
  394. // 订单反馈按钮回调
  395. async handleFeedback(item) {
  396. this.popTitle = item.title
  397. this.valiFormData.feedbackPersonName = "";
  398. this.valiFormData.feedbackPersonPhone = "";
  399. this.valiFormData.feedbackRoom = "";
  400. this.valiFormData.feedbackInfo = "";
  401. this.valiFormData.feedbackImg = [];
  402. this.imgs = []
  403. let res = await this.$myRequest({
  404. url: "/wechat/getUserNameTele",
  405. data: {
  406. cardNumber: localStorage.card_number,
  407. },
  408. });
  409. if (res.success) {
  410. this.valiFormData.feedbackPersonName = res.data.name
  411. this.valiFormData.feedbackPersonPhone = res.data.telephone
  412. this.valiFormData.feedbackRoom = localStorage.room
  413. }
  414. this.$refs.popup_feedback.open();
  415. },
  416. // 订单反馈弹窗提交按钮回调
  417. submit(ref) {
  418. this.$refs[ref]
  419. .validate()
  420. .then(async (res) => {
  421. // 如果上传了图片,处理图片参数字段
  422. if (res.feedbackImg.length) {
  423. res.image = this.imgs.join(";")
  424. }
  425. res.feedbackItemName = "水费缴纳"
  426. // 整理参数
  427. let {
  428. feedbackImg,
  429. ...data
  430. } = res
  431. let result = await this.$myRequest({
  432. url: "/feedbackmsg/save",
  433. method: "post",
  434. data
  435. })
  436. if (result.success) {
  437. uni.showToast({
  438. title: '提交成功',
  439. });
  440. }
  441. this.$refs.popup_feedback.close();
  442. })
  443. .catch((err) => {
  444. console.log("err", err);
  445. });
  446. },
  447. // 订单反馈弹窗取消按钮回调
  448. close() {
  449. this.$refs.popup_feedback.close();
  450. },
  451. // 继续支付按钮回调
  452. goPayPage(item) {
  453. // console.log(item);
  454. this.orderNo = item.orderNo;
  455. this.amount = item.nowPayAmount;
  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: item.studentNo,
  467. itemName: item.payItem,
  468. payYear: item.payYear,
  469. payDetail: item.payDetail,
  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.payinfoId,
  493. studentNo: item.payForIdentify,
  494. itemName: item.payItem,
  495. payYear: item.payYear,
  496. payDetail: item.payDetail,
  497. dorm: item.dorm,
  498. payOrderLoan: item.payOrderLoan,
  499. orderNotice: item.orderNotice,
  500. payCount: "2",
  501. notPaySize: 0,
  502. nowRealPayAmount: item.nowPayAmount,
  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. }else{
  557. uni.showToast({
  558. title: "支付失败",
  559. icon: 'error'
  560. })
  561. }
  562. }
  563. );
  564. }
  565. // 兼容处理
  566. if (typeof WeixinJSBridge == "undefined") {
  567. if (document.addEventListener) {
  568. document.addEventListener(
  569. "WeixinJSBridgeReady",
  570. onBridgeReady,
  571. false
  572. );
  573. } else if (document.attachEvent) {
  574. document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
  575. document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
  576. }
  577. } else {
  578. onBridgeReady();
  579. }
  580. },
  581. // 农商支付请求
  582. getnsPay() {
  583. let O = "6fc31630a4d3de99f5e41debbd35b9f0";
  584. let out_no = this.orderNo;
  585. let amount = this.amount;
  586. let appoint_notify = this.notifyUrl;
  587. let mainUrl =
  588. `https://q.jxnxs.com/newpay?O=${O}&out_no=${out_no}&amount=${amount}&appoint_notify=${appoint_notify}`;
  589. window.location.href = mainUrl;
  590. },
  591. // 返回主页按钮回调
  592. goHome() {
  593. uni.navigateTo({
  594. url: "/pages/home/home",
  595. });
  596. },
  597. // 实现移动端拖拽
  598. down(event) {
  599. let item_box = document.querySelector("#item_box");
  600. this.flags = true;
  601. let touch;
  602. if (event.touches) {
  603. touch = event.touches[0];
  604. } else {
  605. touch = event;
  606. }
  607. this.maxW = document.body.clientWidth - item_box.offsetWidth;
  608. this.maxH = document.body.clientHeight - item_box.offsetHeight;
  609. this.position.x = touch.clientX - item_box.offsetLeft;
  610. this.position.y = touch.clientY - item_box.offsetTop;
  611. },
  612. move(event) {
  613. let item_box = document.querySelector("#item_box");
  614. if (this.flags) {
  615. let touch;
  616. if (event.touches) {
  617. touch = event.touches[0];
  618. } else {
  619. touch = event;
  620. }
  621. this.nx = touch.clientX - this.position.x;
  622. this.ny = touch.clientY - this.position.y;
  623. if (this.nx < 0) {
  624. this.nx = 0;
  625. } else if (this.nx > this.maxW) {
  626. this.nx = this.maxW;
  627. }
  628. if (this.ny < 0) {
  629. this.ny = 0;
  630. } else if (this.ny >= this.maxH) {
  631. this.ny = this.maxH;
  632. }
  633. item_box.style.left = this.nx + "px";
  634. item_box.style.top = this.ny + "px";
  635. }
  636. },
  637. end() {
  638. this.flags = false;
  639. },
  640. },
  641. };
  642. </script>
  643. <style lang="scss" scoped>
  644. .container {
  645. position: relative;
  646. overflow: auto;
  647. height: 100vh;
  648. background-image: url(../../static/bg.png);
  649. background-size: 100% 100%;
  650. .body {
  651. margin: 0 30rpx;
  652. .tab {
  653. padding-top: 20rpx;
  654. .select {
  655. display: flex;
  656. margin-top: 20rpx;
  657. padding: 0 6rpx;
  658. height: 100rpx;
  659. border-radius: 10rpx;
  660. .picker {
  661. width: 100%;
  662. padding-top: 8rpx;
  663. }
  664. }
  665. .content {
  666. height: 80vh;
  667. overflow: auto;
  668. .detail {
  669. margin-bottom: 30rpx;
  670. background-color: #fff;
  671. border-radius: 5px;
  672. .detail_title {
  673. position: relative;
  674. height: 96rpx;
  675. line-height: 96rpx;
  676. text-align: center;
  677. border-radius: 5px 5px 0 0;
  678. background-color: #e7eef5;
  679. .title1 {
  680. font-size: 32rpx;
  681. }
  682. text {
  683. position: absolute;
  684. top: 0;
  685. right: 30rpx;
  686. font-size: 24rpx;
  687. color: red;
  688. }
  689. .title3 {
  690. color: #ff8b02;
  691. }
  692. }
  693. .info {
  694. .place {
  695. display: flex;
  696. margin-left: 34rpx;
  697. margin-top: 30rpx;
  698. .name {
  699. width: 200rpx;
  700. text-align-last: justify;
  701. color: #808080;
  702. }
  703. .rooms {
  704. padding-left: 130rpx;
  705. width: 440rpx;
  706. font-size: 32rpx;
  707. }
  708. .time {
  709. flex: 5;
  710. font-size: 24rpx;
  711. color: #999;
  712. }
  713. }
  714. .timeAndNumber {
  715. display: flex;
  716. margin-left: 34rpx;
  717. margin-top: 20rpx;
  718. .time {
  719. flex: 5;
  720. font-size: 24rpx;
  721. color: #999;
  722. }
  723. .number {
  724. flex: 5;
  725. font-size: 32rpx;
  726. }
  727. }
  728. .button {
  729. display: flex;
  730. justify-content: flex-end;
  731. margin-top: 20rpx;
  732. padding-bottom: 30rpx;
  733. .button_item {
  734. margin: 0 20rpx;
  735. padding: 0;
  736. width: 90px;
  737. }
  738. }
  739. .button2 {
  740. display: flex;
  741. margin-top: 20rpx;
  742. padding-bottom: 20rpx;
  743. .button_item {
  744. padding: 0;
  745. margin-left: auto;
  746. margin-right: 60rpx;
  747. width: 90px;
  748. }
  749. }
  750. }
  751. }
  752. }
  753. .image {
  754. margin: 260rpx auto;
  755. width: 438rpx;
  756. height: 360rpx;
  757. background: url(../../static/null.png);
  758. background-size: 100%;
  759. }
  760. .infoNo {
  761. margin-top: 100rpx;
  762. text-align: center;
  763. font-size: 36rpx;
  764. }
  765. }
  766. .suspension {
  767. position: absolute;
  768. left: 36rpx;
  769. bottom: 50rpx;
  770. display: flex;
  771. flex-direction: column;
  772. align-items: center;
  773. width: 140rpx;
  774. height: 140rpx;
  775. border-radius: 70rpx;
  776. background-color: rgba(0, 0, 0, 0.4);
  777. overflow: auto;
  778. .icon {
  779. flex: 1;
  780. img {
  781. margin-top: 20rpx;
  782. width: 40rpx;
  783. }
  784. }
  785. .info {
  786. flex: 2;
  787. font-size: 24rpx;
  788. color: #fff;
  789. }
  790. }
  791. .popup_view {
  792. width: 650rpx;
  793. .title {
  794. height: 90rpx;
  795. line-height: 90rpx;
  796. text-align: center;
  797. font-size: 36rpx;
  798. font-weight: bold;
  799. background-color: #e7eef5;
  800. }
  801. .forms {
  802. margin: 40rpx;
  803. width: 550rpx;
  804. .form_button {
  805. display: flex;
  806. text-align: center;
  807. button {
  808. width: 200rpx;
  809. }
  810. }
  811. }
  812. }
  813. }
  814. }
  815. ::v-deep .uni-forms-item__label {
  816. width: 160rpx !important;
  817. }
  818. ::v-deep .placeholder {
  819. color: #fff;
  820. }
  821. ::v-deep .input-arrow {
  822. border-color: #fff;
  823. }
  824. </style>