card.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <template>
  2. <view>
  3. <view class="card" v-for="(item,index) in menuList" :key="index" @click="jump(item.path)">
  4. <view style="display: flex;">
  5. <image style="width: 40rpx;height: 40rpx;margin-top: 4rpx;" :src="item.icon" ></image>
  6. <view class="center">
  7. <text class="padding-left-10">{{item.name}}</text>
  8. </view>
  9. </view>
  10. <view class="">
  11. <text class="cuIcon-right"></text>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. data() {
  19. return {
  20. menuList:[
  21. {
  22. icon:'/static/icon/shangjia.png',
  23. name:'商家认证',
  24. path:'/pages/mine/card/pay-setting'
  25. },
  26. {
  27. icon:'/static/icon/bank.png',
  28. name:'银行卡',
  29. path:'/pages/mine/card/pay-setting'
  30. },
  31. {
  32. icon:'/static/icon/xiazai.png',
  33. name:'物料下载',
  34. path:'/pages/mine/card/pay-setting'
  35. },
  36. {
  37. icon:'/static/icon/kefu.png',
  38. name:'客服',
  39. path:'/pages/mine/card/pay-setting'
  40. },
  41. {
  42. icon:'/static/icon/wendang.png',
  43. name:'开发文档',
  44. path:'/pages/mine/card/pay-setting'
  45. }
  46. ]
  47. }
  48. },
  49. methods: {
  50. jump(url){
  51. uni.navigateTo({
  52. url
  53. })
  54. }
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .card{
  60. display: flex;
  61. justify-content: space-between;
  62. margin: 20rpx 0;
  63. padding: 30rpx;
  64. background-color: #FFFFFF;
  65. }
  66. </style>