labelItem.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="flexitem">
  3. <view class="itemBox" @click="openLink(1)">
  4. <view class="icon_left"></view>
  5. <view>
  6. <view class="i_title">供应市场</view>
  7. <view class="i_conter">最新市场行情</view>
  8. </view>
  9. <view class="i_img">
  10. <u--image width="80rpx" height="80rpx" src="/static/index/icon_gongysc.png" ></u--image>
  11. </view>
  12. </view>
  13. <view class="itemBox" @click="openLink(2)" style="margin-left: 16rpx;background: #eff3ff;">
  14. <view class="icon_left"></view>
  15. <view>
  16. <view class="i_title">互动问答</view>
  17. <view class="i_conter">交流互动</view>
  18. </view>
  19. <view class="i_img">
  20. <u--image width="80rpx" height="80rpx" src="/static/index/icon_hudongwd.png" ></u--image>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. export default {
  27. components: {
  28. },
  29. data() {
  30. return {
  31. info:[],
  32. title:'互动天地',
  33. }
  34. },
  35. async mounted() {
  36. },
  37. methods: {
  38. openLink(type){
  39. if (type == 1) {
  40. //供应市场
  41. uni.navigateTo({
  42. url: '/supplierPages/pages/supplier/supplyMarket'
  43. });
  44. }else if (type == 2) {
  45. //去互动问答
  46. uni.navigateTo({
  47. url: '/pages/home/exchangeNew'
  48. });
  49. }
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="less" scoped>
  55. .flexitem{
  56. display: flex;
  57. justify-content: space-between;
  58. }
  59. .itemBox{
  60. width: 343rpx;
  61. height: 148rpx;
  62. background: #e7f9f7;
  63. border-radius: 16rpx;
  64. display: flex;
  65. align-items: center;
  66. justify-content: space-between;
  67. }
  68. .icon_left{
  69. width: 4px;
  70. height: 12px;
  71. background: #1dbfa1;
  72. border-radius: 0px 4px 4px 0px;
  73. margin-bottom: 36rpx;
  74. }
  75. .i_title{
  76. width: 128rpx;
  77. height: 45rpx;
  78. font-size: 32rpx;
  79. font-weight: 700;
  80. text-align: left;
  81. color: #333333;
  82. }
  83. .i_conter{
  84. width: 168rpx;
  85. height: 40rpx;
  86. font-size: 28rpx;
  87. font-weight: 400;
  88. text-align: left;
  89. color: #999999;
  90. }
  91. .i_img{
  92. margin-right: 18rpx;
  93. }
  94. </style>