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

95 lines
1.9 KiB

6 months ago
6 months ago
6 months ago
6 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 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. item.text === '我的订单' || item.englishText === 'Myorder'
  41. ) {
  42. console.log("进入 " + item.text)
  43. uni.navigateTo({
  44. url: item.toPathUrl
  45. })
  46. }
  47. }
  48. ,
  49. },
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .content {
  54. background-color: #2e2e2e;
  55. .item {
  56. display: flex;
  57. justify-content: space-between;
  58. align-items: center;
  59. padding: 20rpx 40rpx;
  60. .key {
  61. display: flex;
  62. justify-content: center;
  63. align-items: center;
  64. color: #FFF;
  65. font-size: 32rpx;
  66. .img {
  67. width: 40rpx;
  68. height: 40rpx;
  69. }
  70. .text {
  71. margin-left: 20rpx;
  72. }
  73. }
  74. .value {
  75. color: #FFF;
  76. font-size: 36rpx;
  77. }
  78. }
  79. }
  80. </style>