myGroup.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view class="page">
  3. <uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" left-icon="left" title="我的分组" @clickLeft="back" />
  4. <view>
  5. <view class="flex-col dataNull" v-if="list.length === 0">
  6. <view class="flex-row justify-center">
  7. <image :src="'/static/dataNull.png'"></image>
  8. </view>
  9. <text>暂无分组</text>
  10. </view>
  11. <view v-else>
  12. <scroll-view scroll-y :style="{height:height}" >
  13. <view class="flex-col item" v-for="(item,index) in 100" :key="index" @click="groupDetail">
  14. <view class="flex-row justify-between">
  15. <text class="storeName">好又多母婴店</text>
  16. <text class="time">消费额:1000.55</text>
  17. </view>
  18. <view class="flex-row icon-num">
  19. <u-icon size="24" name="/static/group/fuzeren.png"></u-icon>
  20. <text class="key">负责人:</text>
  21. <text class="number">张珊</text>
  22. </view>
  23. <view class="flex-row icon-num">
  24. <u-icon size="24" name="/static/group/chengyuan.png"></u-icon>
  25. <text class="key">成员:</text>
  26. <text class="number">300人</text>
  27. </view>
  28. <u-icon size="30" name="/static/group/xiugai.png" class="xiugai" @click.native.stop="updateGroup"></u-icon>
  29. </view>
  30. </scroll-view>
  31. </view>
  32. </view>
  33. <view class="addGroup" @click="goAddGroup">
  34. <text>新增分组</text>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. components: {
  41. },
  42. data() {
  43. return {
  44. height:'',
  45. list:[]
  46. }
  47. },
  48. onLoad(e) {
  49. let sysInfo = uni.getSystemInfoSync()
  50. this.height = sysInfo.windowHeight - 120 + 'px' //除标题栏栏外的屏幕可用高度
  51. },
  52. methods: {
  53. back() {
  54. uni.navigateBack({
  55. delta: 1
  56. })
  57. },
  58. updateGroup(){
  59. uni.navigateTo({
  60. url:'/pages/updateGroup/updateGroup'
  61. })
  62. },
  63. groupDetail(){
  64. uni.navigateTo({
  65. url:'/pages/groupDetail/groupDetail'
  66. })
  67. },
  68. goAddGroup(){
  69. uni.navigateTo({
  70. url:'/pages/addGroup/addGroup'
  71. })
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. @import './index.rpx.css';
  78. </style>