companyUse.vue 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <template>
  2. <view class="pages">
  3. <view class="top-img">
  4. <!-- <image :src="$getimg + 'use-bg.png'" class="img" mode="widthFix"></image> -->
  5. <image :src="$getimg + 'zhonghe-bg.jpg'" class="img" mode="widthFix"></image>
  6. </view>
  7. <view class="aside-tool">
  8. <view class="aside-tool-item">
  9. <view class="aside-tool-icon green">
  10. <image :src="$getimg + 'icon-zhonghe.png'" class="img" mode="widthFix"></image>
  11. </view>
  12. <view class="aside-tool-text">关于碳中和</view>
  13. </view>
  14. <view class="aside-tool-item" @click="randomPop">
  15. <view class="aside-tool-icon yellow">
  16. <image :src="$getimg + 'icon-tanpuhui.png'" class="img" mode="widthFix"></image>
  17. </view>
  18. <view class="aside-tool-text">购买碳汇</view>
  19. </view>
  20. </view>
  21. <view class="wrap40 content">
  22. <view class="content-down">
  23. <view class="step-wrap">
  24. <!-- <view class="step-wrap" v-if="applyStatus == 0||applyStatus == 1||applyStatus == 2||applyStatus == 3"> -->
  25. <view class="step-item" :class="applyStatus == 0?'active':''"></view>
  26. <view class="step-item" :class="applyStatus == 1?'active':''"></view>
  27. <view class="step-item" :class="applyStatus == 2?'active':''"></view>
  28. </view>
  29. <view class="step-text">
  30. <view class="step-text-item">
  31. <view class="step-text-item-cn">未达碳汇量</view>
  32. <view class="step-text-item-en">Step 1</view>
  33. </view>
  34. <view class="step-text-item">
  35. <view class="step-text-item-cn">实现碳中和</view>
  36. <view class="step-text-item-en">Step 2</view>
  37. </view>
  38. <view class="step-text-item">
  39. <view class="step-text-item-cn">获得证书</view>
  40. <view class="step-text-item-en">Step 3</view>
  41. </view>
  42. </view>
  43. <!-- step end -->
  44. <!-- status 0 -->
  45. <view class="status-wrap finish" v-if="applyStatus == '0'">
  46. <view class="main-til">
  47. <image :src="$getimg + 'icon-tanpuhui.png'" class="main-til-icon" mode="widthFix"></image>
  48. <view class="main-til-text">未达碳汇量</view>
  49. </view>
  50. <view class="explain">说明:实现企业碳中和约需要240000kg碳汇量,您可以在平台进行认购</view>
  51. <view class="status-btn">
  52. <view class="status-btn-big">实现碳中和</view>
  53. <view class="status-btn-small">实现碳中和后将获得碳汇核证签发证书</view>
  54. </view>
  55. </view>
  56. <view class="status-wrap" v-if="applyStatus == '1'">
  57. <view class="main-til">
  58. <image :src="$getimg + 'icon-tanpuhui.png'" class="main-til-icon" mode="widthFix"></image>
  59. <view class="main-til-text">实现碳中和</view>
  60. </view>
  61. <view class="explain">说明:可以用碳汇量中和您现在的碳排放量,中和后将可以获得证书</view>
  62. <view class="status-btn">
  63. <view class="status-btn-big">实现碳中和</view>
  64. <view class="status-btn-small">实现碳中和后将获得碳汇核证签发证书</view>
  65. </view>
  66. </view>
  67. <!-- status 1 -->
  68. <view class="status-wrap active" v-if="applyStatus == '2'">
  69. <view class="main-til">
  70. <image :src="$getimg + 'icon-tanpuhui.png'" class="main-til-icon" mode="widthFix"></image>
  71. <view class="main-til-text">获得证书</view>
  72. </view>
  73. <view class="explain">说明:本年度已完成企业碳中和,中和碳汇量为240000kg</view>
  74. <view class="status-btn" @click="$api.href('./assignmentDetail/assignmentDetail')">
  75. <view class="status-btn-big">查看签发证书</view>
  76. <view class="status-btn-small">点击查看碳汇核证签发证书</view>
  77. </view>
  78. </view>
  79. <!-- status 2 -->
  80. </view>
  81. </view>
  82. <quick-buy class="quickbuy" ref="quickBuy" @closeModal="closeModal" :visible="modal.visibleModal" v-if="modal.visibleModal"></quick-buy>
  83. </view>
  84. </template>
  85. <script>
  86. import quickBuy from 'pages/index/modal/quickBuy';
  87. export default {
  88. components:{
  89. quickBuy,
  90. },
  91. data() {
  92. return {
  93. $getimg:this.$getimg,
  94. modal: {
  95. visibleModal: false
  96. },
  97. token:'',
  98. applyStatus:0,
  99. params:{
  100. }
  101. }
  102. },
  103. onShow() {
  104. },
  105. onLoad() {
  106. },
  107. methods: {
  108. //开启多株购碳
  109. randomPop() {
  110. this.modal.visibleModal = true;
  111. this.$nextTick(res => {
  112. // console.log('this.$refs',this.$refs.quickBuy)
  113. this.$refs.quickBuy.openPop();
  114. });
  115. },
  116. closeModal() {
  117. this.modal.visibleModal = false;
  118. },
  119. }
  120. }
  121. </script>
  122. <style>
  123. @import url("../useCommon.css");
  124. @import url("./companyUse.css");
  125. </style>