agent.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <view>
  3. <map :scale="scale" style="width: 750rpx; height: calc(100vh - env(safe-area-inset-bottom) * 2);"
  4. enable-3D="false" show-compass="false" enable-overlooking="false"
  5. :enable-satellite="false" :enable-traffic="false" show-location="false"
  6. :latitude="latitude" :longitude="longitude" :markers="markers">
  7. </map>
  8. <view class="cu-bar tabbar bg-white foot">
  9. <view class="action text-blue" @tap="goNavPage('/pages/index/index')">
  10. <view class="cuIcon-cu-image">
  11. <image src="../../static/tabbar/indexSelected.png"></image>
  12. </view>
  13. 首页
  14. </view>
  15. <view class="action text-gray" @tap="goNavPage('/pages/comjobs/comjobs')">
  16. <view class="cuIcon-cu-image">
  17. <image src="../../static/tabbar/jobs.png"></image>
  18. </view>
  19. 招聘
  20. </view>
  21. <!-- #ifndef MP-WEIXIN -->
  22. <view class="action text-gray videoimg" @tap="goNavPage('/pages/video/videolist')">
  23. <view class="cuIcon-cu-image">
  24. <image src="../../static/tabbar/video.png"></image>
  25. </view>
  26. 微工作
  27. </view>
  28. <!-- #endif -->
  29. <view class="action text-gray" @tap="goNavPage('/pages/broker/agent')">
  30. <view class="cuIcon-cu-image">
  31. <image src="../../static/tabbar/broker.png"></image>
  32. </view>
  33. 经纪人
  34. </view>
  35. <view class="action text-gray" @tap="goNavPage('/pages/my/my')">
  36. <view class="cuIcon-cu-image">
  37. <image src="../../static/tabbar/my.png"></image>
  38. </view>
  39. 我的
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. var _this;
  46. export default {
  47. data() {
  48. return {
  49. scale: 12,
  50. title: '2', // String
  51. latitude: 24.815839,
  52. longitude: 118.579864,
  53. callout: {
  54. color: '#007AFF', // 文本颜色
  55. bgColor: '#563BFF', // 背景色
  56. display: "ALWAYS", // 'BYCLICK':点击显示; 'ALWAYS':常显
  57. fontSize: 15,
  58. textAlign: 'left', // 文本对齐方式。有效值: left, right, center
  59. padding: 10, // 文本边缘留白
  60. borderRadius: 5,
  61. content: '腾讯地图',
  62. },
  63. label: {
  64. content: 'Jeskson',
  65. color: '#000000',
  66. fontSize: 12,
  67. borderWidth: 12,
  68. borderColor: '#007AFF',
  69. borderRadius: 5,
  70. padding: 5,
  71. textAlign: 'center',
  72. bgColor: '#563BFF',
  73. },
  74. iconPath: '../../static/location.png',
  75. }
  76. },
  77. onLoad: function() {
  78. _this = this;
  79. _this.userinfo = uni.getStorageSync('userinfo') || false;
  80. },
  81. methods: {
  82. goNavPage: function(pageurl) {
  83. uni.redirectTo({
  84. url: pageurl
  85. });
  86. },
  87. }
  88. }
  89. </script>
  90. <style>
  91. </style>