myInfo.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. }
  69. // chooseImage(){
  70. // uni.chooseImage({
  71. // success: (res) => {
  72. // uploadImage(res.tempFilePaths[0], 'cardImages/',
  73. // result => {
  74. // // this.trainImg = result
  75. // uni.hideLoading();
  76. // }
  77. // )
  78. // }
  79. // });
  80. // }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .card-list-item {
  86. border: 1px solid #ccc;
  87. border-radius: 30rpx;
  88. padding: 40rpx;
  89. box-sizing: border-box;
  90. .left {
  91. width: 30%;
  92. .top {
  93. margin-bottom: 20rpx;
  94. }
  95. .img {
  96. width: 80%;
  97. }
  98. .bottom {}
  99. }
  100. .right {
  101. .row1 {
  102. .line {
  103. width: 1px;
  104. height: 20px;
  105. margin: 0 20rpx;
  106. background: black;
  107. }
  108. }
  109. }
  110. }
  111. </style>