integral.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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. <block v-for="(item,index) in power_list" :key='index'>
  19. <navigator
  20. :url="item.address" class="table-td">
  21. <image :src="item.image" class="icon-img" mode="aspectFit"></image>
  22. <view>{{item.name}}</view>
  23. </navigator>
  24. <navigator v-if="item.id==263||item.name=='商品列表'" class="table-td" url="./editGoods">
  25. <image src="../static/images/icon_12.png" mode=""></image>
  26. <view class="">新增商品</view>
  27. </navigator>
  28. <navigator v-if="item.id==264||item.name=='订单列表'" class="table-td" url="./Applied">
  29. <image src="../static/images/icon_2.png" mode=""></image>
  30. <view class="">核销订单</view>
  31. </navigator>
  32. </block>
  33. <!-- <navigator class="table-td" url="./editGoodsCat">
  34. <image src="../static/images/icon_5.png" mode=""></image>
  35. <view class="">新增分类</view>
  36. </navigator> -->
  37. <!-- <navigator class="table-td" url="./goodsCatList">
  38. <image src="../static/images/icon_2.png" mode=""></image>
  39. <view class="">商品分类</view>
  40. </navigator> -->
  41. <!-- <navigator class="table-td" url="./goodsList">
  42. <image src="../static/images/icon_9.png" mode=""></image>
  43. <view class="">商品列表</view>
  44. </navigator> -->
  45. <!-- <navigator class="table-td" url="./orderList">
  46. <image src="../static/images/icon_2.png" mode=""></image>
  47. <view class="">订单列表</view>
  48. </navigator> -->
  49. <!-- <navigator class="table-td" url="./jfDetail">
  50. <image src="../static/images/icon_2.png"></image>
  51. <view class="">积分明细</view>
  52. </navigator> -->
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. export default {
  60. data() {
  61. return {
  62. power_list:[]
  63. }
  64. },
  65. onLoad(e) {
  66. let { list } = this.$store.state.management_list.find((v, i) => v.id == e.id)
  67. this.power_list = list
  68. },
  69. methods: {
  70. }
  71. }
  72. </script>
  73. <style>
  74. .setup {
  75. width: 100%;
  76. height: 90rpx;
  77. opacity: 1;
  78. padding: 0 22rpx;
  79. }
  80. .table,
  81. .table div {
  82. margin: 0 auto;
  83. }
  84. .table {
  85. /* display: table; */
  86. width: 100%;
  87. border-collapse: collapse;
  88. box-sizing: border-box;
  89. }
  90. .table-tr {
  91. /* display: table-row; */
  92. /* height: 92rpx; */
  93. }
  94. .table-th {
  95. display: table-cell;
  96. font-weight: bold;
  97. border: 1rpx solid #FAFAFA;
  98. text-align: center;
  99. vertical-align: middle;
  100. }
  101. .table-td {
  102. display: inline-block;
  103. border: 1rpx solid #FAFAFA;
  104. text-align: center;
  105. vertical-align: middle;
  106. background: #fff;
  107. font-size: 27rpx;
  108. color: #666666;
  109. padding: 62rpx 0;
  110. width: 33.333%;
  111. }
  112. .table-td image {
  113. width: 50rpx;
  114. height: 50rpx;
  115. margin-bottom: 23rpx;
  116. }
  117. .header {
  118. width: 100%;
  119. height: 198rpx;
  120. position: relative;
  121. }
  122. .header .bg-img {
  123. display: block;
  124. position: absolute;
  125. left: 0;
  126. top: 0;
  127. z-index: 1;
  128. width: 100%;
  129. height: 198rpx;
  130. }
  131. .header .info-block {
  132. padding: 0 40rpx 0 48rpx;
  133. height: 198rpx;
  134. position: relative;
  135. z-index: 2;
  136. }
  137. .header .info-block .title {
  138. font-size: 36rpx;
  139. color: #fff;
  140. font-weight: 500;
  141. line-height: 50rpx;
  142. }
  143. .header .info-block .desc {
  144. font-size: 28rpx;
  145. font-weight: 500;
  146. color: #fff;
  147. line-height: 40rpx;
  148. margin-top: 8rpx;
  149. }
  150. .header .info-block .btn {
  151. width: 170rpx;
  152. height: 56rpx;
  153. border-radius: 28rpx;
  154. background-color: rgb(255, 255, 255);
  155. text-align: center;
  156. line-height: 52rpx;
  157. font-size: 28rpx;
  158. font-weight: 500;
  159. color: #3387FF;
  160. }
  161. </style>