cm-contract-temp.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template name="cm-parameter">
  2. <view class="contract-template">
  3. <!-- 发票信息 -->
  4. <view class="contract-title" @tap.stop="handleContract">
  5. <text class="text">销售合同:</text>
  6. <text class="contract-text">查看合同</text>
  7. <text class="iconfont icon-xiangyou"></text>
  8. </view>
  9. <view class="contract-checked" @click.stop="handleChecked">
  10. <view class="checkbox-text">
  11. (请查看并阅读销售合同后勾选同意)
  12. </view>
  13. <view class="checkbox-box">
  14. <button class="checkbox iconfont" hover-class="btn-hover"
  15. :class="[ischecked ? 'icon-gouxuanl' : 'icon-weigouxuan']"></button>
  16. </view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'cm-contract-temp',
  23. props: {},
  24. data() {
  25. return {
  26. isIphoneX: this.$store.state.isIphoneX,
  27. userId: 0,
  28. ischecked: false
  29. }
  30. },
  31. created() {
  32. },
  33. computed: {
  34. },
  35. methods: {
  36. // 跳转订单合同
  37. handleContract() {
  38. this.$api.navigateTo('/pages/user/order/order-contract')
  39. },
  40. //勾选使用余额
  41. handleChecked() {
  42. this.ischecked = !this.ischecked
  43. },
  44. }
  45. }
  46. </script>
  47. <style lang="scss">
  48. .contract-template {
  49. width: 100%;
  50. height: auto;
  51. background: #ffffff;
  52. float: left;
  53. margin-top: 24rpx;
  54. .contract-title {
  55. width: 702rpx;
  56. padding: 0 24rpx;
  57. height: 66rpx;
  58. line-height: 66rpx;
  59. position: relative;
  60. .text {
  61. font-size: $font-size-28;
  62. color: $text-color;
  63. font-weight: bold;
  64. }
  65. .contract-text {
  66. font-size: $font-size-24;
  67. color: #999999;
  68. line-height: 66rpx;
  69. display: inline-block;
  70. float: right;
  71. box-sizing: border-box;
  72. padding-right: 40rpx;
  73. }
  74. .iconfont {
  75. width: 50rpx;
  76. height: 66rpx;
  77. line-height: 66rpx;
  78. color: #999999;
  79. display: block;
  80. position: absolute;
  81. right: 0;
  82. top: 0;
  83. }
  84. }
  85. .contract-checked {
  86. width: 100%;
  87. height: 60rpx;
  88. display: flex;
  89. justify-content: flex-end;
  90. box-sizing: border-box;
  91. padding: 0 10rpx;
  92. .checkbox-box {
  93. display: flex;
  94. width: 60rpx;
  95. float: left;
  96. height: 100%;
  97. font-size: $font-size-28;
  98. .checkbox {
  99. width: 40rpx;
  100. text-align: right;
  101. box-sizing: border-box;
  102. text-align: center;
  103. text-decoration: none;
  104. border-radius: 0;
  105. -webkit-tap-highlight-color: transparent;
  106. overflow: hidden;
  107. color: $color-system;
  108. }
  109. }
  110. .checkbox-text {
  111. font-size: $font-size-24;
  112. color: #fea785;
  113. }
  114. }
  115. }
  116. </style>