feedbackIndex.vue 6.7 KB

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