bill.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  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.stop="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. this.list = []
  303. let res = await this.$myRequest({
  304. url: "/payorder/queryWaterOrder",
  305. data: {
  306. payYear: this.payYear,
  307. payStatu: this.payStatu,
  308. itemName: "水费缴纳",
  309. cardNumber: localStorage.card_number
  310. }
  311. })
  312. // console.log(res);
  313. if (res.success) {
  314. this.list = res.data
  315. }
  316. },
  317. // 获取时间数组
  318. async getTime() {
  319. let res = await this.$myRequest({
  320. url: "/payorder/queryWaterOrderYear",
  321. data: {
  322. payStatu: this.payStatu,
  323. cardNumber: localStorage.card_number
  324. }
  325. })
  326. // console.log(res);
  327. if (res.success) {
  328. this.dataTree = res.data
  329. }
  330. },
  331. // 上传图片回调
  332. select(e) {
  333. e.tempFiles.forEach((item) => {
  334. TranslateImage.translate(item.path, ((res) => {
  335. // 判断图片大小是否过大
  336. if (Number(res.size) > 1000000) {
  337. uni.showModal({
  338. content: `图片过大,请重新上传`,
  339. showCancel: false,
  340. success() {}
  341. })
  342. return
  343. }
  344. uni.showLoading({
  345. title: '上传中'
  346. });
  347. // 上传图片
  348. uni.uploadFile({
  349. url: `https://chtech.ncjti.edu.cn/jiaofei/jiaofei-api/tuitionpayment/feedbackmsg/uploadImage`,
  350. filePath: res.url,
  351. name: 'images',
  352. success: (uploadFileRes) => {
  353. // 收集提交请求所需要的图片参数数据
  354. this.imgs.push((JSON.parse(uploadFileRes.data).data))
  355. const path = item.path;
  356. this.valiFormData.feedbackImg.push({
  357. url: path,
  358. name: ""
  359. })
  360. uni.hideLoading();
  361. },
  362. fail: () => {
  363. uni.hideLoading();
  364. }
  365. });
  366. }))
  367. })
  368. },
  369. // 删除图片回调
  370. handleDelete(e) {
  371. const num = this.valiFormData.feedbackImg.findIndex(v => v.path === e.tempFilePath);
  372. this.valiFormData.feedbackImg.splice(num, 1);
  373. this.imgs.splice(num, 1);
  374. },
  375. // 筛选框数据改变回调
  376. onchange(e) {
  377. // console.log(e);
  378. if (e.detail.value.length == 0) {
  379. this.payYear = "";
  380. } else {
  381. this.payYear = e.detail.value[0].text;
  382. }
  383. this.getData()
  384. },
  385. // 顶部tab标签切换回调
  386. onClickItem(e) {
  387. this.current = e.currentIndex;
  388. if (this.current == 0) {
  389. this.payStatu = 1;
  390. } else {
  391. this.payStatu = 2;
  392. }
  393. this.getData()
  394. },
  395. // 订单反馈按钮回调
  396. async handleFeedback(item) {
  397. this.popTitle = item.title
  398. this.valiFormData.feedbackPersonName = "";
  399. this.valiFormData.feedbackPersonPhone = "";
  400. this.valiFormData.feedbackRoom = "";
  401. this.valiFormData.feedbackInfo = "";
  402. this.valiFormData.feedbackImg = [];
  403. this.imgs = []
  404. let res = await this.$myRequest({
  405. url: "/wechat/getUserNameTele",
  406. data: {
  407. cardNumber: localStorage.card_number,
  408. },
  409. });
  410. if (res.success) {
  411. this.valiFormData.feedbackPersonName = res.data.name
  412. this.valiFormData.feedbackPersonPhone = res.data.telephone
  413. this.valiFormData.feedbackRoom = localStorage.room
  414. }
  415. this.$refs.popup_feedback.open();
  416. },
  417. // 订单反馈弹窗提交按钮回调
  418. submit(ref) {
  419. this.$refs[ref]
  420. .validate()
  421. .then(async (res) => {
  422. // 如果上传了图片,处理图片参数字段
  423. if (res.feedbackImg.length) {
  424. res.image = this.imgs.join(";")
  425. }
  426. res.feedbackItemName = "水费缴纳"
  427. // 整理参数
  428. let {
  429. feedbackImg,
  430. ...data
  431. } = res
  432. let result = await this.$myRequest({
  433. url: "/feedbackmsg/save",
  434. method: "post",
  435. data
  436. })
  437. if (result.success) {
  438. uni.showToast({
  439. title: '提交成功',
  440. });
  441. }
  442. this.$refs.popup_feedback.close();
  443. })
  444. .catch((err) => {
  445. console.log("err", err);
  446. });
  447. },
  448. // 订单反馈弹窗取消按钮回调
  449. close() {
  450. this.$refs.popup_feedback.close();
  451. },
  452. // 继续支付按钮回调
  453. goPayPage(item) {
  454. // console.log(item);
  455. this.orderNo = item.orderNo;
  456. this.amount = item.nowPayAmount;
  457. this.getQuery(item)
  458. },
  459. // 处理参数
  460. async getQuery(item) {
  461. // console.log(item);
  462. let res = await this.$myRequest({
  463. url: `/payorder/${item.payForIdentify}/receiveOrder`,
  464. method: "post",
  465. data: {
  466. id: item.id,
  467. studentNo: item.studentNo,
  468. itemName: item.payItem,
  469. payYear: item.payYear,
  470. payDetail: item.payDetail,
  471. dorm: item.dorm,
  472. payOrderLoan: "",
  473. orderNotice: item.orderNotice,
  474. // payItemType: 1,
  475. payCount: "1",
  476. notPaySize: 0,
  477. nowRealPayAmount: item.realPayAmount,
  478. payerCardNumber: localStorage.card_number,
  479. payerName: localStorage.studentName
  480. }
  481. })
  482. // console.log(res);
  483. if (res.success) {
  484. this.createPayorder(item)
  485. }
  486. },
  487. // 创建订单
  488. async createPayorder(item) {
  489. let res = await this.$myRequest({
  490. url: `/payorder/${item.payForIdentify}/create`,
  491. method: "post",
  492. data: {
  493. id: item.payinfoId,
  494. studentNo: item.payForIdentify,
  495. itemName: item.payItem,
  496. payYear: item.payYear,
  497. payDetail: item.payDetail,
  498. dorm: item.dorm,
  499. payOrderLoan: item.payOrderLoan,
  500. orderNotice: item.orderNotice,
  501. payCount: "2",
  502. notPaySize: 0,
  503. nowRealPayAmount: item.nowPayAmount,
  504. payerCardNumber: localStorage.card_number,
  505. payerName: localStorage.studentName
  506. },
  507. });
  508. // console.log(res);
  509. if (res.success) {
  510. this.orderNo = res.data[0].orderNo;
  511. if (res.data[0].payMethod == "1") {
  512. // console.log("建行");
  513. this.getjhPay();
  514. } else {
  515. // console.log("农商");
  516. this.getnsPay();
  517. }
  518. }
  519. },
  520. // 建行支付请求
  521. async getjhPay() {
  522. let res = await this.$myRequest({
  523. url: "/pay/ccb/getJsApiParam",
  524. data: {
  525. orderNo: this.orderNo,
  526. openId: localStorage.openId,
  527. secondOrderNo: "",
  528. payment: "2"
  529. },
  530. });
  531. // console.log(res);
  532. if (res.success) {
  533. this.form = {
  534. ...res.data,
  535. };
  536. //调起微信支付
  537. this.wxPay();
  538. } else {
  539. uni.showToast({
  540. title: res.message,
  541. icon: "error",
  542. mask: true,
  543. });
  544. }
  545. },
  546. // 微信支付回调
  547. wxPay() {
  548. let that = this;
  549. function onBridgeReady() {
  550. WeixinJSBridge.invoke(
  551. "getBrandWCPayRequest",
  552. that.form,
  553. function(res) {
  554. if (res.errMsg == "get_brand_wcpay_request:ok") {
  555. // 使用以上方式判断前端返回,微信团队郑重提示:
  556. //res.err_msg将在用户支付成功后返回ok,但并不保证它绝对可靠。
  557. } else {
  558. uni.showToast({
  559. title: "支付失败",
  560. icon: 'error'
  561. })
  562. }
  563. }
  564. );
  565. }
  566. // 兼容处理
  567. if (typeof WeixinJSBridge == "undefined") {
  568. if (document.addEventListener) {
  569. document.addEventListener(
  570. "WeixinJSBridgeReady",
  571. onBridgeReady,
  572. false
  573. );
  574. } else if (document.attachEvent) {
  575. document.attachEvent("WeixinJSBridgeReady", onBridgeReady);
  576. document.attachEvent("onWeixinJSBridgeReady", onBridgeReady);
  577. }
  578. } else {
  579. onBridgeReady();
  580. }
  581. },
  582. // 农商支付请求
  583. getnsPay() {
  584. let O = "6fc31630a4d3de99f5e41debbd35b9f0";
  585. let out_no = this.orderNo;
  586. let amount = this.amount;
  587. let appoint_notify = this.notifyUrl;
  588. let mainUrl =
  589. `https://q.jxnxs.com/newpay?O=${O}&out_no=${out_no}&amount=${amount}&appoint_notify=${appoint_notify}`;
  590. window.location.href = mainUrl;
  591. },
  592. // 返回主页按钮回调
  593. goHome() {
  594. uni.navigateTo({
  595. url: "/pages/home/home",
  596. });
  597. },
  598. // 实现移动端拖拽
  599. down(event) {
  600. let item_box = document.querySelector("#item_box");
  601. this.flags = true;
  602. let touch;
  603. if (event.touches) {
  604. touch = event.touches[0];
  605. } else {
  606. touch = event;
  607. }
  608. this.maxW = document.body.clientWidth - item_box.offsetWidth;
  609. this.maxH = document.body.clientHeight - item_box.offsetHeight;
  610. this.position.x = touch.clientX - item_box.offsetLeft;
  611. this.position.y = touch.clientY - item_box.offsetTop;
  612. },
  613. move(event) {
  614. let item_box = document.querySelector("#item_box");
  615. if (this.flags) {
  616. let touch;
  617. if (event.touches) {
  618. touch = event.touches[0];
  619. } else {
  620. touch = event;
  621. }
  622. this.nx = touch.clientX - this.position.x;
  623. this.ny = touch.clientY - this.position.y;
  624. if (this.nx < 0) {
  625. this.nx = 0;
  626. } else if (this.nx > this.maxW) {
  627. this.nx = this.maxW;
  628. }
  629. if (this.ny < 0) {
  630. this.ny = 0;
  631. } else if (this.ny >= this.maxH) {
  632. this.ny = this.maxH;
  633. }
  634. item_box.style.left = this.nx + "px";
  635. item_box.style.top = this.ny + "px";
  636. }
  637. },
  638. end() {
  639. this.flags = false;
  640. },
  641. // 下拉刷新
  642. onPullDownRefresh() {
  643. this.getData()
  644. this.getTime()
  645. setTimeout(() => {
  646. uni.stopPullDownRefresh();
  647. }, 1500)
  648. },
  649. },
  650. };
  651. </script>
  652. <style lang="scss" scoped>
  653. .container {
  654. overflow: auto;
  655. min-height: 100vh;
  656. background-image: url(../../static/bg.png);
  657. background-size: 100% 100%;
  658. .body {
  659. margin: 0 30rpx;
  660. .tab {
  661. padding-top: 20rpx;
  662. .select {
  663. display: flex;
  664. margin-top: 20rpx;
  665. padding: 0 6rpx;
  666. height: 100rpx;
  667. border-radius: 10rpx;
  668. .picker {
  669. width: 100%;
  670. padding-top: 8rpx;
  671. }
  672. }
  673. .content {
  674. min-height: 80vh;
  675. overflow: auto;
  676. .detail {
  677. margin-bottom: 30rpx;
  678. background-color: #fff;
  679. border-radius: 5px;
  680. .detail_title {
  681. position: relative;
  682. height: 96rpx;
  683. line-height: 96rpx;
  684. text-align: center;
  685. border-radius: 5px 5px 0 0;
  686. background-color: #e7eef5;
  687. .title1 {
  688. font-size: 32rpx;
  689. }
  690. text {
  691. position: absolute;
  692. top: 0;
  693. right: 30rpx;
  694. font-size: 24rpx;
  695. color: red;
  696. }
  697. .title3 {
  698. color: #ff8b02;
  699. }
  700. }
  701. .info {
  702. .place {
  703. display: flex;
  704. margin-left: 34rpx;
  705. margin-top: 30rpx;
  706. .name {
  707. width: 200rpx;
  708. text-align-last: justify;
  709. color: #808080;
  710. }
  711. .rooms {
  712. padding-left: 130rpx;
  713. width: 440rpx;
  714. font-size: 32rpx;
  715. }
  716. .time {
  717. flex: 5;
  718. font-size: 24rpx;
  719. color: #999;
  720. }
  721. }
  722. .timeAndNumber {
  723. display: flex;
  724. margin-left: 34rpx;
  725. margin-top: 20rpx;
  726. .time {
  727. flex: 5;
  728. font-size: 24rpx;
  729. color: #999;
  730. }
  731. .number {
  732. flex: 5;
  733. font-size: 32rpx;
  734. }
  735. }
  736. .button {
  737. display: flex;
  738. justify-content: flex-end;
  739. margin-top: 20rpx;
  740. padding-bottom: 30rpx;
  741. .button_item {
  742. margin: 0 20rpx;
  743. padding: 0;
  744. width: 90px;
  745. }
  746. }
  747. .button2 {
  748. display: flex;
  749. margin-top: 20rpx;
  750. padding-bottom: 20rpx;
  751. .button_item {
  752. padding: 0;
  753. margin-left: auto;
  754. margin-right: 60rpx;
  755. width: 90px;
  756. }
  757. }
  758. }
  759. }
  760. }
  761. .image {
  762. margin: 260rpx auto;
  763. width: 438rpx;
  764. height: 360rpx;
  765. background: url(../../static/null.png);
  766. background-size: 100%;
  767. }
  768. .infoNo {
  769. margin-top: 100rpx;
  770. text-align: center;
  771. font-size: 36rpx;
  772. }
  773. }
  774. .suspension {
  775. position: fixed;
  776. left: 36rpx;
  777. bottom: 50rpx;
  778. display: flex;
  779. flex-direction: column;
  780. align-items: center;
  781. width: 140rpx;
  782. height: 140rpx;
  783. border-radius: 70rpx;
  784. background-color: rgba(0, 0, 0, 0.4);
  785. overflow: auto;
  786. .icon {
  787. flex: 1;
  788. img {
  789. margin-top: 20rpx;
  790. width: 40rpx;
  791. }
  792. }
  793. .info {
  794. flex: 2;
  795. font-size: 24rpx;
  796. color: #fff;
  797. }
  798. }
  799. .popup_view {
  800. width: 650rpx;
  801. .title {
  802. height: 90rpx;
  803. line-height: 90rpx;
  804. text-align: center;
  805. font-size: 36rpx;
  806. font-weight: bold;
  807. background-color: #e7eef5;
  808. }
  809. .forms {
  810. margin: 40rpx;
  811. width: 550rpx;
  812. .form_button {
  813. display: flex;
  814. text-align: center;
  815. button {
  816. width: 200rpx;
  817. }
  818. }
  819. }
  820. }
  821. }
  822. }
  823. ::v-deep .uni-forms-item__label {
  824. width: 160rpx !important;
  825. }
  826. ::v-deep .placeholder {
  827. color: #fff;
  828. }
  829. ::v-deep .input-arrow {
  830. border-color: #fff;
  831. }
  832. </style>