index - 副本.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view class="container">
  3. <navBar title="客服中心" :back="true" color="#333333" background="#FFFFFF" />
  4. <view class='box' >
  5. <view class='list'>
  6. <view class='item'>
  7. <view class='left'>
  8. <view class='top'>
  9. <image class='icon' mode="" src="../../../static/tabbar/my.png">
  10. </image>
  11. 手机号码
  12. </view>
  13. <view class='bot'>
  14. {{phone}}
  15. </view>
  16. </view>
  17. <view class='right'>
  18. <view class='btnBox' style="background:#017AFF;" @click="call(phone)" >
  19. 拨号
  20. </view>
  21. </view>
  22. </view>
  23. <view class='item'>
  24. <view class='left'>
  25. <view class='top'>
  26. <image class='icon' mode="" src="../../../static/tabbar/my.png">
  27. </image>
  28. 微信官方客服
  29. </view>
  30. </view>
  31. <view class='right'>
  32. <!-- <view class='btnBox' style="background:#017AFF;">
  33. 联系
  34. </view> -->
  35. <u-button customStyle="{'font-size': 26rpx}" class="btnBox" text="联系" open-type="contact"></u-button>
  36. <!-- <van-button custom-class="btnBox conBtn" round type="default" open-type="contact" bindcontact="handleContact" session-from="sessionFrom">联系</van-button> -->
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. // import navBar from '@/components/navBar/index.vue'
  45. export default {
  46. // components: {
  47. // navBar
  48. // },
  49. data() {
  50. return {
  51. phone:'15609038522'
  52. }
  53. },
  54. onLoad() {
  55. },
  56. methods: {
  57. call(e){
  58. wx.makePhoneCall({
  59. phoneNumber: e //仅为示例,并非真实的电话号码
  60. })
  61. },
  62. }
  63. }
  64. </script>
  65. <style lang="scss" scoped>
  66. @import "./index.scss";
  67. </style>