adviser.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="pd16_15">
  3. <view class="box noshadow pd16_15">
  4. <view class="flex alcenter">
  5. <image class="adviser-face-big" :src="statics.defaultFace"></image>
  6. <view style="width: calc(100% - 160rpx);" class=" pl15">
  7. <view class="ft16 cl-main ftw600">张顾问</view>
  8. <view class="flex alcenter mt8">
  9. <view class="flex alcenter cl-notice">
  10. <text class="iconfont iconicon_weixin ft14"></text>
  11. <text class="ft14 ml5">{{weixin}}</text>
  12. </view>
  13. <view @click="onddtel(weixin)" class="copy-tag ml10" :style="{background:tempColor}">复制</view>
  14. </view>
  15. <view class="flex alcenter space mt8">
  16. <view class="flex alcenter cl-notice">
  17. <text class="iconfont iconicon_call ft14"></text>
  18. <text class="ft14 ml5">{{tel}}</text>
  19. </view>
  20. <text @click="ontel(tel)" class="iconfont iconicon_bottom_call ft20" :style="{color:tempColor}"></text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="mt24">
  25. <navigator url="/pages/client/vipcard/adviserchange">
  26. <button class="btn-mid plan" style="width: 100%;" :style="getBtnPlanStyle">
  27. <text class="iconfont iconicon_huan mr10"></text>更换顾问
  28. </button>
  29. </navigator>
  30. </view>
  31. </view>
  32. <view class="box noshadow pd16_15 mt16">
  33. <textarea v-model="content" placeholder="我有问题要跟顾问反馈:" placeholder-class="cl-notice" class="ft14" style="height: 300rpx; width: 100%;" :maxlength="300"></textarea>
  34. <view class="mt12 text-right ft12 cl-notice">
  35. {{content.length}}/300
  36. </view>
  37. </view>
  38. <view class="mt16">
  39. <button class="btn-big" :style="getBtnStyle">立即提交</button>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default{
  45. data(){
  46. return {
  47. content:'',
  48. tel:'',
  49. weixin:''
  50. }
  51. },
  52. onShow() {
  53. this.tel= uni.getStorageSync("config").tels
  54. this.weixin= uni.getStorageSync("config").weixin
  55. },
  56. methods:{
  57. ontel(tel){
  58. uni.makePhoneCall({
  59. phoneNumber: tel //仅为示例
  60. });
  61. },
  62. onddtel(tel){
  63. uni.setClipboardData({
  64. data: tel,
  65. success() {
  66. publicFun.showtip('已经复制')
  67. },
  68. fail(res) {
  69. console.log(res)
  70. publicFun.showtip('复制失败')
  71. }
  72. })
  73. },
  74. }
  75. }
  76. </script>
  77. <style>
  78. .adviser-face-big{
  79. width: 160rpx;
  80. height: 160rpx;
  81. border-radius: 80rpx;
  82. background: #FFFFFF;
  83. }
  84. .copy-tag{
  85. width: 96rpx;
  86. height: 40rpx;
  87. color:#FFFFFF;
  88. font-size: 24rpx;
  89. text-align: center;
  90. line-height: 40rpx;
  91. border-radius: 20rpx;
  92. }
  93. </style>