root 9 месяцев назад
Родитель
Сommit
ee93d00048
100 измененных файлов с 1916 добавлено и 72 удалено
  1. 1 1
      common/request.js
  2. 556 0
      newScale/Charm/index.vue
  3. 204 0
      newScale/Charm/paySuccess.vue
  4. 248 0
      newScale/Charm/paymentPage.vue
  5. 499 0
      newScale/Charm/testPage.vue
  6. 320 0
      newScale/Charm/testResult.vue
  7. 86 69
      pages.json
  8. 2 2
      paymentPage/queryByPhone/index.vue
  9. BIN
      static/images/EQtest/answer_A.png
  10. BIN
      static/images/EQtest/answer_A_active.png
  11. BIN
      static/images/EQtest/answer_B.png
  12. BIN
      static/images/EQtest/answer_B_active.png
  13. BIN
      static/images/EQtest/answer_C.png
  14. BIN
      static/images/EQtest/answer_C_active.png
  15. BIN
      static/images/EQtest/answer_D.png
  16. BIN
      static/images/EQtest/answer_D_active.png
  17. BIN
      static/images/EQtest/answer_E.png
  18. BIN
      static/images/EQtest/answer_E_active.png
  19. BIN
      static/images/EQtest/banner1.png
  20. BIN
      static/images/EQtest/banner2.png
  21. BIN
      static/images/EQtest/banner3.png
  22. BIN
      static/images/EQtest/banner4.png
  23. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.eot
  24. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.otf
  25. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.ttf
  26. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.woff
  27. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.woff2
  28. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.eot
  29. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.otf
  30. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.ttf
  31. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.woff
  32. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.woff2
  33. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.eot
  34. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.otf
  35. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.ttf
  36. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.woff
  37. BIN
      static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.woff2
  38. BIN
      static/images/EQtest/index_bg.png
  39. BIN
      static/images/EQtest/next_mark.png
  40. BIN
      static/images/EQtest/paymentPage/complete_btn.png
  41. BIN
      static/images/EQtest/paymentPage/dialog_bg.png
  42. BIN
      static/images/EQtest/paymentPage/password_input_bg.png
  43. BIN
      static/images/EQtest/paymentPage/pay_button.png
  44. BIN
      static/images/EQtest/paymentPage/pay_scale_desc.png
  45. BIN
      static/images/EQtest/paymentPage/pay_scale_info.png
  46. BIN
      static/images/EQtest/paymentPage/pay_success_bg.png
  47. BIN
      static/images/EQtest/paymentPage/payment_bg.png
  48. BIN
      static/images/EQtest/paymentPage/phone_input_bg.png
  49. BIN
      static/images/EQtest/paymentPage/register_bg.png
  50. BIN
      static/images/EQtest/paymentPage/register_save_bg.png
  51. BIN
      static/images/EQtest/paymentPage/sms_bg.png
  52. BIN
      static/images/EQtest/paymentPage/uncomplete_btn.png
  53. BIN
      static/images/EQtest/prev_btn.png
  54. BIN
      static/images/EQtest/prev_mark.png
  55. BIN
      static/images/EQtest/process_bar.png
  56. BIN
      static/images/EQtest/process_star.png
  57. BIN
      static/images/EQtest/question_bg.png
  58. BIN
      static/images/EQtest/question_num_bg.png
  59. BIN
      static/images/EQtest/result_bg_r.png
  60. BIN
      static/images/EQtest/result_bg_w.png
  61. BIN
      static/images/EQtest/role/role_img1.png
  62. BIN
      static/images/EQtest/role/role_img10.png
  63. BIN
      static/images/EQtest/role/role_img2.png
  64. BIN
      static/images/EQtest/role/role_img3.png
  65. BIN
      static/images/EQtest/role/role_img4.png
  66. BIN
      static/images/EQtest/role/role_img5.png
  67. BIN
      static/images/EQtest/role/role_img6.png
  68. BIN
      static/images/EQtest/role/role_img7.png
  69. BIN
      static/images/EQtest/role/role_img8.png
  70. BIN
      static/images/EQtest/role/role_img9.png
  71. BIN
      static/images/EQtest/role/role_medal1.png
  72. BIN
      static/images/EQtest/role/role_medal10.png
  73. BIN
      static/images/EQtest/role/role_medal2.png
  74. BIN
      static/images/EQtest/role/role_medal3.png
  75. BIN
      static/images/EQtest/role/role_medal4.png
  76. BIN
      static/images/EQtest/role/role_medal5.png
  77. BIN
      static/images/EQtest/role/role_medal6.png
  78. BIN
      static/images/EQtest/role/role_medal7.png
  79. BIN
      static/images/EQtest/role/role_medal8.png
  80. BIN
      static/images/EQtest/role/role_medal9.png
  81. BIN
      static/images/EQtest/role/role_name1.png
  82. BIN
      static/images/EQtest/role/role_name10.png
  83. BIN
      static/images/EQtest/role/role_name11.png
  84. BIN
      static/images/EQtest/role/role_name12.png
  85. BIN
      static/images/EQtest/role/role_name13.png
  86. BIN
      static/images/EQtest/role/role_name14.png
  87. BIN
      static/images/EQtest/role/role_name2.png
  88. BIN
      static/images/EQtest/role/role_name3.png
  89. BIN
      static/images/EQtest/role/role_name4.png
  90. BIN
      static/images/EQtest/role/role_name5.png
  91. BIN
      static/images/EQtest/role/role_name6.png
  92. BIN
      static/images/EQtest/role/role_name7.png
  93. BIN
      static/images/EQtest/role/role_name8.png
  94. BIN
      static/images/EQtest/role/role_name9.png
  95. BIN
      static/images/EQtest/score_percentage_bg.png
  96. BIN
      static/images/EQtest/start_btn.png
  97. BIN
      static/images/EQtest/submit_btn.png
  98. BIN
      static/images/EQtest/testPage_bg.png
  99. BIN
      static/images/EQtest/test_result_bg.png
  100. 0 0
      utils/payment.js

+ 1 - 1
common/request.js

