index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <base-page>
  3. <view class="uni-flex uni-row page-height">
  4. <view class="common-wrap left-wrap" style="flex: 1;">
  5. <view class="header-box">
  6. <view class="order-time">
  7. <view class="title">消费时间</view>
  8. <uni-datetime-picker v-model="orderData.create_time" type="datetime" :clearIcon="false" />
  9. </view>
  10. <view class="header" v-if="memberInfo" :style="'background-image:url(' + $util.img('public/uniapp/cashier/member-bg.png') + ');background-repeat: no-repeat;'">
  11. <view class="headimg" @click="showMember">
  12. <image class="header-image" :src="memberInfo.headimg ? $util.img(memberInfo.headimg) : $util.img(defaultImg.head)" @error="memberInfo.headimg = defaultImg.head"></image>
  13. </view>
  14. <view class="head-info" @click="showMember">
  15. <view class="head-info-top">
  16. <view class="name">
  17. <view class="text">{{ memberInfo.nickname }}</view>
  18. <view class="level" v-if="memberInfo.member_level">{{ memberInfo.member_level_name }}</view>
  19. </view>
  20. <view class="mobile">{{ memberInfo.mobile }}</view>
  21. </view>
  22. <view class="head-info-bottom">
  23. <view>积分:{{ memberInfo.point }}</view>
  24. <view>余额:{{ (parseFloat(memberInfo.balance_money) + parseFloat(memberInfo.balance)) | moneyFormat }}</view>
  25. </view>
  26. </view>
  27. <button class="switch primary-btn" @click="$refs.selectMember.open()">更换会员</button>
  28. <button class="switch primary-btn" @click="replaceMember()">散客</button>
  29. </view>
  30. <view class="header" v-else :style="'background-image:url(' + $util.img('public/uniapp/cashier/member-bg.png') + ');background-repeat: no-repeat;'">
  31. <view class="headimg"><image class="header-image" :src="$util.img(defaultImg.head)"></image></view>
  32. <view class="head-info"><view class="name">散客</view></view>
  33. <button class="switch primary-btn" @click="$refs.selectMember.open()">查询会员</button>
  34. </view>
  35. </view>
  36. <view class="content">
  37. <view class="title">
  38. <view>
  39. 结算清单(
  40. <text>{{ orderData.goods_num }}</text>
  41. </view>
  42. <view class="clear" @click="clearGoods">
  43. <text class="iconfont iconqingchushujuku"></text>
  44. <text>清空</text>
  45. </view>
  46. </view>
  47. <view class="contnet-list common-scrollbar">
  48. <block v-if="orderData.goods_list.length && Object.keys(goodsData).length">
  49. <view class="contnet-item" v-for="(item, index) in orderData.goods_list" :key="index">
  50. <view class="item-img"><image :src="$util.img(item.goods_image.split(',')[0], { size: 'small' })" mode="widthFix"></image></view>
  51. <view class="item-info">
  52. <view class="item-name">{{ item.sku_name }}</view>
  53. <view class="item-del" @click="deleteGoods(item)">删除</view>
  54. <view class="item-spe" arrow-down>{{ item.spec_name }}</view>
  55. <view class="item-price">¥{{ item.price | moneyFormat }}</view>
  56. </view>
  57. <view class="item-num">
  58. <view class="num-dec" @click="dec(item)">-</view>
  59. <view class="num">{{ goodsData['sku_' + item.sku_id].num }}</view>
  60. <view class="num-inc" @click="inc(item)">+</view>
  61. </view>
  62. </view>
  63. </block>
  64. <block v-else>
  65. <view class="empty">
  66. <image :src="$util.img('public/uniapp/cashier/cart_empty.png')" mode="widthFix"></image>
  67. <view class="tips">点击右侧商品,选择商品进行结账</view>
  68. </view>
  69. </block>
  70. </view>
  71. </view>
  72. <view class="bottom">
  73. <view class="bottom-info">
  74. <view class="bottom-left">
  75. <text>{{ orderData.goods_num }}</text>
  76. </view>
  77. </view>
  78. <view class="bottom-btn">
  79. <button class="default-btn btn-left" :disabled="orderData.goods_num == 0" @click="pay('cash')">现金收款</button>
  80. <button class="primary-btn btn-right" :disabled="orderData.goods_num == 0" @click="pay('')">收款¥{{ orderData.pay_money | moneyFormat }}</button>
  81. </view>
  82. </view>
  83. <view class="pay-shade" v-show="type == 'pay'"></view>
  84. </view>
  85. <view class="uni-flex uni-row common-wrap" style="flex: 2;">
  86. <view class="comp-wrap" v-show="type != 'pay'">
  87. <button class=" comp-btn" :class="type == 'goods' ? 'primary-btn' : 'default-btn'" @click="toGoods">卡项</button>
  88. <button class=" comp-btn" :class="type == 'member' ? 'primary-btn' : 'default-btn'" @click="showMember">会员</button>
  89. </view>
  90. <view class="list-wrap" style="flex: 1;">
  91. <view class="content" v-show="type == 'member'">
  92. <nc-member-detail v-if="memberInfo" ref="memberDetail" :member-id="memberInfo.member_id"></nc-member-detail>
  93. </view>
  94. <!-- 卡 -->
  95. <view class="content" v-show="type == 'goods'"><nc-card v-if="hackReset" @select="selectGoods" :type="orderData.card_type"></nc-card></view>
  96. <view class="content" v-show="type == 'pay'">
  97. <nc-payment
  98. v-if="hackReset"
  99. ref="payment"
  100. :payMoney="orderData.pay_money"
  101. @cancel="cancelPayment"
  102. @success="paySuccess"
  103. :out-trade-no="outTradeNo"
  104. ></nc-payment>
  105. </view>
  106. </view>
  107. </view>
  108. </view>
  109. <uni-popup ref="remarkPopup" type="center">
  110. <view class="remark-wrap">
  111. <view class="header">
  112. <text class="title">备注</text>
  113. <text class="iconfont iconguanbi1" @click="$refs.remarkPopup.close()"></text>
  114. </view>
  115. <view class="body"><textarea v-model="remark" placeholder="填写备注信息" placeholder-class="placeholder-class" /></view>
  116. <view class="footer"><button type="default" class="primary-btn" @click="remarkConfirm">确认</button></view>
  117. </view>
  118. </uni-popup>
  119. <nc-select-member ref="selectMember"></nc-select-member>
  120. </base-page>
  121. </template>
  122. <script>
  123. import ncMemberBuycard from '@/components/nc-member-buycard/nc-member-buycard.vue';
  124. import ncSelectMember from '@/components/nc-select-member/nc-select-member.vue';
  125. import ncMemberDetail from '@/components/nc-member-detail/nc-member-detail.vue';
  126. export default {
  127. components: {
  128. ncMemberBuycard,
  129. ncSelectMember,
  130. ncMemberDetail
  131. },
  132. data() {
  133. return {
  134. title: '收银台',
  135. type: 'goods',
  136. goodsData: {},
  137. orderData: {
  138. pay_money: 0,
  139. goods_list: [],
  140. remark: '',
  141. goods_num: 0,
  142. card_type: 'oncecard',
  143. create_time: 0
  144. },
  145. remark: '',
  146. isRepeat: false,
  147. outTradeNo: '',
  148. hackReset: true
  149. };
  150. },
  151. onLoad(option) {
  152. uni.hideTabBar();
  153. this.orderData.card_type = option.type || 'oncecard';
  154. if (this.memberInfo) this.type = 'goods';
  155. },
  156. onShow() {
  157. this.orderData.create_time = this.$util.timeFormat(parseInt(new Date().getTime() / 1000));
  158. },
  159. methods: {
  160. init() {
  161. if (this.siteStore) {
  162. var pages = getCurrentPages(); // 获取栈实例
  163. let currentPage = pages[pages.length - 1]['$page']['fullPath']; //当前页面路径(带参数)
  164. uni.setStorageSync(currentPage, this.siteStore);
  165. }
  166. this.hackReset = false;
  167. this.$nextTick(() => {
  168. this.hackReset = true;
  169. });
  170. if (this.memberInfo) this.type = 'goods';
  171. },
  172. showMember() {
  173. if (!this.memberInfo) {
  174. if (this.$refs.selectMember) this.$refs.selectMember.open();
  175. } else {
  176. this.type = 'member';
  177. }
  178. },
  179. /**
  180. * 切换散客
  181. */
  182. replaceMember() {
  183. if (this.$refs.selectMember) this.$refs.selectMember.memberId = 0;
  184. this.$store.commit('setMemberInfo', null);
  185. this.type = 'goods';
  186. },
  187. selectGoods(data) {
  188. if (this.goodsData['sku_' + data.sku_id]) {
  189. this.goodsData['sku_' + data.sku_id].num += 1;
  190. } else {
  191. this.goodsData['sku_' + data.sku_id] = data;
  192. this.goodsData['sku_' + data.sku_id].num = 1;
  193. }
  194. this.calculation();
  195. },
  196. calculation() {
  197. if (!Object.keys(this.goodsData).length) return;
  198. let sku_array = [];
  199. Object.keys(this.goodsData).forEach(key => {
  200. let item = this.goodsData[key];
  201. sku_array.push({
  202. sku_id: item.sku_id,
  203. num: item.num
  204. });
  205. });
  206. let data = {
  207. sku_array: JSON.stringify(sku_array),
  208. create_time: this.orderData.create_time
  209. };
  210. if (this.memberInfo) data.member_id = this.memberInfo.member_id;
  211. this.$api.sendRequest({
  212. url: '/cashier/storeapi/cashierordercreate/cardcalculate',
  213. data: data,
  214. success: res => {
  215. if (res.code == 0) {
  216. Object.assign(this.orderData, res.data);
  217. // uni.setStorageSync('orderData', this.orderData);
  218. this.$forceUpdate();
  219. } else {
  220. this.$util.showToast({
  221. title: res.message
  222. });
  223. }
  224. }
  225. });
  226. },
  227. inc(data) {
  228. if (data.goods_type != '') {
  229. this.goodsData['sku_' + data.sku_id].num += 1;
  230. } else {
  231. if (data.num < data.stock) this.goodsData['sku_' + data.sku_id].num += 1;
  232. }
  233. this.calculation();
  234. },
  235. dec(data) {
  236. if (data.num > 1) {
  237. this.goodsData['sku_' + data.sku_id].num -= 1;
  238. this.calculation();
  239. }
  240. },
  241. deleteGoods(data) {
  242. delete this.goodsData['sku_' + data.sku_id];
  243. this.calculation();
  244. if (!Object.keys(this.goodsData).length) {
  245. this.orderData.goods_list = [];
  246. this.orderData.goods_num = 0;
  247. this.orderData.pay_money = 0;
  248. }
  249. uni.setStorageSync('orderData', this.orderData);
  250. },
  251. clearGoods() {
  252. this.goodsData = [];
  253. this.orderData.goods_list = [];
  254. this.orderData.goods_num = 0;
  255. this.orderData.pay_money = 0;
  256. this.goodsIds = [];
  257. },
  258. pay(type = '') {
  259. if (!this.memberInfo) {
  260. if (this.$refs.selectMember) this.$refs.selectMember.open();
  261. return false;
  262. }
  263. if (!Object.keys(this.goodsData).length || this.isRepeat) return;
  264. this.isRepeat = true;
  265. if (this.outTradeNo) {
  266. this.type = 'pay';
  267. if (type) this.$refs.payment.type = type;
  268. return;
  269. }
  270. let sku_array = [];
  271. Object.keys(this.goodsData).forEach(key => {
  272. let item = this.goodsData[key];
  273. sku_array.push({
  274. sku_id: item.sku_id,
  275. num: item.num
  276. });
  277. });
  278. let data = {
  279. sku_array: JSON.stringify(sku_array),
  280. remark: this.orderData.remark,
  281. create_time: this.orderData.create_time
  282. };
  283. if (this.memberInfo) data.member_id = this.memberInfo.member_id;
  284. this.$api.sendRequest({
  285. url: '/cashier/storeapi/cashierordercreate/cardcreate',
  286. data: data,
  287. success: res => {
  288. this.isRepeat = false;
  289. if (res.code == 0) {
  290. this.outTradeNo = res.data.out_trade_no;
  291. this.orderId = res.data.order_id;
  292. this.type = 'pay';
  293. if (type) this.$refs.payment.type = type;
  294. } else {
  295. this.$util.showToast({
  296. title: res.message
  297. });
  298. }
  299. }
  300. });
  301. },
  302. cancelPayment() {
  303. this.$api.sendRequest({
  304. url: '/cashier/storeapi/cashierorder/deleteorder',
  305. data: {
  306. order_id: this.orderId
  307. },
  308. success: res => {
  309. if (res.code == 0) {
  310. this.outTradeNo = '';
  311. this.orderId = 0;
  312. this.type = 'goods';
  313. } else {
  314. this.$util.showToast({
  315. title: res.message
  316. });
  317. }
  318. }
  319. });
  320. },
  321. paySuccess() {
  322. this.type = 'goods';
  323. this.wholeOrderCancel();
  324. },
  325. /**
  326. * 整单取消
  327. */
  328. wholeOrderCancel() {
  329. if (Object.keys(this.goodsData).length) {
  330. // 清除商品数据
  331. this.goodsData = {};
  332. this.calculation();
  333. if (this.orderData.order_id) {
  334. this.$refs.order.deleteOrder(this.orderData);
  335. this.orderData.order_id = 0;
  336. }
  337. // 清除订单数据
  338. this.orderData = {
  339. goods_num: 0,
  340. pay_money: 0,
  341. goods_list: [],
  342. remark: ''
  343. };
  344. this.outTradeNo = '';
  345. this.orderId = 0;
  346. } else {
  347. this.$util.showToast({
  348. title: '当前没有订单'
  349. });
  350. }
  351. },
  352. toGoods() {
  353. this.type = 'goods';
  354. },
  355. remarkConfirm() {
  356. this.orderData.remark = this.remark;
  357. this.$refs.remarkPopup.close();
  358. },
  359. remarkSeting() {
  360. this.remark = this.orderData.remark;
  361. this.$refs.remarkPopup.open();
  362. }
  363. },
  364. watch: {
  365. memberInfo: function(nVal) {
  366. this.calculation();
  367. }
  368. }
  369. };
  370. </script>
  371. <style>
  372. .header-box >>> .uni-select-lay-select {
  373. padding-right: 0.1rem !important;
  374. }
  375. .header-box >>> .uni-select-lay-icon {
  376. display: none !important;
  377. }
  378. .header-box >>> .uni-select-lay-input-close {
  379. display: none !important;
  380. }
  381. </style>
  382. <style lang="scss" scoped>
  383. .left-wrap {
  384. position: relative;
  385. max-width: 3.9rem;
  386. display: flex;
  387. flex-direction: column;
  388. .pay-shade {
  389. position: absolute;
  390. width: 100%;
  391. height: 100%;
  392. top: 0;
  393. left: 0;
  394. background-color: rgba($color: #fff, $alpha: 0.6);
  395. z-index: 10;
  396. }
  397. .header-box {
  398. padding: 0.15rem;
  399. border-bottom: 0.01rem solid #e6e6e6;
  400. .order-time {
  401. display: flex;
  402. align-items: center;
  403. .title {
  404. user-select: none;
  405. position: relative;
  406. z-index: 3;
  407. height: 0.3rem;
  408. padding: 0 0.1rem 0 0.1rem;
  409. box-sizing: border-box;
  410. border-radius: 0.02rem;
  411. border: 0.01rem solid #e5e5e5;
  412. display: flex;
  413. align-items: center;
  414. font-size: 0.14rem;
  415. color: #333;
  416. box-sizing: border-box;
  417. }
  418. .uni-date {
  419. flex: 1;
  420. margin-left: 0.1rem;
  421. }
  422. /deep/ .uni-date-x {
  423. height: 0.28rem;
  424. }
  425. }
  426. }
  427. .header {
  428. margin-top: 0.15rem;
  429. height: 0.8rem;
  430. font-size: 0.2rem;
  431. display: flex;
  432. align-items: center;
  433. padding: 0 0.15rem;
  434. background-size: 100% 100%;
  435. border-radius: 0.03rem;
  436. .header-image {
  437. width: 0.5rem;
  438. height: 0.5rem;
  439. border-radius: 50%;
  440. }
  441. .head-info {
  442. flex: 1;
  443. margin-left: 0.1rem;
  444. .name {
  445. font-size: 0.16rem;
  446. color: #fff;
  447. display: flex;
  448. .level {
  449. background: #ffffff;
  450. border: 0.01rem solid $primary-color;
  451. border-radius: 0.02rem;
  452. font-size: 0.12rem;
  453. color: $primary-color;
  454. margin-left: 0.05rem;
  455. padding: 0.01rem 0.04rem;
  456. overflow: hidden;
  457. text-overflow: ellipsis;
  458. white-space: nowrap;
  459. }
  460. .text {
  461. max-width: 0.8rem;
  462. overflow: hidden;
  463. text-overflow: ellipsis;
  464. white-space: nowrap;
  465. }
  466. }
  467. .mobile {
  468. font-size: 0.14rem;
  469. color: #fff;
  470. margin-top: 0.04rem;
  471. }
  472. .head-info-bottom {
  473. display: flex;
  474. flex-wrap: wrap;
  475. justify-content: space-between;
  476. margin-top: 0.05rem;
  477. view {
  478. color: #fff;
  479. font-size: $uni-font-size-sm;
  480. }
  481. }
  482. }
  483. .switch {
  484. text-align: center;
  485. line-height: 0.3rem;
  486. margin-left: 0.08rem;
  487. padding: 0 0.05rem;
  488. overflow: hidden;
  489. font-size: $uni-font-size-sm;
  490. text-overflow: ellipsis;
  491. white-space: nowrap;
  492. }
  493. }
  494. .content {
  495. padding: 0.15rem;
  496. color: #303133;
  497. flex: 1;
  498. height: 0;
  499. display: flex;
  500. flex-direction: column;
  501. .title {
  502. font-size: 0.14rem;
  503. justify-content: space-between;
  504. display: flex;
  505. }
  506. .clear {
  507. display: flex;
  508. align-items: center;
  509. text {
  510. &:nth-child(1) {
  511. font-size: 0.18rem;
  512. }
  513. &:nth-child(2) {
  514. margin-left: 0.03rem;
  515. font-size: 0.14rem;
  516. }
  517. }
  518. }
  519. .contnet-list {
  520. margin-top: 0.1rem;
  521. flex: 1;
  522. height: 0;
  523. overflow-y: scroll;
  524. .contnet-item {
  525. .flex {
  526. display: flex;
  527. align-items: center;
  528. }
  529. display: flex;
  530. align-items: center;
  531. justify-content: space-between;
  532. border-bottom: 0.01rem solid #e6e6e6;
  533. padding: 0.1rem 0;
  534. .item-img {
  535. width: 0.5rem;
  536. height: 0.5rem;
  537. display: flex;
  538. align-items: center;
  539. image {
  540. width: 100%;
  541. }
  542. }
  543. .item-info {
  544. flex: 1;
  545. margin-left: 0.1rem;
  546. width: 0;
  547. min-width: 0;
  548. .item-name {
  549. font-size: 0.14rem;
  550. white-space: nowrap;
  551. overflow: hidden;
  552. text-overflow: ellipsis;
  553. width: 2rem;
  554. }
  555. .del {
  556. margin-right: -0.8rem;
  557. margin-top: -0.19rem;
  558. color: #8558fa;
  559. font-size: 0.14rem;
  560. float: right;
  561. }
  562. .item-spe {
  563. font-size: 0.1rem;
  564. color: #999;
  565. margin-top: 0.05rem;
  566. }
  567. .item-price {
  568. font-size: 0.14rem;
  569. margin-top: 0.05rem;
  570. margin-left: -0.03rem;
  571. }
  572. }
  573. .item-num {
  574. display: flex;
  575. align-items: center;
  576. margin-left: 0.1rem;
  577. margin-top: 0.3rem;
  578. .num-dec {
  579. width: 0.25rem;
  580. height: 0.25rem;
  581. background: #e6e6e6;
  582. border: 0.01rem solid #e6e6e6;
  583. border-radius: 30%;
  584. text-align: center;
  585. line-height: 0.23rem;
  586. font-size: 0.25rem;
  587. margin-right: 0.1rem;
  588. cursor: pointer;
  589. transition: 0.3s;
  590. }
  591. .num-inc {
  592. width: 0.25rem;
  593. height: 0.25rem;
  594. background: $primary-color;
  595. border: 0.01rem solid #e6e6e6;
  596. border-radius: 30%;
  597. text-align: center;
  598. line-height: 0.23rem;
  599. font-size: 0.25rem;
  600. margin-left: 0.1rem;
  601. cursor: pointer;
  602. transition: 0.3s;
  603. color: #fff;
  604. }
  605. }
  606. .item-total-price {
  607. font-size: 0.14rem;
  608. margin-left: 0.1rem;
  609. color: #fe2278;
  610. }
  611. .item-del {
  612. color: $primary-color;
  613. margin-left: 0.1rem;
  614. cursor: pointer;
  615. margin-right: -0.8rem;
  616. margin-top: -0.2rem;
  617. font-size: 0.14rem;
  618. float: right;
  619. }
  620. }
  621. }
  622. .empty {
  623. text-align: center;
  624. image {
  625. width: 60%;
  626. margin-top: 0.4rem;
  627. }
  628. .tips {
  629. color: #999;
  630. margin-top: 0.15rem;
  631. }
  632. }
  633. }
  634. .bottom {
  635. width: 100%;
  636. padding: 0.15rem;
  637. box-sizing: border-box;
  638. background-color: #ffffff;
  639. border-top: 0.01rem solid #e6e6e6;
  640. .bottom-info {
  641. display: flex;
  642. align-items: center;
  643. justify-content: space-between;
  644. .bottom-left {
  645. font-size: 0.14rem;
  646. color: #303133;
  647. opacity: 0.8;
  648. .money {
  649. color: #fe2278;
  650. }
  651. }
  652. .bottom-right {
  653. font-size: 0.14rem;
  654. color: #303133;
  655. opacity: 0.8;
  656. i {
  657. font-size: 0.14rem;
  658. }
  659. }
  660. }
  661. .bottom-btn {
  662. display: flex;
  663. align-items: center;
  664. margin-top: 0.1rem;
  665. .btn-left {
  666. width: 39%;
  667. height: 0.4rem;
  668. line-height: 0.4rem;
  669. }
  670. .btn-right {
  671. width: 60%;
  672. margin-left: 0.15rem;
  673. height: 0.4rem;
  674. line-height: 0.4rem;
  675. }
  676. }
  677. }
  678. }
  679. .comp-wrap {
  680. min-width: 1rem;
  681. border: 0.01rem solid #e6e6e6;
  682. border-radius: 0.02rem;
  683. padding: 0.2rem 0.17rem;
  684. .tag-parent {
  685. position: relative;
  686. .num-tag {
  687. position: absolute;
  688. background-color: #f00;
  689. color: #fff;
  690. height: 0.18rem;
  691. line-height: 0.18rem;
  692. padding: 0 0.06rem;
  693. border-radius: 0.1rem;
  694. font-size: 0.12rem;
  695. text-align: center;
  696. z-index: 1;
  697. top: 0;
  698. right: 0.12rem;
  699. transform: translateY(-50%) translateX(100%);
  700. }
  701. }
  702. .comp-btn {
  703. overflow: inherit;
  704. margin-bottom: 0.2rem;
  705. }
  706. }
  707. .list-wrap {
  708. border: 0.01rem solid #e6e6e6;
  709. border-radius: 0.02rem;
  710. height: 100%;
  711. border-left: 0;
  712. padding: 0 0.2rem;
  713. box-sizing: border-box;
  714. width: 0;
  715. .content {
  716. height: 100%;
  717. }
  718. .comp-btn {
  719. width: 80%;
  720. box-align: center;
  721. margin-top: 0.2rem;
  722. }
  723. .header {
  724. height: 0.66rem;
  725. line-height: 0.66rem;
  726. text-align: left;
  727. color: #303133;
  728. font-size: 0.14rem;
  729. }
  730. .body {
  731. padding: 0.3rem;
  732. }
  733. }
  734. .page-height {
  735. height: 100%;
  736. }
  737. .common-wrap {
  738. height: 100%;
  739. }
  740. .remark-wrap {
  741. width: 6rem;
  742. background-color: #fff;
  743. border-radius: 0.04rem;
  744. box-shadow: 0 0.01rem 0.12rem 0 rgba(0, 0, 0, 0.1);
  745. .header {
  746. display: flex;
  747. justify-content: space-between;
  748. align-items: center;
  749. padding: 0 0.15rem;
  750. height: 0.45rem;
  751. line-height: 0.45rem;
  752. border-bottom: 0.01rem solid #e8eaec;
  753. .iconfont {
  754. font-size: $uni-font-size-lg;
  755. }
  756. }
  757. .body {
  758. padding: 0.15rem 0.15rem 0.1rem;
  759. textarea {
  760. border: 0.01rem solid #e6e6e6;
  761. width: 100%;
  762. padding: 0.1rem;
  763. box-sizing: border-box;
  764. font-size: 0.14rem;
  765. }
  766. .placeholder-class {
  767. font-size: 0.14rem;
  768. }
  769. }
  770. .footer {
  771. height: 0.5rem;
  772. padding-bottom: 0.05rem;
  773. display: flex;
  774. align-items: center;
  775. justify-content: center;
  776. button {
  777. width: 95%;
  778. }
  779. }
  780. }
  781. </style>