helpAndSupport.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <template>
  2. <view class="page">
  3. <view class="faqSection dis f-c mb-2">
  4. <text class="title ">常见问题</text>
  5. <view class="cellText dis f-c mt-3">
  6. <text class="issue">客服在线时间</text>
  7. <text class="content">客服在线时间为:早上8:30 至 下午6:30</text>
  8. </view>
  9. <view class="cellText mb-3 mt-3 dis f-c ">
  10. <text class="issue">忘记密码怎么办?</text>
  11. <text class="content">忘记密码可在登录时使用手机号+短信验证码登录,也可以在登录页面点击【忘记密码】使用手机号+短信验证码重新设置新的密码。</text>
  12. </view>
  13. <view class="cellText dis f-c">
  14. <text class="issue">如何修改密码?</text>
  15. <text class="content">打开APP,点击【我的】> 【设置】(我的页面下滑到底)>账号安全> 修改密码。</text>
  16. </view>
  17. </view>
  18. <view class="helpDesk">
  19. <text class="title ">电话报案</text>
  20. <view class="item mt-3 dis a-c " @click="qrCodeshow=true">
  21. <view class="image dis a-c j-c ">
  22. <image src="/static/icon/my/wechatSupport.png" mode=""></image>
  23. </view>
  24. <view class="cell dis f-c ">
  25. <text>企业微信客服</text>
  26. <text>添加企业微信专属客服,解决您遇到的问题</text>
  27. </view>
  28. </view>
  29. <view class="item mt-3 dis a-c " @click="getWechatCustomer">
  30. <view class="image dis a-c j-c ">
  31. <image src="/static/icon/my/wechatCustomerService.png" mode=""></image>
  32. </view>
  33. <view class="cell dis f-c ">
  34. <text>微信客服</text>
  35. <text>联系微信客服,解决您出单时遇到的问题</text>
  36. </view>
  37. </view>
  38. <view class="item mt-3 dis a-c " @click="virtualAssistant">
  39. <view class="image dis a-c j-c ">
  40. <image src="/static/icon/my/AI.png" mode=""></image>
  41. </view>
  42. <view class="cell dis f-c ">
  43. <text>智能客服</text>
  44. <text>联系智能客服,解决您出单时遇到的问题</text>
  45. </view>
  46. </view>
  47. </view>
  48. <uni-Popup :show="qrCodeshow" @close='qrCodeshow=false' headerTitle="企业微信客服">
  49. <template #content>
  50. <view class="dis f-c a-c weComCustomerService">
  51. <view class="dis a-c j-c qrcode" style="position: relative;">
  52. <image :src="paycodeimg" mode="widthFix"></image>
  53. </view>
  54. <view class="btn mt-4 dis a-c j-c">
  55. 保存到相册
  56. </view>
  57. </view>
  58. </template>
  59. </uni-Popup>
  60. </view>
  61. </template>
  62. <script>
  63. import QR from "@/common/wxqrcode.js"
  64. export default {
  65. data() {
  66. return {
  67. qrCodeshow: false,
  68. paycodeimg: "",
  69. supportStaffUrl: "",
  70. }
  71. },
  72. onShow() {
  73. },
  74. async onLoad() {
  75. this.paycodeimg = QR.createQrCodeImg('312232131', {
  76. size: parseInt(300) //二维码大小
  77. })
  78. let res = await this.$http.get('/organization/wechat/customerService/manage/find/link')
  79. if (res.code == 200) {
  80. this.supportStaffUrl = res.data;
  81. }
  82. },
  83. methods: {
  84. //客服机器人跳转
  85. virtualAssistant() {
  86. uni.navigateTo({
  87. url: '/pages/chat/chat'
  88. })
  89. },
  90. getWechatCustomer() {
  91. if (plus) { // 确保在App环境下
  92. plus.runtime.openURL(this.supportStaffUrl);
  93. }
  94. },
  95. }
  96. }
  97. </script>
  98. <style lang="scss" scoped>
  99. .page {
  100. background-color: #F8F8F8;
  101. height: 100vh;
  102. }
  103. .weComCustomerService {
  104. padding: 40rpx 40rpx 20rpx;
  105. box-sizing: border-box;
  106. .btn {
  107. width: 100%;
  108. height: 80rpx;
  109. background: #FDE935;
  110. border-radius: 50rpx 50rpx 50rpx 50rpx;
  111. font-size: 30rpx;
  112. }
  113. }
  114. .qrcode {
  115. width: 174px;
  116. height: 174px;
  117. padding: 10px;
  118. margin-top: 16px;
  119. border-radius: 4px;
  120. }
  121. .qrcode image {
  122. width: 174px;
  123. height: 174px;
  124. }
  125. .faqSection {
  126. background-color: #fff;
  127. padding: 30rpx;
  128. box-sizing: border-box;
  129. .title {
  130. font-size: 34rpx;
  131. color: #333;
  132. font-weight: bold;
  133. }
  134. .cellText {
  135. border: 1rpx solid #EEEEEE;
  136. padding: 20rpx;
  137. box-sizing: border-box;
  138. border-radius: 4rpx;
  139. .issue {
  140. font-size: 30rpx;
  141. color: #333;
  142. margin-bottom: 15rpx;
  143. }
  144. .content {
  145. font-size: 28rpx;
  146. color: #999;
  147. }
  148. }
  149. }
  150. .helpDesk {
  151. background-color: #fff;
  152. padding: 30rpx;
  153. box-sizing: border-box;
  154. .title {
  155. font-size: 34rpx;
  156. color: #333;
  157. font-weight: bold;
  158. }
  159. .item {
  160. border: 1rpx solid #EEEEEE;
  161. padding: 18rpx 18rpx 18rpx 18rpx;
  162. box-sizing: border-box;
  163. border-radius: 4rpx;
  164. .image {
  165. width: 100rpx;
  166. height: 100rpx;
  167. background: rgba(253, 233, 53, 0.7);
  168. border-radius: 20rpx 20rpx 20rpx 20rpx;
  169. margin-right: 14rpx;
  170. image {
  171. width: 72rpx;
  172. height: 72rpx;
  173. }
  174. }
  175. .cell {
  176. text:first-child {
  177. font-size: 30rpx;
  178. color: #333;
  179. margin-bottom: 15rpx;
  180. }
  181. text:last-child {
  182. font-size: 28rpx;
  183. color: #999;
  184. }
  185. }
  186. }
  187. }
  188. </style>