use.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. </view>
  36. </template>
  37. <script>
  38. export default {
  39. data() {
  40. return {
  41. $getimg:this.$getimg,
  42. params:{
  43. token:'',
  44. }
  45. }
  46. },
  47. onShow() {
  48. let self = this;
  49. uni.getStorage({
  50. key : 'userInfo',
  51. success:function(res){
  52. console.log('userInfo customerType',res.data.customerType);
  53. if(res.data.customerType =='1'){
  54. console.log('个人用户');
  55. self.$api.href('/pages/mall/mall')
  56. };
  57. }
  58. });
  59. },
  60. onLoad() {
  61. },
  62. methods: {
  63. lvyue(){
  64. this.$api.msg('暂未开放')
  65. },
  66. zhonghe(){
  67. this.$api.msg('暂未开放')
  68. },
  69. huodong(){
  70. this.$api.msg('暂未开放')
  71. },
  72. useClick(){
  73. this.$api.msg('稍后展示')
  74. }
  75. }
  76. }
  77. </script>
  78. <style>
  79. @import url("./use.css");
  80. </style>