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

93 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>10:0020:00</view>
  10. </view>
  11. <view class="lf-row-between item" @click="makePhoneCall">
  12. <view class="lf-color-gray">客服电话</view>
  13. <view>13278683790</view>
  14. </view>
  15. <view class="lf-row-between item">
  16. <view class="lf-color-gray">联系地址</view>
  17. <view>南宁市青秀区汇东国际F座6楼</view>
  18. </view>
  19. <view class="lf-row-between item">
  20. <view class="lf-color-gray">客服微信</view>
  21. <view>
  22. <text>whhu8798</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. list: []
  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. console.log("info", res);
  49. this.list = res.data;
  50. })
  51. },
  52. // 拨打电话
  53. makePhoneCall(){
  54. uni.makePhoneCall({
  55. phoneNumber: ''
  56. })
  57. },
  58. // 复制
  59. copy(){
  60. uni.setClipboardData({
  61. data: 'a'
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang="scss" scoped="scoped">
  68. .content{
  69. width: 750rpx;
  70. height: auto;
  71. padding: 0 32rpx;
  72. box-sizing: border-box;
  73. .item{
  74. width: 100%;
  75. height: 104rpx;
  76. border-bottom: 1rpx solid #EEEEEE;
  77. .btn{
  78. margin: 0;
  79. width: 176rpx;
  80. height: 60rpx;
  81. background: #FE9903;
  82. border-radius: 30rpx;
  83. color: #FFFFFF;
  84. font-size: 28rpx;
  85. line-height: 60rpx;
  86. }
  87. }
  88. }
  89. </style>