list.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="list-box">
  3. <navigator url="#" class="item-box" v-for="item in list" :key="item.sys_phonebookid">
  4. <view class="box">
  5. <view class="left">
  6. <view class="title">{{ item.name }}</view>
  7. <view class="remarks">{{ item.remarks }}</view>
  8. </view>
  9. <navigator url="#" class="right" @click="callPhoneFun(item)">
  10. <i class="iconfont icon-dianhua-hong" style="color:#C30D23"></i>
  11. </navigator>
  12. </view>
  13. </navigator>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. props:['list'],
  19. data () {
  20. return {
  21. }
  22. },
  23. methods: {
  24. callPhoneFun (item) {
  25. console.log(item);
  26. this.callPhone(item.phonenumber)
  27. }
  28. },
  29. }
  30. </script>
  31. <style lang="scss">
  32. .list-box {
  33. background: #ffffff;
  34. .item-box {
  35. display: flex;
  36. padding: 10px 0 0 10px;
  37. .box {
  38. border-bottom: 1px solid #DDDDDD;
  39. display: flex;
  40. align-items: center;
  41. align-content: center;
  42. justify-content: space-between;
  43. width: 100%;
  44. padding-bottom: 10px;
  45. .left {
  46. display: flex;
  47. flex-direction: column;
  48. .title {
  49. font-weight: bold;
  50. font-size: 14px;
  51. color: #333333;
  52. margin-bottom: 5px;
  53. }
  54. .remarks {
  55. font-weight: 400;
  56. font-size: 12px;
  57. color: #999999;
  58. }
  59. }
  60. .right {
  61. padding: 10px 10px 10px 10px;
  62. border-radius: 5px;
  63. }
  64. }
  65. }
  66. }
  67. </style>