时空网前端
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.

90 lines
1.9 KiB

  1. <template>
  2. <view class="content">
  3. <view class="lf-row-between item">
  4. <view class="lf-color-gray">在线客服</view>
  5. <button class="btn" open-type="contact">在线联系</button>
  6. </view>
  7. <view class="lf-row-between item">
  8. <view class="lf-color-gray">服务时间</view>
  9. <view>{{ info.service_period }}</view>
  10. </view>
  11. <view class="lf-row-between item" @click="makePhoneCall">
  12. <view class="lf-color-gray">客服电话</view>
  13. <view style="color: #1E89FF!important;">{{ info.phone }}</view>
  14. </view>
  15. <view class="lf-row-between item">
  16. <view class="lf-color-gray">联系地址</view>
  17. <view style="max-width: 500rpx;">{{ info.address }}</view>
  18. </view>
  19. <view class="lf-row-between item">
  20. <view class="lf-color-gray">客服微信</view>
  21. <view>
  22. <text>{{ info.wechat }}</text>
  23. <text class="lf-m-l-20 lf-color-primary" @click="copy">复制</text>
  24. </view>
  25. </view>
  26. <view class="lf-row-between item">
  27. <view class="lf-color-gray">当前版本</view>
  28. <view>{{ version }}</view>
  29. </view>
  30. </view>
  31. </template>
  32. <script>
  33. export default {
  34. data(){
  35. return {
  36. version: '',
  37. info: {}
  38. }
  39. },
  40. onLoad(){
  41. this.version = this.API.VERSION;
  42. this.getInfo();
  43. },
  44. methods: {
  45. // 获取信息
  46. getInfo(){
  47. this.$http(this.API.API_CONTACT).then(res => {
  48. this.info = res.data;
  49. })
  50. },
  51. // 拨打电话
  52. makePhoneCall(){
  53. uni.makePhoneCall({
  54. phoneNumber: this.info.phone
  55. })
  56. },
  57. // 复制
  58. copy(){
  59. uni.setClipboardData({
  60. data: this.info.wechat
  61. })
  62. }
  63. }
  64. }
  65. </script>
  66. <style lang="scss" scoped="scoped">
  67. .content{
  68. width: 750rpx;
  69. height: auto;
  70. padding: 0 32rpx;
  71. box-sizing: border-box;
  72. .item{
  73. width: 100%;
  74. height: 104rpx;
  75. border-bottom: 1rpx solid #EEEEEE;
  76. .btn{
  77. margin: 0;
  78. width: 176rpx;
  79. height: 60rpx;
  80. background: #FE9903;
  81. border-radius: 30rpx;
  82. color: #FFFFFF;
  83. font-size: 28rpx;
  84. line-height: 60rpx;
  85. }
  86. }
  87. }
  88. </style>