feedbackIndex.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <!-- 帮助反馈页面 -->
  2. <template>
  3. <view>
  4. <!-- <view class="text-top">常见问题</view> -->
  5. <view class="bg-list">
  6. <view v-for="(item,index) in helpClassifyList" :key="index" :title="item.helpClassifyName"
  7. class="list-title padding-bottom-sm">
  8. <view class="flex align-center justify-between" @click.stop="openList(item,index)">
  9. <view class="text-title">{{item.helpClassifyName}}</view>
  10. <view @click.stop="openList(item,index)" >
  11. <image src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/05/d56c02cad3db64b1874d01e0ceeb48e1.png" style="width: 21rpx;height: 15rpx;" v-if="item.id==0"></image>
  12. <image src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/05/8ee353c9b70928dc4f81488e75121441.png" style="width: 21rpx;height: 15rpx;" v-else></image>
  13. </view>
  14. </view>
  15. <view v-for="(problemItem,problemIndex) in item.helpWordList" :key="problemIndex" class="list-question"
  16. hover-class="hover" @click="onClick(problemItem)" v-if="item.id==0">
  17. <view class="text-item">{{problemItem.helpWordTitle}}</view>
  18. <!-- <view class="line" v-if="problemIndex!=item.helpWordList.length-1"></view> -->
  19. </view>
  20. </view>
  21. </view>
  22. <view class="bg-box">
  23. <view class="bg-white-box">
  24. <image src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/05/6ea8d56c2451479b6327c56e3c57e91c.png" class="image"></image>
  25. <view class="text-feedback" hover-class="hover" @click="goChat">联系客服</view>
  26. <view class="vertical-line"></view>
  27. <image src="https://zhaopin.xianmaxiong.com/file/uploadPath/2022/09/05/aa32e4508c2505631a17402d4e086cda.png" class="image"></image>
  28. <view class="text-feedback" hover-class="hover" @click="toFeedback">我要反馈</view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. helpClassifyList: []
  38. }
  39. },
  40. onLoad() {
  41. this.getlist()
  42. },
  43. methods: {
  44. openList(item,index) {
  45. console.log(item.id)
  46. if(item.id===1){
  47. this.helpClassifyList[index].id=0
  48. }else{
  49. this.helpClassifyList[index].id=1
  50. }
  51. console.log(this.helpClassifyList)
  52. this.$forceUpdate()
  53. },
  54. getlist() {
  55. this.$Request.get("/app/helpWord/selectHelpList?types=1").then(res => {
  56. if (res.code == 0) {
  57. this.helpClassifyList = res.data
  58. this.helpClassifyList.map(item=>{
  59. item.id = 1
  60. })
  61. } else {
  62. uni.showToast({
  63. title: res.msg,
  64. icon: 'none'
  65. })
  66. }
  67. });
  68. },
  69. onClick(item) {
  70. console.log(item)
  71. // return
  72. uni.navigateTo({
  73. url: './helpDetail?item='+encodeURIComponent(JSON.stringify(item)),
  74. })
  75. },
  76. // toFeedbackList() {
  77. // wx.openCustomerServiceChat({
  78. // extInfo: {
  79. // url: this.$queue.getData('ZXMessageLink')
  80. // },
  81. // corpId: 'wxc2cd198ca1931c49',
  82. // success(res) {}
  83. // })
  84. // },
  85. // 在线客服
  86. goChat(){
  87. let that = this
  88. if(uni.getStorageSync('userType')==1){//用户端
  89. // #ifdef MP-WEIXIN
  90. wx.openCustomerServiceChat({
  91. extInfo: {
  92. url: that.$queue.getData('kefu')
  93. },
  94. corpId: that.$queue.getData('kefuAppid'),
  95. success(res) {
  96. console.log(res)
  97. },
  98. })
  99. // #endif
  100. // #ifdef H5
  101. window.location.href = that.$queue.getData('kefu');
  102. // #endif
  103. // #ifdef APP
  104. let kefu = that.$queue.getData('kefu')
  105. console.log(kefu)
  106. plus.runtime.openURL(kefu, function(res) {});
  107. // #endif
  108. }else{//企业端
  109. // #ifdef MP-WEIXIN
  110. wx.openCustomerServiceChat({
  111. extInfo: {
  112. url: that.$queue.getData('kefuq')
  113. },
  114. corpId: that.$queue.getData('kefuAppidq'),
  115. success(res) {
  116. console.log(res)
  117. },
  118. })
  119. // #endif
  120. // #ifdef H5
  121. window.location.href = that.$queue.getData('kefuq');
  122. // #endif
  123. // #ifdef APP
  124. let kefu = that.$queue.getData('kefuq')
  125. console.log(kefu)
  126. plus.runtime.openURL(kefu, function(res) {});
  127. // #endif
  128. }
  129. },
  130. toFeedback() {
  131. uni.navigateTo({
  132. url: '/my/feedback/index',
  133. success: res => {},
  134. fail: () => {},
  135. complete: () => {}
  136. });
  137. }
  138. }
  139. }
  140. </script>
  141. <style>
  142. .bg-box {
  143. /* background-color: #ffffff; */
  144. position: fixed;
  145. bottom: 0;
  146. left: 0;
  147. right: 0;
  148. }
  149. .bg-list {
  150. margin-bottom: 100rpx;
  151. background-color: #ffffff;
  152. padding: 30rpx
  153. }
  154. .bg-white-box {
  155. background-color: #ffffff;
  156. margin: 30rpx;
  157. display: flex;
  158. flex-direction: row;
  159. justify-content: center;
  160. align-items: center;
  161. padding: 10rpx;
  162. border-radius: 20rpx;
  163. font-size: 32rpx;
  164. }
  165. .vertical-line {
  166. height: 20rpx;
  167. background-color: #cecece;
  168. width: 2rpx;
  169. margin-left: 30rpx;
  170. margin-right: 30rpx;
  171. }
  172. .line {
  173. width: 100%;
  174. height: 1rpx;
  175. background-color: #999999;
  176. }
  177. .text-title {
  178. font-size: 32rpx;
  179. font-weight: bold;
  180. }
  181. .text-item {
  182. font-size: 28rpx;
  183. padding: 24rpx;
  184. }
  185. .list-title {
  186. margin-bottom: 30rpx;
  187. }
  188. .list-question {
  189. font-size: 28rpx;
  190. }
  191. .hover {
  192. background-color: #f5f5f5;
  193. opacity: 0.6;
  194. }
  195. .image {
  196. width: 40rpx;
  197. height: 40rpx;
  198. margin-left: 20rpx;
  199. }
  200. .text-feedback {
  201. padding: 20rpx;
  202. /* color: #000000; */
  203. }
  204. .text-top {
  205. margin: 30rpx;
  206. font-size: 34rpx;
  207. }
  208. </style>