distriAdmin.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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">当前余额(元):{{obj.squirrel_money}}</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. <navigator class="table-td" url="./distriBution">
  19. <image src="../static/images/icon_2.png" mode=""></image>
  20. <view class="">配送充值</view>
  21. </navigator>
  22. <block v-for="(item,index) in power_list" :key='index'>
  23. <navigator class="table-td" :url="item.address">
  24. <image :src="item.image"></image>
  25. <view>{{item.name}}</view>
  26. </navigator>
  27. </block>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. obj:{},
  38. power_list:[]
  39. }
  40. },
  41. onLoad(e) {
  42. let col = this.$store.state.management_list_store;
  43. let { list } = getData(col,e.sid,e.id);
  44. this.power_list = list;
  45. function getData(col,sid,id) {
  46. return col.find(it => it.id == sid).list.find(item=> item.id == id)
  47. }
  48. },
  49. onShow(){
  50. this.http()
  51. },
  52. methods: {
  53. http() {
  54. this.request({
  55. url: "Smdcshop/store_user_info",
  56. data: {
  57. id: uni.getStorageSync("admin_id"),
  58. },
  59. }).then(res => {
  60. console.log(res, "res")
  61. if (res.code === '200') {
  62. this.obj = res.data;
  63. }
  64. }).catch((res) => {});
  65. },
  66. }
  67. }
  68. </script>
  69. <style>
  70. .setup {
  71. width: 100%;
  72. height: 90rpx;
  73. opacity: 1;
  74. padding: 0 22rpx;
  75. }
  76. .table,
  77. .table div {
  78. margin: 0 auto;
  79. }
  80. .table {
  81. /* display: table; */
  82. width: 100%;
  83. border-collapse: collapse;
  84. box-sizing: border-box;
  85. }
  86. .table-tr {
  87. /* display: table-row; */
  88. /* height: 92rpx; */
  89. }
  90. .table-th {
  91. display: table-cell;
  92. font-weight: bold;
  93. border: 1rpx solid #FAFAFA;
  94. text-align: center;
  95. vertical-align: middle;
  96. }
  97. .table-td {
  98. display: inline-block;
  99. border: 1rpx solid #FAFAFA;
  100. text-align: center;
  101. vertical-align: middle;
  102. background: #fff;
  103. font-size: 27rpx;
  104. color: #666666;
  105. padding: 62rpx 0;
  106. width: 33.333%;
  107. }
  108. .table-td image {
  109. width: 50rpx;
  110. height: 50rpx;
  111. margin-bottom: 23rpx;
  112. }
  113. .header {
  114. width: 100%;
  115. height: 198rpx;
  116. position: relative;
  117. }
  118. .header .bg-img {
  119. display: block;
  120. position: absolute;
  121. left: 0;
  122. top: 0;
  123. z-index: 1;
  124. width: 100%;
  125. height: 198rpx;
  126. }
  127. .header .info-block {
  128. padding: 0 40rpx 0 48rpx;
  129. height: 198rpx;
  130. position: relative;
  131. z-index: 2;
  132. }
  133. .header .info-block .title {
  134. font-size: 36rpx;
  135. color: #fff;
  136. font-weight: 500;
  137. line-height: 50rpx;
  138. }
  139. .header .info-block .desc {
  140. font-size: 28rpx;
  141. font-weight: 500;
  142. color: #fff;
  143. line-height: 40rpx;
  144. margin-top: 8rpx;
  145. }
  146. .header .info-block .btn {
  147. width: 170rpx;
  148. height: 56rpx;
  149. border-radius: 28rpx;
  150. background-color: rgb(255, 255, 255);
  151. text-align: center;
  152. line-height: 52rpx;
  153. font-size: 28rpx;
  154. font-weight: 500;
  155. color: #3387FF;
  156. }
  157. </style>