messageBoard.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. <style>
  2. body,textarea,button.btn{
  3. font-family: "MicrosoftYaHei Regual", "微软雅黑" !important;
  4. }
  5. .clearfix{
  6. clear: both;
  7. }
  8. .messageBoard {
  9. width: 680px;
  10. font-size: 14px;
  11. background: #fff;
  12. }
  13. .messageBoard .modal-header {
  14. position: relative;
  15. background: url("static/img/msg/msg_nav.png") no-repeat left center;
  16. min-height: 0;
  17. padding: 11.5px;
  18. text-align: center;
  19. }
  20. .messageBoard .modal-header i{
  21. position: absolute;
  22. top: 5px;
  23. left: 650px;
  24. font-size: 20px;
  25. color: #fff;
  26. cursor: pointer;
  27. }
  28. .messageBoard .modal-header>h3{
  29. font-size: 18px;
  30. color: #000;
  31. }
  32. .messageBoard .modal-header .modal-title {
  33. margin-left: 30px;
  34. text-align: center;
  35. color: #fff;
  36. }
  37. .messageBoard .modal-header .modal-title span{
  38. vertical-align: middle;
  39. }
  40. .messageBoard .modal-body {
  41. padding: 10px;
  42. min-height: 445px;
  43. margin: 0 auto;
  44. width: 680px;
  45. }
  46. .messageBoard .modal-body h3{
  47. width: 680px;
  48. text-align: center;
  49. font-size: 14px;
  50. color: #333;
  51. margin: 0 0 10px 0;
  52. }
  53. .messageBoard .modal-body h3 span{
  54. color: #5078cb;
  55. }
  56. .messageBoard .modal-body form{
  57. width: 680px;
  58. text-align: center;
  59. }
  60. .messageBoard .modal-body form .txtArea{
  61. position: relative;
  62. }
  63. .messageBoard .modal-body form textarea {
  64. padding: 10px 10px 20px 10px;
  65. width: 576px;
  66. height: 110px;
  67. color: #333;
  68. border: #c5c5c5 1px solid;
  69. font-size: 13px;
  70. letter-spacing: 1px;
  71. line-height: 18px;
  72. }
  73. .messageBoard .modal-body form span.count_tip{
  74. position: absolute;
  75. bottom: 4px;
  76. right: 55px;
  77. display: inline-block;
  78. width: 564px;
  79. height: 20px;
  80. color: #979797;
  81. line-height: 20px;
  82. font-size: 12px;
  83. background: #fff;
  84. text-align: right;
  85. padding-right: 5px;
  86. }
  87. .messageBoard .modal-body form p{
  88. padding-left: 40px;
  89. text-align: left;
  90. font-size: 14px;
  91. margin: 5px;
  92. color: #333;
  93. }
  94. .messageBoard .modal-body .ng-table-pager{
  95. padding: 0 85px;
  96. position: absolute;
  97. bottom: 0;
  98. left: 0;
  99. right: 0;
  100. margin: auto;
  101. }
  102. .messageBoard .modal-body p.radioCheck{
  103. padding-left: 65px;
  104. }
  105. .messageBoard .modal-body form input{
  106. padding: 0 10px;
  107. margin-left: 20px;
  108. height: 30px;
  109. width: 290px;
  110. font-size: 14px;
  111. color: #656565;
  112. border: #c5c5c5 1px solid;
  113. vertical-align: sub;
  114. }
  115. .messageBoard .modal-body form label{
  116. margin-right: 25px;
  117. }
  118. .messageBoard .modal-body form .img-warp{
  119. position: relative;
  120. overflow: hidden;
  121. width: 80%;
  122. margin: 0 auto;
  123. text-align: center;
  124. }
  125. .messageBoard .modal-body form div.img-item{
  126. position: relative;
  127. float: left;
  128. margin-right: 23px;
  129. width: 84px;
  130. height: 70px;
  131. cursor: pointer;
  132. border: #C9C9C9 1px solid;
  133. font-size: 14px;
  134. }
  135. .messageBoard .modal-body form div.img-item:last-child{
  136. margin-right: 0;
  137. }
  138. .messageBoard .modal-body form div.img-item input[type="file"]{
  139. position: absolute;
  140. top: 0;
  141. left: -20px;
  142. width: 84px;
  143. height: 70px;
  144. opacity: 0;
  145. }
  146. .messageBoard .modal-body form div.img-item img{
  147. display: inline-block;
  148. max-width: 80px;
  149. max-height: 60px;
  150. z-index: 10;
  151. }
  152. .messageBoard .modal-body form p.tip{
  153. text-align: left;
  154. color: #999;
  155. font-size: 12px;
  156. padding-left: 68px;
  157. }
  158. .messageBoard .modal-body form label{
  159. margin-bottom: 10px;
  160. font-size: 14px;
  161. font-weight: normal;
  162. }
  163. .messageBoard .modal-body form input[type='text']{
  164. width: 295px;
  165. }
  166. .messageBoard .modal-body form button{
  167. margin: 10px auto;
  168. width: 100px;
  169. height: 35px;
  170. background: #4777C6;
  171. color: #fff;
  172. border-radius: 0;
  173. text-align: center;
  174. }
  175. .messageBoard .modal-body form .msg-message>label{
  176. font-size: 14px;
  177. }
  178. .messageBoard .modal-body form .msg-message span{
  179. margin: 0 auto;
  180. font-size: 12px;
  181. }
  182. .messageBoard .modal-body form .input-style span{
  183. color: #666;
  184. }
  185. .messageBoard .modal-body form .msg-message span i{
  186. padding-right: 5px;
  187. color: #4777C6;
  188. }
  189. .messageBoard .modal-body form b{
  190. margin-right: 5px;
  191. font-weight: bold;
  192. color: #FF5A5C;
  193. }
  194. .messageBoard .modal-body form b.first{
  195. position: relative;
  196. top: -95px;
  197. left: 2px;
  198. }
  199. .messageBoard .modal-body .history{
  200. border-collapse: collapse;
  201. margin: 10px auto;
  202. padding: 0 20px;
  203. width: 500px;
  204. min-height: 105px;
  205. font-size: 16px;
  206. color: #333;
  207. border-bottom: 1px dashed #c5c5c5;
  208. }
  209. .messageBoard .modal-body .msg-table{
  210. position: relative;
  211. overflow: auto;
  212. height: 372px;
  213. /* width: 670px; */
  214. width: 100%;
  215. margin-top: 10px;
  216. }
  217. .messageBoard .modal-body .msg-table .form-group{
  218. margin-bottom: 15px;
  219. }
  220. .messageBoard .modal-body .msgDate {
  221. padding-right: 55px;
  222. text-align: right;
  223. font-size: 13px;
  224. }
  225. .messageBoard .modal-body .question{
  226. margin-bottom: 10px;
  227. }
  228. .messageBoard .modal-body .answer{
  229. margin-bottom: 10px;
  230. color: #fa842d;
  231. }
  232. .messageBoard .msg-slide1{
  233. position: absolute;
  234. right: 0;
  235. top: 50%;
  236. width: 33px;
  237. height: 100px;
  238. margin-top: -50px;
  239. background: url("static/img/msg/circle-left.png") no-repeat top right;
  240. color: #fff;
  241. cursor: pointer;
  242. }
  243. .messageBoard .msg-slide1 span{
  244. display: inline-block;
  245. width: 20px;
  246. height: 40px;
  247. padding-top: 16px;
  248. margin-left: 13px;
  249. text-align: center;
  250. vertical-align: middle;
  251. }
  252. .messageBoard .msg-slide1 i{
  253. position: absolute;
  254. top: 50%;
  255. left: 2px;
  256. line-height: 20px;
  257. margin-top: -10px;
  258. font-size: 26px;
  259. }
  260. .messageBoard .msg-slide2{
  261. width: 33px;
  262. height: 100px;
  263. position: absolute;
  264. top: 50%;
  265. left: 0;
  266. margin-top: -50px;
  267. background: url("static/img/msg/circle-right.png") no-repeat top right;
  268. color: #fff;
  269. cursor: pointer;
  270. }
  271. .messageBoard .msg-slide2 span{
  272. display: inline-block;
  273. width: 20px;
  274. height: 40px;
  275. padding-top: 16px;
  276. margin-right: 13px;
  277. text-align: center;
  278. vertical-align: middle;
  279. }
  280. .messageBoard .msg-slide2 i{
  281. position: absolute;
  282. top: 50%;
  283. right: 2px;
  284. line-height: 20px;
  285. margin-top: -10px;
  286. font-size: 26px;
  287. }
  288. /*遮罩层*/
  289. .hover-show{
  290. position: absolute;
  291. width: 100%;
  292. height: 100%;
  293. top: 101%;
  294. left: 0;
  295. background: rgba(0,0,0,.5);
  296. z-index: 10;
  297. display: block;
  298. }
  299. .messageBoard .img-warp .img-item:hover .hover-show{
  300. top: 0;
  301. }
  302. .hover-show .delete{
  303. position: absolute;
  304. top: 5px;
  305. right: 0px;
  306. padding: 0;
  307. width: 30px;
  308. height: 30px;
  309. float: right;
  310. text-align: center;
  311. }
  312. .hover-show .delete:hover{
  313. cursor: pointer;
  314. }
  315. .hover-show .delete i{
  316. color: #fff;
  317. font-size: 18px;
  318. }
  319. .hover-show .view{
  320. position: absolute;
  321. display: inline-block;
  322. top: 50%;
  323. left: 50%;
  324. margin-top: -8px;
  325. margin-left: -21px;
  326. font-size: 14px;
  327. color: #fff;
  328. text-align: center;
  329. }
  330. .hover-show a i{
  331. position: absolute;
  332. left: 5px;
  333. top: 22px;
  334. margin-right: 5px;
  335. font-size: 16px;
  336. }
  337. .msg-message{
  338. height: 30px;
  339. line-height: 30px;
  340. }
  341. .messageBoard .modal-body form p.radioLabel{
  342. margin-bottom: 10px;
  343. }
  344. .radioLabel {
  345. line-height: 20px;
  346. cursor: pointer;
  347. color: #666;
  348. }
  349. .radioLabel label{
  350. width: 16px;
  351. height: 16px;
  352. background: url(static/img/user/images/radio.png);
  353. background-position: 0 -1px;
  354. margin-right: 2px;
  355. vertical-align: middle;
  356. margin-bottom: 0 !important;
  357. margin-right: 0 !important;
  358. }
  359. .radioLabel input[type="radio"]:checked + label {
  360. background-position: -19px -1px;
  361. }
  362. .radioLabel input[type="radio"]:checked + label + span{
  363. color: #5078cb;
  364. }
  365. .radioLabel input[type="radio"]{
  366. display: none;
  367. }
  368. .msg-message{
  369. text-align: left;
  370. margin-bottom: 5px;
  371. }
  372. .msg-message .msg-content label{
  373. margin-left: 75px;
  374. margin-right: 0 !important;
  375. }
  376. .msg-message .modal-body div.txtArea{
  377. padding-left: 55px;
  378. }
  379. .preview{
  380. line-height: 70px;
  381. height: 70px;
  382. }
  383. .messageBoard .ng-table-pagination a {
  384. border: none;
  385. font-size: 12px;
  386. cursor: pointer;
  387. }
  388. .pagination li:first-child a, .pagination li:last-child a{
  389. font-size: 20px;
  390. }
  391. .messageBoard ul.pagination.ng-table-pagination > li > a > span {
  392. height: 17px;
  393. line-height: 17px;
  394. }
  395. .messageBoard div.ng-table-pager input.page-number {
  396. display: inline-block;
  397. margin-bottom: 10px;
  398. width: 37px;
  399. height: 30px;
  400. font-size: 12px;
  401. line-height: 1.42857143;
  402. color: #9B9792;
  403. text-align: center;
  404. background-color: #F6F5F4;
  405. background-image: none;
  406. border: 1px solid #ccc;
  407. border-top-left-radius: 4px;
  408. border-bottom-left-radius: 4px;
  409. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  410. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  411. }
  412. .messageBoard div.ng-table-pager a.page-a {
  413. color: #fff;
  414. cursor: pointer;
  415. background-color: #4574E8;
  416. border-color: #4574E8;
  417. font-size: 12px;
  418. border-top-right-radius: 4px;
  419. border-bottom-right-radius: 4px;
  420. text-decoration: none;
  421. }
  422. .messageBoard div.ng-table-pager div.page-go-block {
  423. float: right;
  424. font-size: 0;
  425. height: 31px;
  426. line-height: 31px;
  427. }
  428. .messageBoard .ng-table-pager .ng-table-pagination{
  429. float: left;
  430. text-align: center;
  431. max-width: 460px;
  432. }
  433. .messageBoard .ng-table-pager .ng-table-pagination a{
  434. color: #4574E8 !important;
  435. height: 31px;
  436. line-height: 13px;
  437. }
  438. .pagination li.active a span{
  439. background-color: #4574E8;
  440. color: white !important;
  441. }
  442. .form-group{
  443. margin-bottom: 6px;
  444. }
  445. .messageBoard .modal-body .history:nth-of-type(3){
  446. border-bottom: none;
  447. }
  448. .modal.in .modal-dialog{
  449. width: 680px;
  450. }
  451. .modal.in .modal-dialog .modal-content{
  452. width: 100%;
  453. }
  454. </style>
  455. <!--游客状态-->
  456. <div class="messageBoard">
  457. <div class="modal-header">
  458. <h3 class="modal-title f18">
  459. <span ng-show="!showHistory">留言板</span>
  460. <span ng-show="showHistory">留言记录</span>
  461. </h3>
  462. <a ng-click="cancel()"><i class="fa fa-remove"></i></a>
  463. </div>
  464. <div class="modal-body msg-body">
  465. <div ng-show="!showHistory">
  466. <h3>亲爱的&nbsp;<span ng-bind="user.userName || '游客'">&nbsp;</span>,您的意见对我们很重要!</h3>
  467. <form name="messageBoardForm">
  468. <div class="txtArea">
  469. <b class="first">*</b>
  470. <textarea placeholder="请将您在使用当前页面遇到的任何问题、建议或意见反馈给我们。注意:不要输入您的隐私信息,如:账户密码等。" ng-model="messageBoard.question" maxlength="500"></textarea>
  471. <span class="count_tip"><span ng-bind="messageBoard.question.length || 0"></span>/500</span>
  472. </div>
  473. <p><b>*</b>您的身份是:</p>
  474. <p class="radioCheck">
  475. <label for="buyer01" class="radioLabel">
  476. <input type="radio" name="role" value="buyer" ng-model="messageBoard.role" id="buyer01"/>
  477. <label for="buyer01" class="txtContact"></label>
  478. <span>我是买家</span>
  479. </label>
  480. <label for="buyer02" class="radioLabel">
  481. <input type="radio" name="role" value="seller" ng-model="messageBoard.role" id="buyer02" checked/>
  482. <label for="buyer02" class="txtContact"></label>
  483. <span>我是卖家</span>
  484. </label>
  485. </p>
  486. <p><b>*</b>您反馈的内容类型是:</p>
  487. <p class="radioCheck">
  488. <label for="contentType01" class="radioLabel">
  489. <input type="radio" name="type" value="展示效果" ng-model="messageBoard.type" id="contentType01"/>
  490. <label for="contentType01" class="txtContact"></label>
  491. <span>展示效果</span>
  492. </label>
  493. <label for="contentType02" class="radioLabel">
  494. <input type="radio" name="type" value="页面功能" ng-model="messageBoard.type" id="contentType02" checked/>
  495. <label for="contentType02" class="txtContact"></label>
  496. <span>页面功能</span>
  497. </label>
  498. <label for="contentType03" class="radioLabel">
  499. <input type="radio" name="type" value="异常报错" ng-model="messageBoard.type" id="contentType03"/>
  500. <label for="contentType03" class="txtContact"></label>
  501. <span>异常报错</span>
  502. </label>
  503. <label for="contentType04" class="radioLabel">
  504. <input type="radio" name="type" value="其他方面" ng-model="messageBoard.type" id="contentType04"/>
  505. <label for="contentType04" class="txtContact"></label>
  506. <span>其他方面</span>
  507. </label>
  508. </p>
  509. <p>&nbsp;&nbsp;&nbsp;添加图片:</p>
  510. <div class="img-warp">
  511. <div ng-repeat="index in [0, 1, 2, 3, 4]" class="img-item">
  512. <input type="file" ng-if="!imgs[index].img" image-upload data-src="static/img/msg/msg_uploadPic.png" on-success="onUpload($data, index)" non-preview="true" />
  513. <div ng-if="imgs[index].img" style="line-height: 66px;">
  514. <img class="previewImage" ng-src="{{imgs[index].img}}">
  515. </div>
  516. <div class="hover-show" ng-if="imgs[index].img">
  517. <span class="delete" title="删除" ng-click="deleteImg(index)"><i class="fa fa-trash" ng-click="deleteImg(index)"></i></span>
  518. <span class="view" ng-click="showImg(imgs[index].img)"><i class="fa fa-search" style="margin-right: 5px;"></i>查看</span>
  519. </div>
  520. </div>
  521. </div>
  522. <p class="tip clearfix">提示:最多可上传五张图片,每张大小不超过500KB,仅支持JPG、PNG、GIF格式.</p>
  523. <p ng-if="!user.userUU"><b>*</b>您当前尚未登录,请留下您的联系方式,我们会不定期发布一些有奖体验活动</p>
  524. <div class="msg-message" ng-if="!user.userUU">
  525. <div class="msg-content">
  526. <label>手机:</label>
  527. <input type="text" name="userTel" ng-model="messageBoard.userTel" ng-pattern="/^[\d]{8,11}$/" autocomplete="off"/>
  528. <span ng-show="messageBoardForm.userTel.$invalid"><i class="glyphicon glyphicon-info-sign x-icon-left"></i>请输入正确的号码</span>
  529. </div>
  530. </div>
  531. <div class="msg-message" ng-if="!user.userUU">
  532. <div class="msg-content">
  533. <label>邮箱:</label>
  534. <input type="text" name="email" ng-model="messageBoard.email" ng-pattern="/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/" autocomplete="off"/>
  535. <span ng-show="messageBoardForm.email.$invalid"><i class="glyphicon glyphicon-info-sign x-icon-left"></i>请输入正确的邮箱</span>
  536. </div>
  537. </div>
  538. <button ng-click="confirm()" class="btn">提交</button>
  539. </form>
  540. </div>
  541. <div ng-show="user.userUU && showHistory" class="msg-table">
  542. <div ng-repeat="message in messageBoardCurrent" class="history">
  543. <div class="form-group row">
  544. <div ng-bind="message.type" class="col-xs-8"></div>
  545. <div class="msgDate col-xs-4" ng-bind="message.createDate | date : 'yyyy-MM-dd'"></div>
  546. </div>
  547. <div class="question">
  548. <span>问题:</span><span ng-bind="message.question" style="word-break: break-all"></span>
  549. </div>
  550. <div class="answer" ng-show="message.answer" style="margin-bottom: 10px;">
  551. <span>回复:</span>
  552. <span ng-bind="message.answer" style="word-break: break-all"></span>
  553. </div>
  554. </div>
  555. <div ng-if="messageBoardCurrent.length == 0" class="text-center">
  556. <div>无留言记录</div>
  557. </div>
  558. </div>
  559. <div class="ng-cloak ng-table-pager text-center" ng-show="user.userUU && showHistory" ng-if="pages.length">
  560. <ul class="pagination ng-table-pagination">
  561. <li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
  562. <a ng-switch-when="prev" ng-click="setPage(page.type, -1)">&laquo;</a>
  563. <a ng-switch-when="first" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  564. <a ng-switch-when="page" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  565. <a ng-switch-when="more" ng-click="setPage(page.type, -1)">&#8230;</a>
  566. <a ng-switch-when="last" ng-click="setPage(page.type, page.number)"><span ng-bind="page.number"></span></a>
  567. <a ng-switch-when="next" ng-click="setPage(page.type, -1)">&raquo;</a>
  568. </li>
  569. </ul>
  570. <div class="page-go-block">
  571. <input class="page-number" type="text" ng-model="params.currentPage" ng-keydown="listenEnter()"/>
  572. <a class="page-a" ng-click="setPage('page', params.currentPage)">GO</a>
  573. </div>
  574. </div>
  575. <div ng-if="user.userUU && !showHistory" class="msg-slide1" ng-click="openHistory()">
  576. <i class="fa fa-angle-left"></i><span>留言记录</span>
  577. </div>
  578. <div class="msg-slide2" ng-show="user.userUU && showHistory" ng-click="hideHistory()">
  579. <i class="fa fa-angle-right"></i><span>关闭记录</span>
  580. </div>
  581. </div>
  582. </div>