铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.6 KiB

9 months ago
9 months ago
9 months ago
  1. <template>
  2. <view class="content">
  3. <view class="item" v-for="(item, index) in list" :key="index" @click="tapItem(item, index)">
  4. <view class="key">
  5. <view class="img">
  6. <img :src="item.imgUrl" style="width: 100%; height: 100%;"/>
  7. </view>
  8. <view class="text">
  9. {{ item.text }}
  10. </view>
  11. </view>
  12. <view class="value">
  13. {{ item.value }}
  14. </view>
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. export default {
  20. name: "centerList",
  21. props: {
  22. list: {}
  23. },
  24. data() {
  25. return {
  26. }
  27. },
  28. methods: {
  29. // 点击列表项
  30. tapItem(item, index) {
  31. console.log(item, index, "item,index==========")
  32. if (item.text === '联系客服') {
  33. console.log("联系客服")
  34. this.$emit('open')
  35. } else if (item.text === '我的挂单' || item.text === '系统设置' || item.text === '关于我们' || item.text === '帮助反馈') {
  36. console.log("进入"+item.text)
  37. uni.navigateTo({
  38. url: item.toPathUrl
  39. })
  40. }
  41. },
  42. },
  43. }
  44. </script>
  45. <style scoped lang="scss">
  46. .content {
  47. background-color: #2e2e2e;
  48. .item {
  49. display: flex;
  50. justify-content: space-between;
  51. align-items: center;
  52. padding: 20rpx 40rpx;
  53. .key {
  54. display: flex;
  55. justify-content: center;
  56. align-items: center;
  57. color: #FFF;
  58. font-size: 32rpx;
  59. .img {
  60. width: 40rpx;
  61. height: 40rpx;
  62. }
  63. .text {
  64. margin-left: 20rpx;
  65. }
  66. }
  67. .value {
  68. color: #FFF;
  69. font-size: 36rpx;
  70. }
  71. }
  72. }
  73. </style>