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.

341 lines
7.6 KiB

  1. <template>
  2. <view class="main">
  3. <view class="top" :style="{height:iSMT+'px'}"></view>
  4. <!-- 头部导航 -->
  5. <view class="header">
  6. <view class="back-icon">
  7. <image @click="goBack()" src="/static/customer-service-platform/cs-platform-back.png"
  8. class="header-icon-image"></image>
  9. </view>
  10. <view class="title">智能客服中台</view>
  11. <view class="notification-icon">
  12. <image src="/static/customer-service-platform/message.png" class="header-icon-image"></image>
  13. </view>
  14. </view>
  15. <!-- 内容区域 - 使用滚动视图 -->
  16. <scroll-view scroll-y class="content-container">
  17. <view class="list-wrapper" v-if="historyList.length > 0">
  18. <view class="content-header">
  19. <text class="content-title">历史反馈内容</text>
  20. </view>
  21. <view class="card-line"></view>
  22. <view v-for="(item, idx) in historyList" :key="item.id" class="history-item card">
  23. <view class="item-head">
  24. <view class="dot-outer">
  25. <view class="dot-inner"></view>
  26. </view>
  27. <text class="feedback-time">{{ item.time }}</text>
  28. <text class="feedback-status">
  29. {{ item.statusText }}
  30. <image class="smile-icon" src="/static/customer-service-platform/smile-icon.png"></image>
  31. </text>
  32. </view>
  33. <view class="content-box">
  34. <text class="content-text">{{ item.content }}</text>
  35. <text class="count">{{ item.content.length }}/200</text>
  36. </view>
  37. <view v-if="item.images && item.images.length" class="thumb-row">
  38. <view v-for="(img, i) in item.images" :key="i" class="thumb-slot"
  39. @click="previewImage(item.images, i)">
  40. <image :src="img" mode="scaleToFill" class="thumb-img" />
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- 如果没有历史显示空态 -->
  46. <view v-if="historyList.length === 0" class="empty">
  47. <image mode="aspectFit" class="empty-img" src="/static/customer-service-platform/empty-content.png">
  48. </image>
  49. <text class="empty-tip">暂无内容~</text>
  50. </view>
  51. </scroll-view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. iSMT: 0,
  59. // historyList: [],
  60. historyList: [{
  61. id: 1,
  62. time: '2025/10/16 11:46',
  63. status: '成功', // 成功/失败/处理中等
  64. statusText: '反馈成功',
  65. content: '你是不是总是看着股票回调时心里发慌,不知道什么时候进场才是最安全的?追高买错被套牢,亏得眼泪直流aaa,回调时又不敢进,错过了反弹的机会?今天,我将带你掌握一套精准确认底部的三步法——通过超卖信号、关键K线和强势启动点,帮助你轻松识别市场底部,稳健进场,避开高位追涨,赚取大波利润!我们今天会结合特斯拉(TSLA)和阿里巴巴(BABA)的经aaa典案例,帮助你更好地理解这些技巧,赶快拿起纸笔,开始学',
  66. images: [
  67. '/static/customer-service-platform/a2.jpg',
  68. '/static/customer-service-platform/a1.png',
  69. '/static/customer-service-platform/a2.jpg',
  70. '/static/customer-service-platform/a1.png',
  71. '/static/customer-service-platform/a2.jpg',
  72. ]
  73. },
  74. {
  75. id: 2,
  76. time: '2025/10/16 11:46',
  77. status: '成功',
  78. statusText: '反馈成功',
  79. content: '请描述您想反馈的内容\n第二条示例文本,长度可以不一样,测试多行显示和字数统计功能。这里补充一些文字以便测试外观和换行效果。',
  80. images: []
  81. }
  82. ]
  83. };
  84. },
  85. mounted() {
  86. this.iSMT = uni.getSystemInfoSync().statusBarHeight;
  87. },
  88. methods: {
  89. goBack() {
  90. if (typeof uni !== 'undefined' && uni.navigateBack) {
  91. uni.navigateBack();
  92. } else {
  93. window.history.back();
  94. }
  95. },
  96. previewImage(list, index) {
  97. if (typeof uni !== 'undefined' && uni.previewImage) {
  98. uni.previewImage({
  99. current: list[index],
  100. urls: list
  101. });
  102. } else {
  103. // H5 fallback
  104. window.open(list[index], '_blank');
  105. }
  106. }
  107. }
  108. };
  109. </script>
  110. <style scoped>
  111. .main {
  112. display: flex;
  113. flex-direction: column;
  114. height: 100vh;
  115. background-color: #ffffff;
  116. }
  117. .header {
  118. display: flex;
  119. justify-content: space-between;
  120. align-items: center;
  121. padding: 20rpx 30rpx;
  122. background-color: #ffffff;
  123. }
  124. .title {
  125. color: #000000;
  126. text-align: center;
  127. font-size: 32rpx;
  128. font-style: normal;
  129. font-weight: 400;
  130. }
  131. .back-icon,
  132. .notification-icon {
  133. width: 40rpx;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. }
  138. .header-icon-image {
  139. width: 40rpx;
  140. height: 40rpx;
  141. object-fit: contain;
  142. }
  143. .content-container {
  144. padding: 20rpx;
  145. padding-top: 0;
  146. width: 100%;
  147. box-sizing: border-box;
  148. overflow-x: hidden;
  149. }
  150. /* 列表包装器,居中卡片 */
  151. .list-wrapper {
  152. width: 90%;
  153. margin: 0 auto;
  154. padding: 20rpx 40rpx;
  155. flex-direction: column;
  156. align-items: center;
  157. gap: 20rpx;
  158. box-sizing: border-box;
  159. border-radius: 12rpx;
  160. border: 4rpx solid #FCC8D4;
  161. background: linear-gradient(180deg, #FCC8D3 0%, #FEF0F3 30%, #FFF 100%);
  162. }
  163. .content-header {
  164. width: 100%;
  165. display: flex;
  166. align-items: center;
  167. justify-content: space-between;
  168. }
  169. .content-title {
  170. color: #000000;
  171. font-size: 32rpx;
  172. font-style: normal;
  173. font-weight: 400;
  174. line-height: normal;
  175. }
  176. .card-line {
  177. margin-top: 20rpx;
  178. width: 100%;
  179. height: 2rpx;
  180. border-radius: 2rpx;
  181. background: #FFF;
  182. }
  183. /* 每一条历史卡片 */
  184. .history-item {
  185. border-radius: 10rpx;
  186. padding: 20rpx;
  187. margin-bottom: 20rpx;
  188. box-sizing: border-box;
  189. box-shadow: 0 4rpx 12rpx rgba(255, 77, 128, 0.06);
  190. }
  191. .item-head {
  192. display: flex;
  193. align-items: center;
  194. gap: 12rpx;
  195. margin-bottom: 12rpx;
  196. }
  197. .dot-outer {
  198. width: 24rpx;
  199. height: 24rpx;
  200. border-radius: 50%;
  201. background: rgba(255, 214, 230, 0.5);
  202. /*粉色外圈*/
  203. display: flex;
  204. align-items: center;
  205. justify-content: center;
  206. box-shadow: 0 0 0 4rpx #ffffff;
  207. /* 最外层白色 */
  208. }
  209. .dot-inner {
  210. width: 14rpx;
  211. height: 14rpx;
  212. border-radius: 50%;
  213. background: #ff4150;
  214. /* 中心红色 */
  215. }
  216. .feedback-time {
  217. color: #000000;
  218. flex: 1;
  219. font-size: 22rpx;
  220. font-style: normal;
  221. font-weight: 400;
  222. line-height: normal;
  223. padding-left: 26rpx;
  224. }
  225. .feedback-status {
  226. color: #ff4150;
  227. font-size: 12rpx;
  228. font-style: normal;
  229. font-weight: 400;
  230. line-height: normal;
  231. display: flex;
  232. align-items: center;
  233. }
  234. .smile-icon {
  235. width: 32rpx;
  236. height: 32rpx;
  237. }
  238. /* 内容框 */
  239. .content-box {
  240. border: 2rpx solid #f0e6ea;
  241. background: #fff;
  242. border-radius: 8rpx;
  243. padding: 18rpx;
  244. position: relative;
  245. box-sizing: border-box;
  246. min-height: 160rpx;
  247. }
  248. .content-text {
  249. display: block;
  250. white-space: pre-wrap;
  251. word-break: break-word;
  252. color: #8a8a8a;
  253. font-size: 24rpx;
  254. font-style: normal;
  255. font-weight: 700;
  256. line-height: normal;
  257. padding-bottom: 26rpx;
  258. }
  259. .count {
  260. position: absolute;
  261. right: 14rpx;
  262. bottom: 10rpx;
  263. color: #000000;
  264. font-size: 24rpx;
  265. font-style: normal;
  266. font-weight: 400;
  267. line-height: normal;
  268. }
  269. .thumb-row {
  270. display: flex;
  271. flex-wrap: wrap;
  272. justify-content: flex-start;
  273. align-items: flex-start;
  274. align-content: flex-start;
  275. width: 100%;
  276. box-sizing: border-box;
  277. gap: 20rpx;
  278. margin-top: 14rpx;
  279. background: #F9FAFE;
  280. padding: 20rpx;
  281. }
  282. .thumb-slot {
  283. width: calc((100% - 2 * 25rpx) / 3);
  284. aspect-ratio: 1 / 1;
  285. border-radius: 7rpx;
  286. border: 1.2rpx solid #F0F1F1;
  287. display: flex;
  288. align-items: center;
  289. justify-content: center;
  290. overflow: hidden;
  291. }
  292. .thumb-img {
  293. width: 100%;
  294. height: 100%;
  295. }
  296. .empty {
  297. padding: 50rpx 0;
  298. text-align: center;
  299. color: #afafaf;
  300. font-size: 32rpx;
  301. font-style: normal;
  302. font-weight: 500;
  303. line-height: 48rpx;
  304. }
  305. .empty-img {
  306. width: 100%;
  307. }
  308. </style>