@@ -72,7 +72,7 @@ class Request {
 		if (!_options.header['Content-Type']) {
 			_options.header['Content-Type'] = Request.getContentType(_options)
 			
-			_options.header["Authorization"] = `Bearer ${sessionStorage.getItem("token")}`
+			_options.header["Authorization"] = `Bearer ${uni.getStorageSync("token")}`
 		}
 		let _config = _options
 		if (that.interceptor.request && typeof that.interceptor.request === 'function') {

+ 556 - 0
newScale/Charm/index.vue

@@ -0,0 +1,556 @@
+<template>
+	<view class="bg">
+		<image class="banner banner1" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/banner1.png"
+			mode="widthFix"></image>
+		<image class="banner banner2" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/banner2.png"
+			mode="widthFix"></image>
+		<image class="banner banner3" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/banner3.png"
+			mode="widthFix"></image>
+		<view class="contral_box">
+			<view class="agreement" :class="{ 'shake-animation': isShake }">
+				<checkbox-group @change="checkboxChange">
+					<checkbox value="cb" :checked="isChecked" color="#999999" style="transform:scale(0.7)" />
+				</checkbox-group>
+				同意<text @click="toggle">《测评服务条款》</text>立即开始测试
+			</view>
+
+			<view class="go_test" @click="goTest">
+				<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/start_btn.png"
+					mode="widthFix"></image>
+			</view>
+		</view>
+		<view class="popup-main">
+			<!-- 普通弹窗 -->
+			<uni-popup ref="popup" class='' type="bottom" background-color="#fff">
+
+				<view class="popup-content">
+					<view class='popup-cuo'>
+						<uni-icons @click="close()" type="clear" size="30"></uni-icons>
+					</view>
+					<view class='popup-title-cla'>测评平台服务协议</view>
+					<view class='popup-detail'>
+						<view>【更新时间:2023年10月25日】</view>
+
+						<view>【生效时间:2023年10月25日】</view>
+
+
+						<view>尊敬的用户:</view>
+						<view>欢迎您选择并使用红朵心理测评产品。</view>
+						<view>
+							红朵提醒您,请仔细阅读以下全部内容,请您重点阅读的条款(尤其是知识产权授权、个人信息使用授权条款)。如果您不同意本协议的任一或全部条款内容,请不要以确认的形式(包括但不限于:点击确认、进入使用程序等)进行下一步操作或使用本协议项下服务。
+						</view>
+
+						<view>一、本协议的确认及相关定义</view>
+
+						<view>二、本协议的生效与终止</view>
+
+						<view>三、账户的注册、使用和注销</view>
+						<view>四、用户信息发布规则</view>
+						<view>五、【知识产权授权】*</view>
+						<view>六、【个人信息使用授权】*</view>
+						<view>七、个人信息与隐私保护</view>
+						<view>八、保密义务</view>
+						<view>九、反贿赂</view>
+						<view>十、免责条款</view>
+						<view>十一、违约责任</view>
+						<view>十二、有效通知及平台联系信息</view>
+						<view>十三、其他</view>
+						<view>一、本协议的确认及相关定义</view>
+						<view>(一)用户注册协议的确认</view>
+						<view>
+							当您确认接受用户注册协议(以下简称“本协议”或“用户协议”)或同意通过平台使用红朵心理产品,即表示您作为乙方(以下简称“乙方”“用户”)与红朵(平台运营主体:广州市人心网络科技有限公司,以下简称“甲方”、“红朵”)已达成协议关系,并自愿接受并遵守红朵提供服务涉及的,包括本协议在内的所有服务规范及相关子协议、管理规范、咨询服务规则等。您可以根据自主需要,在平台上使用包括但不限于测评、咨询、倾诉、课程、问答、读书会等产品,您在使用上述产品前,应当了解相关产品的使用规则,在详尽阅读了解并同意后使用。
+							红朵有权就本协议及相关子协议、管理规范、产品使用规则等文件(以下合称“服务协议”)进行更新,包括但不限于不定时发布或修订红朵服务规则、使用规则、公告、提示、通知等内容,更新将会通过系统提示、站内信息推送和/或您在平台留下的联系方式通知和提醒您注意,更新内容将在前述通知和提醒指定日期开始生效。如您继续使用服务,即意味着您同意接受我方更新后的服务协议,您的权利以及义务的表述、服务内容和费用及其结算标准等,均以最新的服务协议为准。如您不同意变更后的服务协议,请您停止使用本产品和服务。
+						</view>
+						<view>(二)相关定义</view>
+						<view>红朵:指甲方运营的心理测评网站(含手机端、PC端)、APP程序、其他网络渠道等。</view>
+						<view>红朵平台服务:包括但不限于红朵在平台上提供的测评、咨询、倾诉、课程、问答、读书会、知识科普等产品服务。</view>
+
+						<view>根据本协议,红朵为您提供平台产品服务,您将通过红朵心理测评平台进行产品服务的使用,协议具体内容供双方遵守执行:</view>
+						<view>(三)平台服务</view>
+						<view>1.甲方为乙方在平台提供一个心理服务媒介,乙方通过该服务媒介有权使用红朵心理测评平台提供的心理产品服务。</view>
+						<view>2.用户协议内容与其他单项产品规则、服务规则、网站规则或服务协议存在冲突的,以其他特别规则约定为准。</view>
+						<view>3.用户在使用相关产品前,应当充分阅读并理解产品规则的内容(如有),同意按照页面规则享有、使用产品服务。</view>
+						<view>4.红朵有权根据运营需要更新、优化、下架、暂停、终止平台功能、产品、服务等。红朵上线新的模块、功能、产品或服务的,均适用本用户协议的内容。</view>
+						<view>5.红朵有权因定期、不定期的平台维护或运营需要,暂缓、终止提供平台服务,用户将会提前得到平台通知。因此造成的传输或连接迟延、不准确、错误、疏漏或无法使用等,平台不承担相关责任。
+						</view>
+						<view>二、本协议的生效与终止</view>
+						<view>(一)生效</view>
+						<view>1.本协议在用户点击确认本用户协议,并登录使用平台时开始生效。</view>
+						<view>(二)、终止的情形</view>
+						<view>1.【用户发起的终止】用户有权通过以下任一方式终止本协议:</view>
+						<view>(1) 服务协议更新后,用户停止使用平台及其产品服务的;</view>
+						<view>(2)服务协议更新后,用户明示不接受更新后服务协议的;</view>
+						<view>(3)用户主动注销帐户的。</view>
+						<view>2.【红朵发起的终止】出现以下情况时,红朵有权无须通知用户即终止本协议:</view>
+						<view>(1) 乙方违反用户协议规定的,甲方有权不通知乙方即时终止本协议;</view>
+						<view>(2) 乙方盗用他人帐户、发布违法/侵权信息、骗取他人财物、扰乱网站秩序、采取不正当手段牟利或有其他违法/违约行为的,红朵有权对用户的帐户予以查封、注销;</view>
+						<view>(3) 除上述情形外,若用户3次(或以上)违反红朵服务协议相关产品服务规则的,红朵有权对用户的帐户予以查封、注销;</view>
+						<view>(4)用户的帐户被红朵依据用户协议注销的;</view>
+						<view>(5) 其它违反用户协议、服务协议的行为。</view>
+						<view>3.协议终止后的处理</view>
+						<view>(1)【用户信息披露】本协议终止后,除法律、法规有明确规定外,红朵不向用户或任何第三方提供帐户中的任何信息;同时也没有义务保留乙方的任何信息,乙方应当在协议终止前保存。
+						</view>
+						<view>(2)【平台权利】本协议终止后,红朵仍享有下列权利:</view>
+						<view>
+							①继续保存用户使用平台及产品服务时,对服务协议等各类文件的勾选、确认记录,对产品服务的使用痕迹、路径等(该信息不得涉及用户使用信息缓存、用户个人信息或用户隐私信息等,不得将该信息提供给任何第三方);
+						</view>
+						<view>② 对于用户的违约行为、造成的侵权损害等,平台保留追究违约责任的权利。</view>
+						<view>三、账户的注册、使用和注销</view>
+						<view>1.您确认:在注册、使用红朵平台及其产品服务时,您应当具备完全民事行为能力。</view>
+						<view>2.您是未满18周岁的未成年人的,应当取得监护人同意,由监护人进行用户注册,并在监护人同意和监护下使用红朵平台产品服务。</view>
+						<view>3.用户不具备用户资格的,由此产生一切责任、后果由使用人及其监护人承担,红朵有权立即注销不具备用户资格的帐户。</view>
+						<view>4.乙方注册、使用的帐户所有权归属甲方,乙方享有帐户的排他使用权,非经乙方许可,任何第三方不得使用乙方注册的帐户,任何第三方使用乙方帐户进行操作的,视为乙方本人的操作。
+						</view>
+						<view>5.用户按照平台注册流程完成注册程序后,可以获得平台帐户的使用权并成为平台用户。用户可以按平台显示的功能使用帐户,设置或修改帐户密码等,用户对自己的帐户和密码安全负责。
+						</view>
+						<view>6.帐户不得以任何方式转让、赠与或继承,发生任何不当使用帐户的行为或可能危害帐户使用安全的,用户应当立即通知红朵,要求红朵暂停帐户服务;红朵亦有权主动介入,暂停提供帐户服务。
+						</view>
+						<view>
+							7.一位用户限使用一个帐户。凡存在不当注册或不当使用多个帐户的,红朵有权注销多余帐户(保留最早注册帐户,数据保留以最早注册帐户为准)并视情况拒绝提供用户服务,因此对红朵造成损失的,用户应当承担赔偿责任。
+						</view>
+
+						<view>
+							8.实名认证:根据中华人民共和国法律、法规的规定,为了保护网络信息安全及更好地向用户提供用户服务,红朵有权要求用户及时完成实名认证;用户在使用红朵产品服务时,按使用规则要求需要进行实名认证的,应当在完成实名认证后使用相关产品服务。
+						</view>
+						<view>9.账户注销:</view>
+						<view>(1)用户有权主动注销账户,账户注销后,红朵不得继续保留用户个人信息,用户个人信息应当在十个工作日内删除;</view>
+						<view>
+							(2)用户使用帐户过程中,可以要求红朵删除其个人信息;用户在帐户使用过程中要求红朵删除其个人信息的,可能会导致部分产品服务无法提供,因此造成的用户损失由用户自行承担;删除个人信息后,长期未登录使用的帐户,红朵有权暂停帐户服务。
+						</view>
+						<view>10.合法性</view>
+						<view>(1)用户应当遵守中华人民共和国法律、法规的规定,不得将红朵产品服务用于任何违法、违规、违背道德的行为,否则红朵有权拒绝提供产品服务、注销帐户等。严禁包括但不限于以下行为:
+						</view>
+						<view>① 违反中华人民共和国宪法、法律、法规、政策规定的;</view>
+						<view>② 危害国家安全、泄露国家秘密、颠覆国家政权、破坏国家统一的;</view>
+						<view>③ 损害国家、民族荣誉和利益的,损害社会公共利益的;</view>
+						<view>④ 煽动民族仇恨、民族歧视、破坏民族团结的;</view>
+						<view>⑤ 宣扬邪教、封建迷信的;</view>
+						<view>⑥ 散布谣言、扰乱社会秩序、破坏社会稳定的;</view>
+						<view>⑦ 散布淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆违法、犯罪的;</view>
+						<view>⑧ 侮辱、诽谤他人,侵害他人合法权益的;</view>
+						<view>⑨ 违背社会公序良俗,影响恶劣的;</view>
+						<view>⑩ 以非法目的使用帐户、产品服务、网络服务系统的;</view>
+						<view>⑪ 故意制作、传播计算机病毒等破坏性程序的;</view>
+						<view>⑫ 其他危害计算机信息网络安全的行为;</view>
+						<view>⑬ 有法律、行政法规、政府政策禁止的其他行为。</view>
+						<view>
+							(2)用户设置的帐户昵称不得违反国家法律、法规及红朵相关规则,不得使用国家政要人名、不得使用侮辱诽谤他人的名称、不得使用侵犯第三方知识产权或企业字号的名称,否则红朵有权终止用户的帐户昵称使用;因此造成任何权属争议、赔偿、损失等均由用户承担。
+						</view>
+						<view>11.真实性</view>
+						<view>(1)用户完成实名注册和使用产品服务时,应当提供真实、准确、最新及完整的本人资料,对于资料更新的应该及时进行帐户信息更新,以确保资料的时效性。</view>
+						<view>(2)用户提供的资料错误、不实、超过时效、不完整或具误导性的,红朵有权暂停或终止提供帐户服务。</view>
+						<view>12.更新维护</view>
+						<view>(1)用户应当及时更新帐户信息,以保证提供的信息最新、真实、完整、有效。</view>
+						<view>
+							(2)红朵按用户提供的最新联系信息无法与用户取得联系、用户未按红朵的要求及时提供信息、用户提供的信息明显不实或经行政司法机关核实为无效信息的,用户应当承担因此造成的全部损失与不利后果。
+						</view>
+						<view>(3)红朵有权暂停或终止提供帐户服务,直至用户更新最新的用户信息,红朵不因此承担任何责任。</view>
+						<view>四、用户信息发布规则</view>
+						<view>
+							1.用户发布的信息、评论、文章等内容的著作权归属用户所有或已获得著作权人授权可用于红朵平台发布,不得违反法律法规的规定、不得违背社会公序良俗、不得侵犯任何第三方或红朵的合法权益、不得虚构任何不实信息或传播谣言、不得发布广告内容或联系方式、引用内容不超过发布内容的20%等,否则,红朵有权下架、删除、屏蔽上述信息、封禁或注销帐户等,造成的任何法律责任由用户自行承担。
+						</view>
+						<view>2.您应当确保所发布的内容不包含以下类目:</view>
+						<view>(1)违反国家法律、法规规定的;</view>
+						<view>(2)干涉政治宣传、封建迷信、淫秽、色情、赌博、暴力、恐怖或者教唆犯罪的;</view>
+						<view>(3)欺诈、虚假、不准确或存在误导性的;</view>
+						<view>(4)侵犯他人知识产权、涉及第三方商业秘密或其他专有权利的;</view>
+						<view>(5)侮辱、诽谤、恐吓、涉及他人隐私等侵害他人合法权益的;</view>
+						<view>(6)可能破坏、篡改、删除、影响网站系统正常运行、窃取平台数据、窃取用户数据及个人资料的;</view>
+						<view>(7)发布含病毒、木马、爬虫等恶意软件、程序代码的;</view>
+						<view>(8)发布未经证实的信息、谣言的;</view>
+						<view>(9)发布非红朵的广告宣传内容、个人或他人联系信息的;</view>
+						<view>(10)其他损害社会公共利益、违背公序良俗或依据平台其他规定不得在网站发布的。</view>
+						<view>3.权利主张</view>
+						<view>若您认为本平台的内容(含其他用户发布的内容)或通过本平台获得的内容可能侵犯您的或任何第三方的合法权益,请您以书面形式或通过平台“投诉/举报”渠道向红朵反馈。
+
+							反馈时,请提供您的身份证明(身份证信息、联系信息)、内容权属证明、具体链接(URL)及详细侵权情况说明等,红朵将尽快核实相应内容并与您取得联系;确定争议双方信息后,将联系双方协调处理。
+
+							如果您陈述的权利通知失实,由您承担由此造成的全部法律责任。</view>
+						<view>五、【知识产权授权】*</view>
+						<view>
+							1.红朵拥有平台内的所有产品、技术、程序、资料、信息内容(包括但不限于文字、图片、图像、照片、音频、视频、图表、色彩、版面设计、电子文档)的所有权利(包括但不限于著作权、商标权、专利权、商业秘密及其他所有相关权利)。
+						</view>
+						<view>
+							2.用户在平台发表的各类作品,同意将作品的著作权【独家】【永久】【无偿】授权给红朵商业使用:包括但不限于复制权、发行权、出租权、展览权、表演权、放映权、广播权、信息网络传播权、摄制权、改编权、翻译权、汇编权、维权权利以及应当由著作权人享有的其他著作财产权利。
+						</view>
+						<view>3.用户在平台发表的各类作品,被第三人侵权转载、使用的,红朵有权单独起诉向第三人主张维权,红朵提起诉讼所支付的成本由红朵承担,获得的全部赔偿由红朵享有。</view>
+						<view>
+							4.红朵有权使用上述各类授权作品,包括但不限于在平台发表、在其他自媒体渠道发表、改编为其他类型作品、汇编为其他作品或与红朵其他作品共同进行汇编等,红朵改编为其他类型作品的,改编作品的所有权归属红朵所有。
+						</view>
+						<view>5.用户有权在自有渠道、个人的自媒体帐户发表上述各类授权作品,但不得授权任何第三方使用(包括不得授权供职单位使用),用户使用上述各类授权作品同时不得阻碍红朵使用。</view>
+						<view>六、【个人信息使用授权】*</view>
+						<view>
+							1.红朵平台记录的运营数据,包括但不限于用户信息、用户列表、用户关系、用户的使用数据、交易数据、订单数据等(如有),其全部的权利均归属于红朵。红朵不得超过提供产品服务的范围收集上述信息,亦不得超过提供产品服务的范围使用上述信息。
+						</view>
+						<view>
+							2.未经红朵书面同意,任何人不得利用用户列表、用户关系等向用户发送宣传信息,不得擅自保存、备份、泄露、使用或授权他人使用前述运营数据。用户协议终止或解除后,红朵不向用户提供或备份上述数据。
+						</view>
+						<view>3.用户授权红朵在必要的范围内,在提供产品服务过程中使用甲方的个人信息。</view>
+						<view>4.用户注销帐户的,红朵应当及时删除用户的个人信息;用户有权在帐户使用过程中要求删除其个人信息。</view>
+						<view>七、个人信息与隐私保护</view>
+						<view>1.您应当妥善保管好帐户号码及密码等帐户信息,若发现帐户被他人使用的,应当立即通知红朵处理。</view>
+						<view>2.因不可抗力(包括黑客行为、计算机病毒、系统不稳定等)、遭受他人诈骗或您主动泄露、保管疏忽导致账号、密码被他人使用的,红朵不承担任何责任。</view>
+						<view>3.红朵重视对您信息的保护,关于您的个人信息将依照《红朵隐私政策》受到规范和保护,请用户点击并完整阅读 《红朵隐私政策》,以帮助您更好地保护个人信息。</view>
+						<view>八、保密义务</view>
+						<view>
+							1.双方对本协议内容和因签署、履行本协议而获得或接触到的对方商业信息、商业秘密及其他未披露的资料和信息(包括但不限于产品服务内容信息、个人隐私、财务信息、技术信息等)应当严格保密;未经对方书面同意,任何一方不得将上述信息的全部或部分通过任何方式使用或以任何方式泄露给第三方,为履行本协议使用除外:
+						</view>
+						<view>(1)接受方内部有必要了解相关信息的雇员或其关联公司及其雇员;</view>
+						<view>(2)对接受方负有保密义务的事务性合作伙伴,包括律师事务所(律师)、会计师事务所(会计师)、审计事务所(审计师)、评估事务所(评估师)等;</view>
+						<view>(3)依据有关法律法规要求、行政指令等而向政府部门、司法部门、证券交易所或其他监管机构披露。</view>
+						<view>2.未经对方书面同意,不得擅自使用、复制对方的商标、标志、商业信息、技术及其他资料。</view>
+						<view>3.任何一方不得以任何方式直接或间接对另一方进行诋毁性评价、负面/消极评价,或有任何对另一方声誉造成不利影响的行为。</view>
+						<view>4.保密期限至相关信息置于公开领域为止。</view>
+						<view>九、反贿赂</view>
+						<view>1.红朵坚持并认真贯彻国家关于反商业贿赂的各项规定,建立健全反不正当交易行为和反商业贿赂的长效机制。</view>
+						<view>
+							2.红朵坚持严厉打击商业贿赂行为,对违反相关规定的员工,严肃查处、惩罚和教育,情节严重的,移送司法机关处理;对违反相关规定的用户或合作伙伴,一经查实,红朵有权终止对用户提供服务或合作关系,情节严重的,移送司法机关处理。
+						</view>
+						<view>
+							3.红朵愿意在公开透明、公正平等、诚实信用的合作机制下,与所有用户及合作伙伴“共赢”美好明天。真诚希望用户及合作伙伴能理解并支持本红朵的反商业贿赂政策,并欢迎对红朵及员工进行监督,发现相关情况的时候及时向红朵反馈。
+						</view>
+						<view>十、免责条款</view>
+						<view>1.避风港原则</view>
+						<view>(1)用户发布并授权红朵使用的信息、评论、文章、图片等内容应当遵守“用户信息发布规则”,红朵对于用户发布的上述内容不提供担保义务。</view>
+						<view>(2)由于第三方认为用户发表的内容违法、侵权的,相关责任及损害由用户出面主动解决并承担相应的责任,红朵有权及时删除上述内容。</view>
+						<view>2.外部链接</view>
+						<view>
+							红朵原则上不允许在平台中传播任何外部链接,因此不对平台外部链接的可用性、安全性负责,不认可外部链接的任何内容、宣传、产品、服务等,任何人发现外部链接应当及时向红朵举报,由红朵下架处理。
+							任何使用外部链接引起的纠纷与红朵无关,红朵不对任何外部链接承担任何责任。</view>
+						<view>3.心理咨询</view>
+						<view>
+							(1)用户理解、知悉并同意心理咨询的效果取决于咨询师与用户双方配合作用的结果。无论用户采用什么样的咨询方式,红朵、咨询师并不保证用户接受心理咨询后一定能达到某种效果;未达到用户心理预期的心理咨询效果,不属于服务质量问题。心理咨询服务结束后一般不予退款,且红朵、咨询师对服务结果、退费等不承担任何法律责任。
+						</view>
+						<view>
+							(2)在心理咨询服务过程中,由于用户自身原因引起的突发疾病或意外死亡,或由于自身原因引起的自伤、自残、自杀等,红朵及其咨询师尽可能采取措施控制事态恶化,必要时与用户的紧急联系人、相关部门、医疗机构取得联系。由此造成的损害后果由用户本人(或监护人)承担,平台、心理咨询师不承担损害责任。
+						</view>
+
+
+						<view>(3)平台提供的心理咨询服务不属于疾病诊断、治疗或医疗服务,不属于国务院《医疗机构管理条例》的医疗机构,用户同意:不得以接受的心理咨询服务为非医疗服务为由主张任何权利</view>
+
+						<view>
+							(4)有自杀倾向或自杀未遂的用户,应当向危机干预机构或符合法律规定的医疗机构寻求治疗帮助。心理咨询师不提供危机干预或治疗服务,用户因此最终选择自杀、自伤、自残的,责任及后果由用户自行承担。
+						</view>
+
+						<view>(5)用户对心理咨询服务引起的争议、费用纠纷、服务质量纠纷等,争议的解决方案以咨询师和用户协商一致为准,红朵对争议提供平等协商干预,红朵不承担任何责任。</view>
+
+						<view>(6)禁止私下交易:</view>
+
+						<view>① 咨询师与用户不得私下交易(包括但不限于私下转账交易或通过第三方平台交易);</view>
+
+						<view>② 私下交易属于严重根本违约,红朵有权直接注销用户的帐户,因此给甲方造成的任何损失,用户承担全部赔偿责任;</view>
+
+						<view>③ 咨询师与用户因私下交易发生纠纷的,由其双方自行解决,与甲方无关;因此给甲方造成的任何损失,用户承担全部赔偿责任;</view>
+
+						<view>(7)心理咨询服务自完成起超过一年的,红朵不提供争议的平等协商干预,由用户与心理咨询师另行协商解决。</view>
+
+						<view>(8)用户使用平台心理咨询服务的,应当遵守心理咨询相关协议、规则、知情同意书等。</view>
+
+						<view>4.红朵测评</view>
+
+						<view>
+							(1)红朵测评根据心理学一般规则研发,用户完成测试后的结果由系统自动生成,测评结果和个人分析报告仅供用户单方参考,红朵对测评结果不负任何保证义务,不承担任何形式的法律责任;不得用于心理疾病的治疗、心理危机的干预或解除等。
+						</view>
+						<view>(2)当您选择使用红朵的心理测评服务时,请注意以下内容:
+						</view>
+
+						<view>①测评题目可免费查看作答,测评结果报告需付费阅读【价格以产品首页展示为准】;</view>
+
+						<view>②因每个人不同,测评结果亦因人而异,测评结果仅供参考,不作为医学心理诊断;</view>
+
+						<view>③测评过程没有严格的时间限制,但一般建议在20分钟内完成;</view>
+
+						<view>④测评答案无对错之分,且您的作答将得到严格保密,请您放心如实作答。</view>
+
+						<view>(3)非测评系统造成的问题,不予退费。</view>
+
+						<view>
+							5.红朵不保证由不可抗力因素或第三方引起的网络服务及时性、安全性、准确性问题。请用户务必及时保存自己的相关资料,否则因网络服务中断、维修、检修、维护等导致的任何损失,平台不承担相关责任。
+						</view>
+
+						<view>十一、违约责任</view>
+
+						<view>
+							1.协议双方应当严格遵守用户协议及相关服务协议、规则的约定,不得违反协议约定或损害对方合法权益、利用平台损害第三方合法权益。
+						</view>
+						<view>
+							2.协议一方在知悉对方违约时,有权通知违约方采取有效合理的补救措施纠正违约行为,并赔偿守约方损失。违约方在收到通知后七日内仍未纠正违约行为的,守约方有权单方书面解除本协议,注销帐户。
+						</view>
+						<view>3.守约方解除本协议或违约方采取补救措施并不妨碍守约方依照合同约定追究违约方的违约责任。
+						</view>
+						<view>4.违约责任:</view>
+						<view>
+							平台由于违约、侵权等事由造成来访者损害的,损害赔偿额以来访者实际支付款项总额为限承担责任。
+						</view>
+						<view>来访者由于违约、侵权等事由造成咨询师损害的,损害赔偿额以咨询师实际损失为限承担责任。
+						</view>
+						<view>5.损失:即包括但不限于因此对第三方的赔偿金、收入损失、投入成本损失、维权差旅费用、诉讼费、公证费、律师费等。
+						</view>
+
+
+						<view>十二、有效通知及平台联系信息</view>
+						<view>
+							1.用户应当准确填写并及时更新提供给红朵的电子邮箱地址、联系电话、联系地址、邮政编码等联系信息,保证联系信息的有效性,以便红朵通过用户提供的联系信息可以有效、及时联系。
+						</view>
+						<view>2.通过用户提供的联系信息无法与用户取得联系,因此导致平台的任何损失或增加成本、咨询师费用、用户自身损失、未及时知悉服务协议更新等,由用户承担全部责任。
+						</view>
+						<view>3.平台联系信息:</view>
+						<view>
+							收件地址:河南省郑州市高新技术产业开发区西四环206号3号楼
+						</view>
+						<view>收件人:红朵信息科技心理平台部 (收)</view>
+
+						<view>邮编:450000</view>
+
+						<view>电子邮箱:hongduo_tech@126.com</view>
+
+						<view>红朵按以上平台联系信息为有效送达信息,红朵通过用户提供的电子邮箱地址向用户送达的通知等相关文件,属于有效送达。
+						</view>
+
+
+						<view>十三、其他</view>
+						<view>
+							1.本协议双方均无权对外代表另一方明示或默示作出任何陈述或保证。</view>
+						<view>
+							2.本协议的任何条款,因法律、法规、政策变更导致无效或无法执行,该条款的单独无效不影响其他条款的效力,其他条款仍具有法律效力。
+						</view>
+						<view>3.甲乙双方应共同遵守本协议的内容,在执行过程中发生纠纷的,应友好协商,协商不成的,双方均有权向广州市天河区人民法院提起诉讼解决
+						</view>
+					</view>
+					<view style="padding: 10px;">
+						<button class='popup-know' @click="close()">我知道了</button>
+					</view>
+				</view>
+			</uni-popup>
+		</view>
+		<view class='modal_box' v-show='modalFlag'>
+			<view class='modal_box_inner'>
+				<view class='modal_tk'>
+					请阅读<text class="tk_link" @click="toggle()">《测评服务条款》</text>,点击同意并立即测试,开始测评答题!
+				</view>
+				<view class='ty_class' @click='agreeFun()'>同意并进入产品</view>
+				<view class='bty_class' @click="unAgreeFun()">不同意</view>
+			</view>
+
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				isChecked: true,
+				isShake: false
+			}
+		},
+		onLoad() {
+			if (!uni.getStorageSync("user")) {
+				this.createUser();
+			}
+		},
+
+		methods: {
+			//查询用户信息
+			createUser() {
+				this.$request
+					.get({
+						url: 'system/temporaryUser',
+						loadingTip: "加载中..."
+					})
+					.then((res) => {
+						console.log(res.data.user)
+						uni.setStorageSync("user", res.data.user);
+						uni.setStorageSync("token", res.data.token);
+					});
+			},
+			checkboxChange(e) {
+				this.isChecked = !this.isChecked;
+			},
+			goTest() {
+				if (!this.isChecked) {
+					uni.showToast({
+						icon: 'none',
+						title: '请勾选并同意测评服务条款'
+					})
+					this.isShake = true;
+					setTimeout(() => {
+						this.isShake = false;
+					}, 500);
+					return
+				}
+
+				uni.navigateTo({
+					url: '/newScale/Charm/testPage'
+				})
+			},
+			toggle() {
+				// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
+				this.$refs.popup.open()
+			},
+			close() {
+				this.$refs.popup.close();
+				this.isChecked = true;
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.bg {
+		width: 100%;
+		height: 3470rpx;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/index_bg.png) no-repeat center;
+		background-size: 100% auto;
+		text-align: center;
+	}
+
+	.banner {
+		width: 712rpx;
+	}
+
+	.banner1 {
+		margin: 875rpx auto 8rpx;
+	}
+
+	.banner2 {
+		margin: 8rpx auto 8rpx;
+	}
+
+	.banner3 {
+		margin: 12rpx auto 12rpx;
+	}
+
+	.contral_box {
+		box-sizing: border-box;
+		width: 100%;
+		height: 182rpx;
+		background: #FFFFFF;
+		overflow: hidden;
+	}
+
+	.agreement {
+		display: flex;
+		align-items: center;
+		font-family: Alibaba PuHuiTi 2.0;
+		font-weight: normal;
+		font-size: 32rpx;
+		color: #333333;
+		line-height: 39rpx;
+		margin: 26rpx 0 16rpx 53rpx;
+	}
+
+	.agreement input {
+		width: 43rpx;
+		height: 43rpx;
+		background: #FFFFFF;
+		border-radius: 4rpx;
+		border: 1px solid #999999;
+		margin-right: 23rpx;
+	}
+
+	.agreement text {
+		color: #0060FF;
+	}
+
+	.go_test {
+		margin: 0 auto;
+		cursor: pointer;
+		margin-bottom: 46rpx;
+	}
+
+	.go_test:active {
+		opacity: 0.8;
+	}
+
+	.go_test img {
+		width: 640rpx
+	}
+
+	::v-deep .uni-checkbox-input {
+		width: 43rpx;
+		height: 43rpx;
+		background: #FFFFFF;
+		border-radius: 4rpx;
+		border: 1px solid #999999;
+	}
+
+	::v-deep uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
+		border-color: #666666;
+	}
+
+	/* 关键帧 */
+	@keyframes shake {
+		0% {
+			transform: translateX(0);
+		}
+
+		10%,
+		30%,
+		50%,
+		70%,
+		90% {
+			transform: translateX(-5px);
+		}
+
+		20%,
+		40%,
+		60%,
+		80% {
+			transform: translateX(5px);
+		}
+
+		100% {
+			transform: translateX(0);
+		}
+	}
+
+	/* 动画class样式 */
+	.shake-animation {
+		animation: shake 0.5s;
+	}
+
+	.popup-main>>>uni-view {
+		max-width: 750rpx;
+
+		margin: auto;
+		/* border-radius: 20px; */
+		border-top-left-radius: 20px;
+		border-top-right-radius: 20px;
+	}
+
+	.popup-detail {
+		padding-left: 20px;
+		padding-right: 20px;
+		font-size: 14px;
+		line-height: 20px;
+		/* letter-spacing: 4px; */
+		overflow-y: auto;
+		height: 78vh;
+		border-top-left-radius: 0px !important;
+		border-top-right-radius: 0px !important;
+		text-align: left;
+		/* overflow-y: auto;
+		height:90vh; */
+	}
+
+	.popup-title-cla {
+		text-align: center;
+		font-size: 20px;
+		font-weight: 700;
+		margin-bottom: 20px !important;
+	}
+
+	.popup-cuo {
+		padding: 20rpx;
+		text-align: right;
+	}
+
+	.popup-know {
+		width: 92%;
+		background: linear-gradient(269deg, #FF443D 0%, #FF9C00 100%);
+		color: #ffffff;
+		border-radius: 20px;
+
+	}
+</style>

+ 204 - 0
newScale/Charm/paySuccess.vue

@@ -0,0 +1,204 @@
+<template>
+	<view class="pay_success_bg">
+		<view class="register_bg">
+			<view class="phone_input"><input @blur="checkPhone()" v-model="phone" type="tel" placeholder="请输入手机号">
+			</view>
+			<view class="password_input"><input v-model="code" type="number" placeholder="请输入验证码">
+				<view class="sms" @click='sendCode()'>{{sendCodeFlag}}</view>
+			</view>
+		</view>
+
+		<view class="send_btn" @click="saveAndView">
+			<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/register_save_bg.png"
+				mode="widthFix"></image>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				phone: '',
+				code: '',
+				//时间标志
+				time: null,
+				//倒计时数字
+				timeCount: 60,
+				//显示倒计时还是发送验证码
+				sendCodeFlag: '发送验证码',
+				userId: '',
+				resultId: ''
+			}
+		},
+		onLoad(options) {
+			if (options.userId && options.resultId) {
+				this.userId = options.userId;
+				this.resultId = options.resultId;
+			}
+		},
+		onUnload() {
+			clearInterval(this.time);
+			this.phone = '';
+			this.code = '';
+			this.timeCount = 60;
+			this.sendCodeFlag = '发送验证码';
+		},
+		methods: {
+			//对手机号进行校验
+			checkPhone() {
+				var phoneReg = /^[1][3,4,5,7,8][0-9]{9}$/;
+				if (phoneReg.test(this.phone)) {
+					return true;
+				} else {
+					uni.showToast({
+						title: '请输入正确手机号',
+						icon: 'error'
+					})
+					return false;
+				}
+			},
+			sendCode() {
+				if (!this.checkPhone()) {
+					return;
+				}
+				if (this.sendCodeFlag == '重新发送' || this.sendCodeFlag == '发送验证码') {
+					this.timeCount = 60;
+					clearInterval(this.time)
+					//起一个定时器开始倒计时
+					this.sendCodeFlag = this.timeCount + 's'
+					this.time = setInterval(() => {
+						this.timeCount -= 1;
+						this.sendCodeFlag = this.timeCount + 's'
+						//如果倒计时为0时则停止倒计时
+						if (this.timeCount == 0) {
+							clearInterval(this.time)
+							this.sendCodeFlag = '重新发送'
+						}
+					}, 1000)
+					this.$request.get({
+						url: 'user/authCode',
+						loadingTip: "加载中...",
+						data: {
+							phone: this.phone
+						},
+					}).then((res) => {
+						uni.showToast({
+							title: '验证码已发送',
+							icon: 'success',
+						})
+					})
+				}
+
+			},
+			// 绑定手机号并查看报告
+			saveAndView() {
+				// 校验手机和验证码格式
+				if (this.checkPhone() && this.code != '') {
+					this.$request.get({
+						url: 'user/updateMobile',
+						loadingTip: "加载中...",
+						data: {
+							id: this.userId,
+							mobile: this.phone,
+							authCode: this.code,
+						},
+					}).then((res) => {
+						if (res.code == 200) {
+							uni.showToast({
+								icon: 'success',
+								title: '保存成功'
+							})
+							uni.navigateTo({
+								url: `/newScale/Charm/testResult?resultId=${this.resultId}&messageShare=1`
+							});
+						} else {
+							uni.showToast({
+								icon: 'none',
+								title: res.msg
+							})
+						}
+					})
+				}
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.pay_success_bg {
+		width: 100%;
+		min-height: 100vh;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_success_bg.png) no-repeat top;
+		background-size: 100% auto;
+		overflow: hidden;
+	}
+
+	.register_bg {
+		width: 750rpx;
+		height: 498rpx;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/register_bg.png) no-repeat top;
+		background-size: 100% auto;
+		margin-top: 348rpx;
+		overflow: hidden;
+	}
+
+	.register_bg input {
+		border: 0;
+		outline: none;
+		width: 529rpx;
+		height: 91rpx;
+		padding-left: 100rpx;
+	}
+
+	.phone_input input {
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/phone_input_bg.png) no-repeat top;
+		background-size: cover;
+		margin: 176rpx 0 0 64rpx;
+	}
+
+
+	.password_input {
+		margin: 29rpx 0 0 64rpx;
+		position: relative;
+	}
+
+	.password_input input {
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/password_input_bg.png) no-repeat top;
+		background-size: auto 100%;
+	}
+
+	::v-deep .uni-input-input::placeholder {
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: normal;
+		font-size: 32rpx;
+		color: #999999;
+		line-height: 64rpx;
+	}
+
+	.sms {
+		width: 168rpx;
+		background: #FFEDF1;
+		border-radius: 36rpx;
+		position: absolute;
+		top: 9rpx;
+		right: 71rpx;
+		font-family: Alibaba PuHuiTi 2.0;
+		font-weight: bold;
+		font-size: 24rpx;
+		color: #EC3126;
+		line-height: 71rpx;
+		text-align: center;
+	}
+
+	.sms:active {
+		border: 1rpx solid #cccccc;
+		opacity: 0.8;
+		border-radius: 40rpx;
+	}
+
+	.send_btn {
+		margin: 340rpx auto 0;
+		text-align: center;
+	}
+</style>

