cm-contract-temp.vue 3.7 KB

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