爱简收旧衣按件回收前端代码仓库
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.

253 lines
6.2 KiB

3 weeks ago
2 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
  1. <template>
  2. <view class="faq-page">
  3. <!-- 顶部导航栏 -->
  4. <view class="nav-bar">
  5. <view class="back-icon" @tap="navigateBack">
  6. <uni-icons type="left" size="20"></uni-icons>
  7. </view>
  8. <view class="title">常见问题</view>
  9. </view>
  10. <!-- 主要内容区域 -->
  11. <view class="content">
  12. <!-- 推广相关 -->
  13. <view class="section">
  14. <view class="section-title">推广相关</view>
  15. <view class="qa-list">
  16. <view class="qa-item">
  17. <text class="question">
  18. <text class="q-icon">Q</text>
  19. 如何申请成为推广官
  20. </text>
  21. <text class="answer">您好如需帮助请优先选择以下方式联系我们</text>
  22. </view>
  23. <view class="qa-item">
  24. <text class="question">
  25. <text class="q-icon">Q</text>
  26. 推广官的佣金如何计算
  27. </text>
  28. <text class="answer">您好如需帮助请优先选择以下方式联系我们</text>
  29. </view>
  30. </view>
  31. </view>
  32. <!-- 订单回收相关 -->
  33. <view class="section">
  34. <view class="section-title">订单回收相关</view>
  35. <view class="qa-list">
  36. <view class="qa-item">
  37. <text class="question">
  38. <text class="q-icon">Q</text>
  39. 为什么我的订单显示"回收失败"
  40. </text>
  41. <text class="answer">您好如需帮助请优先选择以下方式联系我们</text>
  42. </view>
  43. <view class="qa-item">
  44. <text class="question">
  45. <text class="q-icon">Q</text>
  46. 如果我的订单出现问题怎么办
  47. </text>
  48. <text class="answer">您好如需帮助请优先选择以下方式联系我们</text>
  49. </view>
  50. </view>
  51. </view>
  52. <!-- 环保相关 -->
  53. <view class="section">
  54. <view class="section-title">环保相关</view>
  55. <view class="qa-list">
  56. <view class="qa-item">
  57. <text class="question">
  58. <text class="q-icon">Q</text>
  59. 回收的旧衣如何处理
  60. </text>
  61. <text class="answer">您好如需帮助请优先选择以下方式联系我们</text>
  62. </view>
  63. <view class="qa-item">
  64. <text class="question">
  65. <text class="q-icon">Q</text>
  66. 哪些衣物可以回收
  67. </text>
  68. <text class="answer">您好如需帮助请优先选择以下方式联系我们</text>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 底部提示 -->
  73. <view class="bottom-tip">
  74. 如有任何问题或建议请随时与我们联系我们将竭诚为您服务
  75. </view>
  76. </view>
  77. <!-- 底部按钮 -->
  78. <view class="bottom-btn">
  79. <button class="online-service-btn" @tap="openEmailPopup">联系在线客服</button>
  80. </view>
  81. </view>
  82. <email-popup
  83. :show="showEmailPopup"
  84. @close="handleCloseEmailPopup"
  85. />
  86. </template>
  87. <script>
  88. import emailPopup from '@/wxcomponents/email-popup/email-popup.vue'
  89. import pullRefreshMixin from '@/pages/mixins/pullRefreshMixin.js'
  90. export default {
  91. components: {
  92. emailPopup
  93. },
  94. mixins: [pullRefreshMixin],
  95. data() {
  96. return {
  97. showEmailPopup:false
  98. }
  99. },
  100. methods: {
  101. async onRefresh() {
  102. // 模拟刷新数据
  103. await new Promise(resolve => setTimeout(resolve, 1000))
  104. uni.stopPullRefresh()
  105. },
  106. // 显示弹窗
  107. openEmailPopup() {
  108. this.showEmailPopup = true
  109. },
  110. // 关闭弹窗
  111. handleCloseEmailPopup() {
  112. this.showEmailPopup = false
  113. },
  114. navigateBack() {
  115. uni.navigateBack()
  116. },
  117. handleOnlineService() {
  118. // 跳转到联系客服页面
  119. uni.navigateTo({
  120. url: '/pages/customer-service/index'
  121. })
  122. }
  123. }
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. .faq-page {
  128. min-height: 100vh;
  129. background: linear-gradient(to bottom,#fff3da,5%,#ffffff);
  130. padding-bottom: calc(env(safe-area-inset-bottom) + 120rpx);
  131. }
  132. .nav-bar {
  133. display: flex;
  134. align-items: center;
  135. height: 88rpx;
  136. padding-top: var(--status-bar-height);
  137. .title {
  138. font-family: PingFang SC;
  139. font-weight: 500;
  140. font-size: 16px;
  141. line-height: 140%;
  142. letter-spacing: 0%;
  143. text-align: center;
  144. vertical-align: middle;
  145. color: #333;
  146. margin-left: 30%;
  147. }
  148. .back-icon {
  149. width: 88rpx;
  150. height: 88rpx;
  151. display: flex;
  152. align-items: center;
  153. justify-content: center;
  154. }
  155. }
  156. .content {
  157. padding: 40rpx 30rpx;
  158. background: #fff;
  159. width: 80%;
  160. margin: 0 auto;
  161. .section {
  162. margin-bottom: 60rpx;
  163. .section-title {
  164. font-family: PingFang SC;
  165. font-weight: 400;
  166. font-size: 14px;
  167. line-height: 22px;
  168. letter-spacing: 0%;
  169. color: #666;
  170. margin-bottom: 30rpx;
  171. }
  172. .qa-list {
  173. .qa-item {
  174. margin-bottom: 40rpx;
  175. .question {
  176. display: flex;
  177. align-items: center;
  178. font-family: PingFang SC;
  179. font-weight: 600;
  180. font-size: 18px;
  181. line-height: 140%;
  182. letter-spacing: 0%;
  183. color: #333;
  184. margin-bottom: 20rpx;
  185. .q-icon {
  186. color: #FFA500;
  187. font-weight: bold;
  188. margin-right: 16rpx;
  189. }
  190. }
  191. .answer {
  192. font-family: PingFang SC;
  193. font-weight: 400;
  194. font-size: 13px;
  195. line-height: 140%;
  196. letter-spacing: 0%;
  197. color: #999;
  198. // line-height: 1.6;
  199. padding-left: 40rpx;
  200. }
  201. }
  202. }
  203. }
  204. .bottom-tip {
  205. font-size: 26rpx;
  206. color: #999;
  207. text-align: center;
  208. line-height: 1.6;
  209. padding: 30rpx;
  210. border-top: 1rpx solid rgba(0, 0, 0, 0.05);
  211. }
  212. }
  213. .bottom-btn {
  214. position: fixed;
  215. left: 0;
  216. right: 0;
  217. bottom: 0;
  218. padding: 20rpx 30rpx;
  219. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  220. background: rgba(255, 255, 255, 0.9);
  221. backdrop-filter: blur(10px);
  222. .online-service-btn {
  223. width: 100%;
  224. height: 88rpx;
  225. line-height: 88rpx;
  226. background: #FFA500;
  227. color: #fff;
  228. font-size: 32rpx;
  229. border-radius: 44rpx;
  230. border: none;
  231. }
  232. }
  233. </style>