sleepEvaluation.wxml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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="age">
  16. <text>1.您的年龄:</text>
  17. <van-radio-group value="{{ age }}" bind:change="bindAgeChange">
  18. <van-radio wx:for="{{ageOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  19. custom-class="custom-radio-class" use-icon-slot>
  20. <view class="radio-view">
  21. <image class="radio-icon" slot="icon" src="{{ age === item.value ? activeIcon : normalIcon }}" />
  22. <text class="radio-title"
  23. style="{{ age === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  24. </view>
  25. </van-radio>
  26. </van-radio-group>
  27. </view>
  28. <view class="section" id="career">
  29. <text>2.您的职业:</text>
  30. <van-radio-group value="{{ career }}" bind:change="bindCareerChange">
  31. <van-radio wx:for="{{careerOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  32. custom-class="custom-radio-class" use-icon-slot>
  33. <view class="radio-view">
  34. <image class="radio-icon" slot="icon" src="{{ career === item.value ? activeIcon : normalIcon }}" />
  35. <text class="radio-title"
  36. style="{{ career === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  37. </view>
  38. <input wx:if="{{index == careerOptions.length - 1}}" type="text" placeholder="请填写您的职业"
  39. bindinput="bindCareerInputInput" />
  40. </van-radio>
  41. </van-radio-group>
  42. </view>
  43. <view class="section" id="gender">
  44. <text>3.您的性别:</text>
  45. <van-radio-group value="{{ gender }}" bind:change="bindGenderChange">
  46. <van-radio name='0' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  47. <view class="radio-view">
  48. <image class="radio-icon" slot="icon" src="{{ gender === '0' ? activeIcon : normalIcon }}" />
  49. <text class="radio-title" style="{{ gender === '0' ? activeColor : normalColor }}">男</text>
  50. </view>
  51. </van-radio>
  52. <van-radio name='1' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  53. <view class="radio-view">
  54. <image class="radio-icon" slot="icon" src="{{ gender === '1' ? activeIcon : normalIcon }}" />
  55. <text class="radio-title" style="{{ gender === '1' ? activeColor : normalColor }}">女</text>
  56. </view>
  57. </van-radio>
  58. <van-radio name='2' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  59. <view class="radio-view">
  60. <image class="radio-icon" slot="icon" src="{{ gender === '2' ? activeIcon : normalIcon }}" />
  61. <text class="radio-title" style="{{ gender === '2' ? activeColor : normalColor }}">不愿透露</text>
  62. </view>
  63. </van-radio>
  64. </van-radio-group>
  65. </view>
  66. <view class="section" id="channel">
  67. <text>4、您是通过什么渠道预定到的本酒店睡眠房?</text>
  68. <van-radio-group value="{{ channel }}" bind:change="bindChannelChange">
  69. <van-radio name='0' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  70. <view class="radio-view">
  71. <image class="radio-icon" slot="icon" src="{{ channel === '0' ? activeIcon : normalIcon }}" />
  72. <text class="radio-title" style="{{ channel === '0' ? activeColor : normalColor }}">酒店散客</text>
  73. </view>
  74. </van-radio>
  75. <van-radio name='1' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  76. <view class="radio-view">
  77. <image class="radio-icon" slot="icon" src="{{ channel === '1' ? activeIcon : normalIcon }}" />
  78. <text class="radio-title" style="{{ channel === '1' ? activeColor : normalColor }}">朋友推荐</text>
  79. </view>
  80. </van-radio>
  81. <van-radio name='2' checked-color="#0ABCA4" custom-class="custom-radio-class" use-icon-slot>
  82. <view class="radio-view">
  83. <image class="radio-icon" slot="icon" src="{{ channel === '2' ? activeIcon : normalIcon }}" />
  84. <text class="radio-title"
  85. style="{{ channel === '2' ? activeColor : normalColor }}">第三方平台(如携程、去哪儿网、飞猪、同程等)</text>
  86. </view>
  87. <input type="text" placeholder="请填写第三方平台" bindinput="bindThirdPlatformsInputInput" />
  88. </van-radio>
  89. </van-radio-group>
  90. </view>
  91. <view class='title_1'>二、用户体验</view>
  92. <!-- 睡眠环境评价 -->
  93. <view class="section" id="stayExper">
  94. <text>5、睡眠房的入住体验怎么样?</text>
  95. <van-radio-group value="{{ stayExper }}" bind:change="bindStayExperOptions">
  96. <van-radio wx:for="{{stayExperOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  97. custom-class="custom-radio-class" use-icon-slot>
  98. <view class="radio-view">
  99. <image class="radio-icon" slot="icon" src="{{ stayExper === item.value ? activeIcon : normalIcon }}" />
  100. <text class="radio-title"
  101. style="{{ stayExper === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  102. </view>
  103. </van-radio>
  104. </van-radio-group>
  105. </view>
  106. <view class="section" id="satisfied">
  107. <text>6、入住之后,您觉得哪些方面让您比较满意?(多选)</text>
  108. <van-checkbox-group value="{{ satisfied }}" bind:change="bindSatisfied">
  109. <van-checkbox wx:for="{{satisfiedOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  110. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  111. <view class="radio-view">
  112. <image class="radio-icon" slot="icon"
  113. src="{{ jstools.includes(satisfied,item.value) ? activeIcon : normalIcon }}" />
  114. <text class="radio-title"
  115. style="{{ jstools.includes(satisfied,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  116. </view>
  117. </van-checkbox>
  118. </van-checkbox-group>
  119. </view>
  120. <view class="section" id="noSatisfied">
  121. <text>7、让您对本次睡眠房入住体验不满意的原因是?</text>
  122. <van-radio-group value="{{ noSatisfied }}" bind:change="bindNoSatisfiedChange">
  123. <van-radio wx:for="{{noSatisfiedOptions}}" wx:key="index" name="{{item.value}}" checked-color="#0ABCA4"
  124. custom-class="custom-radio-class" use-icon-slot>
  125. <view class="radio-view">
  126. <image class="radio-icon" slot="icon" src="{{ noSatisfied === item.value ? activeIcon : normalIcon }}" />
  127. <text class="radio-title"
  128. style="{{ noSatisfied === item.value ? activeColor : normalColor }}">{{item.label}}</text>
  129. </view>
  130. <input wx:if="{{index == noSatisfiedOptions.length - 1}}" type="text" placeholder="请填写体验不满意的原因"
  131. bindinput="bindNoSatisfiedInput" />
  132. </van-radio>
  133. </van-radio-group>
  134. </view>
  135. <view class="section" id="improvementSleep">
  136. <text>8、您通常采取什么措施来改善睡眠?(多选)</text>
  137. <van-checkbox-group value="{{ improvementSleep }}" bind:change="bindImprovementSleep">
  138. <van-checkbox wx:for="{{improvementSleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  139. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  140. <view class="radio-view">
  141. <image class="radio-icon" slot="icon"
  142. src="{{ jstools.includes(improvementSleep,item.value) ? activeIcon : normalIcon }}" />
  143. <text class="radio-title"
  144. style="{{ jstools.includes(improvementSleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  145. </view>
  146. </van-checkbox>
  147. </van-checkbox-group>
  148. </view>
  149. <view class="section" id="wayImprovementSleep">
  150. <text>9、您倾向于下面哪些方式来帮助改善睡眠?(多选)</text>
  151. <!-- -->
  152. <van-checkbox-group value="{{ wayImprovementSleep }}" bind:change="bindWayImprovementSleep">
  153. <van-checkbox wx:for="{{wayImprovementSleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  154. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  155. <view class="radio-view">
  156. <image class="radio-icon" slot="icon"
  157. src="{{ jstools.includes(wayImprovementSleep,item.value) ? activeIcon : normalIcon }}" />
  158. <text class="radio-title"
  159. style="{{ jstools.includes(wayImprovementSleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  160. </view>
  161. <input wx:if="{{index == wayImprovementSleepOptions.length - 1}}" type="text" placeholder="请填写帮助改善睡眠方式"
  162. bindinput="bindWayImprovementSleepInput" data-type="wayImprovementSleep"
  163. data-list="{{wayImprovementSleep}}" data-name="{{item.value}}" bindtap="checkBoxInputValue" />
  164. </van-checkbox>
  165. </van-checkbox-group>
  166. </view>
  167. <view class="section" id="getSleepHealth">
  168. <text>10、您通常从哪里获取关于睡眠健康的信息?(多选)</text>
  169. <van-checkbox-group value="{{ getSleepHealth }}" bind:change="bindGetSleepHealth">
  170. <van-checkbox wx:for="{{getSleepHealthOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  171. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  172. <view class="radio-view">
  173. <image class="radio-icon" slot="icon"
  174. src="{{ jstools.includes(getSleepHealth,item.value) ? activeIcon : normalIcon }}" />
  175. <text class="radio-title"
  176. style="{{ jstools.includes(getSleepHealth,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  177. </view>
  178. <input wx:if="{{index == getSleepHealthOptions.length - 1}}" type="text" placeholder="请填写从哪里获取关于睡眠健康的信息"
  179. bindinput="bindGetSleepHealthInput" data-type="getSleepHealth" data-list="{{getSleepHealth}}"
  180. data-name="{{item.value}}" bindtap="checkBoxInputValue" />
  181. </van-checkbox>
  182. </van-checkbox-group>
  183. </view>
  184. <view class='title_1'>三、影响睡眠的因素</view>
  185. <view class="section" id="influenceSleep">
  186. <text>11、您认为以下哪些因素会影响您的睡眠?(多选)</text>
  187. <van-checkbox-group value="{{ influenceSleep }}" bind:change="bindInfluenceSleep">
  188. <van-checkbox wx:for="{{influenceSleepOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  189. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  190. <view class="radio-view">
  191. <image class="radio-icon" slot="icon"
  192. src="{{ jstools.includes(influenceSleep,item.value) ? activeIcon : normalIcon }}" />
  193. <text class="radio-title"
  194. style="{{ jstools.includes(influenceSleep,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  195. </view>
  196. <input wx:if="{{index == influenceSleepOptions.length - 1}}" type="text" placeholder="请填写影响您的睡眠因素"
  197. bindinput="bindInfluenceSleepInput" data-type="influenceSleep" data-list="{{influenceSleep}}"
  198. data-name="{{item.value}}" bindtap="checkBoxInputValue" />
  199. </van-checkbox>
  200. </van-checkbox-group>
  201. </view>
  202. <view class="section" id="improvSleepMethods">
  203. <text>12、您通常使用什么方法来改善睡眠质量?(多选)</text>
  204. <van-checkbox-group value="{{ improvSleepMethods }}" bind:change="bindImprovSleepMethods">
  205. <van-checkbox wx:for="{{improvSleepMethodsOptions}}" wx:key="index" shape="square" checked-color="#0ABCA4"
  206. name="{{item.value}}" custom-class="custom-radio-class" use-icon-slot>
  207. <view class="radio-view">
  208. <image class="radio-icon" slot="icon"
  209. src="{{ jstools.includes(improvSleepMethods,item.value) ? activeIcon : normalIcon }}" />
  210. <text class="radio-title"
  211. style="{{ jstools.includes(improvSleepMethods,item.value) ? activeColor : normalColor }}">{{item.label}}</text>
  212. </view>
  213. <input wx:if="{{index == improvSleepMethodsOptions.length - 1}}" type="text" placeholder="请填写改善睡眠质量方法"
  214. bindinput="bindImprovSleepMethodsInput" data-type="improvSleepMethods" data-list="{{improvSleepMethods}}"
  215. data-name="{{item.value}}" bindtap="checkBoxInputValue" />
  216. </van-checkbox>
  217. </van-checkbox-group>
  218. </view>
  219. <view class='title_1'>四、其他意见和建议</view>
  220. <!-- 文本输入问题示例 -->
  221. <view class="section" id="suggestion">
  222. <text>13. 关于本次睡眠房的入住体验,您最希望哪些方面可以进行改善优化</text>
  223. <textarea class="full-width-textarea" type="text" placeholder="请填写您的建议" bindinput="bindSuggestionInput" />
  224. </view>
  225. <!-- 提交按钮 -->
  226. <text class="commit-btn" bindtap="submitSurvey">提交问卷</text>
  227. <view style="height: 80rpx;"></view>
  228. <!-- <view class="bottom-view">
  229. <text style="font-weight:600">感谢您的参与和支持!</text>
  230. <text
  231. style="font-size: 28rpx;margin-top: 30rpx;color: #666666;">通过这份问卷,我们可以更好地了解受访者的睡眠状况及其影响因素,从而为他们提供更有效的改善建议。希望您能如实填写,以便我们为您提供更好的服务。</text>
  232. </view> -->
  233. </view>
  234. </scroll-view>
  235. </view>