myInfo.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <view class="content">
  3. <view class="card-list">
  4. <view class="row" v-for="(item,index) in cardList" :key="index">
  5. <view class="title-name">
  6. 名称
  7. </view>
  8. <view class="flex card-list-item">
  9. <view class="left">
  10. <view class="top flex-row-center">
  11. <image src="../../static/uni.png" mode="widthFix" class="img"></image>
  12. </view>
  13. <view class="bottom flex flex-evenly">
  14. <uni-icons type="home" size="20"></uni-icons>
  15. <text>默</text>
  16. <uni-icons type="redo" size="20"></uni-icons>
  17. </view>
  18. </view>
  19. <view class="right">
  20. <view class="row1 flex">
  21. <text>张三</text>
  22. <text class="line"></text>
  23. <text>总经理</text>
  24. </view>
  25. <view class="row2">
  26. 北京xxx有限公司
  27. </view>
  28. <view class="row3" @click="toMap">
  29. <uni-icons type="redo" size="20"></uni-icons>
  30. <text>北京市朝阳区幸福大街8号</text>
  31. </view>
  32. <view class="row3">
  33. <uni-icons type="redo" size="20"></uni-icons>
  34. <text>13333333333</text>
  35. </view>
  36. <view class="row3">
  37. <uni-icons type="redo" size="20"></uni-icons>
  38. <text>我是备注</text>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="car-bottom flex">
  43. <button>置顶</button>
  44. <button>删除</button>
  45. <button>编辑</button>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="upload">
  50. <view class="solids" @click="addCard">
  51. <text class=''>添加新名片</text>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. import uploadImage from '@/components/ossutil/uploadFile.js';
  58. export default {
  59. data() {
  60. return {
  61. cardList: [{},
  62. {}
  63. ]
  64. };
  65. },
  66. methods:{
  67. addCard(){
  68. uni.navigateTo({
  69. url:"/pages/mySet/newCard"
  70. })
  71. }
  72. // chooseImage(){
  73. // uni.chooseImage({
  74. // success: (res) => {
  75. // uploadImage(res.tempFilePaths[0], 'cardImages/',
  76. // result => {
  77. // // this.trainImg = result
  78. // uni.hideLoading();
  79. // }
  80. // )
  81. // }
  82. // });
  83. // }
  84. }
  85. }
  86. </script>
  87. <style lang="scss" scoped>
  88. .card-list-item {
  89. border: 1px solid #ccc;
  90. border-radius: 30rpx;
  91. padding: 40rpx;
  92. box-sizing: border-box;
  93. .left {
  94. width: 30%;
  95. .top {
  96. margin-bottom: 20rpx;
  97. }
  98. .img {
  99. width: 80%;
  100. }
  101. .bottom {}
  102. }
  103. .right {
  104. .row1 {
  105. .line {
  106. width: 1px;
  107. height: 20px;
  108. margin: 0 20rpx;
  109. background: black;
  110. }
  111. }
  112. }
  113. }
  114. </style>