member.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <view class="content">
  3. <view class="header">
  4. <image src="../../static/images/skm_fn_bg.png" mode="aspectFill" class="bg-img"></image>
  5. <view class="info-block flex-y-center">
  6. <view class="info">
  7. <view class="title">会员管理</view>
  8. <view class="desc">手机管理方便又快捷</view>
  9. </view>
  10. </view>
  11. </view>
  12. <view class="content-row">
  13. <view class="setup flex-y-center ft32">
  14. 常用应用
  15. </view>
  16. <view class="table">
  17. <view class="table-tr">
  18. <!-- v-if="is_admin==2" -->
  19. <block v-for="(item,index) in power_list" :key='index'>
  20. <navigator class="table-td" :url="item.address">
  21. <image :src="item.image" mode=""></image>
  22. <view class="">{{item.name}}</view>
  23. </navigator>
  24. </block>
  25. <!-- <navigator class="table-td" url="./list">
  26. <image src="../static/images/icon_2.png" mode=""></image>
  27. <view class="">会员列表</view>
  28. </navigator>
  29. <navigator class="table-td" url="./rechargeRecord">
  30. <image src="../static/images/icon_2.png" mode=""></image>
  31. <view class="">充值记录</view>
  32. </navigator> -->
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. is_admin:1,
  43. power_list:[]
  44. }
  45. },
  46. onLoad(e) {
  47. // console.log(this.$store.state.management_list_store)
  48. // let { list } = this.$store.state.management_list_store.find((v, i) => v.id == e.id)
  49. // this.power_list = list
  50. // this.store_id = uni.getStorageSync("store_id");
  51. this.power(e.id);
  52. },
  53. methods: {
  54. power(id){
  55. this.request({
  56. url: 'index/index',
  57. data: {
  58. admin_id: uni.getStorageSync("admin_id")
  59. },
  60. is_agent:'agent',
  61. }).then(res => {
  62. console.log(res,"index/index")
  63. if (res.code == '200') {
  64. let { list }= res.data.find((v, i) => v.id == id)
  65. this.power_list = list
  66. }
  67. }).catch((res) => {
  68. uni.showToast({
  69. title: res.message,
  70. icon: 'none'
  71. })
  72. });
  73. },
  74. }
  75. }
  76. </script>
  77. <style>
  78. .setup {
  79. width: 100%;
  80. height: 90rpx;
  81. opacity: 1;
  82. padding: 0 22rpx;
  83. }
  84. .table,
  85. .table div {
  86. margin: 0 auto;
  87. }
  88. .table {
  89. /* display: table; */
  90. width: 100%;
  91. border-collapse: collapse;
  92. box-sizing: border-box;
  93. }
  94. .table-tr {
  95. /* display: table-row; */
  96. /* height: 92rpx; */
  97. }
  98. .table-th {
  99. display: table-cell;
  100. font-weight: bold;
  101. border: 1rpx solid #FAFAFA;
  102. text-align: center;
  103. vertical-align: middle;
  104. }
  105. .table-td {
  106. display: inline-block;
  107. border: 1rpx solid #FAFAFA;
  108. text-align: center;
  109. vertical-align: middle;
  110. background: #fff;
  111. font-size: 27rpx;
  112. color: #666666;
  113. padding: 62rpx 0;
  114. width: 33.333%;
  115. }
  116. .table-td image {
  117. width: 50rpx;
  118. height: 50rpx;
  119. margin-bottom: 23rpx;
  120. }
  121. .header {
  122. width: 100%;
  123. height: 198rpx;
  124. position: relative;
  125. }
  126. .header .bg-img {
  127. display: block;
  128. position: absolute;
  129. left: 0;
  130. top: 0;
  131. z-index: 1;
  132. width: 100%;
  133. height: 198rpx;
  134. }
  135. .header .info-block {
  136. padding: 0 40rpx 0 48rpx;
  137. height: 198rpx;
  138. position: relative;
  139. z-index: 2;
  140. }
  141. .header .info-block .title {
  142. font-size: 36rpx;
  143. color: #fff;
  144. font-weight: 500;
  145. line-height: 50rpx;
  146. }
  147. .header .info-block .desc {
  148. font-size: 28rpx;
  149. font-weight: 500;
  150. color: #fff;
  151. line-height: 40rpx;
  152. margin-top: 8rpx;
  153. }
  154. .header .info-block .btn {
  155. width: 170rpx;
  156. height: 56rpx;
  157. border-radius: 28rpx;
  158. background-color: rgb(255, 255, 255);
  159. text-align: center;
  160. line-height: 52rpx;
  161. font-size: 28rpx;
  162. font-weight: 500;
  163. color: #3387FF;
  164. }
  165. </style>