index.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <template>
  2. <gracePage :customHeader="false">
  3. <view slot="gBody" class="grace-body">
  4. <view class="grace-title grace-margin-top">
  5. <view class="grace-title-border"></view>
  6. <text class="grace-title-text grace-blue">幻境</text>
  7. <text class="grace-text-small grace-gray">shemic.com</text>
  8. </view>
  9. <view style="padding-bottom:50rpx;">
  10. <graceSwiper :swiperItems="swiperItems2" :width="700" :height="1300" @taped="location"></graceSwiper>
  11. </view>
  12. </view>
  13. </gracePage>
  14. </template>
  15. <script>
  16. import gracePage from "../../lib/graceUI/components/gracePage.vue";
  17. import graceSwiper from "../../lib/graceUI/components/graceSwiper.vue";
  18. export default{
  19. data() {
  20. return {
  21. swiperItems2 : [
  22. {
  23. id : 1,
  24. img : 'https://graceui.oss-cn-beijing.aliyuncs.com/swiperimgs/3.png',
  25. url : '',
  26. title:"测试标题很长很长很长很长很长很长很长很长很长很长很长很长很长很长",
  27. opentype : 'click'
  28. },
  29. {
  30. id : 1,
  31. img : 'https://graceui.oss-cn-beijing.aliyuncs.com/swiperimgs/4.png',
  32. url : '',
  33. title:"测试标题04",
  34. opentype : 'click'
  35. },
  36. {
  37. id : 1,
  38. img : 'https://graceui.oss-cn-beijing.aliyuncs.com/swiperimgs/5.png',
  39. url : '',
  40. title:"测试标题05",
  41. opentype : 'click'
  42. }
  43. ]
  44. }
  45. },
  46. methods:{
  47. location : function(e){
  48. var id = this.swiperItems2[e].id;
  49. this.Dever.location('dream/index?id=' + id);
  50. }
  51. },
  52. components: {
  53. gracePage, graceSwiper
  54. }
  55. }
  56. </script>
  57. <style>
  58. </style>