about-us-list.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <view class="management">
  3. <navbar ref="navbar" :config="config"></navbar>
  4. <view class="content" v-if="dataList.length>0">
  5. <view class="modify" v-for="item in dataList" :key="item.id" @click="goDetail(item)">
  6. <view class="password">
  7. {{item.title}}
  8. </view>
  9. <view class="modif-name">
  10. <text class="iconfont">&#xe6c7;</text>
  11. </view>
  12. </view>
  13. </view>
  14. <nodata v-else :config="{ top: 1, content: '暂无数据~' }"></nodata>
  15. <view class="footer">
  16. <view class="u-font24">
  17. Copyright@2021-2030 </view>
  18. <view class="u-font24">绿马松河生活平台公益平台 版权所有
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. config: {
  28. back: true, //false是tolbar页面 是则不写
  29. title: '关于松河生活平台',
  30. color: '#1A1A1A',
  31. //背景颜色;参数一:透明度(0-1);参数二:背景颜色(array则为线性渐变,string为单色背景)
  32. backgroundColor: [1, "#FFFFFF"],
  33. statusBarFontColor: '#1A1A1A',
  34. },
  35. dataList: []
  36. }
  37. },
  38. onShow() {
  39. this.getList()
  40. },
  41. methods: {
  42. goDetail(item) {
  43. uni.navigateTo({
  44. url: 'about-us-detail?id=' + item.id
  45. });
  46. },
  47. getList() {
  48. this.$http
  49. .get(
  50. `/about/us/list`
  51. )
  52. .then((res) => {
  53. if (res && res.code == 200) {
  54. this.dataList = res.list
  55. }
  56. })
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .footer {
  63. margin-top: 500rpx;
  64. text-align: center;
  65. position: fixed;
  66. bottom: 0rpx;
  67. padding-bottom: 20rpx;
  68. background: #fff;
  69. width: 100%;
  70. }
  71. .management {
  72. position: relative;
  73. }
  74. .sign {
  75. display: flex;
  76. justify-content: center;
  77. .sign-out {
  78. margin-top: 550rpx;
  79. font-size: 36rpx;
  80. color: #DCCDA4;
  81. font-weight: 400;
  82. padding: 18rpx 272rpx;
  83. background-color: #0B844A;
  84. border-radius: 43rpx;
  85. }
  86. }
  87. .address {
  88. padding: 0 30rpx;
  89. .item {
  90. display: flex;
  91. justify-content: space-between;
  92. border-bottom: 1rpx solid #E6E6E6;
  93. padding-bottom: 30rpx;
  94. padding-top: 23rpx;
  95. font-size: 28rpx;
  96. color: #1A1A1A;
  97. font-weight: 400;
  98. }
  99. }
  100. .content {
  101. padding: 0 30rpx;
  102. padding-bottom: 160rpx;
  103. .modify {
  104. display: flex;
  105. justify-content: space-between;
  106. align-items: center;
  107. margin-top: 22rpx;
  108. padding-bottom: 30rpx;
  109. border-bottom: 1rpx solid #E6E6E6;
  110. .password {
  111. font-size: 28rpx;
  112. color: #1A1A1A;
  113. font-weight: 400;
  114. }
  115. .modif-name {
  116. font-size: 28rpx;
  117. font-weight: 400;
  118. color: #1A1A1A;
  119. .iconfont {
  120. margin-left: 14rpx;
  121. }
  122. }
  123. }
  124. }
  125. .distance {
  126. height: 10rpx;
  127. background-color: #F5F5F5;
  128. }
  129. .top {
  130. display: flex;
  131. align-items: center;
  132. padding: 0 30rpx;
  133. margin: 45rpx 0 40rpx 0;
  134. .image {
  135. image {
  136. width: 100rpx;
  137. height: 100rpx;
  138. border-radius: 50%;
  139. }
  140. }
  141. .name-and-num {
  142. margin-left: 18rpx;
  143. flex: 1;
  144. .name {
  145. font-size: 28rpx;
  146. color: #1A1A1A;
  147. font-weight: 400;
  148. }
  149. .num {
  150. font-size: 24rpx;
  151. color: #999999;
  152. font-weight: 500;
  153. }
  154. }
  155. }
  156. </style>