铝交易,微信公众号
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.

94 lines
1.8 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 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 === '联系客服' || item.englishText === 'contactCustomerService') {
  33. console.log("联系客服")
  34. this.$emit('open')
  35. } else if (
  36. item.text === '我的挂单' || item.englishText === 'myOrders' ||
  37. item.text === '系统设置' || item.englishText === 'systemSettings' ||
  38. item.text === '关于我们' || item.englishText === 'aboutUs' ||
  39. item.text === '帮助反馈' || item.englishText === 'helpFeedback'
  40. ) {
  41. console.log("进入 " + item.text)
  42. uni.navigateTo({
  43. url: item.toPathUrl
  44. })
  45. }
  46. }
  47. ,
  48. },
  49. }
  50. </script>
  51. <style scoped lang="scss">
  52. .content {
  53. background-color: #2e2e2e;
  54. .item {
  55. display: flex;
  56. justify-content: space-between;
  57. align-items: center;
  58. padding: 20rpx 40rpx;
  59. .key {
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. color: #FFF;
  64. font-size: 32rpx;
  65. .img {
  66. width: 40rpx;
  67. height: 40rpx;
  68. }
  69. .text {
  70. margin-left: 20rpx;
  71. }
  72. }
  73. .value {
  74. color: #FFF;
  75. font-size: 36rpx;
  76. }
  77. }
  78. }
  79. </style>