constitutionDiagnosis.wxml 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. <van-checkbox-group value="{{ bodySynthesis }}" bind:change="bindBodySynthesis">
  17. <van-checkbox wx:for="{{bodySynthesisOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  18. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  19. <view class="radio-view">
  20. <image class="radio-icon" slot="icon"
  21. src="{{ jstools.includes(bodySynthesis,item.value) ? activeIcon : normalIcon }}" />
  22. <text class="radio-title"
  23. style="{{ jstools.includes(bodySynthesis,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  24. </view>
  25. </van-checkbox>
  26. </van-checkbox-group>
  27. </view>
  28. <view class='title_1'>二、面部五官(多选)</view>
  29. <view class="section" id="facialFeatures">
  30. <van-checkbox-group value="{{ facialFeatures }}" bind:change="bindFacialFeatures">
  31. <van-checkbox wx:for="{{facialFeaturesOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  32. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  33. <view class="radio-view">
  34. <image class="radio-icon" slot="icon"
  35. src="{{ jstools.includes(facialFeatures,item.value) ? activeIcon : normalIcon }}" />
  36. <text class="radio-title"
  37. style="{{ jstools.includes(facialFeatures,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  38. </view>
  39. </van-checkbox>
  40. </van-checkbox-group>
  41. </view>
  42. <view class='title_1'>三、皮肤毛发(多选)</view>
  43. <view class="section" id="skinHair">
  44. <van-checkbox-group value="{{ skinHair }}" bind:change="bindSkinHair">
  45. <van-checkbox wx:for="{{skinHairOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  46. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  47. <view class="radio-view">
  48. <image class="radio-icon" slot="icon"
  49. src="{{ jstools.includes(skinHair,item.value) ? activeIcon : normalIcon }}" />
  50. <text class="radio-title"
  51. style="{{ jstools.includes(skinHair,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  52. </view>
  53. </van-checkbox>
  54. </van-checkbox-group>
  55. </view>
  56. <view class='title_1'>四、情绪方面(多选)</view>
  57. <view class="section" id="emotion">
  58. <van-checkbox-group value="{{ emotion }}" bind:change="bindEmotion">
  59. <van-checkbox wx:for="{{emotionOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  60. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  61. <view class="radio-view">
  62. <image class="radio-icon" slot="icon"
  63. src="{{ jstools.includes(emotion,item.value) ? activeIcon : normalIcon }}" />
  64. <text class="radio-title"
  65. style="{{ jstools.includes(emotion,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  66. </view>
  67. </van-checkbox>
  68. </van-checkbox-group>
  69. </view>
  70. <view class='title_1'>五、月经方面(多选)</view>
  71. <view class="section" id="menstruation">
  72. <van-checkbox-group value="{{ menstruation }}" bind:change="bindMenstruation">
  73. <van-checkbox wx:for="{{menstruationOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  74. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  75. <view class="radio-view">
  76. <image class="radio-icon" slot="icon"
  77. src="{{ jstools.includes(menstruation,item.value) ? activeIcon : normalIcon }}" />
  78. <text class="radio-title"
  79. style="{{ jstools.includes(menstruation,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  80. </view>
  81. </van-checkbox>
  82. </van-checkbox-group>
  83. </view>
  84. <view class='title_1'>六、性格方面(多选)</view>
  85. <view class="section" id="character">
  86. <van-checkbox-group value="{{ character }}" bind:change="bindCharacter">
  87. <van-checkbox wx:for="{{characterOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  88. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  89. <view class="radio-view">
  90. <image class="radio-icon" slot="icon"
  91. src="{{ jstools.includes(character,item.value) ? activeIcon : normalIcon }}" />
  92. <text class="radio-title"
  93. style="{{ jstools.includes(character,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  94. </view>
  95. </van-checkbox>
  96. </van-checkbox-group>
  97. </view>
  98. <view class='title_1'>七、睡眠(多选)</view>
  99. <view class="section" id="sleep">
  100. <van-checkbox-group value="{{ sleep }}" bind:change="bindSleep">
  101. <van-checkbox wx:for="{{sleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  102. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  103. <view class="radio-view">
  104. <image class="radio-icon" slot="icon"
  105. src="{{ jstools.includes(sleep,item.value) ? activeIcon : normalIcon }}" />
  106. <text class="radio-title"
  107. style="{{ jstools.includes(sleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  108. </view>
  109. </van-checkbox>
  110. </van-checkbox-group>
  111. </view>
  112. <view class='title_1'>八、舌头状态(多选)</view>
  113. <view class="section" id="tongueState">
  114. <van-checkbox-group value="{{ tongueState }}" bind:change="bindTongueState">
  115. <van-checkbox wx:for="{{tongueStateOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  116. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  117. <view class="radio-view">
  118. <image class="radio-icon" slot="icon"
  119. src="{{ jstools.includes(tongueState,item.value) ? activeIcon : normalIcon }}" />
  120. <text class="radio-title"
  121. style="{{ jstools.includes(tongueState,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  122. </view>
  123. </van-checkbox>
  124. </van-checkbox-group>
  125. </view>
  126. <!-- 提交按钮 -->
  127. <text class="commit-btn" bindtap="submitSurvey">提交问卷</text>
  128. <text class="commit-btn" bindtap="export">导出问卷</text>
  129. <view style="height: 80rpx;"></view>
  130. <!-- <view class="bottom-view">
  131. <text style="font-weight:600">感谢您的参与和支持!</text>
  132. <text
  133. style="font-size: 28rpx;margin-top: 30rpx;color: #666666;">通过这份问卷,我们可以更好地了解受访者的睡眠状况及其影响因素,从而为他们提供更有效的改善建议。希望您能如实填写,以便我们为您提供更好的服务。</text>
  134. </view> -->
  135. <van-popup show="{{ promptTextMessageFlag }}" close-on-click-overlay="{{false}}" z-index="10086" overlay
  136. bind:close="onCloseResultsDialog" custom-style="background-color: transparent;">
  137. <view class="resultsAreShown-view">
  138. <view class="resultsAreShown-content">
  139. <View class="resultsAreShown-content-top">
  140. <image class="resultsAreShown-content-bg" src="/subpages/bg/ic_test_results_bg.png"></image>
  141. <text class="resultsAreShown-content-title">体质诊断检测统计</text>
  142. </View>
  143. <view class="resultsAreShown-content-h">
  144. <text class="resultsAreShown-content-desc">诊断结果:</text>
  145. <text class="resultsAreShown-content-score">{{comScoreStatus}}</text>
  146. <!-- <text class="resultsAreShown-content-units">分</text> -->
  147. </view>
  148. <text class="resultsAreShown-content-desc">诊断分布:</text>
  149. <view class="resultsAreShown-content-score-view">
  150. <view wx:for="{{ratingResultsList}}" wx:for-item="item" wx:for-index="index"
  151. wx:key="{{index}}" class="resultsAreShown-content-score-item">
  152. <image class="resultsAreShown-content-score-icon" src="{{item.icon}}"
  153. style="{{'opacity: '+ item.opacity}}">
  154. </image>
  155. <view class="resultsAreShown-content-score-line"
  156. style="{{'background-color:'+item.color}}">
  157. </view>
  158. <text
  159. class=" {{item.opacity == 1 ? 'resultsAreShown-content-score-desc.active' : 'resultsAreShown-content-score-desc'}}">{{item.title}}</text>
  160. </view>
  161. </view>
  162. <text class="resultsAreShown-content-tips">{{comScoreDesc}}</text>
  163. </view>
  164. <van-icon name="close" size="56rpx" color="#FFFFFF" bindtap="onCloseResultsDialog" />
  165. </view>
  166. </van-popup>
  167. </view>
  168. </scroll-view>
  169. </view>