miniprogramScaleDetail.html 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>量表详情</title>
  8. <style>
  9. * {
  10. margin: 0;
  11. padding: 0;
  12. }
  13. html,
  14. body {
  15. width: 800px;
  16. }
  17. .begin_test_content {
  18. padding-bottom: 60px;
  19. }
  20. .title_bg {
  21. width: 100%;
  22. height: 545px;
  23. background: url("https://test.jue-ming.com:8849/api/show?filePath=./images/desc_page_bg.png") no-repeat center;
  24. background-size: cover;
  25. position: relative;
  26. overflow: hidden;
  27. }
  28. .logo_content {
  29. width: 219px;
  30. height: 64px;
  31. margin: 38px 0 0 20px;
  32. }
  33. .logo_content img {
  34. width: 100%;
  35. height: 100%;
  36. }
  37. .logo_img {
  38. width: 100%;
  39. height: 100%;
  40. }
  41. .begin_test_content_title {
  42. font-size: 50px;
  43. font-family: sucaijishikufangti-Regular, sucaijishikufangti;
  44. font-weight: 400;
  45. color: #ffffff;
  46. text-align: center;
  47. text-shadow: 0px 3px 6px rgba(65, 65, 65, 0.49);
  48. }
  49. .begin_test_content_h {
  50. width: 80%;
  51. margin: 0 auto;
  52. height: 100px;
  53. }
  54. .test_style {
  55. width: 201px;
  56. height: 201px;
  57. margin: 10px auto 18px;
  58. border-radius: 60px;
  59. overflow: hidden;
  60. }
  61. .test_style_img {
  62. width: 100%;
  63. height: 100%;
  64. vertical-align: middle;
  65. }
  66. .begin_test_content {
  67. width: 100%;
  68. }
  69. .btn_center {
  70. width: 700px;
  71. margin: 0 auto;
  72. position: fixed;
  73. left: 50%;
  74. bottom: 20px;
  75. transform: translateX(-350px);
  76. }
  77. .w_h_15 {
  78. width: 15px;
  79. height: 15px;
  80. display: block;
  81. margin-right: 10px;
  82. }
  83. .btn_area {
  84. width: 84%;
  85. display: flex;
  86. justify-content: center;
  87. align-items: center;
  88. margin: 57px auto 0;
  89. }
  90. .u-reset-button {
  91. display: flex;
  92. justify-content: center;
  93. align-items: center;
  94. width: 265px;
  95. line-height: 76px;
  96. background: linear-gradient(180deg, #ffffff 0%, #87dfff 100%);
  97. border-radius: 50px 50px 50px 50px;
  98. opacity: 1;
  99. font-size: 30px;
  100. font-family: PingFang SC-Regular, PingFang SC;
  101. font-weight: 400;
  102. color: #1b90b2;
  103. }
  104. .u-reset-button text {
  105. margin-left: 20px;
  106. }
  107. .rowAround {
  108. border-radius: 10px 10px;
  109. }
  110. .test_detail {
  111. width: 100%;
  112. background: url("https://test.jue-ming.com:8849/api/show?filePath=./images/report_bg.png") no-repeat top;
  113. background-size: 100% auto;
  114. border-radius: 50px 50px 0px 0px;
  115. opacity: 1;
  116. overflow: hidden;
  117. margin-top: -120px;
  118. position: relative;
  119. z-index: 2;
  120. }
  121. .tongji {
  122. display: flex;
  123. justify-content: space-around;
  124. margin-top: 37px;
  125. }
  126. .tongji .disRowcCenter {
  127. display: block;
  128. width: 219px;
  129. height: 67px;
  130. background: linear-gradient(180deg, #fbffef 0%, #eefeff 100%);
  131. padding: 14px 0;
  132. border-radius: 36px 36px 36px 36px;
  133. opacity: 1;
  134. text-align: center;
  135. }
  136. .quota_name {
  137. font-size: 22px;
  138. font-family: PingFang SC-Regular, PingFang SC;
  139. font-weight: 400;
  140. color: #242424;
  141. }
  142. .quota_data {
  143. font-size: 26px;
  144. font-family: PingFang SC-Heavy, PingFang SC;
  145. font-weight: 800;
  146. color: #1b90b2;
  147. }
  148. .introduce {
  149. width: 709px;
  150. margin: 30px auto 0;
  151. }
  152. .introduce_title {
  153. font-size: 32px;
  154. color: #ffffff;
  155. line-height: 64px;
  156. display: flex;
  157. align-items: center;
  158. margin-left: 10px;
  159. }
  160. .introduce_title img {
  161. width: 30px;
  162. height: 30px;
  163. }
  164. .introduce_title span {
  165. font-size: 30px;
  166. font-family: PingFang SC-Heavy, PingFang SC;
  167. font-weight: 800;
  168. color: #1b90b2;
  169. margin-left: 10px;
  170. }
  171. .introduce_content {
  172. box-sizing: border-box;
  173. min-height: 160px;
  174. background: #ffffff;
  175. border-radius: 36px 36px 36px 36px;
  176. opacity: 1;
  177. padding: 30px 16px 50px;
  178. font-size: 26px;
  179. font-family: PingFang SC-Regular, PingFang SC;
  180. font-weight: 400;
  181. color: #575757;
  182. line-height: 48px;
  183. letter-spacing: 3px;
  184. position: relative;
  185. }
  186. .literature {
  187. width: 709px;
  188. margin: 30px auto 0;
  189. }
  190. .literature_title {
  191. font-size: 30px;
  192. font-family: PingFang SC-Heavy, PingFang SC;
  193. font-weight: 800;
  194. color: #1b90b2;
  195. margin-left: 6px;
  196. line-height: 64px;
  197. }
  198. .literature_content {
  199. box-sizing: border-box;
  200. min-height: 160px;
  201. background: #ffffff;
  202. border-radius: 36px 36px 36px 36px;
  203. opacity: 1;
  204. padding: 30px 16px 50px;
  205. font-size: 26px;
  206. font-family: PingFang SC-Regular, PingFang SC;
  207. font-weight: 400;
  208. color: #575757;
  209. line-height: 48px;
  210. letter-spacing: 3px;
  211. position: relative;
  212. }
  213. .literature_item {
  214. display: flex;
  215. flex-direction: row;
  216. justify-content: flex-start;
  217. }
  218. .more_test {
  219. width: 709px;
  220. margin: 0 auto;
  221. overflow: hidden;
  222. }
  223. .more_txt {
  224. margin-top: 100px;
  225. float: left;
  226. }
  227. .more_txt p {
  228. font-size: 26px;
  229. font-family: PingFang SC-Regular, PingFang SC;
  230. font-weight: 400;
  231. color: rgba(65, 65, 65, 0.49);
  232. }
  233. .more_txt h2 {
  234. font-size: 30px;
  235. font-family: PingFang SC-Heavy, PingFang SC;
  236. font-weight: 800;
  237. color: #04919B;
  238. }
  239. .qr_code {
  240. width: 221px;
  241. height: auto;
  242. float: right;
  243. }
  244. </style>
  245. <script src="./js/vue@2"></script>
  246. </head>
  247. <body>
  248. <div id="app" class="begin_test_content minHeight100" style="position: relative;">
  249. <div class="title_bg">
  250. <div class="logo_content">
  251. <img class="logo_img" src="https://test.jue-ming.com:8849/api/show?filePath=./images/camera_logo.png" />
  252. </div>
  253. <div class="test_style">
  254. <img :src="`https://test.jue-ming.com:8849/api/show?filePath=${beginTestContent.imageUrl}`"
  255. class="test_style_img" />
  256. </div>
  257. <div class="begin_test_content_title">
  258. {{ beginTestContent.name }}
  259. </div>
  260. </div>
  261. <div class="test_detail">
  262. <div class="tongji">
  263. <div class="disRowcCenter">
  264. <div class="quota_name">测评次数</div>
  265. <div class="quota_data"> {{ beginTestContent.testNum }}次 </div>
  266. </div>
  267. <div class="disRowcCenter">
  268. <!-- <image :src="bao2" mode="" class="w_h_15"></image> -->
  269. <div class="quota_name">预计用时</div>
  270. <div class="quota_data">
  271. {{ beginTestContent.estimatedTime }}分钟
  272. </div>
  273. </div>
  274. <div class="disRowcCenter">
  275. <div class="quota_name">题数</div>
  276. <div class="quota_data"> {{ beginTestContent.titleNum }}题 </div>
  277. </div>
  278. </div>
  279. <div class="introduce">
  280. <div class="introduce_title">
  281. <img
  282. src="https://test.jue-ming.com:8849/api/show?filePath=./images/icon_edit_20230608.png" /><span>量表介绍</span>
  283. </div>
  284. <div class="introduce_content">
  285. {{ beginTestContent.description }}
  286. </div>
  287. </div>
  288. <div class="literature" v-if="beginTestContent.reference != null">
  289. <div class="literature_title"> 参考文献 </div>
  290. <div class="literature_content">
  291. <div class="literature_item" v-for="(item,index) in replaceTxt(beginTestContent.reference)"
  292. :key="index">
  293. <span style="margin-right:14px">[{{index+1}}]</span>
  294. <span>{{ item }}</span>
  295. </div>
  296. </div>
  297. </div>
  298. <div class="more_test">
  299. <div class="more_txt">
  300. <p>更多测评请在微信搜索</p>
  301. <h2>心灵照相机</h2>
  302. </div>
  303. <img class="qr_code" src="https://test.jue-ming.com:8849/api/show?filePath=./images/qrCode.jpg" alt="">
  304. </div>
  305. </div>
  306. </div>
  307. <script>
  308. var app = new Vue({
  309. el: '#app',
  310. data() {
  311. return {
  312. beginTestContent: scaleDetail
  313. }
  314. },
  315. created() {
  316. },
  317. computed: {
  318. },
  319. mounted() { },
  320. methods: {
  321. dealLongTxt(str, num) {
  322. if (str.length > num) {
  323. return `${str.slice(0, num)}...`;
  324. } else {
  325. return str;
  326. }
  327. },
  328. replaceTxt(str) {
  329. return str.split("//");
  330. }
  331. }
  332. })
  333. </script>
  334. </body>
  335. </html>