+ 248 - 0
newScale/Charm/paymentPage.vue

@@ -0,0 +1,248 @@
+<template>
+	<view class="payment_bg">
+		<view class="payment_info">
+			<view class="people_num"><text>{{peopleNum}}人已测</text></view>
+			<view class="price_num"><text>¥{{orderInfo.total}}</text></view>
+			<view class="pay_btn_sm" @click="getH5Pay()">{{orderInfo.total}}元解锁专属测试报告</view>
+		</view>
+		<view class="payment_desc">
+			<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paymentPage/pay_scale_desc.png"
+				mode="widthFix"></image>
+		</view>
+		<view class="pay_btn_lg" @click="getH5Pay()">
+			{{orderInfo.total}}元解锁专属测试报告
+		</view>
+		<uni-popup ref="popup" type="center">
+			<view class="pay_dialog">
+				<view class="btn_area">
+					<image style="margin-right: 89rpx;" @click="completeHandle"
+						src="https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/complete_btn.png"
+						mode="widthFix"></image>
+					<image @click="uncompleteHandle"
+						src="https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/uncomplete_btn.png"
+						mode="widthFix"></image>
+				</view>
+			</view>
+		</uni-popup>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				orderNo: '',
+				orderInfo: {},
+				peopleNum: 0
+			}
+		},
+		onLoad(options) {
+			if (options.orderNo) {
+				this.orderNo = options.orderNo;
+				setTimeout(() => {
+					this.payEnsure();
+				}, 200)
+			}
+			this.orderInfo = JSON.parse(sessionStorage.getItem('orderInfo'));
+			this.getPeople();
+		},
+		methods: {
+			// 检查订单支付状态
+			checkOrder() {
+				let _this = this;
+				_this.$request
+					.get({
+						url: `api/wx-pay/queryOrder/${_this.orderNo}`,
+						loadingTip: "加载中...",
+						data: {},
+					})
+					.then((res) => {
+						uni.hideLoading();
+						let resultInfo = JSON.parse(res.data.body)
+						if (resultInfo.trade_state === 'SUCCESS') {
+							uni.navigateTo({
+								url: `/newScale/Charm/paySuccess?resultId=${this.orderInfo.resultId}&userId=${this.orderInfo.userId}`
+							});
+						} else {
+							return;
+						}
+					});
+			},
+			// 拉起微信支付
+			getH5Pay(params) {
+				let _this = this;
+				_this.$request
+					.get({
+						url: `api/orderInfo/queryOrderByResultIdAndUserId/${this.orderInfo.userId}/${this.orderInfo.resultId}`,
+						loadingTip: "加载中...",
+						data: {},
+					})
+					.then((res) => {
+						uni.hideLoading();
+						if (res.data && res.data.orderStatus === '支付成功') {
+							uni.navigateTo({
+								url: `/newScale/Charm/paySuccess?resultId=${this.orderInfo.resultId}&userId=${this.orderInfo.userId}`
+							});
+						} else {
+							// _this.orderInfo.total = _this.hasDiscount ? _this.promotionPrice : _this.price;
+							_this.$request
+								.post({
+									url: "api/wx-pay/h5Pay",
+									loadingTip: "加载中...",
+									data: _this.orderInfo
+								})
+								.then((res) => {
+									let redirect_url = encodeURI(
+										`http://hnhong-duo.com/webo/newScale/Charm/paymentPage?orderNo=${res.data.orderNo}`
+									)
+									window.location.href = `${res.data.codeUrl}&redirect_url=${redirect_url}`;
+								});
+						}
+					});
+			},
+			// 查询测试人数
+			getPeople() {
+				let _this = this;
+				_this.$request
+					.get({
+						url: "record/countByFlag?flag=20210804164957",
+						loadingTip: "加载中..."
+					})
+					.then((res) => {
+						_this.peopleNum = res.data + 57000
+					});
+			},
+			payEnsure() {
+				// console.log(11111)
+				this.$refs.popup.open();
+			},
+			uncompleteHandle() {
+				this.$refs.popup.close();
+			},
+			completeHandle() {
+				uni.showLoading({
+					title: ''
+				});
+				this.checkOrder();
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.payment_bg {
+		width: 100%;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/payment_bg.png) no-repeat top;
+		background-size: 100% auto;
+		overflow: hidden;
+	}
+
+	.payment_info {
+		width: 750rpx;
+		height: 531rpx;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paymentPage/pay_scale_info.png) no-repeat center;
+		background-size: cover;
+		position: relative;
+		margin-top: 143rpx;
+		overflow: hidden;
+	}
+
+	.payment_info image {
+		width: 100%;
+		height: auto;
+		margin-top: 134rpx;
+	}
+
+	.payment_info .pay_btn_sm {
+		width: 640rpx;
+		height: 73rpx;
+		line-height: 73rpx;
+		position: absolute;
+		left: 55rpx;
+		bottom: 73rpx;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_button.png) no-repeat center;
+		background-size: 100% auto;
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: bold;
+		font-size: 36rpx;
+		color: #FFFFFF;
+		text-shadow: 0rpx 0rpx 5rpx rgba(168, 63, 90, 0.5);
+		text-align: center;
+	}
+
+	.payment_desc image {
+		width: 750rpx;
+	}
+
+	.pay_btn_lg {
+		width: 640rpx;
+		height: 73rpx;
+		line-height: 73rpx;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/pay_button.png) no-repeat center;
+		background-size: 100% auto;
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: bold;
+		font-size: 36rpx;
+		color: #FFFFFF;
+		text-shadow: 0rpx 0rpx 5rpx rgba(168, 63, 90, 0.5);
+		text-align: center;
+		margin: 20rpx auto 60rpx;
+	}
+
+	.pay_dialog {
+		width: 594rpx;
+		height: 360rpx;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/paymentPage/dialog_bg.png) no-repeat top;
+		background-size: cover;
+		position: fixed;
+		top: 540rpx;
+		left: 50%;
+		transform: translate(-50%, -50%);
+	}
+
+	.btn_area {
+		margin: 240rpx 0 0 96rpx;
+	}
+
+	.btn_area image {
+		width: 160rpx;
+	}
+
+	.btn_area image:active {
+		border: 1rpx solid #999999;
+		opacity: 0.8;
+		border-radius: 28rpx;
+	}
+
+	.people_num {
+		margin-top: 177rpx;
+	}
+
+	.people_num text {
+		min-width: 157rpx;
+		height: 44rpx;
+		padding: 0 10rpx;
+		background: #FFEDF1;
+		border-radius: 22rpx;
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-size: 28rpx;
+		color: #FC716D;
+		line-height: 44rpx;
+		text-align: center;
+		margin-left: 373rpx;
+	}
+
+	.price_num {
+		margin-top: 72rpx;
+	}
+
+	.price_num text {
+		min-width: 74rpx;
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: normal;
+		font-size: 32rpx;
+		color: #FC716D;
+		line-height: 24rpx;
+		margin-left: 374rpx;
+	}
+</style>

