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

97 lines
1.8 KiB

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