index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view >
  3. 111
  4. <Tabbar></Tabbar>
  5. </view>
  6. </template>
  7. <script>
  8. import Tabbar from "../../components/tabbar.vue"
  9. export default {
  10. components:{
  11. Tabbar
  12. },
  13. data() {
  14. return {
  15. test: true,
  16. show: false,
  17. keyword: '',
  18. top: 60,
  19. flootBootm: 0,
  20. time: '2022/3/27',
  21. ver: '1.2.30',
  22. sys: null,
  23. bottom: 0,
  24. list: [{
  25. icon: 'https://jx2d.cn/yuwuimages/120/com.png?v=2',
  26. title: '基础组件',
  27. label: '提供了基础组件90+',
  28. url: '/subpages/com/index',
  29. btn: '预览组件'
  30. },
  31. {
  32. icon: 'https://jx2d.cn/yuwuimages/120/theme.png?v=2',
  33. title: '主题切换',
  34. label: '暗黑,其它主题切换',
  35. url: 'themechange',
  36. btn: '前往体验'
  37. },
  38. {
  39. icon: 'https://jx2d.cn/yuwuimages/120/com.png?v=2',
  40. title: 'render',
  41. label: 'canvas渲染引擎',
  42. url: '/pages/index/crender',
  43. btn: '1.0正式版'
  44. },
  45. {
  46. icon: 'https://jx2d.cn/yuwuimages/120/css.png?v=2',
  47. title: '预设样式库',
  48. label: '零CSS写应用',
  49. url: '/subpages/csspage/csspage',
  50. btn: '预览相关'
  51. },
  52. {
  53. icon: 'https://jx2d.cn/yuwuimages/120/lottie.png?v=2',
  54. title: 'lottie动画',
  55. label: '提供了对lottie的封装',
  56. url: '/subpages/lottie/index',
  57. btn: '前往体验'
  58. },
  59. {
  60. icon: 'https://jx2d.cn/yuwuimages/120/echarts.png?v=2',
  61. title: 'Echarts',
  62. label: '对百度图表的封装',
  63. url: '/subpages/echarts/index',
  64. btn: '前往体验'
  65. },
  66. {
  67. icon: 'https://jx2d.cn/yuwuimages/120/yewu.png?v=2',
  68. title: '业务组件',
  69. label: '提供了相关行业的组件',
  70. url: '/subpages/food/index',
  71. btn: '预览相关'
  72. },
  73. {
  74. icon: 'https://jx2d.cn/yuwuimages/120/moban.png?v=2',
  75. title: '页面模板',
  76. label: '相关行业的页面模板',
  77. url: '/subpages/moban/index',
  78. btn: '预览模板'
  79. },
  80. {
  81. icon: 'https://jx2d.cn/yuwuimages/120/game.png?v=2',
  82. title: '游戏抽奖',
  83. label: '转盘|老虎机|九宫格等',
  84. url: '/subpages/yewu/index',
  85. btn: '体验相关'
  86. }
  87. ]
  88. };
  89. },
  90. created() {
  91. this.sys = uni.getSystemInfoSync();
  92. },
  93. onLoad() {
  94. // uni.hideTabBar()
  95. uni.request({
  96. url : "https://jisutqybmf.market.alicloudapi.com/weather/query",
  97. type : "POST",
  98. header: {
  99. 'Authorization':'APPCODE b838ad36bbd741ad97bbe22e50be1847'
  100. },
  101. data:{
  102. city:'南京'
  103. },
  104. dataType:'json',
  105. success : function(data) {
  106. },
  107. error : function(e) {
  108. alert("网络异常,请重试");
  109. }
  110. });
  111. },
  112. mounted() {
  113. uni.showTabBar({
  114. animation: true
  115. });
  116. },
  117. methods: {
  118. openSearch() {
  119. uni.navigateTo({
  120. url: 'search?key=' + this.keyword
  121. });
  122. },
  123. openUrl(url) {
  124. let t = this;
  125. uni.navigateTo({
  126. url: url,
  127. fail: e => {
  128. t.show = true;
  129. }
  130. });
  131. },
  132. imte() {
  133. this.$tm.theme.setBlack();
  134. },
  135. }
  136. };
  137. </script>
  138. <style lang="scss">
  139. page,
  140. body {
  141. min-height: 100%;
  142. background-color: #f5f5f5;
  143. }
  144. </style>
  145. <style lang="scss" scoped></style>