+ 499 - 0
newScale/Charm/testPage.vue

@@ -0,0 +1,499 @@
+<template>
+	<view class="bg">
+		<view class="question_box">
+			<view style="overflow: hidden;"></view>
+			<image class="paperclip" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paperclip.png"
+				mode="widthFix"></image>
+			<view class="question_num">
+				<text class="num_front">出题{{currentIndex + 1}}</text><text class="num_behond">/{{maxLength}}</text>
+			</view>
+			<view class="process">
+				<view class="process_bar" :style="{'width': percentage}"></view>
+			</view>
+			<view class="question_box_wrap">
+				<view class="question_title">
+					<image :src="questionImgList[currentIndex].qImg" mode="widthFix"></image>
+				</view>
+				<view class="answer_list">
+					<image :class="['answer', `item${currentIndex}${index}`, checkActive(index)]"
+						v-for="(item, index) in questionImgList[currentIndex].answerImglist" @click="nextHandle(index)"
+						:src="item" mode="widthFix"></image>
+				</view>
+			</view>
+			<view class="tips">请选择你的答案进入下一题</view>
+		</view>
+		<view class="contral_box">
+			<view class="prev_btn" v-show="currentIndex > 0" @click="prevHandle">
+				<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/prev_btn.png" mode="widthFix">
+				</image>
+			</view>
+			<view class="prev_btn" v-show="currentIndex >= maxLength - 1" @click="submitResult">
+				<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/submit_btn.png"
+					mode="widthFix"></image>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+		getResult,
+		queryPromotionBySubjectId,
+	} from "@/api/index.js";
+	export default {
+		data() {
+			return {
+				isChecked: true,
+				isShake: false,
+				scaleDetail: {},
+				questionList: [],
+				currentQuestion: {},
+				currentAnswerList: [],
+				currentIndex: 0,
+				userAnswerList: [],
+				resultId: '',
+				isLoading: false,
+				isDisbale: false,
+				maxLength: 0,
+				userInfo: {},
+				questionImgList: [{
+						'qImg': 'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/question1.png',
+						'answerImglist': [
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer1-A.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer1-B.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer1-C.png'
+						]
+					},
+					{
+						'qImg': 'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/question2.png',
+						'answerImglist': [
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer2-A.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer2-B.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer2-C.png'
+						]
+					},
+					{
+						'qImg': 'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/question3.png',
+						'answerImglist': [
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer3-A.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer3-B.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer3-C.png'
+						]
+					},
+					{
+						'qImg': 'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/question4.png',
+						'answerImglist': [
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer4-A.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer4-B.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer4-C.png'
+						]
+					},
+					{
+						'qImg': 'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/question5.png',
+						'answerImglist': [
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer5-A.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer5-B.png',
+							'https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/answer5-C.png'
+						]
+					},
+				],
+				userSelectArr: []
+			}
+		},
+		computed: {
+			percentage() {
+				return (this.userSelectArr.length / this.questionList.length) * 652 + 'rpx'
+			}
+		},
+		created() {
+			this.loadData();
+			this.userInfo = uni.getStorageSync('user');
+			console.log(this.userInfo);
+		},
+		methods: {
+			loadData() {
+				this.$request
+					.get({
+						url: `scaleInfo/20210804164957`,
+						loadingTip: "加载中...",
+						data: {},
+					}).then((res) => {
+						this.questionList = JSON.parse(JSON.stringify(res.data));
+						this.maxLength = this.questionList.length;
+						this.currentQuestion = this.questionList[this.currentIndex];
+						this.currentAnswerList = this.getAnswerItem(this.currentQuestion.checkItems);
+					})
+			},
+
+			nextHandle(i) {
+				if (this.isDisbale) {
+					return;
+				}
+				this.isDisbale = true;
+				this.userAnswerList[this.currentIndex] = JSON.parse(JSON.stringify(this.currentQuestion));
+				this.userAnswerList[this.currentIndex].checkItems = this.currentAnswerList[i];
+				this.userSelectArr[this.currentIndex] = i;
+				if (this.currentIndex >= this.questionList.length - 1) {
+					this.isDisbale = false;
+					// this.submitResult();
+				} else {
+					setTimeout(() => {
+						this.currentIndex++;
+						this.currentQuestion = this.questionList[this.currentIndex];
+						this.currentAnswerList = this.getAnswerItem(this.currentQuestion.checkItems);
+						this.isDisbale = false;
+					}, 150)
+				}
+			},
+
+			prevHandle() {
+				setTimeout(() => {
+					this.currentIndex--;
+					this.currentQuestion = this.questionList[this.currentIndex];
+					this.currentAnswerList = this.getAnswerItem(this.currentQuestion.checkItems);
+				}, 300)
+			},
+
+			submitResult() {
+				let _this = this;
+				if (_this.isLoading) {
+					return
+				}
+				_this.isLoading = true;
+				let params = {
+					testPlanId: "",
+					scale_result: _this.userAnswerList,
+					userId: this.userInfo.id,
+				};
+
+				uni.showLoading({
+					title: "测试结果生成中",
+				});
+				_this.$request
+					.post({
+						url: `${getResult}/20210804164957`,
+						loadingTip: "加载中...",
+						data: params,
+					})
+					.then((res) => {
+						_this.isLoading = false;
+						_this.resultId = res.data;
+						// _this.$request.post({
+						// 	url: `scaleExternalSource/save`,
+						// 	loadingTip: "加载中...",
+						// 	data: {
+						// 		currentUserId: _this.userInfo.id,
+						// 		resultId: _this.resultId,
+						// 		uid: _this.uid,
+						// 		source: _this.source,
+						// 		flag: _this.flag,
+						// 	},
+						// }).then(() => {})
+						uni.hideLoading();
+						// 答题结束获取支付
+						_this.getQueryPromotionBySubjectId();
+					})
+					.catch(() => {
+						_this.isLoading = false;
+						uni.showToast({
+							icon: "none",
+							title: "提交失败",
+						});
+						uni.hideLoading();
+					});
+			},
+
+			// 获取支付金额
+			async getQueryPromotionBySubjectId() {
+				let _this = this;
+				let urls = queryPromotionBySubjectId + "/20210804164957";
+				await _this.$request
+					.get({
+						url: urls,
+						loadingTip: "加载中...",
+						data: {},
+					})
+					.then((res) => {
+						console.log('量表支付信息', res.data);
+						let data = res.data;
+						if (data.price == 0) {
+							uni.navigateTo({
+								url: `/newScale/Charm/testResult?resultId=${_this.resultId}&messageShare=1`
+							});
+						} else {
+							let params = {
+								productId: '20210804164957',
+								userId: _this.userInfo?.id,
+								resultId: _this.resultId,
+								description: data.name,
+								total: data.price,
+								sceneType: uni.getSystemInfoSync().platform == "android" ?
+									"Android" : "iOS",
+							};
+							sessionStorage.setItem('orderInfo', JSON.stringify(params))
+							uni.navigateTo({
+								url: "/newScale/Charm/paymentPage",
+							});
+						}
+					});
+			},
+
+			checkActive(i) {
+				return this.userSelectArr[this.currentIndex] == i ? 'active' : ''
+			},
+
+			getAnswerItem(arr) {
+				return arr.split(';')
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.bg {
+		width: 100%;
+		min-height: 100vh;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/testPage_bg.png) no-repeat top;
+		background-size: 100% auto;
+		overflow: hidden;
+	}
+
+	.tips {
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: normal;
+		font-size: 28rpx;
+		color: #FFFFFF;
+		line-height: 60rpx;
+		text-align: center;
+	}
+
+	.question_box {
+		box-sizing: border-box;
+		width: 702rpx;
+		height: 1021rpx;
+		background: linear-gradient(0deg, #EA1750 0%, #FF8189 100%);
+		border-radius: 26rpx;
+		padding: 0 15rpx;
+		margin: 43rpx auto;
+		position: relative;
+		overflow: hidden;
+	}
+
+	.question_box_wrap {
+		width: 668rpx;
+		height: 830rpx;
+		background: linear-gradient(0deg, #FFFFFF 76%, #FFEAEF 100%);
+		box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(133, 14, 45, 0.5);
+		border-radius: 20rpx;
+		border: 2px solid #FFFFFF;
+	}
+
+	.question_title {
+		margin-top: 46rpx;
+		text-align: center;
+	}
+
+	.question_box text.qs_txt {
+		padding-bottom: 4rpx;
+		border-bottom: 4rpx solid #2E9AFF;
+		line-height: 1.6;
+	}
+
+	.answer_list {
+		width: 100%;
+		height: 725rpx;
+		position: relative;
+	}
+
+	.item00 {
+		width: 262rpx;
+		position: absolute;
+		top: 115rpx;
+		left: 16rpx;
+	}
+
+	.item01 {
+		width: 341rpx;
+		position: absolute;
+		top: -16rpx;
+		right: 6rpx;
+	}
+
+	.item02 {
+		width: 362rpx;
+		position: absolute;
+		bottom: 36rpx;
+		left: 203rpx;
+	}
+
+
+	.item10 {
+		width: 294rpx;
+		position: absolute;
+		top: 44rpx;
+		left: 26rpx;
+	}
+
+	.item11 {
+		width: 266rpx;
+		position: absolute;
+		top: 83rpx;
+		right: 49rpx;
+	}
+
+	.item12 {
+		width: 303rpx;
+		position: absolute;
+		bottom: 50rpx;
+		left: 177rpx;
+	}
+
+	.item20 {
+		width: 275rpx;
+		position: absolute;
+		top: 32rpx;
+		left: 210rpx;
+	}
+
+	.item21 {
+		width: 272rpx;
+		position: absolute;
+		left: 59rpx;
+		bottom: 132rpx;
+	}
+
+	.item22 {
+		width: 248rpx;
+		position: absolute;
+		bottom: 71rpx;
+		right: 32rpx;
+	}
+
+	.item30 {
+		width: 362rpx;
+		position: absolute;
+		top: 21rpx;
+		left: 0rpx;
+	}
+
+	.item31 {
+		width: 358rpx;
+		position: absolute;
+		right: 7rpx;
+		top: 116rpx;
+	}
+
+	.item32 {
+		width: 386rpx;
+		position: absolute;
+		bottom: 0;
+		left: 64rpx;
+	}
+
+	.item40 {
+		width: 269rpx;
+		position: absolute;
+		top: 149rpx;
+		left: 36rpx;
+	}
+
+	.item41 {
+		width: 263rpx;
+		position: absolute;
+		right: 9rpx;
+		top: 129rpx;
+	}
+
+	.item42 {
+		width: 269rpx;
+		position: absolute;
+		right: 122rpx;
+		bottom: 42rpx;
+	}
+
+	.answer {
+		transition: background 150ms linear;
+	}
+
+	.answer.active {
+		background: #dddddd;
+		opacity: 0.8;
+	}
+
+	.answer:active {
+		background: #dddddd;
+		opacity: 0.8;
+	}
+
+
+	.prev_btn {
+		text-align: center;
+	}
+
+	.process {
+		box-sizing: border-box;
+		width: 613rpx;
+		height: 16rpx;
+		padding: 2rpx;
+		background: linear-gradient(0deg, #FFFFFF 0%, #FFEAEF 100%);
+		box-shadow: 0rpx 0rpx 3rpx 0rpx rgba(133, 14, 45, 0.5);
+		border-radius: 8rpx;
+		border: 1px solid #FFFFFF;
+		overflow: hidden;
+		margin: 6rpx auto 14rpx;
+	}
+
+	.process_bar {
+		height: 10rpx;
+		background: #F54E6D;
+		border-radius: 10rpx;
+		transition: width 200ms linear;
+	}
+
+	.question_num {
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/question_num_bg.png) no-repeat;
+		background-size: cover;
+		text-align: right;
+		margin: 14rpx 53rpx 0 0;
+	}
+
+	.num_front {
+		font-family: Alibaba PuHuiTi 2.0;
+		font-weight: bold;
+		font-size: 48rpx;
+		color: #FEFEFE;
+		line-height: 55rpx;
+		text-shadow: 2rpx 2rpx 5rpx rgba(146, 9, 0, 0.45);
+	}
+
+	.num_behond {
+		font-family: Alibaba PuHuiTi 2.0;
+		font-weight: bold;
+		font-size: 32rpx;
+		color: #FEFEFE;
+		line-height: 55rpx;
+		text-shadow: 2rpx 2rpx 5rpx rgba(146, 9, 0, 0.45);
+	}
+
+	.contral_box {
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		margin: 54rpx 0 100rpx 0;
+	}
+
+	.prev_btn {
+		margin: 0 20rpx;
+	}
+
+	.prev_btn image {
+		width: 304rpx;
+	}
+
+	.paperclip {
+		width: 55rpx;
+		position: absolute;
+		top: -40rpx;
+		left: 38rpx;
+	}
+</style>

+ 320 - 0
newScale/Charm/testResult.vue

@@ -0,0 +1,320 @@
+<template>
+	<view class="bg">
+		<view class="role_img">
+			<image class="temp_type" v-if="keywords" :src="roleList[role][keywords]" mode="widthFix">
+			</image>
+			<image class="carton" v-if="roleList[role]" :src="roleList[role].img" mode="widthFix"></image>
+		</view>
+		<view class="result_box">
+			<view style="overflow: hidden;"></view>
+			<image class="paperclip" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paperclip.png"
+				mode="widthFix"></image>
+			<image class="analysis_title"
+				src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/analysis_title.png" mode="widthFix">
+			</image>
+			<view class="role_medal">
+				<image v-if="roleList[role]" :src="roleList[role].name" mode="widthFix"></image>
+			</view>
+			<!-- <view class="score_bar">
+				<view class="score_title">得分:</view>
+				<view class="score_num">{{scoreNum}}</view>
+				<view class="score_percentage">
+					<view class="score_wrap">
+						<image class="process_bar" :style="{'left': percentage}"
+							src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/process_bar.png"
+							mode="widthFix"></image>
+					</view>
+					<view class="score_text">{{parseInt(scoreNum)}}/{{parseInt(maxScore)}}</view>
+				</view>
+			</view> -->
+			<view class="result_box_r">
+				<view class="cardiac">
+					<view style="text-align: left;">
+						<image class="cardiac_title"
+							src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/cardiac_title_img.png"
+							mode="widthFix"></image>
+					</view>
+					<image v-if="role" class="cardiac_index" :src="roleList[role].score" mode="widthFix"></image>
+				</view>
+				<view class="sm_title">
+					<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/sm_title.png"
+						mode="widthFix"></image>
+				</view>
+				{{improvementSuggestions}}
+			</view>
+			<view class="report_desc">
+				<view class="desc_title">报告阅读说明</view>
+				<view class="desc_txt">谢谢您的参与,阅读本报告时,请注意以下内容:</view>
+				<view style="display: flex;">
+					<view class="list_mark">·</view>
+					<view class="desc_txt">本结果仅供参考,不可作为临床诊断的依据;</view>
+				</view>
+				<view style="display: flex;">
+					<view class="list_mark">·</view>
+					<view class="desc_txt">如对报告有不理解的地方,建议向专业资质人员进行咨询;</view>
+				</view>
+				<view style="display: flex;">
+					<view class="list_mark">·</view>
+					<view class="desc_txt">如结果与你自己或他人感知的有出入,可回忆在测试时是否有事情影响到你,或自己答辩时是否有所顾虑;</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	import {
+		getRecordById
+	} from "@/api/index.js";
+	import {
+		photoUrl
+	} from "@/common/config.js"
+	const photoUrls = `${photoUrl}api/show?filePath=./webo`
+	console.log(photoUrl);
+	export default {
+		data() {
+			return {
+				isChecked: true,
+				isShake: false,
+				scaleDetail: {},
+				questionList: [],
+				currentQuestion: {},
+				currentAnswerList: [],
+				currentIndex: 0,
+				userAnswerList: [],
+				resultId: '',
+				isLoading: false,
+				isDisbale: false,
+				roleList: {
+					'88%': {
+						name: `${photoUrls}/Charm/result_type/comment88.png`,
+						img: `${photoUrls}/Charm/result_type/people_img88.png`,
+						score: `${photoUrls}/Charm/result_type/score88.png`,
+						'魅不可挡': `${photoUrls}/Charm/result_type/mbkd88.png`,
+						'魅力撩人': `${photoUrls}/Charm/result_type/mllr88.png`,
+						'魅力迷人': `${photoUrls}/Charm/result_type/mlmr88.png`,
+						'魅力无穷': `${photoUrls}/Charm/result_type/mlwq88.png`,
+						'气质成谜': `${photoUrls}/Charm/result_type/qzcm88.png`,
+					},
+					'99%': {
+						name: `${photoUrls}/Charm/result_type/comment99.png`,
+						img: `${photoUrls}/Charm/result_type/people_img99.png`,
+						score: `${photoUrls}/Charm/result_type/score99.png`,
+						'热情奔放': `${photoUrls}/Charm/result_type/rqbf99.png`,
+						'热情豪爽': `${photoUrls}/Charm/result_type/rqhs99.png`,
+						'热情澎湃': `${photoUrls}/Charm/result_type/rqpp99.png`,
+						'热情如火': `${photoUrls}/Charm/result_type/rqrh99.png`,
+						'热情洋溢': `${photoUrls}/Charm/result_type/rqyy99.png`,
+					},
+					'160%': {
+						name: `${photoUrls}/Charm/result_type/comment160.png`,
+						img: `${photoUrls}/Charm/result_type/people_img160.png`,
+						score: `${photoUrls}/Charm/result_type/score160.png`,
+						'怦然心动': `${photoUrls}/Charm/result_type/prxd160.png`,
+						'神魂颠倒': `${photoUrls}/Charm/result_type/shdd160.png`,
+						'神韵动人': `${photoUrls}/Charm/result_type/sydr160.png`,
+						'心动不已': `${photoUrls}/Charm/result_type/xdby160.png`,
+						'心花怒放': `${photoUrls}/Charm/result_type/xhnf160.png`,
+					},
+					'300%': {
+						name: `${photoUrls}/Charm/result_type/comment300.png`,
+						img: `${photoUrls}/Charm/result_type/people_img300.png`,
+						score: `${photoUrls}/Charm/result_type/score300.png`,
+						'瞬间倾心': `${photoUrls}/Charm/result_type/sjqx300.png`,
+						'一见倾心': `${photoUrls}/Charm/result_type/yjqx300.png`,
+						'爱情闪现': `${photoUrls}/Charm/result_type/aqsx300.png`,
+						'一见心动': `${photoUrls}/Charm/result_type/yjxd300.png`,
+						'一见钟情': `${photoUrls}/Charm/result_type/yjzq300.png`,
+					}
+				},
+				resultId: '',
+				role: '',
+				improvementSuggestions: '',
+				scoreNum: 0,
+				maxScore: 0,
+				minScore: 0,
+				keywords: ''
+			}
+		},
+		onLoad(options) {
+			if (options && options.resultId) {
+				this.resultId = options.resultId
+				this.getScaleTestResults(this.resultId);
+			}
+		},
+		computed: {
+			percentage() {
+				return (((this.scoreNum / this.maxScore) * 318) - 318) + 'rpx'
+			}
+		},
+		methods: {
+			getScaleTestResults(id) {
+				let _this = this;
+				_this.$request
+					.get({
+						url: `${getRecordById}?id=${id}`,
+						loadingTip: "加载中...",
+						data: {},
+					})
+					.then(
+						(res) => {
+							console.log('222:', new Date().getTime());
+							console.log("----测试结果--->", res);
+							if (res.code == 200) {
+								_this.testResult = JSON.parse(res.data?.userRecordEntity?.testResult)[0];
+								_this.role = _this.testResult.newTableContext.result[0].symptom;
+								_this.improvementSuggestions = _this.testResult.newTableContext.result[0]
+									.improvementSuggestions;
+								_this.keywords = _this.trimStart(_this.improvementSuggestions.slice(0, 5));
+								_this.scoreNum = _this.testResult.newTableContext.result[0].score;
+								_this.maxScore = _this.testResult.newTableContext.result[0].maxScore;
+							} else if (res.code == 401) {} else {
+								(res) => {
+									console.log("世界上绝对绝对绝对绝对绝对的", res);
+								}
+							}
+						})
+			},
+			getNameUrl() {
+				console.log(`${photoUrls}/Charm/result_type/role_name1.png`)
+				return `${photoUrls}/Charm/result_type/role_name1.png`
+			},
+			trimStart(str) {
+				return str.replace(/^\s+/, '');
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.bg {
+		width: 100%;
+		min-height: 1900rpx;
+		background: url(../../static/images/Charm/test_result_bg.png) no-repeat top;
+		background-size: 100% auto;
+		overflow: hidden;
+	}
+
+	.role_name {
+		text-align: center;
+		margin: 202rpx 0 0 0;
+	}
+
+	.role_name image {
+		width: 550rpx;
+	}
+
+	.role_img {
+		display: flex;
+		align-items: center;
+		text-align: center;
+		margin-top: 223rpx;
+	}
+
+	.role_img .temp_type {
+		width: 224rpx;
+		margin-left: 88rpx;
+	}
+
+	.role_img .carton {
+		width: 459rpx;
+		margin-left: -60rpx;
+	}
+
+	.result_box {
+		width: 702rpx;
+		height: 1275rpx;
+		background: linear-gradient(0deg, #EA1750 0%, #FF8189 100%);
+		border-radius: 26rpx;
+		margin: 10rpx auto 0;
+		position: relative;
+	}
+
+	.role_medal {
+		margin-top: 55rpx;
+		text-align: center;
+	}
+
+	.role_medal image {
+		width: 550rpx;
+	}
+
+	.result_box_r {
+		box-sizing: border-box;
+		width: 674rpx;
+		min-height: 553rpx;
+		padding: 26rpx;
+		margin: 0 auto 0;
+		background: #FFFFFF url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/result_bg_r.png) no-repeat top;
+		background-size: 100% auto;
+		border-radius: 33rpx;
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: normal;
+		font-size: 32rpx;
+		color: #555555;
+		line-height: 50rpx;
+	}
+
+	.sm_title image {
+		width: 67rpx;
+	}
+
+	.cardiac {
+		text-align: center;
+	}
+
+	.cardiac_title {
+		width: 213rpx;
+	}
+
+	.cardiac_index {
+		width: 436rpx;
+		text-align: center;
+	}
+
+
+
+	.report_desc {
+		margin: 30rpx 38rpx;
+		letter-spacing: 1px;
+	}
+
+	.desc_title {
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: normal;
+		font-size: 28rpx;
+		color: #FFFFFF;
+		line-height: 46rpx;
+	}
+
+	.desc_txt {
+		font-family: 'Alibaba PuHuiTi 2.0';
+		font-weight: normal;
+		font-size: 20rpx;
+		color: #FFFFFF;
+		line-height: 30rpx;
+	}
+
+	.list_mark {
+		line-height: 0.7;
+		font-size: 36rpx;
+		color: #ffffff;
+		font-weight: 600;
+		margin-right: 5rpx;
+	}
+
+	.analysis_title {
+		width: 362rpx;
+		position: absolute;
+		top: -30rpx;
+		left: 50%;
+		transform: translateX(-50%);
+	}
+
+	.paperclip {
+		width: 55rpx;
+		position: absolute;
+		top: -40rpx;
+		left: 38rpx;
+	}
+</style>

+ 86 - 69
pages.json

@@ -5,13 +5,6 @@
 			"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
 		}
 	},
-	// "easycom": {
-	//   "autoscan": true,
-	//   "custom": {
-	//     "^uni-(.*)": "@/components/uni-$1.vue", // 匹配components目录内的vue文件
-	//     "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配node_modules内的vue文件
-	//   }
-	// },
 	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
 		{
 			"path": "pages/index/index",
@@ -61,72 +54,96 @@
 				"enablePullDownRefresh": false
 			}
 		}
-		// {   "root":"examWidght",
-		// 	"pages":[{
-		// 		"path": "examWidght/index",
-		// 		"style": {
-		// 			// "navigationBarTitleText": "uni-app"
-		// 			"navigationStyle": "custom"
-		// 		}
-		// 	}]
-		// }
-		// {
-		// 	"root": "examWidght",
-		// 	"pages": [{
-		// 		"path": "examWidght/index",
-		// 		"style": {
-		// 			"navigationBarTitleText": "量表",
-		// 			"enablePullDownRefresh": false
-		// 		}
-		// 	}]
-		// },
 	],
 	"subPackages": [{
-		"root": "examWidght",
-		"pages": [{
-			"path": "examWidght/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
-		}]
-	}, {
-		"root": "paymentPage",
-		"pages": [{
-			"path": "paymentPage/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
+			"root": "examWidght",
+			"pages": [{
+				"path": "examWidght/index",
+				"style": {
+					"navigationStyle": "custom",
+					"navigationBarTitleText": "",
+					"enablePullDownRefresh": false
+				}
+			}]
 		}, {
-			"path": "phoneSave/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
+			"root": "paymentPage",
+			"pages": [{
+				"path": "paymentPage/index",
+				"style": {
+					"navigationStyle": "custom",
+					"navigationBarTitleText": "",
+					"enablePullDownRefresh": false
+				}
+			}, {
+				"path": "phoneSave/index",
+				"style": {
+					"navigationStyle": "custom",
+					"navigationBarTitleText": "",
+					"enablePullDownRefresh": false
+				}
+			}, {
+				"path": "queryByPhone/index",
+				"style": {
+					"navigationStyle": "custom",
+					"navigationBarTitleText": "",
+					"enablePullDownRefresh": false,
+					"onReachBottomDistance": 100
+				}
+			}]
 		}, {
-			"path": "queryByPhone/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false,
-				"onReachBottomDistance": 100
-			}
-		}]
-	}, {
-		"root": "scaleTestResults",
-		"pages": [{
-			"path": "testResults/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
-		}]
-	}],
+			"root": "scaleTestResults",
+			"pages": [{
+				"path": "testResults/index",
+				"style": {
+					"navigationStyle": "custom",
+					"navigationBarTitleText": "",
+					"enablePullDownRefresh": false
+				}
+			}]
+		},
+		{
+			"root": "newScale",
+			"pages": [{
+					"path": "Charm/index",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				},
+				{
+					"path": "Charm/testPage",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				}, {
+					"path": "Charm/paymentPage",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				}, {
+					"path": "Charm/paySuccess",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				},
+				{
+					"path": "Charm/testResult",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				}
+			]
+		}
+	],
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "丁香解忧",

+ 2 - 2
paymentPage/queryByPhone/index.vue

@@ -570,13 +570,13 @@
 
 	.main_xing_left {
 		height: 30px;
-		weight: 20px;
+		width: 20px;
 		margin-right: 20px;
 	}
 
 	.main_xing_right {
 		height: 30px;
-		weight: 20px;
+		width: 20px;
 		margin-left: 20px;
 	}
 

BIN
static/images/EQtest/answer_A.png


BIN
static/images/EQtest/answer_A_active.png


BIN
static/images/EQtest/answer_B.png


BIN
static/images/EQtest/answer_B_active.png


BIN
static/images/EQtest/answer_C.png


BIN
static/images/EQtest/answer_C_active.png


BIN
static/images/EQtest/answer_D.png


BIN
static/images/EQtest/answer_D_active.png


BIN
static/images/EQtest/answer_E.png


BIN
static/images/EQtest/answer_E_active.png


BIN
static/images/EQtest/banner1.png


BIN
static/images/EQtest/banner2.png


BIN
static/images/EQtest/banner3.png


BIN
static/images/EQtest/banner4.png


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.eot


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.otf


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.ttf


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.woff


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-115-Black/AlibabaPuHuiTi-2-115-Black.woff2


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.eot


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.otf


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.ttf


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.woff


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-55-Regular/AlibabaPuHuiTi-2-55-Regular.woff2


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.eot


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.otf


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.ttf


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.woff


BIN
static/images/EQtest/font/AlibabaPuHuiTi-2-85-Bold/AlibabaPuHuiTi-2-85-Bold.woff2


BIN
static/images/EQtest/index_bg.png


BIN
static/images/EQtest/next_mark.png


BIN
static/images/EQtest/paymentPage/complete_btn.png


BIN
static/images/EQtest/paymentPage/dialog_bg.png


BIN
static/images/EQtest/paymentPage/password_input_bg.png


BIN
static/images/EQtest/paymentPage/pay_button.png


BIN
static/images/EQtest/paymentPage/pay_scale_desc.png


BIN
static/images/EQtest/paymentPage/pay_scale_info.png


BIN
static/images/EQtest/paymentPage/pay_success_bg.png


BIN
static/images/EQtest/paymentPage/payment_bg.png


BIN
static/images/EQtest/paymentPage/phone_input_bg.png


BIN
static/images/EQtest/paymentPage/register_bg.png


BIN
static/images/EQtest/paymentPage/register_save_bg.png


BIN
static/images/EQtest/paymentPage/sms_bg.png


BIN
static/images/EQtest/paymentPage/uncomplete_btn.png


BIN
static/images/EQtest/prev_btn.png


BIN
static/images/EQtest/prev_mark.png


BIN
static/images/EQtest/process_bar.png


BIN
static/images/EQtest/process_star.png


BIN
static/images/EQtest/question_bg.png


BIN
static/images/EQtest/question_num_bg.png


BIN
static/images/EQtest/result_bg_r.png


BIN
static/images/EQtest/result_bg_w.png


BIN
static/images/EQtest/role/role_img1.png


BIN
static/images/EQtest/role/role_img10.png


BIN
static/images/EQtest/role/role_img2.png


BIN
static/images/EQtest/role/role_img3.png


BIN
static/images/EQtest/role/role_img4.png


BIN
static/images/EQtest/role/role_img5.png


BIN
static/images/EQtest/role/role_img6.png


BIN
static/images/EQtest/role/role_img7.png


BIN
static/images/EQtest/role/role_img8.png


BIN
static/images/EQtest/role/role_img9.png


BIN
static/images/EQtest/role/role_medal1.png


BIN
static/images/EQtest/role/role_medal10.png


BIN
static/images/EQtest/role/role_medal2.png


BIN
static/images/EQtest/role/role_medal3.png


BIN
static/images/EQtest/role/role_medal4.png


BIN
static/images/EQtest/role/role_medal5.png


BIN
static/images/EQtest/role/role_medal6.png


BIN
static/images/EQtest/role/role_medal7.png


BIN
static/images/EQtest/role/role_medal8.png


BIN
static/images/EQtest/role/role_medal9.png


BIN
static/images/EQtest/role/role_name1.png


BIN
static/images/EQtest/role/role_name10.png


BIN
static/images/EQtest/role/role_name11.png


BIN
static/images/EQtest/role/role_name12.png


BIN
static/images/EQtest/role/role_name13.png


BIN
static/images/EQtest/role/role_name14.png


BIN
static/images/EQtest/role/role_name2.png


BIN
static/images/EQtest/role/role_name3.png


BIN
static/images/EQtest/role/role_name4.png


BIN
static/images/EQtest/role/role_name5.png


BIN
static/images/EQtest/role/role_name6.png


BIN
static/images/EQtest/role/role_name7.png


BIN
static/images/EQtest/role/role_name8.png


BIN
static/images/EQtest/role/role_name9.png


BIN
static/images/EQtest/score_percentage_bg.png


BIN
static/images/EQtest/start_btn.png


BIN
static/images/EQtest/submit_btn.png


BIN
static/images/EQtest/testPage_bg.png


BIN
static/images/EQtest/test_result_bg.png


+ 0 - 0
utils/payment.js