game_list.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="page">
  3. <view class="uni-list">
  4. <block>
  5. <uni-list>
  6. <view class="header">
  7. <text>我的游戏</text>
  8. </view>
  9. </uni-list>
  10. <uni-list>
  11. <uni-list-item title="博彩"
  12. :show-arrow="false"
  13. :show-badge="true"
  14. :badge-text="newFriend"
  15. badge-type="error"
  16. thumb="../../static/theme/default/friend/new.png"
  17. @click="goPath('game_site')"
  18. />
  19. <uni-list-item title="棋牌"
  20. :show-arrow="false"
  21. :show-badge="true"
  22. :badge-text="newFriend"
  23. badge-type="error"
  24. thumb="../../static/theme/default/friend/new.png"
  25. @click="goPath('game_site')"
  26. />
  27. </uni-list>
  28. </block>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. import uniList from '../../components/uni-ui/uni-list/uni-list.vue';
  34. import uniListItem from '../../components/uni-ui/uni-list-item/uni-list-item.vue';
  35. import _get from '../../common/_get';
  36. import _hook from '../../common/_hook';
  37. export default {
  38. components: {
  39. uniList,
  40. uniListItem
  41. },
  42. data() {
  43. return {
  44. }
  45. },
  46. onShow(){
  47. _hook.routeTabBarHook();
  48. },
  49. onLoad() {
  50. },
  51. computed: {
  52. showTips(){
  53. if(this.$store.state.no_reader_circle_chat_num){
  54. return this.$store.state.no_reader_circle_chat_num;
  55. }
  56. if(this.$store.state.no_reader_circle){
  57. return ' ';
  58. }
  59. return '';
  60. },
  61. },
  62. methods: {
  63. goPath(path){
  64. if(path){
  65. uni.navigateTo({
  66. url: path
  67. });
  68. }
  69. },
  70. },
  71. }
  72. </script>
  73. <style scoped>
  74. html,body,#iframe{
  75. padding:0;
  76. margin:0;
  77. width:100%;
  78. height:100%
  79. }
  80. uni-page-body, uni-page-refresh {
  81. display: block;
  82. box-sizing: border-box;
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .page {
  87. display: flex;
  88. flex-direction:row;
  89. }
  90. #iframe{
  91. border:0;
  92. }
  93. .uni-list {
  94. margin-bottom: 30upx;
  95. }
  96. .header {
  97. display: flex;
  98. flex-direction: row;
  99. padding: 10px 15px;
  100. align-items: center;
  101. }
  102. </style>