constitutionDiagnosis.wxml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <view style="width: 100vw;height: 100vh; background: #CCEDF5;">
  2. <scroll-view scroll-y="true"
  3. style="height: 100vh;background: #CCEDF5;min-height: 100vh;overflow-x: hidden;overflow-y: auto;"
  4. scroll-into-view="{{mInputId}}">
  5. <view class="container">
  6. <image src="/subpages/images/testb_banner.png" style="display: block;width: 100vw;" mode="widthFix"></image>
  7. <wxs module="jstools" src="/subpages/wxs/includes.wxs"></wxs>
  8. <!-- 基本信息 -->
  9. <view class="section-top">
  10. <image src="/subpages/images/testb_bg.png" style="display: block;width: 100%;" mode="widthFix"></image>
  11. <text
  12. class="tips">您好!非常感谢您在百忙之中填写这份问卷。为了更好地了解您的入住体验,并根据您的建议进行持续完善。我们特此开展此次调查。请您根据自己的实际情况如实回答,所有数据将严格保密,仅用于研究分析。本问卷大约需要5-10分钟时间,请您耐心完成。您的意见对于我们而言至关重要。</text>
  13. </view>
  14. <view class='title_1'>一、身体综合(多选)</view>
  15. <view class="section" id="bodySynthesis">
  16. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  17. <van-checkbox-group value="{{ bodySynthesis }}" bind:change="bindBodySynthesis">
  18. <van-checkbox wx:for="{{bodySynthesisOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  19. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  20. <view class="radio-view">
  21. <image class="radio-icon" slot="icon"
  22. src="{{ jstools.includes(bodySynthesis,item.value) ? activeIcon : normalIcon }}" />
  23. <text class="radio-title"
  24. style="{{ jstools.includes(bodySynthesis,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  25. </view>
  26. </van-checkbox>
  27. </van-checkbox-group>
  28. </view>
  29. <view class='title_1'>二、面部五官(多选)</view>
  30. <view class="section" id="facialFeatures">
  31. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  32. <van-checkbox-group value="{{ facialFeatures }}" bind:change="bindFacialFeatures">
  33. <van-checkbox wx:for="{{facialFeaturesOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  34. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  35. <view class="radio-view">
  36. <image class="radio-icon" slot="icon"
  37. src="{{ jstools.includes(facialFeatures,item.value) ? activeIcon : normalIcon }}" />
  38. <text class="radio-title"
  39. style="{{ jstools.includes(facialFeatures,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  40. </view>
  41. </van-checkbox>
  42. </van-checkbox-group>
  43. </view>
  44. <view class='title_1'>三、皮肤毛发(多选)</view>
  45. <view class="section" id="skinHair">
  46. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  47. <van-checkbox-group value="{{ skinHair }}" bind:change="bindSkinHair">
  48. <van-checkbox wx:for="{{skinHairOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  49. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  50. <view class="radio-view">
  51. <image class="radio-icon" slot="icon"
  52. src="{{ jstools.includes(skinHair,item.value) ? activeIcon : normalIcon }}" />
  53. <text class="radio-title"
  54. style="{{ jstools.includes(skinHair,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  55. </view>
  56. </van-checkbox>
  57. </van-checkbox-group>
  58. </view>
  59. <view class='title_1'>四、情绪方面(多选)</view>
  60. <view class="section" id="emotion">
  61. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  62. <van-checkbox-group value="{{ emotion }}" bind:change="bindEmotion">
  63. <van-checkbox wx:for="{{emotionOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  64. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  65. <view class="radio-view">
  66. <image class="radio-icon" slot="icon"
  67. src="{{ jstools.includes(emotion,item.value) ? activeIcon : normalIcon }}" />
  68. <text class="radio-title"
  69. style="{{ jstools.includes(emotion,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  70. </view>
  71. </van-checkbox>
  72. </van-checkbox-group>
  73. </view>
  74. <view class='title_1'>五、月经方面(多选)</view>
  75. <view class="section" id="menstruation">
  76. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  77. <van-checkbox-group value="{{ menstruation }}" bind:change="bindMenstruation">
  78. <van-checkbox wx:for="{{menstruationOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  79. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  80. <view class="radio-view">
  81. <image class="radio-icon" slot="icon"
  82. src="{{ jstools.includes(menstruation,item.value) ? activeIcon : normalIcon }}" />
  83. <text class="radio-title"
  84. style="{{ jstools.includes(menstruation,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  85. </view>
  86. </van-checkbox>
  87. </van-checkbox-group>
  88. </view>
  89. <view class='title_1'>六、性格方面(多选)</view>
  90. <view class="section" id="character">
  91. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  92. <van-checkbox-group value="{{ character }}" bind:change="bindCharacter">
  93. <van-checkbox wx:for="{{characterOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  94. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  95. <view class="radio-view">
  96. <image class="radio-icon" slot="icon"
  97. src="{{ jstools.includes(character,item.value) ? activeIcon : normalIcon }}" />
  98. <text class="radio-title"
  99. style="{{ jstools.includes(character,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  100. </view>
  101. </van-checkbox>
  102. </van-checkbox-group>
  103. </view>
  104. <view class='title_1'>七、睡眠(多选)</view>
  105. <view class="section" id="sleep">
  106. <!-- <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text> -->
  107. <van-checkbox-group value="{{ sleep }}" bind:change="bindSleep">
  108. <van-checkbox wx:for="{{sleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  109. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  110. <view class="radio-view">
  111. <image class="radio-icon" slot="icon"
  112. src="{{ jstools.includes(sleep,item.value) ? activeIcon : normalIcon }}" />
  113. <text class="radio-title"
  114. style="{{ jstools.includes(sleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  115. </view>
  116. </van-checkbox>
  117. </van-checkbox-group>
  118. </view>
  119. <!-- 提交按钮 -->
  120. <text class="commit-btn" bindtap="submitSurvey">提交问卷</text>
  121. <view style="height: 80rpx;"></view>
  122. <!-- <view class="bottom-view">
  123. <text style="font-weight:600">感谢您的参与和支持!</text>
  124. <text
  125. style="font-size: 28rpx;margin-top: 30rpx;color: #666666;">通过这份问卷,我们可以更好地了解受访者的睡眠状况及其影响因素,从而为他们提供更有效的改善建议。希望您能如实填写,以便我们为您提供更好的服务。</text>
  126. </view> -->
  127. <van-popup show="{{ promptTextMessageFlag }}" close-on-click-overlay="{{false}}" z-index="10086" overlay
  128. bind:close="onCloseResultsDialog" custom-style="background-color: transparent;">
  129. <view class="resultsAreShown-view">
  130. <view class="resultsAreShown-content">
  131. <View class="resultsAreShown-content-top">
  132. <image class="resultsAreShown-content-bg" src="/subpages/bg/ic_test_results_bg.png"></image>
  133. <text class="resultsAreShown-content-title">体质诊断检测统计</text>
  134. </View>
  135. <view class="resultsAreShown-content-h">
  136. <text class="resultsAreShown-content-desc">诊断结果:</text>
  137. <text class="resultsAreShown-content-score">{{comScoreStatus}}</text>
  138. <!-- <text class="resultsAreShown-content-units">分</text> -->
  139. </view>
  140. <text class="resultsAreShown-content-desc">诊断分布:</text>
  141. <view class="resultsAreShown-content-score-view">
  142. <view wx:for="{{ratingResultsList}}" wx:for-item="item" wx:for-index="index"
  143. wx:key="{{index}}" class="resultsAreShown-content-score-item">
  144. <image class="resultsAreShown-content-score-icon" src="{{item.icon}}"
  145. style="{{'opacity: '+ item.opacity}}">
  146. </image>
  147. <view class="resultsAreShown-content-score-line"
  148. style="{{'background-color:'+item.color}}">
  149. </view>
  150. <text
  151. class=" {{item.opacity == 1 ? 'resultsAreShown-content-score-desc.active' : 'resultsAreShown-content-score-desc'}}">{{item.title}}</text>
  152. </view>
  153. </view>
  154. <text class="resultsAreShown-content-tips">{{comScoreDesc}}</text>
  155. </view>
  156. <van-icon name="close" size="56rpx" color="#FFFFFF" bindtap="onCloseResultsDialog" />
  157. </view>
  158. </van-popup>
  159. </view>
  160. </scroll-view>
  161. </view>