myGroup.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <scroll-view scroll-y :style="{height:height}">
  6. <view class="flex-col item" v-for="(item,index) in 100" :key="index" @click="groupDetail">
  7. <view class="flex-row justify-between">
  8. <text class="storeName">好又多母婴店</text>
  9. <text class="time">消费额:1000.55</text>
  10. </view>
  11. <view class="flex-row icon-num">
  12. <u-icon size="24" name="/static/group/fuzeren.png"></u-icon>
  13. <text class="key">负责人:</text>
  14. <text class="number">张珊</text>
  15. </view>
  16. <view class="flex-row icon-num">
  17. <u-icon size="24" name="/static/group/chengyuan.png"></u-icon>
  18. <text class="key">成员:</text>
  19. <text class="number">300人</text>
  20. </view>
  21. <u-icon size="30" name="/static/group/xiugai.png" class="xiugai" @click.native.stop="updateGroup"></u-icon>
  22. </view>
  23. </scroll-view>
  24. </view>
  25. <view class="addGroup" @click="goAddGroup">
  26. <text>新增分组</text>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. components: {
  33. },
  34. data() {
  35. return {
  36. height:''
  37. }
  38. },
  39. onLoad(e) {
  40. let sysInfo = uni.getSystemInfoSync()
  41. this.height = sysInfo.windowHeight - 120 + 'px' //除标题栏栏外的屏幕可用高度
  42. },
  43. methods: {
  44. back() {
  45. uni.navigateBack({
  46. delta: 1
  47. })
  48. },
  49. updateGroup(){
  50. uni.navigateTo({
  51. url:'/pages/updateGroup/updateGroup'
  52. })
  53. },
  54. groupDetail(){
  55. uni.navigateTo({
  56. url:'/pages/groupDetail/groupDetail'
  57. })
  58. },
  59. goAddGroup(){
  60. uni.navigateTo({
  61. url:'/pages/addGroup/addGroup'
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped>
  68. @import './index.rpx.css';
  69. </style>