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.

334 lines
7.4 KiB

4 weeks ago
4 weeks ago
  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. },
  68. {
  69. id: 2,
  70. time: '2025/10/16 11:46',
  71. status: '成功',
  72. statusText: '反馈成功',
  73. content: '请描述您想反馈的内容\n第二条示例文本,长度可以不一样,测试多行显示和字数统计功能。这里补充一些文字以便测试外观和换行效果。',
  74. images: []
  75. }
  76. ]
  77. };
  78. },
  79. mounted() {
  80. this.iSMT = uni.getSystemInfoSync().statusBarHeight;
  81. },
  82. methods: {
  83. goBack() {
  84. if (typeof uni !== 'undefined' && uni.navigateBack) {
  85. uni.navigateBack();
  86. } else {
  87. window.history.back();
  88. }
  89. },
  90. loadHistoryList(){
  91. },
  92. previewImage(list, index) {
  93. if (typeof uni !== 'undefined' && uni.previewImage) {
  94. uni.previewImage({
  95. current: list[index],
  96. urls: list
  97. });
  98. } else {
  99. // H5 fallback
  100. window.open(list[index], '_blank');
  101. }
  102. }
  103. }
  104. };
  105. </script>
  106. <style scoped>
  107. .main {
  108. display: flex;
  109. flex-direction: column;
  110. height: 100vh;
  111. background-color: #ffffff;
  112. }
  113. .header {
  114. display: flex;
  115. justify-content: space-between;
  116. align-items: center;
  117. padding: 20rpx 30rpx;
  118. background-color: #ffffff;
  119. }
  120. .title {
  121. color: #000000;
  122. text-align: center;
  123. font-size: 32rpx;
  124. font-style: normal;
  125. font-weight: 400;
  126. }
  127. .back-icon,
  128. .notification-icon {
  129. width: 40rpx;
  130. display: flex;
  131. align-items: center;
  132. justify-content: center;
  133. }
  134. .header-icon-image {
  135. width: 40rpx;
  136. height: 40rpx;
  137. object-fit: contain;
  138. }
  139. .content-container {
  140. padding: 20rpx;
  141. padding-top: 0;
  142. width: 100%;
  143. box-sizing: border-box;
  144. overflow-x: hidden;
  145. }
  146. /* 列表包装器,居中卡片 */
  147. .list-wrapper {
  148. width: 90%;
  149. margin: 0 auto;
  150. padding: 20rpx 40rpx;
  151. flex-direction: column;
  152. align-items: center;
  153. gap: 20rpx;
  154. box-sizing: border-box;
  155. border-radius: 12rpx;
  156. border: 4rpx solid #FCC8D4;
  157. background: linear-gradient(180deg, #FCC8D3 0%, #FEF0F3 30%, #FFF 100%);
  158. }
  159. .content-header {
  160. width: 100%;
  161. display: flex;
  162. align-items: center;
  163. justify-content: space-between;
  164. }
  165. .content-title {
  166. color: #000000;
  167. font-size: 32rpx;
  168. font-style: normal;
  169. font-weight: 400;
  170. line-height: normal;
  171. }
  172. .card-line {
  173. margin-top: 20rpx;
  174. width: 100%;
  175. height: 2rpx;
  176. border-radius: 2rpx;
  177. background: #FFF;
  178. }
  179. /* 每一条历史卡片 */
  180. .history-item {
  181. border-radius: 10rpx;
  182. padding: 20rpx;
  183. margin-bottom: 20rpx;
  184. box-sizing: border-box;
  185. box-shadow: 0 4rpx 12rpx rgba(255, 77, 128, 0.06);
  186. }
  187. .item-head {
  188. display: flex;
  189. align-items: center;
  190. gap: 12rpx;
  191. margin-bottom: 12rpx;
  192. }
  193. .dot-outer {
  194. width: 24rpx;
  195. height: 24rpx;
  196. border-radius: 50%;
  197. background: rgba(255, 214, 230, 0.5);
  198. /*粉色外圈*/
  199. display: flex;
  200. align-items: center;
  201. justify-content: center;
  202. box-shadow: 0 0 0 4rpx #ffffff;
  203. /* 最外层白色 */
  204. }
  205. .dot-inner {
  206. width: 14rpx;
  207. height: 14rpx;
  208. border-radius: 50%;
  209. background: #ff4150;
  210. /* 中心红色 */
  211. }
  212. .feedback-time {
  213. color: #000000;
  214. flex: 1;
  215. font-size: 22rpx;
  216. font-style: normal;
  217. font-weight: 400;
  218. line-height: normal;
  219. padding-left: 26rpx;
  220. }
  221. .feedback-status {
  222. color: #ff4150;
  223. font-size: 12rpx;
  224. font-style: normal;
  225. font-weight: 400;
  226. line-height: normal;
  227. display: flex;
  228. align-items: center;
  229. }
  230. .smile-icon {
  231. width: 32rpx;
  232. height: 32rpx;
  233. }
  234. /* 内容框 */
  235. .content-box {
  236. border: 2rpx solid #f0e6ea;
  237. background: #fff;
  238. border-radius: 8rpx;
  239. padding: 18rpx;
  240. position: relative;
  241. box-sizing: border-box;
  242. min-height: 160rpx;
  243. }
  244. .content-text {
  245. display: block;
  246. white-space: pre-wrap;
  247. word-break: break-word;
  248. color: #8a8a8a;
  249. font-size: 24rpx;
  250. font-style: normal;
  251. font-weight: 700;
  252. line-height: normal;
  253. padding-bottom: 26rpx;
  254. }
  255. .count {
  256. position: absolute;
  257. right: 14rpx;
  258. bottom: 10rpx;
  259. color: #000000;
  260. font-size: 24rpx;
  261. font-style: normal;
  262. font-weight: 400;
  263. line-height: normal;
  264. }
  265. .thumb-row {
  266. display: flex;
  267. flex-wrap: wrap;
  268. justify-content: flex-start;
  269. align-items: flex-start;
  270. align-content: flex-start;
  271. width: 100%;
  272. box-sizing: border-box;
  273. gap: 20rpx;
  274. margin-top: 14rpx;
  275. background: #F9FAFE;
  276. padding: 20rpx;
  277. }
  278. .thumb-slot {
  279. width: calc((100% - 2 * 25rpx) / 3);
  280. aspect-ratio: 1 / 1;
  281. border-radius: 7rpx;
  282. border: 1.2rpx solid #F0F1F1;
  283. display: flex;
  284. align-items: center;
  285. justify-content: center;
  286. overflow: hidden;
  287. }
  288. .thumb-img {
  289. width: 100%;
  290. height: 100%;
  291. }
  292. .empty {
  293. padding: 50rpx 0;
  294. text-align: center;
  295. color: #afafaf;
  296. font-size: 32rpx;
  297. font-style: normal;
  298. font-weight: 500;
  299. line-height: 48rpx;
  300. }
  301. .empty-img {
  302. width: 100%;
  303. }
  304. </style>