特易招,招聘小程序
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.

117 lines
1.8 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
  1. <template>
  2. <view class="head">
  3. <view class="headImage">
  4. <image :src="image" mode=""></image>
  5. </view>
  6. <view class="info">
  7. <view class="name">
  8. {{ name }}
  9. </view>
  10. <view class="tips">
  11. {{ tips }}
  12. </view>
  13. </view>
  14. <view class="right">
  15. <view class="phone"
  16. @click="callPhone">
  17. <image src="/static/image/home/phone.png" mode=""></image>
  18. {{ phone }}
  19. </view>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. props : {
  26. name : {
  27. default : '倾心.'
  28. },
  29. tips : {
  30. default : '手机号:1300000000'
  31. },
  32. phone : {
  33. default : '联系老板'
  34. },
  35. image : {
  36. default : '/static/image/center/headImage.png'
  37. },
  38. phoneCall : {
  39. }
  40. },
  41. data() {
  42. return {
  43. }
  44. },
  45. methods: {
  46. callPhone(){
  47. uni.makePhoneCall({
  48. phoneNumber: this.phoneCall,
  49. success() {
  50. console.log('安卓拨打成功');
  51. },
  52. fail() {
  53. console.log('安卓拨打失败');
  54. }
  55. })
  56. },
  57. }
  58. }
  59. </script>
  60. <style scoped lang="scss">
  61. .head {
  62. display: flex;
  63. align-items: center;
  64. position: relative;
  65. image {
  66. width: 100%;
  67. height: 100%;
  68. }
  69. .headImage {
  70. width: 80rpx;
  71. height: 80rpx;
  72. background-size: 100% 100%;
  73. overflow: hidden;
  74. border-radius: 50%;
  75. margin-right: 40rpx;
  76. }
  77. .info {
  78. font-size: 28rpx;
  79. .name {
  80. font-size: 32rpx;
  81. display: flex;
  82. padding-bottom: 10rpx;
  83. view {
  84. display: flex;
  85. font-size: 20rpx;
  86. align-items: center;
  87. padding-left: 20rpx;
  88. }
  89. }
  90. .tips {
  91. font-size: 26rpx;
  92. }
  93. }
  94. .right{
  95. margin-left: auto;
  96. .phone{
  97. background-color: rgba($uni-color, 0.2);
  98. color: $uni-color;
  99. padding: 8rpx 16rpx;
  100. border-radius: 10rpx;
  101. image{
  102. width: 24rpx;
  103. height: 24rpx;
  104. }
  105. }
  106. }
  107. }
  108. </style>