contactService.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view>
  3. <ujp-navbar title="联系客服" ></ujp-navbar>
  4. <view class="service" @click="servicePhone">
  5. <view class="left">
  6. <view class="text">
  7. 平台服务
  8. </view>
  9. <view class="tel">
  10. {{telephone.serviceNumber}}
  11. </view>
  12. </view>
  13. <view class="img-box">
  14. <img src="../../assets/img/fas fa-phone@3x.png" alt="">
  15. </view>
  16. </view>
  17. <view class="service breakdown" @click="breakdownPhone">
  18. <view class="left">
  19. <view class="text">
  20. 故障反馈
  21. </view>
  22. <view class="tel">
  23. {{telephone.breakdownNumber}}
  24. </view>
  25. </view>
  26. <view class="img-box">
  27. <img src="../../assets/img/fas fa-phone@3x.png" alt="">
  28. </view>
  29. </view>
  30. <view class="service after-sale" @click="afterPhone">
  31. <view class="left">
  32. <view class="text">
  33. 售后处理
  34. </view>
  35. <view class="tel">
  36. {{telephone.afterNumber}}
  37. </view>
  38. </view>
  39. <view class="img-box">
  40. <img src="../../assets/img/fas fa-phone@3x.png" alt="">
  41. </view>
  42. </view>
  43. <!-- 意见反馈 -->
  44. <view class="feedback">
  45. <view class="title oldTextjp2" oldstyle="font-size: 16px;">
  46. 您也可以在线提交反馈意见:
  47. </view>
  48. <u-button class="oldTextjp2" oldstyle="font-size: 18px;" @click="feedback">意见反馈</u-button>
  49. </view>
  50. <view>
  51. <u-modal v-model="show" @confirm="confirmPhone" :confirm-text="confirmText" confirm-color="#606266" :show-cancel-button="true" ref="uModal"
  52. :asyncClose="true" :title="title" :content="content" :content-style="{fontSize: '24px',color: '#101010'}"></u-modal>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {
  60. telephone: {
  61. serviceNumber: '400-8899-619',
  62. breakdownNumber: '15607217777',
  63. afterNumber: '15607217777',
  64. },
  65. userId: '',
  66. show: false,
  67. title: '',
  68. content: '',
  69. confirmText: '拨打电话',
  70. }
  71. },
  72. onShow() {
  73. if(this.carhelp.getPersonInfo()) {
  74. this.userId = this.carhelp.getPersonInfo().id;
  75. }
  76. },
  77. methods: {
  78. servicePhone() {
  79. this.title = '平台服务';
  80. this.content = this.telephone.serviceNumber;
  81. this.show = true;
  82. },
  83. breakdownPhone() {
  84. this.title = '故障反馈';
  85. this.content = this.telephone.breakdownNumber;
  86. this.show = true;
  87. },
  88. afterPhone() {
  89. this.title = '售后处理';
  90. this.content = this.telephone.afterNumber;
  91. this.show = true;
  92. },
  93. confirmPhone(){
  94. this.show = false;
  95. uni.makePhoneCall({
  96. phoneNumber:this.content //仅为示例
  97. });
  98. },
  99. feedback() {
  100. if(this.userId) {
  101. uni.navigateTo({
  102. url: '/pages/user/message'
  103. })
  104. } else {
  105. uni.navigateTo({
  106. url: '/pages/login/login'
  107. })
  108. }
  109. },
  110. }
  111. }
  112. </script>
  113. <style lang="scss" scoped>
  114. page{
  115. background-color: #fff;
  116. }
  117. .service{
  118. width: 91.4%;
  119. margin:12px auto 0;
  120. padding: 24px 20px;
  121. height: 100px;
  122. display: flex;
  123. justify-content: space-between;
  124. background:linear-gradient(to right,#39BCFD,#3F70E6);
  125. color: #fff;
  126. border-radius: 8px;
  127. .text{
  128. line-height: 28px;
  129. color: rgba(255, 255, 255, 100);
  130. font-size: 24px;
  131. }
  132. .tel{
  133. height: 24px;
  134. color: rgba(255, 255, 255, 100);
  135. font-size: 20px;
  136. margin-top: 4px;
  137. }
  138. .img-box{
  139. padding-top: 12px;
  140. img{
  141. width: 28px;
  142. height: 28px;
  143. }
  144. }
  145. }
  146. // 故障处理
  147. .breakdown{
  148. background:linear-gradient(to right,#F19063,#EA624C);
  149. }
  150. // 售后
  151. .after-sale{
  152. background:linear-gradient(to right,#30CDBD,#04C08F);
  153. }
  154. .feedback{
  155. padding: 40px 18px;
  156. }
  157. .u-btn{
  158. background-color: rgba(244, 248, 255, 100);
  159. color: rgba(16, 16, 16, 100);
  160. font-size: 16px;
  161. border-radius: 8px;
  162. height: 44px;
  163. margin-top: 12px;
  164. border: 1px solid rgba(172, 203, 255, 100);
  165. }
  166. </style>