use.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="pages">
  3. <view class="hold-status-bar">
  4. <!-- 占据了状态栏位置 -->
  5. </view>
  6. <view class="custom-nav">
  7. <view class="custom-nav-left" @click="$api.goback"><text class="iconfont icon-jiantou"></text></view>
  8. <view class="custom-nav-center"></view>
  9. </view>
  10. <view class="top-img">
  11. <image :src="$getimg + 'use-bg-s1.png'" class="img" mode="widthFix"></image>
  12. </view>
  13. <view class="use-wrap">
  14. <view class="use-wrap-header">
  15. <view class="til">价值实现</view>
  16. <view class="subtil" @click="useClick">
  17. <text>关于价值实现</text>
  18. <text class="iconfont icon-jiantou"></text>
  19. </view>
  20. </view>
  21. <view class="use-item" @click="lvyue">
  22. <image :src="$getimg + 'icon-lvyue.png'" class="use-item-img" mode="scaleToFill"></image>
  23. <view class="use-item-til">碳履约</view>
  24. <view class="use-item-subtil">(仅履约企业)</view>
  25. </view>
  26. <view class="use-item" @click="zhonghe">
  27. <image :src="$getimg + 'icon-zhonghe.png'" class="use-item-img" mode="scaleToFill"></image>
  28. <view class="use-item-til">企业碳中和</view>
  29. </view>
  30. <view class="use-item" @click="huodong">
  31. <image :src="$getimg + 'icon-huodong.png'" class="use-item-img" mode="scaleToFill"></image>
  32. <view class="use-item-til">大型活动碳中和</view>
  33. </view>
  34. </view>
  35. <hans-tabber :list="list" style="position:fixed;bottom:0;width:100%;left:0;right:0;" @tabChange="tabChange"></hans-tabber>
  36. </view>
  37. </template>
  38. <script>
  39. import hansTabber from '../../components/hans-tabbar/hans-tabbar.vue';
  40. export default {
  41. components:{
  42. hansTabber
  43. },
  44. data() {
  45. return {
  46. list: [{
  47. "text": "首页",
  48. "iconPath": '/static/img/icon_home.png' ,
  49. "selectedIconPath": '/static/img/icon_home_active.png'
  50. },
  51. {
  52. "text": "价值实现",
  53. "iconPath": '/static/img/icon_use.png',
  54. "selectedIconPath":'/static/img/icon_use_active.png'
  55. },
  56. {
  57. "text": "我的信息",
  58. "iconPath": '/static/img/icon_usercenter.png',
  59. "selectedIconPath": '/static/img/icon_usercenter_active.png'
  60. }],
  61. $getimg:this.$getimg,
  62. token:'',
  63. params:{
  64. }
  65. }
  66. },
  67. onShow() {
  68. let self = this;
  69. uni.getStorage({
  70. key : 'userInfo',
  71. success:function(res){
  72. console.log('userInfo customerType',res.data.customerType);
  73. if(res.data.customerType =='1'){
  74. console.log('个人用户');
  75. self.$api.href('/pages/mall/mall')
  76. };
  77. }
  78. });
  79. },
  80. onLoad() {
  81. },
  82. methods: {
  83. lvyue(){
  84. this.$api.href('/pages/use/assignment/assignment')
  85. // this.$api.msg('暂未开放')
  86. },
  87. zhonghe(){
  88. this.$api.href('/pages/use/companyUse/companyUse')
  89. // this.$api.msg('暂未开放');
  90. },
  91. huodong(){
  92. this.$api.msg('暂未开放')
  93. },
  94. useClick(){
  95. this.$api.href('/pages/usercenter/question/question')
  96. // this.$api.msg('稍后展示')
  97. }
  98. }
  99. }
  100. </script>
  101. <style>
  102. @import url("./use.css");
  103. </style>