app-settlement-bar.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="app-view">
  3. <view class="app-left">
  4. <app-radio type="round" @clickSelectionBox="clickSelectionBox"></app-radio>
  5. 全选
  6. </view>
  7. <view class="app-right" @click="hidden = true">去结算</view>
  8. <view v-if="hidden" class="app-right-black"></view>
  9. </view>
  10. </template>
  11. <script>
  12. import appRadio from "../../basic-component/app-radio/app-radio.vue";
  13. export default {
  14. name: "app-settlement-bar",
  15. data() {
  16. return {
  17. hidden: false
  18. }
  19. },
  20. components: {
  21. "app-radio": appRadio,
  22. },
  23. methods: {
  24. clickSelectionBox(t) {
  25. }
  26. }
  27. }
  28. </script>
  29. <style scoped lang="scss">
  30. .app-view {
  31. width: #{750rpx};
  32. height: #{100rpx};
  33. border-top: 1rpx solid $uni-weak-color-one;
  34. display: flex;
  35. position: relative;
  36. background-color: #ffffff;
  37. }
  38. .app-left {
  39. width: #{500rpx};
  40. height: #{100rpx};
  41. background-color: blue;
  42. }
  43. .app-right {
  44. height: #{100rpx};
  45. width: #{250rpx};
  46. line-height: #{100rpx};
  47. text-align: center;
  48. color: #ffe2e2;
  49. background-color: $uni-important-color-red;
  50. }
  51. .app-right-black {
  52. background-color: rgba(0,0,0,.8);
  53. position: absolute;
  54. right: 0;
  55. height: #{100rpx};
  56. width: #{250rpx};
  57. line-height: #{100rpx};
  58. text-align: center;
  59. color: #ffe2e2;
  60. }
  61. </style>